/* ===================== CAR CONFIGURATOR PAGE ===================== */

.config-page { background: var(--bg); padding: 32px 0 80px; }


/* product layout */
.product-layout {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px;
  align-items: flex-start;
}

/* ====== gallery ====== */
.gallery-wrap { position: sticky; top: 130px; }
.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-main .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery-main .slide.active { opacity: 1; }
.gallery-main .slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-main .slide .caption {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  max-width: 360px;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
  box-shadow: var(--shadow);
  transition: background .2s var(--ease), transform .2s var(--ease);
  z-index: 2;
}
.gallery-nav:hover { background: var(--navy); color: #fff; transform: translateY(-50%) scale(1.05); }
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.gallery-counter {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0, 35, 102, 0.85);
  color: #fff;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  z-index: 2;
}
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px;
}
.thumb {
  position: relative; aspect-ratio: 1;
  border-radius: 10px; overflow: hidden;
  background: var(--bg-soft);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--orange); }
.thumb:hover { border-color: var(--navy); }

/* ====== product info ====== */
.product-info { display: flex; flex-direction: column; gap: 24px; }

.product-head h1 {
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  margin: 0;
}
.product-head .crumbs { font-size: 13px; color: var(--grey-600); margin-bottom: 8px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.rating-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.rating-row .stars { color: var(--orange); letter-spacing: 2px; font-size: 16px; }
.rating-row .score { font-weight: 700; color: var(--navy); font-size: 15px; }
.rating-row .reviews { font-size: 13px; color: var(--grey-600); text-decoration: underline; }

.price-row { display: flex; align-items: baseline; gap: 14px; margin-top: 6px; }
.price-row .price {
  font-family: "Manrope"; font-weight: 700; font-size: 34px; color: var(--navy);
  letter-spacing: -0.02em;
}
.price-row .vat { font-size: 12.5px; color: var(--grey-600); }
.price-row .from { color: var(--grey-600); font-size: 14px; margin-right: 6px; }
.klarna {
  margin-top: 4px;
  font-size: 13px; color: var(--grey-600);
}
.klarna b { color: var(--navy); font-weight: 600; }

/* option groups */
.opt-group { padding-top: 4px; }
.opt-group .opt-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.opt-group .opt-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey-600);
}
.opt-group .opt-value { font-size: 14px; font-weight: 600; color: var(--navy); }

.tex-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.tex-card {
  position: relative;
  border: 2px solid var(--hair); border-radius: 12px;
  padding: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.tex-card:hover { border-color: var(--navy); }
.tex-card.active { border-color: var(--orange); background: var(--orange-50); }
.tex-card .tex-swatch {
  width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: #f3f3f1;
}
.tex-card .tex-swatch img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.tex-card .tex-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.tex-card .tex-sub  { font-size: 12px; color: var(--grey-600); margin-top: 2px; }

/* color swatches */
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px var(--hair-2);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.swatch img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 50%;
  pointer-events: none;
}
.swatch:hover { transform: scale(1.06); box-shadow: 0 0 0 1.5px var(--navy); }
.swatch.active { box-shadow: 0 0 0 2.5px var(--orange); }
.swatch[title]::after {
  content: attr(title);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 5px 9px; border-radius: 6px;
  font-size: 11px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .15s var(--ease);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
.swatch:hover::after { opacity: 1; }

/* configuration radio */
.config-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.config-list label {
  border: 2px solid var(--hair); border-radius: 12px;
  padding: 14px 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  position: relative;
}
.config-list label:hover { border-color: var(--navy); }
.config-list input { position: absolute; opacity: 0; pointer-events: none; }
.config-list label .top { display: flex; justify-content: space-between; align-items: center; }
.config-list label .name { font-weight: 600; font-size: 14px; color: var(--ink); }
.config-list label .price-pill { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.config-list label .desc { font-size: 12px; color: var(--grey-600); }
.config-list label .kit-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--bg-soft);
  border-radius: 8px;
  margin-bottom: 6px;
  display: block;
  transition: background .2s var(--ease);
}
.config-list label.checked .kit-img,
.config-list label:hover .kit-img { background: #fff; }
.config-list input:checked + .top + .desc, .config-list input:checked ~ .desc {}
.config-list label.checked { border-color: var(--orange); background: var(--orange-50); }
.config-list label.checked .name, .config-list label.checked .price-pill { color: var(--navy); }
.config-list label.popular::before {
  content: "Популярно";
  position: absolute; top: -10px; right: 12px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px;
}

/* car selector */
.car-selector {
  border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 20px; background: var(--bg-soft);
}
.car-step-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--grey-600); margin-bottom: 14px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}
.car-step-bar .progress {
  flex: 1; height: 4px; background: var(--hair); border-radius: 2px; overflow: hidden;
  margin: 0 6px;
}
.car-step-bar .progress span { display: block; height: 100%; background: var(--orange); border-radius: 2px; }

.car-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.car-fields .field { margin-bottom: 0; cursor: pointer; }
.car-fields .field.full { grid-column: 1 / -1; }
.car-not-sure {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
  padding: 12px 14px; background: #fff; border: 1px dashed var(--hair-2); border-radius: 10px;
  font-size: 13px; color: var(--grey-600);
}
.car-not-sure svg { color: var(--orange); flex-shrink: 0; }
.car-not-sure b { color: var(--navy); }

/* qty + add to cart */
.purchase-row {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 10px;
}
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--hair); border-radius: 999px;
  padding: 0 4px; height: 56px;
}
.qty button {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background .15s var(--ease);
}
.qty button:hover { background: var(--navy-50); }
.qty .count { width: 36px; text-align: center; font-weight: 700; color: var(--navy); }
.purchase-row .btn { width: 100%; justify-content: center; }
.btn-cart { height: 56px; }

/* delivery + trust strip */
.delivery-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--hair); border-radius: 12px;
  background: #fff;
}
.delivery-card .icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--orange-50); color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
}
.delivery-card .t { font-size: 14px; font-weight: 600; color: var(--ink); }
.delivery-card .s { font-size: 12.5px; color: var(--grey-600); margin-top: 2px; }
.delivery-card .check { color: #10b981; }

.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.trust-cell {
  border: 1px solid var(--hair); border-radius: 10px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  background: #fff;
}
.trust-cell svg { color: var(--navy); flex-shrink: 0; }
.trust-cell .t { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* ====== Timeline ====== */
.timeline-section {
  background: var(--bg-soft);
  padding: 80px 0;
  margin-top: 80px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.timeline-section h2 { text-align: center; max-width: 700px; margin: 0 auto 48px; font-size: clamp(26px, 2.6vw, 40px); }
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative;
}
.timeline::before {
  content: ""; position: absolute;
  left: 12.5%; right: 12.5%; top: 28px; height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 100%);
  opacity: 0.25;
}
.tl-step {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
  background: var(--bg-soft);
  padding: 0 12px;
}
.tl-step .dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--orange);
  color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Manrope"; font-weight: 700; font-size: 20px;
  box-shadow: 0 0 0 8px var(--bg-soft);
  margin-bottom: 16px;
  z-index: 2;
}
.tl-step .date { font-size: 12px; color: var(--grey-600); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.tl-step .title { font-family: "Manrope"; font-weight: 700; color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.tl-step .desc  { font-size: 13.5px; color: var(--grey-600); line-height: 1.5; max-width: 24ch; }

/* description sections */
.config-desc {
  padding: 80px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px;
}
.desc-block h3 {
  font-family: "Manrope"; font-size: 22px; color: var(--navy); margin-bottom: 14px;
}
.desc-block p { color: #2b2b2b; font-size: 15px; line-height: 1.65; margin-bottom: 12px; }
.desc-block ul { padding-left: 20px; color: #2b2b2b; font-size: 15px; line-height: 1.7; }

/* You might also like */
.also-like { padding: 80px 0; background: var(--bg-soft); border-top: 1px solid var(--hair); }
.also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.also-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hair);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.also-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.also-card .img { aspect-ratio: 4/3; background: var(--bg-soft); overflow: hidden; }
.also-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.also-card:hover .img img { transform: scale(1.06); }
.also-card .body { padding: 18px 20px; }
.also-card .name { font-weight: 600; font-size: 15px; color: var(--ink); }
.also-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.also-card .price { font-family: "Manrope"; font-weight: 700; color: var(--navy); font-size: 17px; }
.also-card .add {
  font-size: 12px; font-weight: 600; color: var(--orange);
  display: inline-flex; align-items: center; gap: 4px;
}
.also-card .add:hover { text-decoration: underline; }

/* responsive */
@media (max-width: 1100px) {
  .product-layout { grid-template-columns: 1fr; gap: 40px; }
  .gallery-wrap { position: static; }
  .config-desc { grid-template-columns: 1fr; }
  .also-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
  .tex-grid { grid-template-columns: 1fr; }
  .config-list { grid-template-columns: 1fr; }
  .car-fields { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .trust-strip { grid-template-columns: 1fr; }
  .also-grid { grid-template-columns: 1fr; }
  .purchase-row { grid-template-columns: 1fr; }
  .qty { justify-self: start; }
  .config-desc { padding: 56px 0; }
  .also-like { padding: 56px 0; }
  .timeline-section { padding: 56px 0; margin-top: 56px; }
}
/* ============== FAQ ============== */
.faq-section {
  padding: 110px 0;
  background: var(--bg);
  border-top: 1px solid var(--hair);
}
.faq-section .faq-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.faq-section .faq-head .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}
.faq-section .faq-head h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 700;
}
.faq-section .faq-head p {
  color: var(--grey-600);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item:hover { border-color: var(--hair-2); }
.faq-item.open {
  border-color: var(--navy);
  box-shadow: 0 4px 24px -12px rgba(20, 30, 60, 0.18);
}
.faq-section .faq-q,
.faq-section button.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  background: none !important;
  border: none !important;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink) !important;
  line-height: 1.4;
  transition: color .2s var(--ease);
  box-shadow: none !important;
}
.faq-section .faq-q:hover,
.faq-section button.faq-q:hover,
.faq-section .faq-q:focus,
.faq-section button.faq-q:focus {
  color: var(--navy) !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.faq-q .ic {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--hair-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-600);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .35s var(--ease);
}
.faq-item.open .faq-q .ic {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-item.open .faq-a {
  max-height: 1200px;
}
.faq-a-inner {
  padding: 20px 28px 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--grey-700, #4a4f5a);
  border-top: 1px solid var(--hair);
}
.faq-a-inner p { margin: 0; }
.faq-a-inner p + p { margin-top: 12px; }
.faq-a-inner ul { margin: 10px 0 0 18px; padding: 0; }
.faq-a-inner li { margin-bottom: 4px; }
.faq-a-inner b { color: var(--ink); font-weight: 700; }

.faq-cta {
  max-width: 820px;
  margin: 48px auto 0;
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 28px 32px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.faq-cta .left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.faq-cta .ic-circ {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-50, #fff3ec);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-cta .t {
  font-family: "Manrope";
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.faq-cta .s {
  font-size: 13.5px;
  color: var(--grey-600);
  margin-top: 2px;
}
.faq-cta .actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.faq-cta .actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--hair-2);
  color: var(--ink);
  background: #fff;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.faq-cta .actions a:hover { border-color: var(--navy); color: var(--navy); }
.faq-cta .actions a.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.faq-cta .actions a.primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@media (max-width: 720px) {
  .faq-section { padding: 72px 0; }
  .faq-q { padding: 18px 20px; font-size: 15.5px; gap: 14px; }
  .faq-a-inner { padding: 16px 20px 22px; font-size: 14px; }
  .faq-cta { padding: 22px; flex-direction: column; align-items: flex-start; }
  .faq-cta .actions { width: 100%; }
  .faq-cta .actions a { flex: 1; justify-content: center; }
}
/* --- end FAQ append --- */

/* --- Bridge: legacy prime-* tokens used by the configurator plugin → design palette --- */
:root {
  --prime-navy: #002366;
  --prime-yellow: #E65100;
  --prime-ink: #1A1A1A;
  --prime-grey: #5e5e5e;
  --prime-border: #E5E5E5;
  --prime-bg: #FFFFFF;
  --prime-bg-soft: #F8F9FA;
}

/* ==================== Configurator right-side restyle (match design ref) ==================== */
/* The plugin emits its own classes. We override its CSS to mirror the look of
   /Users/developer/Projects/evaway/design-refference/Car Configurator.html: */

/* Strip the plugin's default white-card wrapper on the doormat page so it
   matches the car-mats two-column layout (no outer card, transparent bg). */
