/* ═══════════════════════════════════════════
   DAM SHOES — style.css
   Premium Urban Sneaker Catalog
═══════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────── */
:root {
  /* TEMA CLARO — fundo branco com banner escuro */
  --black:    #ffffff;   /* fundo geral */
  --dark:     #f5f5f3;   /* superfícies suaves / seções */
  --card:     #ffffff;   /* fundo dos cards */
  --border:   #e6e6e3;   /* bordas suaves */
  --border2:  #d4d4d0;   /* bordas marcadas */
  --grey:     #6b6b68;   /* texto secundário */
  --mid:      #4a4a47;   /* texto médio */
  --light:    #1a1a1a;   /* texto principal (escuro sobre branco) */
  --white:    #ffffff;
  --hero-dark:#111111;   /* faixa escura do banner */

  --orange:   #ff6a00;
  --orange-h: #ff8126;
  --orange-d: #cc5400;
  --success:  #16a34a;
  --danger:   #dc2626;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --radius:   8px;
  --radius-lg:14px;
  --shadow:      0 4px 24px rgba(0,0,0,0.10);
  --shadow-card: 0 2px 14px rgba(0,0,0,0.07);
}

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--light);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* ── SCROLLBAR ───────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
#header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  color: var(--light);
  flex-shrink: 0;
  line-height: 1;
}
.logo .dot { color: var(--orange); }

.header-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  flex: 1;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.btn-whatsapp-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-whatsapp-header:hover { background: var(--orange-h); }
.btn-whatsapp-header svg { width: 13px; height: 13px; }

.btn-admin-header {
  background: none;
  border: 1px solid var(--border2);
  color: var(--grey);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.48rem 0.9rem;
  border-radius: 100px;
  transition: all 0.2s;
}
.btn-admin-header:hover { border-color: var(--orange); color: var(--orange); }

/* ══════════════════════════════════════════
   HERO / BANNER
══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: clamp(360px, 50vw, 540px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero-dark);
  margin: 1rem clamp(1rem, 4vw, 2.5rem) 0;
  border-radius: var(--radius-lg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(17,17,17,0.96) 0%, rgba(17,17,17,0.7) 45%, rgba(17,17,17,0.1) 100%);
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,92,0,0.03) 40px,
      rgba(255,92,0,0.03) 41px
    );
  z-index: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  animation: fadeUp 0.5s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.9;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  animation: fadeUp 0.5s 0.1s ease both;
}
.hero-title .highlight { color: var(--orange); }

.hero-promo {
  display: inline-block;
  background: rgba(255,92,0,0.12);
  border: 1px solid rgba(255,92,0,0.4);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s 0.2s ease both;
}
.hero-promo strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--orange);
  letter-spacing: 0.05em;
  display: block;
}
.hero-promo span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.5s 0.3s ease both;
}

.benefit-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
}
.benefit-chip svg { width: 11px; height: 11px; color: var(--orange); flex-shrink: 0; }

/* ══════════════════════════════════════════
   FILTERS
══════════════════════════════════════════ */
#filters {
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--dark);
  position: sticky;
  top: 64px;
  z-index: 100;
}

.filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-right: 0.25rem;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border2);
  color: var(--grey);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  transition: all 0.18s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--mid); color: var(--light); }
.filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ══════════════════════════════════════════
   CATALOG SECTION
══════════════════════════════════════════ */
#catalog {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.05em;
  color: var(--light);
}
.section-title span { color: var(--orange); }

#products-count {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.08em;
}

/* ── GRID ────────────────────────────────── */
#products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* ── STATES ──────────────────────────────── */
.state-box {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  gap: 1rem;
  text-align: center;
}

.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border2);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.state-box p {
  font-size: 0.8rem;
  color: var(--grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.state-box h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--border2);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════
   PRODUCT CARD
══════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  animation: fadeUp 0.4s ease both;
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,92,0,0.5);
  box-shadow: 0 12px 32px rgba(255,92,0,0.12);
}

.card.esgotado { opacity: 0.7; }
.card.esgotado .card-img-wrap { filter: grayscale(0.7); }

.card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}
.card-badge.available   { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.card-badge.esgotado    { background: rgba(239,68,68,0.15);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.3); }

.card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--dark);
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.05); }

.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: var(--border2);
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.card-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.card-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  padding: 0;
  transition: background 0.2s;
  cursor: pointer;
}
.card-dot.active { background: var(--orange); }

.card-body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.card-brand {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  color: var(--light);
  line-height: 1.1;
}

.card-ref {
  font-size: 0.65rem;
  color: var(--grey);
  letter-spacing: 0.08em;
}

.card-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}
.size-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border2);
  color: var(--mid);
}

.card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-prices { display: flex; flex-direction: column; gap: 0.05rem; }
.price-old {
  font-size: 0.68rem;
  color: var(--grey);
  text-decoration: line-through;
}
.price-new {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--orange);
  letter-spacing: 0.02em;
  line-height: 1;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-buy:hover { background: var(--orange-h); }
.btn-buy:disabled {
  background: var(--border2);
  color: var(--grey);
  cursor: not-allowed;
}
.btn-buy svg { width: 12px; height: 12px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--dark);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--light);
}
.footer-logo .dot { color: var(--orange); }

.footer-copy {
  font-size: 0.7rem;
  color: var(--grey);
  letter-spacing: 0.05em;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-wa:hover { color: var(--orange-h); }
.footer-wa svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════
   OVERLAYS / MODALS
══════════════════════════════════════════ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 900;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1rem;
  align-items: center;
  justify-content: center;
}
.overlay.open { display: flex; }

.modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  position: relative;
  animation: modalIn 0.25s ease;
  box-shadow: var(--shadow);
}
.modal-wide { max-width: 680px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: 1px solid var(--border2);
  color: var(--grey);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.modal-close:hover { border-color: var(--light); color: var(--white); }

.modal-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  color: var(--light);
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}
.modal-title span { color: var(--orange); }

/* ── FORM ELEMENTS ───────────────────────── */
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row + .form-row { margin-top: 0.85rem; }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

input, select, textarea {
  background: var(--dark);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--light);
  font-size: 0.85rem;
  padding: 0.65rem 0.85rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); background: var(--white); }
input::placeholder, textarea::placeholder { color: var(--grey); }
textarea { resize: vertical; min-height: 70px; }
select option { background: var(--white); color: var(--light); }

.form-hint {
  font-size: 0.62rem;
  color: var(--grey);
  margin-top: 0.2rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

/* ── BUTTONS ─────────────────────────────── */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  width: 100%;
  transition: background 0.2s;
  margin-top: 1rem;
}
.btn-primary:hover { background: var(--orange-h); }
.btn-primary:disabled { background: var(--border2); color: var(--grey); cursor: not-allowed; }

.btn-secondary {
  background: none;
  color: var(--mid);
  border: 1px solid var(--border2);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--mid); color: var(--white); }

.btn-danger {
  background: none;
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-danger:hover { background: rgba(239,68,68,0.1); border-color: var(--danger); }

/* ── MESSAGES ────────────────────────────── */
.msg {
  font-size: 0.78rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  display: none;
}
.msg.show { display: block; }
.msg.success { background: rgba(34,197,94,0.1);  color: var(--success); border: 1px solid rgba(34,197,94,0.25); }
.msg.error   { background: rgba(239,68,68,0.1);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.25); }

/* ── TABS ────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  background: var(--dark);
  padding: 0.3rem;
  border-radius: var(--radius);
}
.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--grey);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.tab-btn.active { background: var(--orange); color: var(--white); }

/* ── ADMIN PRODUCT LIST ──────────────────── */
.admin-list { display: flex; flex-direction: column; gap: 0.65rem; }

.admin-item {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-item img {
  width: 50px; height: 50px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--dark);
  flex-shrink: 0;
}
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-info strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--light);
  display: block;
}
.admin-item-info small { font-size: 0.68rem; color: var(--grey); }
.admin-item-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

/* ── MARGIN DISPLAY ──────────────────────── */
.margin-box {
  background: var(--dark);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  text-align: center;
}
.margin-item label { font-size: 0.6rem; }
.margin-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--light);
  display: block;
  margin-top: 0.2rem;
}
.margin-value.positive { color: var(--success); }
.margin-value.negative { color: var(--danger); }

/* ── PHOTO THUMBS ────────────────────────── */
.photo-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.photo-thumbs img {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border2);
}
.photo-thumb-wrap {
  position: relative;
  display: inline-block;
}
.photo-thumb-wrap button {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--danger);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .header-tagline { display: none; }
  #products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .card-body { padding: 0.75rem 0.75rem 0.85rem; }
  .card-name { font-size: 1rem; }
  .price-new { font-size: 1.2rem; }
  .btn-buy { font-size: 0.62rem; padding: 0.5rem 0.65rem; }
  .form-cols { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* HERO MOBILE — imagem de fundo atrás do texto (compacto) */
  #hero {
    min-height: clamp(340px, 70vw, 440px);
    flex-direction: row;
    align-items: center;
  }
  .hero-content {
    order: 1;
    padding: 1.5rem 1.25rem;
  }
  .hero-img {
    position: absolute;
    inset: 0;
    order: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.85;
    border-radius: var(--radius-lg);
  }
  .hero-bg {
    display: block;
    background: linear-gradient(100deg, rgba(17,17,17,0.97) 0%, rgba(17,17,17,0.8) 50%, rgba(17,17,17,0.35) 100%);
  }
  .hero-pattern { display: none; }
}

@media (max-width: 400px) {
  #products-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   PHOTO UPLOADER SLOTS
══════════════════════════════════════════ */
.photo-uploader {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.photo-slot {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--dark);
  border: 1px solid var(--border2);
}

.photo-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.photo-slot-add {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.photo-slot-add:hover { border-color: var(--orange); }

.photo-slot-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  background: rgba(239,68,68,0.85);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* ══════════════════════════════════════════
   MENU HAMBURGUER HEADER
══════════════════════════════════════════ */
.btn-menu-header {
  background: none;
  border: 1px solid var(--border2);
  color: var(--light);
  width: 36px; height: 36px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-menu-header:hover { border-color: var(--orange); color: var(--orange); }

/* ══════════════════════════════════════════
   SIDE MENU
══════════════════════════════════════════ */
.side-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 800;
  backdrop-filter: blur(4px);
}
.side-overlay.open { display: block; }

.side-menu {
  position: fixed;
  top: 0; left: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  border-right: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 801;
}
.side-overlay.open .side-menu { transform: translateX(0) !important; }

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.side-section {
  padding: 1rem 1.25rem;
}

.side-section-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

.side-section-title {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.side-divider {
  height: 1px;
  background: var(--border);
  margin: 0 1.25rem;
  flex-shrink: 0;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  color: var(--mid);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  margin-bottom: 0.25rem;
  text-decoration: none;
}
.side-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.side-link:hover { background: rgba(255,92,0,0.08); color: var(--white); }

.side-link-wa {
  background: rgba(255,92,0,0.1);
  color: var(--orange);
  border: 1px solid rgba(255,92,0,0.2);
}
.side-link-wa:hover { background: var(--orange); color: var(--white); }

.side-brands {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.side-brand-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--dark);
  border: 1px solid var(--border2);
  color: var(--mid);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}
.side-brand-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,106,0,0.06);
}
.side-brand-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.side-brand-icon { font-size: 1rem; }

.side-brand-count {
  margin-left: auto;
  font-size: 0.65rem;
  background: rgba(255,255,255,0.1);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  font-weight: 400;
}
.side-brand-btn.active .side-brand-count {
  background: rgba(255,255,255,0.25);
}

.side-promo {
  margin: auto 1.25rem 1.25rem;
  background: rgba(255,92,0,0.1);
  border: 1px solid rgba(255,92,0,0.25);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  flex-shrink: 0;
}
.side-promo strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.side-promo span {
  font-size: 0.72rem;
  color: var(--mid);
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   MODAL VISUALIZAÇÃO DO PRODUTO
══════════════════════════════════════════ */
.modal-product {
  max-width: 860px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  max-height: 92vh;
}

.product-gallery {
  width: 48%;
  flex-shrink: 0;
  background: var(--dark);
  display: flex;
  flex-direction: column;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--dark);
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.gallery-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border2);
  color: var(--light);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
  line-height: 1;
}
.gallery-arrow:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.gallery-arrow.left  { left: 0.6rem; }
.gallery-arrow.right { right: 0.6rem; }
.gallery-arrow.hidden { display: none; }

.gallery-counter {
  position: absolute;
  bottom: 0.6rem; right: 0.75rem;
  background: rgba(255,255,255,0.88);
  color: var(--mid);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
}

.gallery-thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem;
  overflow-x: auto;
  background: var(--dark);
}

.gallery-thumb {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--orange); }

.product-detail {
  flex: 1;
  padding: 1.75rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-detail-brand {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.product-detail-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  color: var(--light);
  line-height: 1.05;
}

.product-detail-ref {
  font-size: 0.7rem;
  color: var(--grey);
  letter-spacing: 0.08em;
}

.product-detail-prices {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.detail-price-old {
  font-size: 0.9rem;
  color: var(--grey);
  text-decoration: line-through;
}

.detail-price-new {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--orange);
  letter-spacing: 0.02em;
  line-height: 1;
}

.product-detail-desc {
  font-size: 0.83rem;
  color: var(--mid);
  line-height: 1.7;
  padding: 0.75rem;
  background: var(--dark);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
}

.detail-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.5rem;
}

.product-detail-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail-size {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--mid);
  cursor: pointer;
  transition: all 0.15s;
}
.detail-size:hover,
.detail-size.selected {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.product-detail-status {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-buy-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem;
  border-radius: var(--radius);
  transition: background 0.2s;
  text-decoration: none;
  margin-top: auto;
}
.btn-buy-detail svg { width: 18px; height: 18px; }
.btn-buy-detail:hover { background: var(--orange-h); }
.btn-buy-detail.disabled {
  background: var(--border2);
  color: var(--grey);
  pointer-events: none;
}

@media (max-width: 640px) {
  .modal-product {
    flex-direction: column;
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    margin: 0;
  }

  .product-gallery { width: 100%; }
  .gallery-main { aspect-ratio: 4/3; }
  .product-detail { padding: 1.25rem; }
  .product-detail-name { font-size: 1.4rem; }
  .detail-price-new { font-size: 1.8rem; }

  #product-overlay { align-items: flex-end; padding: 0; }
}

/* ══════════════════════════════════════════
   PARCELAS
══════════════════════════════════════════ */
.card-parcela {
  font-size: 0.68rem;
  color: var(--orange);
  margin-top: 0.2rem;
}
.card-parcela strong { font-weight: 700; }

.detail-parcela {
  font-size: 0.82rem;
  color: var(--orange);
  margin-top: -0.25rem;
}
.detail-parcela strong { font-weight: 700; }

/* ══════════════════════════════════════════
   ADIÇÕES v2 — Conversão + Acessibilidade
══════════════════════════════════════════ */

/* ── SUBTÍTULO DA HERO ── */
.hero-subtitle {
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  max-width: 480px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s 0.15s ease both;
}

/* ── CTA PRINCIPAL DA HERO ── */
.hero-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  margin-top: 1.75rem;
  margin-right: 0.6rem;
  transition: background 0.2s, transform 0.2s;
  animation: fadeUp 0.5s 0.35s ease both;
}
.hero-cta-main:hover { background: var(--orange-h); transform: translateY(-2px); }

/* ── CTA GRUPO VIP DA HERO ── */
.hero-cta-vip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.2rem;
  background: #25D366;
  border: 1px solid #25D366;
  color: #0a0a0a;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  animation: fadeUp 0.5s 0.4s ease both;
}
.hero-cta-vip:hover { background: #1fb855; border-color: #1fb855; transform: translateY(-2px); }

/* ── BARRA DE CONFIANÇA ── */
#trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  background: var(--card);
  padding: 1.1rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.trust-item strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: 0.02em;
}
.trust-item span {
  font-size: 0.68rem;
  color: var(--grey);
  letter-spacing: 0.03em;
}

/* ── BOTÃO WHATSAPP FLUTUANTE ── */
#wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: transform 0.2s;
  animation: waPulse 2.5s infinite;
}
#wa-float:hover { transform: scale(1.08); }
#wa-float svg { width: 30px; height: 30px; color: #fff; }

@keyframes waPulse {
  0%   { box-shadow: 0 4px 16px rgba(0,0,0,0.22), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 4px 16px rgba(0,0,0,0.22), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 16px rgba(0,0,0,0.22), 0 0 0 0 rgba(37,211,102,0); }
}

/* ── PARCELA NO MODAL (estava sem posição definida) ── */
#detail-parcela {
  font-size: 0.82rem;
  color: var(--orange);
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
}
#detail-parcela strong { font-weight: 700; }

/* ── FOCO VISÍVEL (acessibilidade) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ── RESPONSIVO DAS ADIÇÕES ── */
@media (max-width: 768px) {
  #trust-bar { grid-template-columns: repeat(2, 1fr); }
  #wa-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  #wa-float svg { width: 28px; height: 28px; }
  .hero-cta-main, .hero-cta-vip { display: flex; width: fit-content; margin-right: 0; }
}
@media (max-width: 400px) {
  #trust-bar { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 0.85rem 0.5rem; }
}
