/* Thunder EV — Marketplace product list (full-width layout) */
*, *::before, *::after {
  box-sizing: border-box;
}

body.tev-marketplace-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  overflow-x: hidden;
}

.tev-mp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.tev-mp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.28rem clamp(0.75rem, 2.5vw, 2rem);
  min-height: 31px;
  box-sizing: border-box;
}

.tev-mp-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-size: 0.735rem;
  flex-shrink: 0;
}

.tev-mp-nav .brand-thunder { color: #1d4ed8; font-weight: 800; }
.tev-mp-nav .brand-ev { color: #ff6600; font-weight: 900; }
.tev-mp-nav .brand-charging { font-size: 0.434rem; color: #1d4ed8; align-self: flex-end; margin-bottom: 2px; }

/* Title band (still used by ev-auto.html and customer-portal.html headers) */
.tev-mp-title-band {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.tev-mp-title-band h1 {
  margin: 0;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

.tev-mp-title-band p {
  margin: 0.2rem 0 0;
  color: #64748b;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Page heading inside the marketplace nav bar (product-list.html) */
.tev-mp-nav__titles {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.tev-mp-nav__titles h1 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.3;
  white-space: nowrap;
}

.tev-mp-nav__titles p {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.tev-mp-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tev-mp-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border-radius: 99px;
  text-decoration: none;
  font-size: 0.546rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.tev-mp-cart-btn [data-tev-cart-count] {
  background: #fff;
  color: #2563eb;
  font-size: 0.455rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 99px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.tev-mp-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 99px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  line-height: 0;
}
.tev-mp-home:hover {
  background: #eff6ff;
  border-color: #dbeafe;
}
.tev-mp-home svg {
  display: block;
}

.tev-mp-main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.5rem clamp(0.65rem, 2vw, 1.75rem) 1.25rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.tev-mp-intro {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  color: #475569;
  display: none;
}

.tev-mp-intro.visible { display: block; }
.tev-mp-intro .highlight { color: #16a34a; font-weight: 800; }

.tev-mp-capacity-notice {
  display: grid;
  gap: 0.65rem;
}

.tev-mp-capacity-notice p {
  margin: 0;
  line-height: 1.5;
}

.tev-mp-capacity-notice--related {
  border-left: 4px solid #f59e0b;
  padding-left: 0.65rem;
}

.tev-mp-capacity-notice--empty {
  border-left: 4px solid #ef4444;
  padding-left: 0.65rem;
}

.tev-mp-capacity-enquiry-btn {
  justify-self: start;
  margin-top: 0.15rem;
}

.tev-mp-compare {
  display: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  overflow: hidden;
  margin-bottom: 0.65rem;
  width: 100%;
}

/* Floating search icon (expand on click) */
.tev-mp-search-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: min(340px, calc(100vw - 2.5rem));
  pointer-events: none;
}

.tev-mp-search-dock > * {
  pointer-events: auto;
}

.tev-mp-search-results {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.82rem;
  color: #475569;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  width: 100%;
  box-sizing: border-box;
}

.tev-mp-search-results:not([hidden]) {
  display: block;
}

.tev-mp-search-results a {
  color: #2563eb;
  font-weight: 700;
}

.tev-mp-search-panel {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0;
}

.tev-mp-search-input-wrap {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.35s ease;
}

.tev-mp-search-input-wrap.active {
  width: min(280px, calc(100vw - 5.5rem));
  opacity: 1;
  margin-right: 0.6rem;
}

.tev-mp-search-input-wrap input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 2px solid #2563eb;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
  box-sizing: border-box;
  background: #fff;
}

.tev-mp-search-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  background: #fff;
  color: #2563eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.tev-mp-search-btn:hover {
  background: #eff6ff;
  transform: scale(1.05);
}

.tev-mp-search-btn.active {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border-color: transparent;
}

.tev-mp-compare.visible { display: block; }

.tev-mp-compare h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #1e3a8a;
}

.tev-mp-compare__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tev-mp-compare__head h2 {
  margin: 0;
}

.tev-mp-card__warranty {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: #334155;
}

.tev-datasheet-link,
.tev-product-pdf-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tev-mp-compare-table-wrap { overflow-x: auto; }

#tev-spec-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

#tev-spec-compare th,
#tev-spec-compare td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-top: 1px solid #f1f5f9;
}

#tev-spec-compare thead th {
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 700;
  border-top: none;
}

.tev-mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 1rem;
  width: 100%;
  align-items: stretch;
}

@media (min-width: 900px) {
  .tev-mp-grid {
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1.1rem;
  }
}

@media (min-width: 1400px) {
  .tev-mp-grid {
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 1.15rem;
  }
}

.tev-mp-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
  font-size: 0.85rem;
}

/* Compact marketplace cards */
.tev-mp-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.7rem 0.7rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  position: relative;
  min-width: 0;
  min-height: 0;
}

.tev-mp-card--sold { opacity: 0.75; }

.tev-mp-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.tev-mp-card__vendor {
  font-size: 0.68rem;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.tev-mp-verified {
  display: inline-flex;
  align-items: center;
  margin-top: 0.15rem;
  font-size: 0.58rem;
  font-weight: 800;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1px 6px;
  border-radius: 99px;
}

.tev-mp-card__rating {
  font-size: 0.65rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.tev-mp-card__img {
  background: #f8fafc;
  border-radius: 8px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  overflow: hidden;
}

.tev-mp-card__img img {
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
}

.tev-mp-card__title {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tev-mp-card__sku,
.tev-mp-card__guns {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  color: #64748b;
  line-height: 1.3;
}

.tev-mp-card__cert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.35rem;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.tev-mp-card__cert-label {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #166534;
}

.tev-mp-card__cert-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: #14532d;
}

.tev-mp-card__cert-more {
  font-size: 0.58rem;
  font-weight: 700;
  color: #15803d;
}

.tev-mp-card__cert .tev-cert-badges {
  margin: 0;
  flex: 1 1 100%;
}

.tev-mp-card__desc {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.tev-mp-stock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tev-mp-stock--in { background: #dcfce7; border: 1px solid #bbf7d0; color: #16a34a; }
.tev-mp-stock--low { background: #fef3c7; border: 1px solid #fde68a; color: #d97706; }
.tev-mp-stock--out { background: #fee2e2; border: 1px solid #fecaca; color: #ef4444; }

.tev-mp-card__footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.45rem;
  margin-top: auto;
}

.tev-mp-badges { margin-bottom: 0.25rem; }

.badge-buy {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  color: #16a34a;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  padding: 2px 7px;
  border-radius: 99px;
}

.badge-quote {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  padding: 2px 7px;
  border-radius: 99px;
}

.tev-mp-price-label {
  display: block;
  font-size: 0.58rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.tev-mp-price {
  font-size: 0.95rem;
  font-weight: 900;
  color: #16a34a;
  line-height: 1.2;
}

.tev-discount-price {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.tev-discount-price__mrp {
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.tev-discount-price__final {
  font-size: 0.95rem;
  font-weight: 900;
  color: #16a34a;
  line-height: 1.2;
}

.tev-discount-price__savings {
  font-size: 0.62rem;
  font-weight: 700;
  color: #059669;
}

.tev-discount-price__line {
  font-size: 0.58rem;
  color: #64748b;
}

.tev-detail-pricing {
  margin: 0.75rem 0;
}

.tev-detail-pricing__line,
.tev-detail-pricing__savings {
  font-size: 0.9rem;
  color: #475569;
  margin: 0.25rem 0;
}

.tev-discount-errors {
  font-weight: 600;
}

.tev-discount-preview {
  font-weight: 600;
}

.tev-mp-btn-cart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0.35rem 0 0.35rem;
  padding: 0.45rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.tev-mp-btn-cart:hover { filter: brightness(1.05); }
.tev-mp-btn-cart.added { background: linear-gradient(135deg, #15803d, #16a34a); }
.tev-mp-btn-cart:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; }

.tev-mp-card__actions {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.tev-mp-btn-secondary,
.tev-mp-btn-quote {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.tev-mp-btn-quote {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border: none;
}

.tev-mp-btn-quote:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.tev-mp-sold-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.tev-mp-sold-overlay span {
  transform: rotate(-12deg);
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.72rem;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

#tev-shared-footer {
  width: 100%;
  max-width: none;
  margin-top: auto;
  align-self: stretch;
}

/* Modals */
.tev-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.75);
  box-sizing: border-box;
}

.tev-modal.tev-modal--quote.active,
body.tev-mp-modal-open .tev-modal.tev-modal--quote.active {
  z-index: 10150;
}

body.tev-mp-modal-open .tev-edge-sidebar-panel,
body.tev-mp-modal-open #sidebar-nav {
  z-index: 90;
  pointer-events: none;
}

body.tev-mp-modal-open .tev-mp-search-dock {
  z-index: 80;
  pointer-events: none;
}

.tev-modal.active { display: flex; }

.tev-modal__panel {
  background: #fff;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.tev-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  color: #475569;
}

.tev-modal h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
  padding-right: 2rem;
}

.tev-modal__sub {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

.tev-modal__panel--wide {
  width: min(1120px, 96vw);
  max-height: 92vh;
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Quote modal — compact 2-column layout with pinned submit */
.tev-modal__panel--quote {
  width: min(1040px, 96vw);
  max-height: min(92vh, 680px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.1rem;
}

.tev-quote-header {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  padding-right: 2rem;
}

.tev-quote-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tev-quote-header h2 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1e3a8a;
  padding-right: 0;
}

.tev-quote-header__sub {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  max-width: 36rem;
}

.tev-quote-header__main {
  min-width: 0;
  flex: 1;
}

.tev-quote-header__product {
  margin: 0;
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
  max-width: 14rem;
  line-height: 1.3;
}

.tev-quote-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(300px, 1.4fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.tev-quote-col {
  padding: 0.85rem 0.95rem 0.95rem;
  min-width: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.tev-quote-col + .tev-quote-col {
  border-left: 1px solid #e2e8f0;
}

.tev-quote-col__title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e3a8a;
}

.tev-quote-details-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.65rem;
  align-items: start;
}

.tev-quote-details-body .tev-form-field--full,
.tev-quote-details-body .tev-quote-contact-field {
  grid-column: 1 / -1;
}

.tev-quote-footer {
  flex-shrink: 0;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.tev-quote-footer .tev-otp-box {
  margin-bottom: 0.5rem;
}

.tev-quote-snapshot__media {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem;
  margin-bottom: 0.55rem;
}

.tev-quote-snapshot__img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff;
}

.tev-quote-snapshot__name {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.tev-quote-snapshot__meta {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.tev-quote-snapshot__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.tev-quote-snapshot__list li {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.35;
}

.tev-quote-optional {
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.68rem;
  text-transform: lowercase;
}

.tev-quote-submit {
  width: 100%;
  margin-top: 0;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tev-quote-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.tev-quote-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.tev-quote-status {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  display: none;
}

.tev-quote-contact-hint {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.tev-quote-contact-field {
  margin-bottom: 0.65rem;
}

.tev-quote-contact-field > .tev-form-field {
  margin-bottom: 0.45rem;
}

.tev-quote-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.tev-quote-channel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.4rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tev-quote-channel-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tev-quote-channel-btn span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.tev-quote-channel-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.tev-quote-channel-icon--telegram {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230088cc' d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.562 8.161l-1.89 8.903c-.145.658-.537.818-1.084.508l-3-2.21-1.447 1.394c-.16.16-.295.295-.605.295l.213-3.053 5.56-5.023c.242-.213-.054-.334-.373-.121l-6.869 4.326-2.962-.924c-.643-.204-.657-.643.136-.953l11.566-4.458c.537-.194 1.006.131.833.951z'/%3E%3C/svg%3E");
}

.tev-quote-channel-icon--whatsapp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2325D366' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}

.tev-quote-channel-icon--arattai {
  background-image: url("/assets/icons/arattai-logo.png");
  border-radius: 3px;
}

.tev-quote-channel-btn.is-selected,
.tev-quote-channel-btn:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.tev-quote-channel-btn.is-selected span,
.tev-quote-channel-btn:has(input:checked) span {
  color: #1d4ed8;
}

.tev-quote-channel-btn--wide {
  grid-column: auto;
}

.tev-quote-quick-connect {
  margin: 0.4rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px solid #e2e8f0;
}

.tev-quote-quick-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e3a8a;
}

.tev-quote-quick-hint {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.tev-quote-quick-actions--icons .tev-comm-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  align-items: center;
}

.tev-quote-quick-actions--icons .tev-comm-btn {
  position: relative;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 50%;
  flex: 0 0 auto;
  gap: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

.tev-quote-quick-actions--icons .tev-comm-btn__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tev-quote-quick-actions--icons .tev-comm-icon {
  width: 15px;
  height: 15px;
}

.tev-quote-quick-actions--icons .tev-comm-btn:hover {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.tev-quote-trust {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.tev-quote-trust--snapshot {
  gap: 0.2rem;
}

.tev-quote-trust li {
  font-size: 0.74rem;
  font-weight: 600;
  color: #15803d;
  line-height: 1.35;
}

.tev-quote-col--details .tev-form-field {
  margin-bottom: 0;
}

.tev-quote-col--details .tev-form-field label {
  font-size: 0.68rem;
  margin-bottom: 0.2rem;
}

.tev-quote-col--details .tev-form-field input,
.tev-quote-col--details .tev-form-field select {
  padding: 0.48rem 0.62rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

@media (max-width: 960px) {
  .tev-modal__panel--quote {
    max-height: 92vh;
  }

  .tev-quote-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .tev-quote-col {
    overflow-y: visible;
  }

  .tev-quote-details-body {
    grid-template-columns: 1fr;
  }

  .tev-quote-details-body .tev-form-field--full,
  .tev-quote-details-body .tev-quote-contact-field {
    grid-column: auto;
  }

  .tev-quote-col + .tev-quote-col {
    border-left: none;
    border-top: 1px solid #e2e8f0;
  }

  .tev-quote-header {
    flex-direction: column;
    padding-right: 2rem;
  }

  .tev-quote-header__product {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .tev-modal__panel--quote {
    padding: 1rem;
  }

  .tev-quote-channel-grid {
    grid-template-columns: 1fr;
  }

  .tev-quote-channel-btn--wide {
    grid-column: auto;
  }
}

.tev-detail-loading {
  margin: 1rem 0;
  color: #64748b;
  font-size: 0.9rem;
}

.tev-detail-split {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.25rem;
}

.tev-detail-split__media {
  position: sticky;
  top: 0;
  background: #f8fafc;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
}

.tev-detail-hero {
  width: 100%;
  max-height: min(52vh, 420px);
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  display: block;
}

.tev-detail-gallery {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tev-detail-gallery img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
}

.tev-detail-gallery img.active {
  border-color: #2563eb;
}

.tev-detail-split__info {
  min-width: 0;
}

.tev-detail-price {
  margin: 0.5rem 0 1rem;
}

.tev-detail-specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.tev-detail-specs td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.tev-detail-specs td:first-child {
  font-weight: 700;
  color: #475569;
  width: 38%;
}

.tev-detail-desc {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.tev-detail-features ul {
  margin: 0.35rem 0 1rem;
  padding-left: 1.2rem;
  color: #334155;
  font-size: 0.88rem;
}

.tev-detail-docs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.25rem 0.5rem 0 0;
  padding: 0.4rem 0.75rem;
  background: #f1f5f9;
  border-radius: 8px;
  text-decoration: none;
  color: #1e40af;
  font-size: 0.82rem;
  font-weight: 600;
}

.tev-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .tev-detail-split {
    grid-template-columns: 1fr;
  }
  .tev-detail-split__media {
    position: static;
  }
}

.tev-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.tev-form-field { margin-bottom: 0.65rem; }

.tev-form-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.2rem;
}

.tev-form-field input,
.tev-form-field select,
.tev-form-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.tev-form-phone {
  display: flex;
  gap: 0.35rem;
}

.tev-form-phone select { width: 72px; flex-shrink: 0; }

.tev-otp-box {
  display: none;
  margin: 0.5rem 0;
  padding: 0.75rem;
  background: #f0fdf4;
  border: 1px dashed #22c55e;
  border-radius: 10px;
}

.tev-otp-box.visible { display: block; }

.tev-btn-wa {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.tev-btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.tev-btn-primary:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.tev-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tev-form-actions .tev-btn-primary { flex: 2; }
.tev-form-actions .tev-btn-wa { flex: 1; padding: 0.75rem; font-size: 0.85rem; }

#quote-status {
  display: none;
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #059669;
}

.tev-info-img {
  background: #f8fafc;
  border-radius: 12px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.tev-info-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.tev-info-meta {
  background: #eff6ff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.tev-info-meta div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.tev-info-meta div:last-child { margin-bottom: 0; }

/* Scroll reveal: happy customers + add-ons */
.tev-mp-trust {
  margin-top: 1.25rem;
  padding: 0.85rem 0 0.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.tev-mp-trust.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tev-mp-trust__block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.65rem;
}

.tev-mp-trust__block--addons {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.tev-mp-trust__heading {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tev-mp-trust__lead {
  margin: 0.25rem 0 0.55rem;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

.tev-mp-customers-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.tev-mp-customers-scroll::-webkit-scrollbar {
  height: 5px;
}

.tev-mp-customers-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

.tev-mp-customer-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 140px;
  max-width: 200px;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tev-mp-customer-chip img {
  height: 22px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.tev-mp-customer-chip strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tev-mp-customer-chip span {
  font-size: 0.62rem;
  color: #64748b;
}

.tev-mp-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tev-mp-addon {
  flex: 1 1 160px;
  min-width: 0;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.tev-mp-addon__icon {
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.tev-mp-addon h3 {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.25;
}

.tev-mp-addon p {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.65rem;
  color: #64748b;
  line-height: 1.3;
}

.tev-mp-addon__actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tev-mp-addon__actions button {
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 99px;
  cursor: pointer;
  border: none;
}

.tev-mp-addon__quote {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
}

.tev-mp-addon__cart {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0 !important;
}

.tev-mp-trust__empty {
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .tev-mp-addon { flex: 1 1 100%; }
  .tev-form-grid-2 { grid-template-columns: 1fr; }
  .tev-mp-nav__titles p { display: none; }
  .tev-mp-nav__titles h1 { font-size: 0.66rem; }
  .tev-mp-card:not(.tev-mp-card--premium) .tev-mp-card__img { height: 64px; }
  .tev-mp-card:not(.tev-mp-card--premium) .tev-mp-card__img img { max-height: 56px; }
}

@media (max-width: 380px) {
  .tev-mp-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Inline filter bar (desktop one-row) ── */
.tev-mp-filter-bar.tev-mp-filter-bar--inline {
  margin: 0.75rem clamp(0.75rem, 2.5vw, 2rem) 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: none;
}

.tev-mp-filter-bar.tev-mp-filter-bar--inline .tev-mp-filter-bar__row--desktop {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  gap: 0.4rem;
  padding-bottom: 0.1rem;
}

.tev-mp-filter-bar.tev-mp-filter-bar--inline .tev-mp-filter-bar__search {
  flex: 1 1 200px;
  min-width: 150px;
}

.tev-mp-filter-bar.tev-mp-filter-bar--inline .tev-mp-filter-select {
  flex-shrink: 0;
  min-width: 108px;
  max-width: 132px;
}

.tev-mp-filter-bar.tev-mp-filter-bar--inline .tev-mp-filter-clear {
  flex-shrink: 0;
  margin-left: auto;
}

/* ── Universal Smart Product Filters ── */
.tev-mp-filter-bar--premium {
  position: sticky;
  top: 0;
  z-index: 120;
  margin: 0.65rem clamp(0.75rem, 2.5vw, 2rem) 0.5rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.tev-mp-filter-premium {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  padding: 0.7rem 0.85rem 0.75rem;
}

.tev-mp-filter-premium__line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.tev-mp-filter-premium__search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 220px;
  min-width: 180px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 0.55rem;
}

.tev-mp-filter-premium__icon {
  font-size: 0.9rem;
  opacity: 0.65;
  flex-shrink: 0;
}

.tev-mp-filter-premium__search input {
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  width: 100%;
  font-size: 0.84rem;
}

.tev-mp-filter-premium__search input:focus {
  outline: none;
}

.tev-mp-filter-premium__meta {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #e2e8f0;
}

.tev-mp-result-count--inline {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e3a8a;
}

.tev-mp-filter-cert-menu {
  position: relative;
  flex-shrink: 0;
}

.tev-mp-filter-cert-trigger {
  list-style: none;
  cursor: pointer;
  min-width: 108px;
}

.tev-mp-filter-cert-trigger::-webkit-details-marker {
  display: none;
}

.tev-mp-filter-cert-trigger.has-value {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.tev-mp-filter-cert-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  min-width: 180px;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 0.45rem;
}

.tev-mp-filter-cert-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.4rem;
  font-size: 0.8rem;
  color: #334155;
  border-radius: 6px;
  cursor: pointer;
}

.tev-mp-filter-cert-option:hover {
  background: #f1f5f9;
}

.tev-mp-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.tev-mp-active-filters__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tev-mp-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e40af;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.tev-mp-filter-chip:hover {
  background: #dbeafe;
}

.tev-mp-filter-chip--clear {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.tev-mp-filter-chip--clear:hover {
  background: #fee2e2;
}

.tev-mp-filter-bar {
  margin: 0.75rem clamp(0.75rem, 2.5vw, 2rem) 0.35rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tev-mp-filter-bar.tev-mp-filter-bar--inline {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  box-shadow: none;
}

.tev-mp-filter-bar__row--desktop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.tev-mp-filter-bar__row--mobile {
  display: none;
  gap: 0.45rem;
}

.tev-mp-filter-bar__search {
  flex: 1 1 180px;
  min-width: 140px;
}

.tev-mp-filter-bar__search input,
.tev-mp-filter-bar__row--mobile input[type="search"],
.tev-mp-filter-input {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
}

.tev-mp-filter-select {
  padding: 0.45rem 1.6rem 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 0.78rem;
  background: #fff;
  max-width: 140px;
}

.tev-mp-filter-advanced-btn,
.tev-mp-filter-clear,
.tev-mp-filter-mobile-btn {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.tev-mp-filter-advanced-btn {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
  font-weight: 600;
}

.tev-mp-result-count {
  margin: 0.25rem clamp(0.75rem, 2.5vw, 2rem) 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e3a8a;
}

.tev-mp-filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
  clip-path: inset(0);
  width: 100%;
  max-width: 100%;
}

.tev-mp-filter-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.tev-mp-filter-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}

.tev-mp-filter-drawer.open .tev-mp-filter-drawer__backdrop {
  opacity: 1;
}

.tev-mp-filter-drawer__panel {
  position: absolute;
  top: 0;
  left: 100%;
  right: auto;
  width: min(420px, 92vw);
  max-width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.tev-mp-filter-drawer:not(.open) .tev-mp-filter-drawer__panel {
  display: none;
}

.tev-mp-filter-drawer.open .tev-mp-filter-drawer__panel {
  display: flex;
  transform: translateX(-100%);
}

.tev-mp-filter-drawer__footer {
  margin-top: auto;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.5rem;
}

.tev-mp-filter-drawer__footer .tev-mp-btn-primary,
.tev-mp-filter-drawer__footer .tev-mp-btn-secondary {
  flex: 1;
}

.tev-mp-drawer-section {
  margin-bottom: 1rem;
}

.tev-mp-drawer-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tev-mp-drawer-section .tev-mp-filter-select {
  width: 100%;
  max-width: none;
  margin-bottom: 0.45rem;
}

body.tev-mp-drawer-open {
  overflow: hidden;
}

.tev-mp-filter-mobile-btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  .tev-mp-filter-bar__row--desktop.tev-mp-filter-premium__line {
    display: none;
  }

  .tev-mp-filter-bar__row--mobile.tev-mp-filter-premium__mobile {
    display: flex;
  }
}

@media (min-width: 901px) {
  .tev-mp-filter-bar__row--mobile.tev-mp-filter-premium__mobile {
    display: none;
  }
}

.tev-mp-filter-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}

.tev-mp-advanced-filters {
  padding: 1rem 1.1rem;
  overflow-y: auto;
  flex: 1;
}

.tev-mp-advanced-group {
  margin-bottom: 1rem;
}

.tev-mp-advanced-group h4 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: #334155;
}

.tev-mp-advanced-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tev-mp-advanced-check {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
}

.tev-mp-advanced-price__row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tev-mp-advanced-price__row input {
  flex: 1;
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
}

.tev-mp-advanced-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.tev-mp-btn-primary,
.tev-mp-btn-secondary {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.tev-mp-btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
}

.tev-mp-btn-secondary {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.tev-mp-btn-sm {
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
}

.tev-mp-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 1rem clamp(0.75rem, 2.5vw, 2rem) 2rem;
}

.tev-mp-page-btn {
  min-width: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.78rem;
}

.tev-mp-page-btn.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.tev-mp-skeleton-card {
  min-height: 220px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: tev-shimmer 1.2s infinite;
}

@keyframes tev-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.tev-mp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
}

.tev-mp-card--enhanced .tev-mp-card__brand {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tev-mp-card__meta,
.tev-mp-card__vendor {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0.15rem 0;
}

.tev-mp-card__stock {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.tev-mp-card__stock--in-stock { color: #059669; }
.tev-mp-card__stock--out-of-stock { color: #dc2626; }

.tev-mp-card__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.55rem 0.65rem 0.75rem;
}

.tev-mp-icon-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.tev-mp-icon-btn.active {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
}

.tev-compare-bar {
  position: sticky;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem clamp(0.75rem, 2.5vw, 2rem);
  background: #1e3a8a;
  color: #fff;
}

.tev-compare-bar .tev-mp-filter-clear {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

@media (max-width: 1024px) {
  .tev-mp-filter-bar__row--desktop { display: none; }
  .tev-mp-filter-bar__row--mobile {
    display: flex;
    align-items: center;
  }
  .tev-mp-filter-bar__row--mobile input[type="search"] {
    flex: 1;
  }
}

/* ── Compact Premium Marketplace cards (Tesla / Amazon style) ── */
.tev-mp-card--premium {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 488px;
  height: 100%;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tev-mp-card--premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  border-color: #dbeafe;
}

.tev-mp-card--premium .tev-mp-card__associate {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: calc(100% - 1.2rem);
  margin: 0.65rem 0.65rem 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tev-mp-card--premium .tev-mp-card__img {
  width: calc(100% - 1.3rem);
  margin: 0.55rem auto 0;
  height: 162px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.tev-mp-card--premium .tev-mp-card__img img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  padding: 0.5rem;
}

/* Multi-image gallery — swipe / scroll on card */
.tev-mp-card--premium .tev-mp-card__gallery {
  position: relative;
  width: calc(100% - 1.3rem);
  margin: 0.55rem auto 0;
  height: 162px;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  background: #f8fafc;
  overflow: hidden;
  flex-shrink: 0;
}

.tev-mp-card__gallery-track {
  display: flex;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.tev-mp-card__gallery-track::-webkit-scrollbar {
  display: none;
}

.tev-mp-card__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tev-mp-card__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  user-select: none;
  -webkit-user-drag: none;
}

.tev-mp-card__gallery-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.35rem;
  pointer-events: none;
}

.tev-mp-card__gallery-nav {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.tev-mp-card--premium .tev-mp-card__gallery:hover .tev-mp-card__gallery-nav,
.tev-mp-card--premium .tev-mp-card__gallery:focus-within .tev-mp-card__gallery-nav {
  opacity: 1;
}

.tev-mp-card__gallery-nav:hover {
  background: rgba(37, 99, 235, 0.85);
}

.tev-mp-card__gallery-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  pointer-events: auto;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
}

.tev-mp-card__gallery-dot {
  width: 6px;
  height: 6px;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.tev-mp-card__gallery-dot.active {
  background: #2563eb;
  transform: scale(1.15);
}

.tev-mp-card__gallery-count {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  pointer-events: none;
}

@media (max-width: 640px) {
  .tev-mp-card__gallery-nav {
    opacity: 1;
    background: rgba(15, 23, 42, 0.45);
  }
}

.tev-mp-card--premium .tev-mp-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.65rem 0.75rem 0.4rem;
  min-height: 0;
}

.tev-mp-card--premium .tev-mp-card__brand {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

.tev-mp-card--premium .tev-mp-card__title {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.35em;
}

.tev-mp-card--premium .tev-mp-card__spec-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.32rem;
}

.tev-mp-spec-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.55rem;
  padding: 0.28rem 0.45rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  font-size: 0.72rem;
  line-height: 1.25;
}

.tev-mp-spec-row__icon {
  flex: 0 0 auto;
  width: 1.1em;
  text-align: center;
  font-size: 0.85em;
  line-height: 1;
}

.tev-mp-spec-row__label {
  flex: 0 0 auto;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.tev-mp-spec-row__value {
  flex: 1 1 auto;
  min-width: 0;
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

.tev-mp-spec-row__more {
  font-size: 0.65rem;
  font-weight: 700;
  color: #2563eb;
}

.tev-mp-spec-row--capacity {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border-color: #dbeafe;
}

.tev-mp-spec-row--capacity .tev-mp-spec-row__value {
  color: #1e40af;
}

.tev-mp-spec-row--cert {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border-color: #bfdbfe;
}

.tev-mp-spec-row--guns {
  background: linear-gradient(135deg, #fefce8, #fffbeb);
  border-color: #fde68a;
}

.tev-mp-spec-row--connector {
  background: #fff;
  border-color: #e2e8f0;
}

.tev-mp-spec-row__chip {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.tev-mp-spec-row--warranty {
  background: linear-gradient(135deg, #fffbeb, #fefce8);
  border-color: #fde68a;
}

.tev-mp-card--premium .tev-mp-card__specs,
.tev-mp-card--premium .tev-mp-card__connectors,
.tev-mp-card--premium .tev-mp-card__trust {
  display: none;
}

.tev-mp-card__facts,
.tev-mp-fact {
  display: none;
}

.tev-mp-card--premium .tev-mp-card__verified {
  display: none;
}

.tev-mp-spec {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.tev-mp-connector--more {
  color: #64748b;
  background: #fff;
}

.tev-mp-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.tev-mp-badge--warranty {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.tev-mp-badge--cert {
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.tev-mp-card--premium .tev-mp-card__price-block {
  margin-top: auto;
  padding-top: 0.25rem;
}

.tev-mp-card--premium .tev-mp-card__price-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.1rem;
}

.tev-mp-card--premium .tev-mp-card__price {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.tev-mp-card--premium .tev-mp-card__price--quote {
  font-size: 0.95rem;
  color: #2563eb;
}

.tev-mp-card--premium .tev-mp-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem 0.75rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.tev-mp-card--premium .tev-mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.4rem 0.35rem;
  border-radius: 9px;
  font-size: 0.66rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.tev-mp-card--premium .tev-mp-btn--ghost {
  background: #fff;
  color: #334155;
  border-color: #e2e8f0;
}

.tev-mp-card--premium .tev-mp-btn--ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.tev-mp-card--premium .tev-mp-btn--cart {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tev-mp-card--premium .tev-mp-btn--cart:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
}

.tev-mp-card--premium .tev-mp-btn--cart.added,
.tev-mp-card--premium .tev-mp-btn--cart:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.tev-mp-card--premium .tev-mp-btn--quote {
  background: #fff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.tev-mp-card--premium .tev-mp-btn--quote:hover:not(:disabled) {
  background: #eff6ff;
}

.tev-mp-card--premium .tev-mp-btn--quote:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tev-mp-card--premium.tev-mp-card--sold {
  opacity: 0.88;
}

@media (max-width: 640px) {
  .tev-mp-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .tev-mp-card--premium {
    min-height: 448px;
  }

  .tev-mp-card--premium .tev-mp-card__actions {
    grid-template-columns: 1fr;
  }

  .tev-mp-card--premium .tev-mp-btn {
    width: 100%;
    min-height: 42px;
    font-size: 0.78rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .tev-mp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
