/* ==========================================================================
   1. DESIGN TOKENS — PRETO CARBONO & AMARELO OURO INDUSTRIAL
   ========================================================================== */
:root {
  --bg-void: #070709;
  --bg-carbon: #0d0d10;
  --bg-surface: #141418;
  --bg-elevated: #1b1b20;
  --bg-card-stage: #121216;

  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-amber: rgba(245, 197, 24, 0.42);

  --amber-core: #f5c518;
  --amber-bright: #ffd60a;
  --amber-muted: rgba(245, 197, 24, 0.12);
  --amber-glow: rgba(245, 197, 24, 0.22);

  --shopee-orange: #ee4d2d;
  --ml-yellow: #ffe600;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #6e6e77;

  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Compatibilidade com Admin */
  --bg: #f1f5f9;
  --surface: #ffffff;
  --navy: #0f172a;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --success: #16a34a;
  --danger: #dc2626;
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ==========================================================================
   2. RESET & BASE ESTRUTURAL
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 78% 12%, rgba(245, 197, 24, 0.08), transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   3. CABEÇALHO GLASS & LOGO DE ESTÚDIO INDUSTRIAL
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 9, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: var(--amber-core);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.brand:hover .brand-mark {
  transform: translateY(-2px);
  border-color: var(--amber-core);
  box-shadow: 0 8px 20px -6px var(--amber-glow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.brand-name span {
  color: var(--amber-core);
}

.brand-spec {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber-core);
  background: var(--amber-muted);
  border: 1px solid rgba(245, 197, 24, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

.brand-tagline {
  font-size: 0.76rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* Campo de Busca */
.search-shell {
  position: relative;
  flex: 1;
  max-width: 500px;
}

.search-shell svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 0 76px 0 42px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  background: var(--bg-elevated);
  border-color: var(--amber-core);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.14);
}

.search-shell:focus-within svg {
  color: var(--amber-core);
}

.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: var(--bg-void);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 2px 7px;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  display: none;
  padding: 4px 6px;
}

.search-clear.visible {
  display: block;
}

.search-clear:hover {
  color: var(--amber-core);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-vip {
  background: var(--amber-core);
  color: #09090b;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.topbar-vip:hover {
  background: var(--amber-bright);
}

.topbar-admin {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.topbar-admin:hover {
  color: var(--amber-core);
  border-color: var(--amber-core);
}

/* ==========================================================================
   4. HERO ASSIMÉTRICO + SPOTLIGHT COM BORDA METÁLICA ANIMADA
   ========================================================================== */
.hero {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--border-hairline);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-core);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-core);
  box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.6);
  animation: radarPulse 2.4s infinite;
}

@keyframes radarPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(245, 197, 24, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 197, 24, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero-title em {
  font-style: normal;
  color: var(--amber-core);
}

.hero-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 22px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.22s var(--ease-out-expo);
}

.trust-pill svg {
  width: 15px;
  height: 15px;
  color: var(--amber-core);
  flex-shrink: 0;
}

.trust-pill:hover {
  background: var(--bg-elevated);
  border-color: var(--amber-core);
  transform: translateY(-2px);
}

.spotlight-frame {
  position: relative;
  border-radius: 14px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.08) 65%,
    var(--amber-core) 85%,
    #ffffff 92%,
    rgba(255, 255, 255, 0.08) 100%
  );
  animation: rotateBorder 6s linear infinite;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.85);
}

@keyframes rotateBorder {
  to { --border-angle: 360deg; }
}

.spotlight-card {
  background: linear-gradient(155deg, #16161b 0%, #0d0d10 100%);
  border-radius: 12.5px;
  padding: 18px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
}

.spotlight-thumb {
  width: 112px;
  height: 112px;
  border-radius: 9px;
  background: #ffffff;
  padding: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spotlight-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #09090b;
  background: var(--amber-core);
  padding: 2px 8px;
  border-radius: 4px;
}

.spotlight-name {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.spotlight-price {
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--amber-core);
}

.spotlight-old {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.spotlight-btn {
  margin-top: 2px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spotlight-btn:hover {
  border-color: var(--amber-core);
  color: var(--amber-core);
  background: var(--amber-muted);
}

/* ==========================================================================
   5. BARRA DE CONTROLE, ABAS DE LOJAS E FILTROS
   ========================================================================== */
.catalog-section {
  padding: 30px 0 72px;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.store-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg-surface);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
}

.store-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}

.store-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.store-tab.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-amber);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.store-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.store-dot.ml {
  background: var(--ml-yellow);
}

.store-dot.shopee {
  background: var(--shopee-orange);
}

.filter-selects {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-selects select {
  height: 40px;
  padding: 0 14px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.filter-selects select:focus {
  border-color: var(--amber-core);
}

.results-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ==========================================================================
   6. GRID DE PRODUTOS DARK TECH
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-expo), border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-amber);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(245, 197, 24, 0.16);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s var(--ease-out-expo);
}

.product-card:hover .card-media img {
  transform: scale(1.04);
}

.card-code {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 7, 9, 0.9);
  color: var(--amber-core);
  border: 1px solid rgba(245, 197, 24, 0.35);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}

.card-discount-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #16a34a;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
}

.card-photos-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(7, 7, 9, 0.82);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.store-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-block;
}

.store-badge.mercadolivre {
  background: var(--ml-yellow);
  color: #09090b;
}

.store-badge.shopee {
  background: var(--shopee-orange);
  color: #ffffff;
}

.extra-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--amber-muted);
  color: var(--amber-core);
  border: 1px solid rgba(245, 197, 24, 0.25);
}

.card-title {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.card-pricing {
  margin-top: auto;
  padding-top: 4px;
}

.price-old {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-now {
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--amber-core);
  letter-spacing: -0.02em;
}

.discount-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}

.btn-card-offer {
  text-align: center;
  background: var(--amber-core);
  color: #09090b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 10px 12px;
  border-radius: 7px;
  transition: background 0.18s ease, transform 0.15s ease;
}

.btn-card-offer:hover {
  background: var(--amber-bright);
}

.btn-card-details {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 10px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.btn-card-details:hover {
  border-color: var(--amber-core);
  color: var(--amber-core);
}

.empty-state {
  text-align: center;
  padding: 56px 20px;
  background: var(--bg-surface);
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
}

.empty-state p {
  margin-bottom: 16px;
}

.btn-amber-outline {
  background: transparent;
  color: var(--amber-core);
  border: 1px solid var(--amber-core);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
}

.btn-amber-outline:hover {
  background: var(--amber-muted);
}

/* ==========================================================================
   7. MODAL DE DETALHES DARK TECH
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.84);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 1000;
}

.modal-card {
  background: var(--bg-carbon);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.modal-close:hover {
  border-color: var(--amber-core);
  color: var(--amber-core);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 7, 9, 0.8);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.gallery-nav:hover {
  border-color: var(--amber-core);
  color: var(--amber-core);
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  border: 2px solid var(--border-strong);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: #fff;
  padding: 0;
}

.gallery-thumb.active {
  border-color: var(--amber-core);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.code-chip {
  background: var(--amber-muted);
  color: var(--amber-core);
  border: 1px solid var(--border-amber);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.modal-pricing {
  margin-bottom: 18px;
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 9px;
}

.modal-pricing .price-now {
  font-size: 1.8rem;
}

.modal-cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.btn-buy {
  flex: 1;
  min-width: 190px;
  text-align: center;
  background: var(--amber-core);
  color: #09090b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 13px 18px;
  border-radius: 8px;
  transition: background 0.18s ease;
}

.btn-buy:hover {
  background: var(--amber-bright);
}

.btn-share {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 13px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-share:hover {
  border-color: var(--amber-core);
  color: var(--amber-core);
}

.modal-description-wrap h3 {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.modal-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: pre-line;
  background: var(--bg-surface);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  max-height: 260px;
  overflow-y: auto;
}

/* ==========================================================================
   8. RODAPÉ
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-carbon);
  padding: 28px 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--text-primary);
}

.footer-brand span {
  color: var(--amber-core);
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. PAINEL ADMIN (MANTIDO CLARO & LEGÍVEL PARA PRODUTIVIDADE)
   ========================================================================== */
.admin-body {
  background: var(--bg);
  color: var(--text);
  color-scheme: light;
}

.admin-body::before {
  display: none;
}

.admin-body .site-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
}

.admin-body .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-body .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #162033;
  display: grid;
  place-items: center;
}

.admin-body .brand h1 {
  font-size: 1.2rem;
}

.admin-body .tagline {
  font-size: 0.8rem;
  color: #94a3b8;
}

.admin-body .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-body .btn-vip {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 8px 14px;
  border-radius: 8px;
}

.admin-body .btn-admin-link {
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 8px 12px;
  border-radius: 8px;
}

.admin-body .main-content {
  padding-top: 22px;
  padding-bottom: 48px;
}

.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.admin-login-card {
  background: var(--surface);
  padding: 28px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
}

.panel-card h2 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

.affiliate-highlight input {
  border: 2px solid var(--success);
  background: #f0fdf4;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-success {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.status-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-top: 10px;
}

.status-msg.ok { background: #dcfce7; color: #166534; }
.status-msg.error { background: #fee2e2; color: #991b1b; }
.status-msg.info { background: #e0f2fe; color: #075985; }

.photo-manager-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-item {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.bookmarklet-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.bookmarklet-drag {
  display: inline-block;
  background: var(--shopee-orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 8px 8px 8px 0;
  cursor: grab;
}

.admin-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.admin-product-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.admin-product-left img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.admin-product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   10. RESPONSIVO
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .topbar-inner {
    flex-wrap: wrap;
  }

  .search-shell {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-title {
    font-size: 0.84rem;
  }

  .price-now {
    font-size: 1.08rem;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }
}
