/* =============================================================================
   JUQUIA SMART — COMPONENTES
   ============================================================================= */

/* ---- Header / navegação -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(13, 15, 20, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.brand-name { font-size: 1.02rem; color: var(--text); }
.brand-name .thin { color: var(--text-secondary); font-weight: 500; }

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0;
}
.primary-nav a {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: color var(--t);
}
.primary-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(184, 242, 61, 0.10), transparent 60%),
    radial-gradient(700px 400px at 0% 0%, rgba(23, 38, 26, 0.5), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-7);
  align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-4);
  padding: 6px 14px;
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-pill);
  background: rgba(184, 242, 61, 0.08);
  color: var(--lime);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.hero-title { font-size: var(--fs-hero); color: var(--text); }
.hero-title .accent { color: var(--lime); }
.hero-sub {
  margin-top: var(--space-4);
  max-width: 46ch;
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.hero-sub2 {
  margin-top: var(--space-3);
  max-width: 48ch;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.hero-cta { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-meta {
  margin-top: var(--space-6);
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* Composição visual do hero */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-visual .phone-card {
  position: relative;
  width: min(280px, 80%);
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1a1e27, #0f1218);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: var(--space-5);
}
.hero-visual .phone-card svg { width: 70%; height: auto; }
.hero-visual .phone-card .hero-photo {
  width: auto;
  max-width: 82%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
}
.hero-visual .float-badge {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
}
.hero-visual .float-badge strong { color: var(--text); font-family: var(--font-display); }
.hero-visual .badge-a { top: 8%; right: 0; }
.hero-visual .badge-b { bottom: 10%; left: 0; }
.hero-visual .float-badge .pct { color: var(--lime); font-weight: 700; font-family: var(--font-display); }

/* ---- Filtros ------------------------------------------------------------- */
.filters { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.filter-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-right: var(--space-2);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  padding: 8px 14px;
  min-height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active {
  background: var(--lime);
  color: var(--on-lime);
  border-color: var(--lime);
  font-weight: 600;
}

.offers-topline {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-4);
}
#offer-count { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---- Grid de produtos ---------------------------------------------------- */
.offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.grid-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-8) 0;
}

/* ---- Card de produto ----------------------------------------------------- */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.product-card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-3px);
}
.product-card.is-soldout { opacity: 0.82; }

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    #0f1218;
  border-bottom: 1px solid var(--border);
  aspect-ratio: 16 / 11;
  cursor: zoom-in;
  transition: background var(--t);
}
.product-media:hover { background: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%), #10141b; }

/* Dica de zoom no canto da imagem */
.zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(13, 15, 20, 0.7);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--t), transform var(--t), color var(--t);
  pointer-events: none;
}
.zoom-hint svg { width: 16px; height: 16px; }
.product-media:hover .zoom-hint,
.product-media:focus-visible .zoom-hint { opacity: 1; transform: translateY(0); }
.product-media:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.product-phone, .product-photo {
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  line-height: 1.4;
}
.badge-discount { background: var(--lime); color: var(--on-lime); }

.product-body { display: flex; flex-direction: column; gap: 6px; padding: var(--space-5); flex: 1; }
.product-brand {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  font-weight: 600;
}
.product-model { font-size: var(--fs-h3); color: var(--text); }
.product-spec { font-size: var(--fs-sm); color: var(--text-secondary); }
.product-condition { font-size: var(--fs-xs); color: var(--text-muted); }

.price-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-3);
}
.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: var(--fs-sm);
}
.price-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 var(--space-3);
}
.price-now {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.price-avista { font-size: var(--fs-xs); color: var(--text-muted); }

/* Status de estoque no corpo do card (junto da decisão de compra) */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--space-4);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.stock-status .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.stock-status.ok { color: var(--lime); }
.stock-status.ok .dot { background: var(--lime); box-shadow: 0 0 0 3px rgba(184, 242, 61, 0.15); }
.stock-status.low { color: var(--warn); }
.stock-status.low .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(255, 207, 93, 0.15); }

.product-payment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.product-payment svg { width: 14px; height: 14px; color: var(--lime); flex: none; }

.product-body .btn { margin-top: auto; }

/* ---- Estados vazios ------------------------------------------------------ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 480px;
  margin-inline: auto;
  padding: var(--space-8) var(--space-4);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.empty-icon {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--lime);
  margin-bottom: var(--space-2);
}
.empty-state h3 { font-size: 1.25rem; color: var(--text); }
.empty-state p { color: var(--text-secondary); }
.empty-state .btn { margin-top: var(--space-3); }

/* ---- Como funciona ------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--lime);
  margin-bottom: var(--space-3);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--text); }
.step p { font-size: var(--fs-sm); color: var(--text-secondary); }

/* ---- Bloco de confiança -------------------------------------------------- */
.trust {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.trust-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.trust-check {
  flex: none;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(184, 242, 61, 0.12);
  color: var(--lime);
}
.trust-check svg { width: 16px; height: 16px; }
.trust-item h3 { font-size: 1rem; margin-bottom: 2px; color: var(--text); }
.trust-item p { font-size: var(--fs-sm); color: var(--text-secondary); }

/* ---- Formas de pagamento ------------------------------------------------- */
.pay-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}
.pay-head .section-title { margin-top: var(--space-2); }
.pay-methods {
  list-style: none;
  padding: 0;
  margin: var(--space-5) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.pay-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--fs-sm);
  color: var(--text);
}
.pay-method svg { width: 16px; height: 16px; color: var(--lime); flex: none; }
.pay-note {
  margin: var(--space-5) auto 0;
  max-width: 60ch;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---- CTA final ----------------------------------------------------------- */
.cta-final { position: relative; overflow: hidden; }
.cta-panel {
  background: linear-gradient(150deg, var(--dark-green), #0f1512);
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 64px);
  text-align: center;
}
.cta-panel h2 { font-size: var(--fs-h2); color: var(--text); max-width: 20ch; margin-inline: auto; }
.cta-panel p { margin-top: var(--space-3); color: var(--text-secondary); }
.cta-panel .btn { margin-top: var(--space-6); }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--lime);
  transition: transform var(--t);
}
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

/* ---- Rodapé -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: var(--space-7) var(--space-6);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.footer-brand .brand { margin-bottom: var(--space-3); }
.footer-brand p { color: var(--text-secondary); font-size: var(--fs-sm); max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between; align-items: center;
}
.footer-note { color: var(--text-muted); font-size: var(--fs-xs); max-width: 60ch; }
.footer-legal { color: var(--text-muted); font-size: var(--fs-xs); }

/* ---- Lightbox (imagem ampliada) ----------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 9, 0.82);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(560px, 92vw);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  animation: lightbox-in 160ms ease;
}
@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: var(--space-5);
  background: #0f1218;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lightbox-img { max-height: 62vh; width: auto; max-width: 100%; object-fit: contain; }
svg.lightbox-img { width: min(320px, 72%); height: auto; }
.lightbox-caption {
  margin-top: var(--space-4);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(13, 15, 20, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background var(--t), border-color var(--t);
}
.lightbox-close:hover { background: var(--elevated); border-color: var(--border-strong); }
.lightbox-close svg { width: 20px; height: 20px; }

/* ---- Botão flutuante do WhatsApp ---------------------------------------- */
.wa-fab {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--on-lime);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow), var(--shadow-lime);
  transition: transform var(--t-fast), background var(--t);
}
.wa-fab:hover { background: var(--lime-strong); }
.wa-fab:active { transform: translateY(1px); }
.wa-fab svg { width: 24px; height: 24px; flex: none; }
