/* =========================================================================
   PersonalizeCar — tema "Real" (vermelho/preto/branco)
   Camada visual aplicada sobre a loja existente. Nenhum ID, classe ou
   atributo usado pelos scripts foi removido; aqui só há cor, layout e
   componentes novos (prefixo rc-).
   ========================================================================= */

:root{
  --navy: #141414;
  --navy-2: #1F1F1F;
  --blue: #DC2626;
  --blue-dark: #B91C1C;
  --blue-soft: #FDECEC;
  --accent: #DC2626;
  --red: #DC2626;
  --ink: #1A1A1A;
  --muted: #555555;
  --bg-soft: #F7F5F2;
  --line: #E3E1DD;
  --line-strong: #C9C6C0;
  --shadow: 0 1px 2px rgba(0,0,0,0.05), 0 10px 28px -14px rgba(0,0,0,0.18);
}

/* -------- faixa rolante preta -------- */
.rc-marquee{
  position:relative;
  background:#111111;
  color:#fff;
  overflow:hidden;
  padding:9px 0;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.02em;
}
.rc-marquee-track{
  display:flex; gap:44px;
  width:max-content;
  animation: rc-marquee 26s linear infinite;
}
.rc-marquee-track span{ display:flex; align-items:center; gap:8px; white-space:nowrap; }
@keyframes rc-marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* -------- cabeçalho branco, logo central -------- */
.rc-header{
  position:sticky; top:0; z-index:50;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.rc-header-in{
  display:flex; align-items:center; justify-content:center;
  position:relative;
  padding:14px 0;
}
.rc-header .logo{
  display:flex; align-items:center; gap:9px;
  font-weight:800; font-size:20px; color:var(--navy);
  letter-spacing:-0.01em;
}
.rc-header .logo img.mark-img{ height:36px; width:auto; display:block; }
.rc-cart{
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:18px;
  border:1px solid var(--line);
  background:#fff;
  transition:.15s;
}
.rc-cart:hover{ border-color:var(--red); background:var(--blue-soft); }

/* -------- hero dividido: galeria | compra -------- */
.rc-hero{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap:44px;
  align-items:start;
  padding:34px 20px 40px;
}
@media (max-width: 940px){
  .rc-hero{ grid-template-columns:1fr; gap:26px; padding-top:22px; }
}

.rc-gallery .hero-carousel{
  max-width:none;
  aspect-ratio:1/1;
  border-radius:16px;
  box-shadow:var(--shadow);
}
.rc-gallery .carousel-slide{ padding:0; object-fit:cover; }
.rc-gallery .carousel-badge{ display:none; }

/* miniaturas (o script do carrossel já trata clique e .active) */
.rc-thumbs{
  position:static;
  transform:none;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-top:12px;
}
.rc-thumbs span{
  width:auto; height:auto;
  border-radius:10px;
  background:#fff;
  border:2px solid var(--line);
  overflow:hidden;
  cursor:pointer;
  aspect-ratio:1/1;
  transition:border-color .15s;
}
.rc-thumbs span img{ width:100%; height:100%; object-fit:cover; display:block; }
.rc-thumbs span.active{ border-color:var(--red); }

/* -------- caixa de compra -------- */
.rc-buybox{ min-width:0; }
.rc-pill{
  display:inline-flex; align-items:center; gap:7px;
  background:var(--blue-soft); color:var(--red);
  border:1px solid #F5C6C6;
  font-size:12px; font-weight:700;
  padding:7px 14px; border-radius:999px;
  margin-bottom:14px;
}
.rc-buybox h1{
  font-size:clamp(26px,3.2vw,34px);
  line-height:1.12;
  letter-spacing:-0.02em;
  margin-bottom:10px;
}
.rc-buybox .stars-row{ justify-content:flex-start; margin-bottom:16px; }
.rc-pricebox{ margin-bottom:20px; }
.rc-price-label{ display:block; font-size:13px; color:var(--muted); margin-bottom:2px; }
.rc-price-line{ display:flex; align-items:center; gap:10px; }
.rc-price-line strong{
  font-size:clamp(30px,3.6vw,38px);
  font-weight:800; letter-spacing:-0.02em; color:var(--ink);
  font-variant-numeric:tabular-nums;
}
.rc-offer{
  background:var(--red); color:#fff;
  font-size:10.5px; font-weight:800; letter-spacing:.05em;
  padding:4px 9px; border-radius:6px;
}
.rc-pricebox small{ color:var(--muted); font-size:12.5px; }

/* -------- cartão do assistente -------- */
.fitment-card.rc-wizard{
  max-width:none;
  margin:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:26px 24px;
  box-shadow:var(--shadow);
}
.rc-wizard h2{ font-size:19px; text-align:center; margin-bottom:4px; }
.rc-wizard-sub{ text-align:center; color:var(--muted); font-size:13px; margin-bottom:20px; }

/* indicador das 4 etapas */
.rc-steps{
  display:flex; align-items:flex-start; justify-content:space-between;
  position:relative;
  margin-bottom:24px;
  padding:0 6px;
}
.rc-steps::before{
  content:'';
  position:absolute; top:22px; left:12%; right:12%;
  height:2px; background:var(--line);
}
.rc-step{
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  width:25%;
}
.rc-step i{
  width:44px; height:44px; border-radius:50%;
  background:#fff; border:2px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-style:normal; font-size:18px;
  transition:.2s;
}
.rc-step small{ font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.rc-step.done i{ background:var(--red); border-color:var(--red); color:#fff; }
.rc-step.done small{ color:var(--red); }

/* campos */
.rc-wizard .field label{ color:#3A3A3A; }
.rc-wizard .field select, .rc-wizard .field input, .rc-wizard .field textarea{
  border:1.5px solid var(--line);
  border-radius:10px;
  padding:13px 14px;
}
.rc-wizard .field select:focus, .rc-wizard .field input:focus, .rc-wizard .field textarea:focus{
  border-color:var(--red);
  outline:none;
}
.fitment-info .ic{ background:var(--blue-soft); color:var(--red); }

/* -------- cartões de kit (horizontais, estilo referência) -------- */
.rc-kit-head, .rc-texture-head{
  display:flex; flex-direction:column; gap:2px;
  margin:6px 0 12px;
}
.rc-kit-head span, .rc-texture-head span{
  font-size:11.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--muted);
}
.rc-kit-head small, .rc-texture-head small{ font-size:14px; color:var(--ink); }
.rc-texture-head{ margin-top:22px; }

.product-grid{ grid-template-columns:1fr; max-width:none; gap:12px; }
.p-card.selectable{
  display:flex; align-items:center; gap:14px;
  padding:14px;
  border:2px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:none;
}
.p-card.selectable:hover{ transform:none; border-color:#D9B4B4; }
.p-card.selectable.selected{
  border-color:var(--red);
  box-shadow:0 0 0 3px var(--blue-soft);
}
.p-card .ph{
  width:86px; height:86px; flex-shrink:0;
  aspect-ratio:auto;
  border-radius:10px;
  margin-bottom:0;
  padding:6px;
}
.p-card .rc-kit-info{ flex:1; min-width:0; }
.p-card h3{ font-size:14.5px; }
.p-card .p-sub{ font-size:12px; margin-bottom:6px; }
.p-card .p-check{ display:none; }
.p-card .rc-kit-price{
  display:flex; flex-direction:column; align-items:flex-end; gap:2px;
  text-align:right; flex-shrink:0; max-width:120px;
}
.p-card .rc-kit-price s{ font-size:12px; color:#A6AEBB; }
.p-card .rc-kit-price strong{ font-size:17px; font-weight:800; color:var(--red); white-space:nowrap; }
.p-card .rc-kit-price .price-save{ display:block; font-size:10.5px; white-space:normal; }
.p-card .p-badges{ display:none; }
.rc-ribbon{
  position:absolute; top:-11px; right:14px;
  background:var(--red); color:#fff;
  font-size:10px; font-weight:800; letter-spacing:.04em; text-transform:uppercase;
  padding:4px 10px; border-radius:999px;
  box-shadow:0 4px 10px -4px rgba(220,38,38,.5);
}
.p-card .select-check{ top:10px; right:10px; width:22px; height:22px; }
.p-card.selectable.selected .select-check{ background:var(--red); border-color:var(--red); }
@media (max-width:480px){
  .p-card.selectable{ flex-wrap:wrap; gap:10px; }
  .p-card .ph{ width:70px; height:70px; }
  .p-card .rc-kit-info{ flex:1 1 calc(100% - 84px); }
  .p-card .rc-kit-price{
    flex:1 1 100%; max-width:none;
    flex-direction:row; align-items:baseline; justify-content:flex-end; gap:8px;
  }
  .p-card .rc-kit-price strong{ font-size:15px; }
}

/* -------- texturas -------- */
.texture-grid{ gap:10px; }
.tex-card{ border-radius:12px; }
.tex-card.selected{ border-color:var(--red); background:var(--blue-soft); }
.tex-card.selected .tex-check{ background:var(--red); }
.rc-color{
  display:flex; align-items:center; gap:10px;
  margin-top:16px;
  font-size:13px; color:var(--muted);
}
.rc-color b{ color:var(--ink); }
.rc-color::before{
  content:''; width:18px; height:18px; border-radius:50%;
  background:#1A1A1A; border:2px solid #fff;
  box-shadow:0 0 0 1.5px var(--line-strong);
}

/* -------- botão de compra -------- */
.btn-buy{
  background:var(--red);
  border-radius:10px;
  font-size:14px;
  padding:15px;
}
.btn-buy:hover{ background:var(--blue-dark); }
.rc-buy{ margin-top:22px; }
.rc-total-line{
  text-align:center; font-size:14px; color:var(--muted);
  margin-top:12px;
}
.rc-total-line b{ color:var(--ink); font-size:16px; }
.rc-frete{
  text-align:center; font-size:13px; color:var(--muted);
  margin-top:8px;
}
.rc-frete b{ color:var(--green); }

.rc-trust{ margin-top:18px; }

/* -------- seções antigas com a nova identidade -------- */
.topbar{ background:#111111; }
.badge.dark{ background:#141414; }
.features{ background:var(--bg-soft); }
.feat-title .ic{ color:var(--red); }
.urgency{ background:#141414; }
.urgency .btn-buy{ background:var(--red); }
.faq-q:hover{ color:var(--red); }
.g-card .g-pill{ background:var(--blue-soft); color:var(--red); }
.cep-row button{ background:#141414; }
.cep-box .cep-link{ color:var(--red); }
.wizard-back{ color:var(--red); }
