/* =========================================================================
   SURFISTA GRIFES — estilo base (tema preto + dourado)
   Complementa o Tailwind CDN com componentes reutilizáveis.
   ========================================================================= */

/* ----------------------------- Tokens ---------------------------------- */
:root {
  --ink: #0a0a0a;
  --ink-soft: #121212;
  --ink-line: #242424;
  --gold: #cc951e;
  --gold-soft: #ffeca4;
  --gold-deep: #8a6b22;
  --sand: #f5f1e8;
  --header-h: 68px;
}

/* ----------------------------- Base ------------------------------------ */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  overflow-x: hidden;
}

/* Acessibilidade: foco visível em todos os elementos interativos */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--gold);
  color: #0a0a0a;
}

/* Barra de rolagem discreta */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: #2b2b2b;
  border-radius: 999px;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* --------------------------- Tipografia -------------------------------- */
.gold-text {
  background: linear-gradient(100deg, var(--gold-soft) 0%, var(--gold) 45%, #a8781a 70%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ----------------------------- Header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
}

/* O logo possui fundo preto: "lighten" dissolve o fundo no tema escuro,
   deixando apenas a arte dourada visível. */
.logo-blend {
  mix-blend-mode: lighten;
  object-fit: contain;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--sand); }
.nav-link:hover::after { width: 100%; }

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: #141414;
  color: var(--gold);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cart-pill:hover { border-color: var(--gold-deep); background: #191919; }

/* -------------------------- Banner promo ------------------------------- */
.promo-bar {
  position: relative;
  background:
    linear-gradient(90deg, rgba(204, 149, 30, 0.16), rgba(255, 236, 164, 0.04) 50%, rgba(204, 149, 30, 0.16)),
    #0d0d0d;
  border-bottom: 1px solid rgba(204, 149, 30, 0.26);
}

/* ------------------------------ Botões --------------------------------- */
.btn-gold,
.btn-ghost,
.btn-whats {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease, opacity 0.2s ease;
  text-align: center;
  line-height: 1.15;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 48%, #b07f14 100%);
  color: #1a1204;
  box-shadow: 0 8px 24px -12px rgba(204, 149, 30, 0.85);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(204, 149, 30, 0.9);
  filter: brightness(1.05);
}
.btn-gold:active { transform: translateY(0); }

.btn-gold--lg { padding: 15px 28px; font-size: 14px; }
.btn-gold--full { width: 100%; margin-top: 16px; }

/* Estado "já no carrinho" do botão dos cards */
.btn-gold.is-added {
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid rgba(204, 149, 30, 0.55);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--sand);
  border: 1px solid #333;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  background: rgba(204, 149, 30, 0.06);
}
.btn-ghost--lg { padding: 15px 26px; font-size: 14px; }

.btn-whats {
  width: 100%;
  background: #1faa54;
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(31, 170, 84, 0.9);
  font-size: 14px;
  padding: 14px 20px;
}
.btn-whats:hover { background: #23bd5e; transform: translateY(-1px); }
.btn-whats:disabled,
.btn-whats[aria-disabled="true"] {
  background: #1a1a1a;
  color: #6a6a6a;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  border: 1px solid var(--ink-line);
}
.btn-whats--compact { width: auto; padding: 12px 20px; font-size: 13px; }

.link-muted {
  font-size: 12px;
  color: #8a8a8a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.link-muted:hover { color: var(--gold); }

/* ------------------------------- Hero ---------------------------------- */
.hero-glow {
  position: absolute;
  inset: -30% 40% 20% -20%;
  background: radial-gradient(closest-side, rgba(204, 149, 30, 0.18), transparent 70%);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   LOGO — recorte sem "quadrado"
   O arquivo original é quadrado com fundo preto. Aqui recortamos a área da
   arte (que ocupa ~16%–68% da altura) para não exibir o quadrado vazio.
   ------------------------------------------------------------------------- */
.logo-crop {
  display: block;
  position: relative;
  overflow: hidden;
}

.logo-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Centraliza a faixa da arte (~16%–68% da altura do arquivo original) */
  object-position: center 32%;
}

/* Logo do cabeçalho (apenas a arte, sem o nome escrito ao lado) */
.logo-crop--header {
  width: 96px;
  aspect-ratio: 1.9 / 1;
}

/* Logo grande do hero */
.logo-crop--hero {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Logo do rodapé */
.logo-crop--footer {
  width: 150px;
  aspect-ratio: 1.9 / 1;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.logo-link:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---------------------- Palco animado da logo grande ------------------- */
.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 540px;
}

/* Brilho suave atrás da logo (sem borda nem quadrado) */
.logo-stage__glow {
  position: absolute;
  inset: 6% 10%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(204, 149, 30, 0.26) 0%,
    rgba(255, 236, 164, 0.08) 45%,
    transparent 72%
  );
  filter: blur(22px);
  z-index: 0;
  animation: glowPulse 7s ease-in-out infinite;
}

.logo-hero-float {
  position: relative;
  z-index: 1;
  animation: logoFloat 7s ease-in-out infinite;
  will-change: transform;
}

/* O drop-shadow NÃO pode ficar no wrapper: filter cria um stacking context
   e isolaria o mix-blend-mode, fazendo o quadrado preto da logo aparecer. */

/* Etiquetas flutuantes do hero.
   As três ("−33%", "3ª peça", "Preço cai") usam o MESMO estilo: pílula escura
   com borda dourada, fonte Bebas Neue e a animação badgeFloat.
   Fundo escuro é obrigatório aqui: a arte da logo é dourada, então uma
   pílula dourada desapareceria sobre ela. */
.float-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 236, 164, 0.16) 0%,
    rgba(204, 149, 30, 0.2) 100%
  ), #0c0b07;
  color: var(--gold-soft);
  border: 1.5px solid rgba(255, 236, 164, 0.65);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    0 14px 30px -14px rgba(0, 0, 0, 0.95),
    0 0 22px -6px rgba(255, 236, 164, 0.35);
  animation: badgeFloat 5.5s ease-in-out infinite;
  will-change: transform;
}

.float-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}

/* "−33%": ocupa o canto superior esquerdo (onde ficava o selo circular) */
.float-badge--pct { top: 2%; left: -1%; animation-delay: 0s; }
.float-badge--tag { top: 34%; right: -2%; animation-delay: 1.3s; }
.float-badge--down { bottom: 4%; left: 4%; animation-delay: 2.6s; }

/* --------------------------- Animações --------------------------------- */
@keyframes logoFloat {
  0%,
  100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-0.6deg); }
}

@keyframes badgeFloat {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes glowPulse {
  0%,
  100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (max-width: 767px) {
  .logo-stage { max-width: 100%; }
  .logo-crop--header { width: 82px; }
  .float-badge {
    font-size: 13px;
    padding: 7px 12px;
    gap: 6px;
  }
  .float-badge svg { width: 13px; height: 13px; }
  .float-badge--pct { top: 0; left: 0; }
  .float-badge--tag { top: 36%; right: 0; }
  .float-badge--down { bottom: 0; left: 8%; }
}

/* --------------------------- Cards produto ----------------------------- */
.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #141414 0%, #0e0e0e 100%);
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(204, 149, 30, 0.45);
  box-shadow: 0 24px 50px -30px rgba(204, 149, 30, 0.55);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f2f2f2;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.5s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }

.badge-gold {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid rgba(204, 149, 30, 0.6);
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.product-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--sand);
}

.product-sub {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.5);
}

.price-list {
  margin-top: 16px;
  border-top: 1px solid var(--ink-line);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: rgba(245, 241, 232, 0.62);
}
.price-list li span {
  position: relative;
}
/* linha pontilhada entre label e preço */
.price-list li span::after {
  content: "";
  display: block;
}
.price-list li strong {
  font-weight: 600;
  font-size: 14px;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-list li.is-best {
  background: rgba(204, 149, 30, 0.08);
  border: 1px solid rgba(204, 149, 30, 0.24);
  border-radius: 10px;
  padding: 7px 10px;
  color: rgba(245, 241, 232, 0.85);
}
.price-list li.is-best strong { color: var(--gold-soft); font-size: 16px; }

/* Explicação da regra: o preço da faixa vale para todas as peças */
.price-caption {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(245, 241, 232, 0.42);
}
.price-example {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(245, 241, 232, 0.55);
}
.price-example strong {
  color: var(--gold-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* --------------------------- Simulador --------------------------------- */
.calc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #101010;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.calc-row.is-active {
  border-color: rgba(204, 149, 30, 0.5);
  background: #141109;
}

.calc-thumb {
  width: 60px;
  height: 72px;
  border-radius: 9px;
  object-fit: cover;
  object-position: center 22%;
  background: #1b1b1b;
  flex-shrink: 0;
}

.calc-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sand);
  line-height: 1.3;
}
.calc-hint {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(245, 241, 232, 0.42);
}

/* Stepper (+ / −) */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #0b0b0b;
  border: 1px solid #2e2e2e;
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  color: var(--sand);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  cursor: pointer;
}
.stepper button:hover { background: rgba(204, 149, 30, 0.16); color: var(--gold-soft); }
.stepper button:active { transform: scale(0.94); }
.stepper button:disabled { opacity: 0.28; cursor: not-allowed; }
.stepper output {
  min-width: 26px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.calc-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 88px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.calc-total span { font-size: 14px; font-weight: 600; color: var(--sand); }
.calc-total small { font-size: 10px; color: #58b455; font-weight: 600; }

/* Resumo lateral */
.summary-card {
  background: linear-gradient(180deg, #161513 0%, #0d0d0d 100%);
  border: 1px solid rgba(204, 149, 30, 0.28);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: rgba(245, 241, 232, 0.62);
}
.summary-line dt { font-size: 13px; }
.summary-line dd {
  font-weight: 600;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
}

.summary-total {
  margin-top: 16px;
  border-top: 1px solid rgba(204, 149, 30, 0.24);
  padding-top: 16px;
}

/* ------------------------- Como funciona ------------------------------- */
.step-card {
  position: relative;
  padding: 26px 22px 24px;
  background: #101010;
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.step-card:hover { border-color: rgba(204, 149, 30, 0.4); }
.step-number {
  display: block;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 34px;
  line-height: 1;
  color: rgba(204, 149, 30, 0.35);
  letter-spacing: 0.06em;
}
.step-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sand);
}
.step-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.5);
}

.perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #0e0e0e;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
}
.perk-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}
.perk-title { font-size: 13px; font-weight: 700; color: var(--sand); }
.perk-text {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.45);
}

/* ------------------------------ Footer --------------------------------- */
.footer-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------- Barra fixa mobile ------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(204, 149, 30, 0.3);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.mobile-bar.is-visible { transform: translateY(0); }

/* ------------------------------- Toast --------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 70;
  transform: translate(-50%, 16px);
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: #17150f;
  border: 1px solid rgba(204, 149, 30, 0.55);
  color: var(--gold-soft);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------- Responsivo -------------------------------- */
/* Telas muito pequenas: empilha nome do produto e total no simulador */
@media (max-width: 430px) {
  .calc-row {
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .calc-thumb { width: 52px; height: 62px; }
  .calc-row .min-w-0 { flex: 1 1 55%; }
  .calc-total {
    order: 3;
    flex: 1;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }
  .calc-total small { font-size: 10px; }
  .stepper { order: 2; }
}

@media (max-width: 767px) {
  .mobile-bar { display: flex; }
  /* espaço para a barra fixa não cobrir o rodapé */
  body { padding-bottom: 74px; }
  .toast { bottom: 100px; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
