/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --ink: #181513;
  --muted: #6d625a;
  --paper: #f8f5ef;
  --panel: #fffdf9;
  --line: #ddd4c9;
  --red: #a3272f;
  --red-dark: #791b22;
  --teal: #197071;
  --gold: #dfc168;
  --gold-dark: #c89b3c;
  --gold-grad: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  --charcoal: #24201d;
  --shadow: 0 12px 30px rgba(29,22,18,.08);
  --shadow-hover: 0 20px 40px rgba(29,22,18,.12);
  --radius: 8px;
  --theme-transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0ebe2;
  --muted: #9e9188;
  --paper: #17140f;
  --panel: #1f1b15;
  --line: #2e2820;
  --charcoal: #e8e0d5;
  --shadow: 0 12px 30px rgba(0,0,0,.3);
  --shadow-hover: 0 20px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: var(--theme-transition);
}

h1, h2, h3, h4, h5, h6, .brand strong, .eyebrow {
  font-family: Outfit, Inter, sans-serif;
}

body.drawer-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(24,21,19,.85);
  color: #fffdf9;
  backdrop-filter: blur(24px) saturate(180%);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }

.brand-mark {
  display: grid;
  width: 44px; height: 44px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

/* Logo real en el header */
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; }
.brand small { color: #d8cec1; font-size: 12px; }

/* ── OFFER TICKER BANNER ─────────────────────────────────────────────────── */
.offer-ticker {
  background: linear-gradient(90deg, var(--charcoal) 0%, #2a2420 100%);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  overflow: hidden;
  white-space: nowrap;
  height: 32px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 76px;
  z-index: 19;
  border-bottom: 1px solid rgba(200,155,60,.2);
}

.offer-ticker-track {
  display: inline-flex;
  gap: 64px;
  animation: ticker-scroll 22s linear infinite;
  padding-left: 100%;
}

.offer-ticker-track span { display: inline-block; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── FLOATING WHATSAPP ───────────────────────────────────────────────────── */
.floating-wa {
  position: fixed;
  bottom: 88px;
  left: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 200ms, box-shadow 200ms;
  animation: wa-pulse 3s ease-in-out infinite;
}
.floating-wa:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(37,211,102,.6);
  animation: none;
}
.floating-wa-label { line-height: 1; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,.75), 0 0 0 6px rgba(37,211,102,.15); }
}

/* ── SPLASH SCREEN ───────────────────────────────────────────────────────── */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #17140f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity .5s ease, visibility .5s ease;
}
.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.splash-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  animation: splash-pop .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes splash-pop {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.splash-bar {
  width: 160px;
  height: 3px;
  border-radius: 99px;
  background: rgba(200,155,60,.2);
  overflow: hidden;
}
.splash-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
  animation: splash-load 1.4s ease forwards;
}
@keyframes splash-load {
  from { width: 0; }
  to   { width: 100%; }
}
.splash-text {
  color: #9e9188;
  font-size: 13px;
  margin: 0;
  letter-spacing: .06em;
}

/* ── URGENCY BADGE ───────────────────────────────────────────────────────── */
.urgency-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .03em;
  animation: urgency-pulse 1.8s ease-in-out infinite;
  z-index: 2;
}
@keyframes urgency-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .75; }
}

.top-nav { display: flex; align-items: center; gap: 6px; }

.top-nav a,
.ghost-button,
.cart-trigger,
.icon-button,
.primary-button,
.secondary-button,
.import-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.top-nav a, .ghost-button { padding: 0 13px; background: transparent; color: inherit; }
.top-nav a:hover, .ghost-button:hover { background: rgba(255,255,255,.1); }

#themeToggle { font-size: 18px; }

.cart-trigger {
  position: relative;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: #fffdf9;
  color: var(--ink);
  font-weight: 800;
}

.cart-trigger b {
  display: grid;
  min-width: 24px; height: 24px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 12px;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 32px 140px;
  background-color: var(--ink);
  background-image: 
    linear-gradient(180deg, rgba(24,21,19,0.3) 0%, rgba(24,21,19,0.95) 100%),
    url('https://images.unsplash.com/photo-1585747860715-2ba37e788b70?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 30%;
  color: #fffdf9;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(223,193,104,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-copy { width: min(680px, 100%); margin: 0 auto; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 { margin: 0; font-size: 58px; line-height: 1; }
.hero p:not(.eyebrow) { max-width: 590px; margin: 20px auto 0; color: #f1e8dc; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; justify-content: center; }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.primary-button, .secondary-button, .import-button { min-width: 130px; padding: 0 16px; font-weight: 850; }

.primary-button { 
  background: var(--gold-grad);
  color: #111;
  border: 0;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(223, 193, 104, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(223, 193, 104, 0.4);
  filter: brightness(1.05);
}
.primary-button:active {
  transform: translateY(0);
}
.primary-button:disabled { cursor: not-allowed; opacity: .52; transform: none; }

.secondary-button, .import-button {
  border: 1px solid currentColor;
  background: rgba(255,255,255,.08);
  color: inherit;
}
.secondary-button:hover, .import-button:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }

[data-theme="dark"] .secondary-button,
[data-theme="dark"] .import-button { background: rgba(255,255,255,.06); }

.full { width: 100%; }

/* ── CATALOG ────────────────────────────────────────────────────────────── */
.catalog-shell, .info-band { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.catalog-shell { padding: 48px 0 68px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2, .info-band h2, .drawer-header h2 { margin: 0; font-size: 34px; line-height: 1.1; }

/* ── E-COMMERCE CATALOG LAYOUT (Solo Deportes Style) ─────────────────────── */
.catalog-search-bar {
  margin-bottom: 24px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.catalog-sidebar {
  position: sticky;
  top: 24px;
}
.catalog-sidebar-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.catalog-sidebar-filter {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.catalog-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-transform: uppercase;
}
.catalog-filter-icon {
  width: 16px; height: 16px;
  color: var(--muted);
  transition: transform 0.2s;
}
.catalog-sidebar-filter.is-open .catalog-filter-icon {
  transform: rotate(45deg);
}
.catalog-filter-options {
  margin-top: 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.catalog-sidebar-filter.is-open .catalog-filter-options {
  display: flex;
}
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.catalog-result-count {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .catalog-sidebar {
    position: static;
  }
}

/* ── SORT SELECT ─────────────────────────────────────────────────────────── */
.sort-select {
  flex: 0 0 auto;
  min-height: 40px; padding: 0 32px 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d625a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--muted); font-weight: 800; font-size: 13px;
  cursor: pointer; outline: 0;
  -webkit-appearance: none; appearance: none;
  transition: border-color 160ms, color 160ms;
}
.sort-select:focus { border-color: var(--teal); color: var(--ink); }
[data-theme="dark"] .sort-select {
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239e9188' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ── TESTIMONIALS ────────────────────────────────────────────────────────── */
.testimonials-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.testimonials-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.testimonials-header-text { flex: 1; }
.testimonials-header h2 { margin: 0; font-size: 34px; line-height: 1.15; }
.testimonials-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
}

/* Stats card */
.review-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(29,22,18,.06);
  text-align: center;
  min-width: 120px;
}
.review-avg-number {
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
  color: var(--gold);
}
.review-avg-stars { display: flex; gap: 2px; }
.review-avg-count {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Carousel wrapper */
.testimonials-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav buttons */
.testimonials-nav-btn {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease, opacity 300ms ease;
  z-index: 2;
}
.testimonials-nav-btn:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(25,112,113,.3);
}

/* Grid inside carousel */
.testimonials-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-height: 280px;
}

/* Dot navigation */
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.review-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 300ms ease;
}
.review-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--teal);
  border-color: var(--teal);
}
.review-dot:hover:not(.active) {
  border-color: var(--teal);
  background: rgba(25,112,113,.2);
}

/* Card animations */
@keyframes reviewSlideIn {
  0% { opacity: 0; transform: translateY(24px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.review-animate {
  animation: reviewSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* Cards */
.testimonial-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 4px 20px rgba(29,22,18,.06);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, var(--theme-transition);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0;
  transition: opacity 300ms ease;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(29,22,18,.14);
  border-color: var(--teal);
}
.testimonial-card:hover::before { opacity: 1; }

.testimonial-stars { display: flex; gap: 2px; }
.review-star { transition: transform 200ms ease; }
.testimonial-card:hover .review-star.filled { transform: scale(1.15); }

.testimonial-card blockquote {
  margin: 0; flex: 1;
  font-size: 15px; line-height: 1.7;
  color: var(--muted);
  font-style: italic;
  position: relative;
  padding-left: 22px;
}
.testimonial-card blockquote::before {
  content: '\201C';
  position: absolute; left: 0; top: -8px;
  font-size: 52px; line-height: 1;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal; font-weight: 900;
  opacity: 0.5;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(25,112,113,.25);
}
.testimonial-author strong { display: block; font-size: 14px; font-weight: 850; }
.testimonial-author span { font-size: 12px; color: var(--muted); }

/* Empty state */
.reviews-empty {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
  border: 2px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}
.reviews-empty-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px;
}
.reviews-empty-inner h3 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}
.reviews-empty-inner p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ── PUBLIC REVIEW FORM ──────────────────────────────────────────────── */
.public-review-form-wrap {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 4px 24px rgba(29,22,18,.06);
}
.public-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.public-review-header i,
.public-review-header svg {
  width: 28px; height: 28px;
  color: var(--teal);
  flex-shrink: 0;
}
.public-review-header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.public-review-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.public-review-form {
  display: grid;
  gap: 16px;
}
.public-review-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.public-review-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 850;
  color: var(--muted);
}
.optional-tag {
  font-weight: 500;
  color: var(--muted);
  opacity: 0.7;
}
.public-review-label input,
.public-review-label textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color 200ms, box-shadow 200ms;
}
.public-review-label input:focus,
.public-review-label textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(25,112,113,.12);
}
.public-review-label textarea {
  resize: vertical;
  min-height: 80px;
}

/* Star rating input */
.star-rating-input {
  display: flex;
  gap: 4px;
  padding: 6px 0;
}
.star-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: transform 150ms ease;
  line-height: 0;
}
.star-btn:hover {
  transform: scale(1.25);
}
.star-btn svg path {
  transition: fill 200ms ease, stroke 200ms ease;
  stroke-width: 1.5;
}

@media (max-width: 640px) {
  .public-review-row { grid-template-columns: 1fr; }
  .public-review-form-wrap { padding: 20px; }
}

/* Admin reviews section */
.admin-reviews-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}
.admin-review-item {
  grid-template-columns: 48px 1fr auto !important;
}

/* Admin discount section */
.admin-discount-section,
.admin-shipping-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}

.admin-discount-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 200ms;
}
.admin-discount-item:hover { border-color: var(--teal); }
.admin-discount-item .discount-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 900;
  flex-shrink: 0;
}
.admin-discount-item .discount-icon.active {
  background: rgba(25,112,113,.15);
  color: var(--teal);
}
.admin-discount-item .discount-icon.inactive {
  background: rgba(163,39,47,.1);
  color: var(--red);
}
.admin-discount-item .discount-details { flex: 1; min-width: 0; }
.admin-discount-item .discount-details h4 {
  margin: 0;
  font-size: 15px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.admin-discount-item .discount-details p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.discount-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.discount-badge.active-badge { background: rgba(25,112,113,.15); color: var(--teal); }
.discount-badge.inactive-badge { background: rgba(163,39,47,.1); color: var(--red); }
.discount-badge.expired-badge { background: rgba(200,155,60,.15); color: var(--gold); }
.discount-badge.percent-badge { background: var(--charcoal); color: #fffdf9; font-size: 13px; padding: 3px 10px; }
[data-theme="dark"] .discount-badge.percent-badge { background: var(--teal); }

/* Applied discount in cart */
.discount-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(25,112,113,.1);
  border: 1px solid rgba(25,112,113,.25);
  font-size: 14px;
}
.discount-applied[hidden] { display: none !important; }
.discount-applied-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.discount-applied-info strong { color: var(--teal); }

/* Shipping rate items */
.admin-shipping-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.admin-shipping-item .rate-label {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
}
.admin-shipping-item .rate-price {
  font-weight: 950;
  font-size: 16px;
  color: var(--teal);
}

/* Discount message styles */
.discount-msg-error {
  color: var(--red) !important;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: rgba(163,39,47,.08);
  border: 1px solid rgba(163,39,47,.15);
  margin: 0 16px 4px;
}
.discount-msg-success {
  color: var(--teal) !important;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: rgba(25,112,113,.08);
  border: 1px solid rgba(25,112,113,.15);
  margin: 0 16px 4px;
}

@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-header { flex-direction: column; text-align: center; }
  .testimonials-subtitle { max-width: 100%; }
  .review-stat-card { flex-direction: row; gap: 12px; padding: 14px 20px; }
}
@media (max-width: 560px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-header h2 { font-size: 26px; }
  .testimonials-nav-btn { width: 36px; height: 36px; }
  .testimonials-carousel-wrap { gap: 6px; }
  .review-stat-card { width: 100%; justify-content: center; }
}

.search-box {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }

.category-tabs {
  /* Layout is handled by .catalog-filter-options */
}
.category-tabs button {
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.category-tabs button:hover {
  background: var(--line);
  color: var(--ink);
}
.category-tabs button.is-active {
  background: var(--teal);
  color: white;
  font-weight: 700;
}
.badge.no-stock { background: #ff4d4f; color: white; border-color: #ff4d4f; }
.badge.stock-low { background: #faad14; color: white; border-color: #faad14; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }

/* ── NETFLIX-STYLE CATALOG ROWS ──────────────────────────────────────── */
.product-grid.catalog-rows-mode {
  display: flex;
  flex-direction: column;
  gap: 40px;
  grid-template-columns: none;
}
.catalog-row { width: 100%; }
.catalog-row-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.catalog-row-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.catalog-row-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.catalog-row-scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1024px) {
  .catalog-row-scroll { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .catalog-row-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-row-title { font-size: 18px; }
}

.product-card {
  display: grid; grid-template-rows: 190px 1fr;
  min-height: 420px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-image { position: relative; overflow: hidden; background: #2b2723; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }

.badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center;
  min-height: 28px; padding: 0 9px;
  border-radius: 999px;
  background: rgba(24,21,19,.78); color: #fffdf9;
  font-size: 12px; font-weight: 850;
}
.badge.stock-low { background: #8c5f00; }
.badge.no-stock { background: #7a141a; }

.product-body { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 14px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 800; }
.product-card h3 { margin: 0; font-size: 18px; line-height: 1.22; }
.product-card p { margin: 0; color: var(--muted); font-size: 14px; }
.product-buy { display: grid; gap: 10px; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price { font-size: 22px; font-weight: 950; }
.stock-text { color: var(--muted); font-size: 13px; font-weight: 800; }

.product-buy button {
  min-height: 42px; border: 0; border-radius: var(--radius);
  background: var(--charcoal); color: #fffdf9;
  cursor: pointer; font-weight: 900;
}
[data-theme="dark"] .product-buy button { background: var(--teal); }
.product-buy button:hover:not(:disabled) { background: var(--teal); }
[data-theme="dark"] .product-buy button:hover:not(:disabled) { background: #1d8a8b; }
.product-buy button:disabled { cursor: not-allowed; opacity: .48; }

.empty-state {
  min-height: 280px; 
  display: flex; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line); 
  border-radius: var(--radius);
  background: var(--panel);
  padding: 32px;
  margin-top: 16px;
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  background: rgba(216,206,193,.15);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.empty-state-icon svg {
  width: 28px;
  height: 28px;
}
.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--ink);
}
.empty-state p {
  color: var(--muted);
  font-size: 15px;
  max-width: 320px;
  margin: 0 auto;
}

/* ── INFO BAND ──────────────────────────────────────────────────────────── */
.info-band { padding: 56px 0 80px; border-top: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.info-grid article { min-height: 168px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.info-grid svg { color: var(--teal); }
.info-grid h3 { margin: 14px 0 6px; }
.info-grid p { margin: 0; color: var(--muted); }

/* ── INFO COLLAPSIBLE SUBSECTIONS ──────────────────────────────────────── */
.info-collapsible {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: box-shadow .25s;
}
.info-collapsible:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.info-collapsible[open] { box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.info-collapsible-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  user-select: none;
}
.info-collapsible-toggle::-webkit-details-marker { display: none; }
.info-collapsible-toggle::marker { display: none; content: ''; }
.info-collapsible-icon { font-size: 22px; flex-shrink: 0; }
.info-collapsible-chevron {
  margin-left: auto;
  width: 20px; height: 20px;
  color: var(--muted);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.info-collapsible[open] .info-collapsible-chevron { transform: rotate(180deg); }
.info-collapsible-content {
  padding: 0 22px 28px;
  animation: slideDown .3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Fix about-inner inside collapsible */
.info-collapsible .about-inner {
  padding: 0;
  gap: 28px;
}
.info-collapsible .about-section { padding: 0; border: none; }

/* ── DRAWERS ────────────────────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(24,21,19,.52); }
.drawer-panel {
  position: absolute; top: 0; right: 0;
  display: grid; grid-template-rows: auto 1fr auto;
  width: min(440px,100%); height: 100%;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.wide .drawer-panel { width: min(880px,100%); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px; border-bottom: 1px solid var(--line);
}

.icon-button { width: 42px; min-width: 42px; padding: 0; background: var(--charcoal); color: #fffdf9; }
[data-theme="dark"] .icon-button { background: var(--line); color: var(--ink); }

/* ── CART ───────────────────────────────────────────────────────────────── */
.cart-items { overflow: auto; padding: 16px; }
.cart-empty { min-height: 180px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.cart-item { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 74px; height: 74px; border-radius: var(--radius); object-fit: cover; background: #2b2723; }
.cart-item h3 { margin: 0; font-size: 15px; }
.cart-item p { margin: 3px 0 8px; color: var(--muted); font-size: 13px; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper { display: inline-grid; grid-template-columns: 34px 38px 34px; align-items: center; height: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stepper button { height: 34px; border: 0; background: transparent; cursor: pointer; font-weight: 900; }
.stepper span { text-align: center; font-weight: 900; }
.remove-line { border: 0; background: transparent; color: var(--red); cursor: pointer; font-size: 13px; font-weight: 850; }

.cart-footer { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: var(--panel); display: grid; gap: 12px; }
.total-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; }

/* ── CART DELIVERY ──────────────────────────────────────────────────────── */
.cart-delivery { display: grid; gap: 8px; }
.delivery-label {
  display: grid; gap: 4px;
  color: var(--muted); font-size: 12px; font-weight: 850;
}
.delivery-label input {
  width: 100%; min-height: 38px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  padding: 6px 10px; outline: 0;
  font-size: 14px;
}
.delivery-label input:focus { border-color: var(--teal); }

/* ── SHIPPING CALC ──────────────────────────────────────────────────────── */
.shipping-calc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.shipping-toggle {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 0;
  background: var(--paper); color: var(--muted);
  cursor: pointer; font-size: 13px; font-weight: 800;
  transition: background 160ms;
}
.shipping-toggle:hover { background: var(--panel); }
.shipping-toggle i:last-child { margin-left: auto; transition: transform 200ms; }
.shipping-toggle.open i:last-child { transform: rotate(180deg); }

.shipping-body { padding: 10px 12px 12px; display: grid; gap: 8px; border-top: 1px solid var(--line); background: var(--panel); }

.shipping-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.postal-input, .weight-select {
  min-height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  font-size: 14px; outline: 0;
}
.postal-input:focus, .weight-select:focus { border-color: var(--teal); }

.shipping-result {
  padding: 10px 12px; border-radius: var(--radius);
  background: rgba(25,112,113,.12); border: 1px solid rgba(25,112,113,.3);
  font-size: 13px; color: var(--ink);
}
.shipping-result strong { color: var(--teal); font-size: 16px; }

/* ── ADMIN PANEL ────────────────────────────────────────────────────────── */
.admin-panel { grid-template-rows: auto 1fr; }
.admin-login, .admin-workspace { overflow: auto; padding: 18px 22px 28px; }

.admin-login { display: grid; align-content: start; gap: 14px; }
.admin-login label, .product-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 850; }

.admin-login input,
.product-form input,
.product-form select,
.product-form textarea {
  width: 100%; min-height: 42px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--ink);
  padding: 9px 11px; outline: 0;
}
.admin-login input:focus,
.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus { border-color: var(--teal); }

.product-form textarea { resize: vertical; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; }
.form-note code { background: var(--line); border-radius: 3px; padding: 1px 5px; font-size: 12px; }

/* ── HASH GENERATOR ─────────────────────────────────────────────────────── */
.hash-setup, .hash-changer {
  padding: 14px; border: 1px dashed var(--line);
  border-radius: var(--radius); background: var(--panel);
  display: grid; gap: 10px;
}

.hash-code-row { display: flex; align-items: center; gap: 8px; }
.hash-code {
  flex: 1; display: block; padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  font-size: 11px; font-family: monospace;
  word-break: break-all; color: var(--teal);
}

/* ── BRUTE FORCE NOTICE ─────────────────────────────────────────────────── */
#bruteForceNote {
  padding: 8px 12px; border-radius: var(--radius);
  background: rgba(163,39,47,.12); border: 1px solid rgba(163,39,47,.25);
  color: var(--red); font-size: 13px;
}

/* ── GITHUB SYNC PANEL ──────────────────────────────────────────────────── */
.github-panel {
  margin-bottom: 18px; padding: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); display: grid; gap: 10px;
}
.github-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.github-panel-head h3 { margin: 0; font-size: 16px; }
.sync-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sync-actions .secondary-button { flex: 1; color: var(--ink); border-color: var(--line); background: var(--paper); font-size: 13px; min-width: 0; }
.sync-actions .secondary-button:hover { background: var(--line); }

.sync-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 850;
}
.sync-badge.ok { background: rgba(25,112,113,.15); color: var(--teal); border: 1px solid rgba(25,112,113,.3); }
.sync-badge.warn { background: rgba(200,155,60,.15); color: var(--gold); border: 1px solid rgba(200,155,60,.3); }
.sync-badge.err { background: rgba(163,39,47,.12); color: var(--red); border: 1px solid rgba(163,39,47,.25); }

/* ── PRODUCT FORM ───────────────────────────────────────────────────────── */
.product-form { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-span { grid-column: 1/-1; }
.toggle-line { grid-template-columns: 18px 1fr; align-items: center; min-height: 42px; }
.toggle-line input { width: 18px; min-height: 18px; padding: 0; accent-color: var(--teal); }

.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.admin-actions .secondary-button,
.admin-actions .ghost-button,
.admin-actions .import-button { color: var(--ink); }

.import-button { position: relative; border-color: var(--line); background: var(--panel); }
.import-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.hash-changer { margin-bottom: 18px; }

/* ── ADMIN LIST ─────────────────────────────────────────────────────────── */
.admin-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 10px; }
.admin-list-head h3 { margin: 0; }
.admin-list { display: grid; gap: 10px; }

.admin-product { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.admin-product img { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; background: #2b2723; }
.admin-product h4 { margin: 0 0 4px; font-size: 15px; }
.admin-product p { margin: 0; color: var(--muted); font-size: 13px; }

.admin-product-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.admin-product-actions button {
  min-height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); cursor: pointer;
  font-size: 13px; font-weight: 850;
}
.admin-product-actions button:hover { background: var(--line); }
.admin-product-actions button.danger { border-color: rgba(163,39,47,.38); color: var(--red); }

/* ── TOAST ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px; border-radius: var(--radius);
  background: var(--charcoal); color: #fffdf9;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}
[data-theme="dark"] .toast { background: var(--teal); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

svg { width: 18px; height: 18px; stroke-width: 2.2; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; padding: 10px 18px; }
  .top-nav { grid-column: 1/-1; justify-content: space-between; order: 3; overflow-x: auto; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-tools { grid-template-columns: 1fr; }
  .catalog-controls { gap: 8px; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { gap: 8px; padding: 8px 12px; min-height: 60px; }
  .brand small, .cart-trigger span { display: none; }
  .brand-mark { width: 36px; height: 36px; font-size: 12px; }
  .brand strong { font-size: 15px; }
  .top-nav { gap: 4px; }
  .top-nav a { padding: 0 8px; font-size: 13px; min-height: 36px; }
  .ghost-button { padding: 0 8px; font-size: 13px; min-height: 36px; }
  #adminOpen { font-size: 12px; }
  .cart-trigger { padding: 0 10px; min-height: 38px; }
  .cart-trigger b { min-width: 20px; height: 20px; font-size: 11px; }

  .hero { min-height: 360px; padding: 56px 16px 36px; background-position: 58% center; }
  .hero h1 { font-size: 32px; word-break: break-word; }
  .hero p:not(.eyebrow) { font-size: 15px; max-width: 100%; }
  .hero-copy { width: 100%; }
  .hero-actions { gap: 10px; }
  .hero-actions .primary-button,
  .hero-actions .secondary-button { flex: 1; min-width: 0; justify-content: center; font-size: 14px; padding: 0 14px; }
  .hero-stats { gap: 12px; margin-top: 16px; }
  .hero-stat { font-size: 12px; }
  .eyebrow { font-size: 11px; }

  .primary-button, .secondary-button, .import-button { min-width: 0; }
  .catalog-shell, .info-band { width: calc(100% - 24px); max-width: 1180px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-heading h2, .info-band h2, .drawer-header h2 { font-size: 24px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { grid-template-rows: 200px 1fr; min-height: 0; }
  .product-card h3 { font-size: 16px; }
  .price { font-size: 20px; }

  .drawer-panel, .wide .drawer-panel { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-product { grid-template-columns: 52px 1fr; }
  .admin-product-actions { grid-column: 1/-1; justify-content: stretch; }
  .admin-product-actions button { flex: 1 1 100px; font-size: 12px; }
  .shipping-row { grid-template-columns: 1fr; }

  /* About section mobile */
  .about-section { padding: 40px 0; width: calc(100% - 24px); }
  .about-inner { gap: 30px; }
  .about-copy h2 { font-size: 26px; }
  .about-lead { font-size: 16px; }
  .about-copy p { font-size: 14px; }
  .about-ig-btn, .about-wa-btn { padding: 10px 18px; font-size: 13px; flex: 1; justify-content: center; }

  /* Info band mobile */
  .info-band { padding: 40px 0 48px; }
  .info-grid article { padding: 16px; min-height: 0; }
  .info-grid h3 { margin: 10px 0 4px; font-size: 16px; }
  .info-grid p { font-size: 13px; }

  /* FAQ mobile */
  .faq-accordion { padding: 20px; margin-top: 32px; }
  .faq-title { font-size: 20px; margin-bottom: 16px; }
  .faq-accordion summary { font-size: 14px; }
  .faq-accordion p { font-size: 13px; }

  /* Contact cards mobile */
  .contact-card-inner { padding: 18px 20px; gap: 12px; }
  .contact-icon { width: 44px; height: 44px; border-radius: 12px; }
  .contact-info strong { font-size: 15px; }

  /* Featured band mobile */
  .featured-band { padding: 32px 0 0; width: calc(100% - 24px); }
  .featured-band-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .featured-band-header h2 { font-size: 22px; }
  .featured-card { flex: 0 0 220px; }
  .featured-card-img { height: 150px; }

  /* Cart items mobile */
  .cart-items { padding: 12px; }
  .cart-item { grid-template-columns: 60px 1fr; gap: 10px; padding: 10px 0; }
  .cart-item img { width: 60px; height: 60px; }
  .cart-item h3 { font-size: 14px; }
  .cart-footer { padding: 12px 14px 16px; }
  .total-row { font-size: 16px; }
  .cart-discount { margin: 12px 16px; }

  /* Modal mobile */
  .modal { padding: 0; }
  .modal-panel { border-radius: 16px 16px 0 0; max-height: 95vh; align-self: flex-end; }
  .modal-info h2 { font-size: 22px; }
  .modal-info .price { font-size: 26px; }

  /* Testimonials mobile */
  .testimonials-section { padding: 40px 0; width: calc(100% - 24px); }
  .testimonial-card { padding: 20px; }
  .testimonial-card blockquote { font-size: 14px; padding-left: 18px; }
  .testimonial-card blockquote::before { font-size: 40px; }

  /* Footer mobile */
  .site-footer { padding: 32px 16px 24px; }
  .footer-brand p { font-size: 13px; }
  .footer-col h4 { margin-bottom: 12px; }
  .payment-chip { font-size: 11px; padding: 5px 10px; }

  .toast { right: 12px; bottom: 76px; left: 12px; max-width: none; font-size: 14px; }

  /* Floating cart mobile */
  .floating-cart { width: 56px; height: 56px; bottom: 16px; right: 16px; }
}

/* ── DARK MODE: cart trigger fix ─────────────────────────────────────────── */
[data-theme="dark"] .cart-trigger {
  background: var(--panel);
  color: var(--ink);
  border-color: rgba(255,255,255,.2);
}

/* ── SKELETON LOADER ─────────────────────────────────────────────────────── */
.loading-skeleton {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}
.skeleton-card {
  height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--line) 25%, var(--panel) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@media (max-width:980px) { .loading-skeleton { grid-template-columns: repeat(2,1fr); } }
@media (max-width:640px) { .loading-skeleton { grid-template-columns: 1fr; } .skeleton-card { height: 260px; } }

/* ── PARALLAX HERO ───────────────────────────────────────────────────────── */
.hero { will-change: background-position-y; }

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────── */
/* Se desactivó el inicio oculto para que el contenido se vea instantáneamente 
   sin importar si falla JS o si demora la animación */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NOSOTROS ────────────────────────────────────────────────────────────── */
.about-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.about-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-photo-ring {
  position: relative;
  width: 320px; height: 320px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  margin: 0 auto;
}
.about-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper);
}
.about-float-badge {
  position: absolute;
  bottom: -8px; right: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fffdf9;
  font-size: 13px; font-weight: 850;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
}
[data-theme="dark"] .about-float-badge { background: var(--gold); color: #181513; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

.about-copy { display: grid; gap: 14px; }
.about-copy h2 { margin: 0; font-size: 36px; line-height: 1.15; }
.about-lead { font-size: 18px; font-weight: 700; color: var(--teal); margin: 0; }
.about-copy p { margin: 0; color: var(--muted); line-height: 1.7; }

.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.about-ig-btn, .about-wa-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 850; font-size: 14px;
  transition: transform 200ms, box-shadow 200ms;
}
.about-ig-btn:hover, .about-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

.about-ig-btn {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}
.about-wa-btn {
  background: #25D366;
  color: white;
}

@media (max-width:860px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-photo-ring { width: 240px; height: 240px; }
  .about-float-badge { right: auto; left: 50%; transform: translateX(-50%); }
  @keyframes float { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-8px)} }
  .about-actions { justify-content: center; }
}

/* ── CONTACT CARDS ───────────────────────────────────────────────────────── */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.contact-card {
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.contact-card-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 28px;
  color: white; font-weight: 850;
}
.contact-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.contact-info { flex: 1; }
.contact-info strong { display: block; font-size: 18px; }
.contact-info span { font-size: 13px; opacity: .85; }
.contact-card-inner svg:last-child { opacity: .7; }

.ig-card { background: linear-gradient(135deg, #f09433 0%, #dc2743 40%, #bc1888 100%); }
.wa-card { background: linear-gradient(135deg, #128C7E, #25D366); }

@media (max-width:640px) { .contact-cards { grid-template-columns: 1fr; } }

/* ── FAQ ACCORDION ───────────────────────────────────────────────────────── */
.faq-accordion {
  margin-top: 48px;
  background: var(--panel);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.faq-title { margin-top: 0; margin-bottom: 24px; font-size: 24px; }
.faq-accordion details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq-accordion details:last-child { border-bottom: none; }
.faq-accordion summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: "+";
  font-size: 20px;
  color: var(--teal);
  transition: transform 0.2s;
}
.faq-accordion details[open] summary::after { transform: rotate(45deg); }
.faq-accordion p { margin: 12px 0 0 0; color: var(--muted); line-height: 1.6; }

/* ── MODAL DE PRODUCTO ───────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: var(--panel);
  width: 100%; max-width: 860px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  0% { opacity: 0; transform: scale(0.95) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.modal-image {
  background: var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
[data-theme="dark"] .modal-image { background: #1a1a1a; }
.modal-image img {
  width: 100%; height: 100%;
  object-fit: cover; aspect-ratio: 1;
  transition: transform 0.4s ease;
}
.modal-image:hover img { transform: scale(1.05); }
.modal-info { padding: 40px; display: flex; flex-direction: column; overflow-y: auto; max-height: 86vh; }
.modal-info .modal-eyebrow { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin: 0 0 6px; }
.modal-info h2 { font-size: 28px; margin: 0 0 6px; line-height: 1.2; }
.modal-info .modal-price-block { margin: 16px 0 20px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.modal-info .price { font-size: 30px; font-weight: 950; color: var(--teal); }
.modal-info .price-original { font-size: 18px; text-decoration: line-through; color: var(--muted); }
.modal-info .price-discount-badge { font-size: 13px; font-weight: 850; background: var(--red); color: white; padding: 3px 9px; border-radius: 999px; }
.modal-info .desc { color: var(--muted); line-height: 1.65; flex: 1; font-size: 15px; }
.modal-info .modal-stock-info { margin: 16px 0 0; font-size: 13px; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.modal-info .modal-stock-info.low { color: #f09433; }
.modal-info .actions { margin-top: 28px; display: grid; gap: 12px; }
@media (max-width: 768px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-info { padding: 24px; max-height: none; }
  .modal-image img { aspect-ratio: 4/3; }
}

/* ── BOTON CARRITO FLOTANTE ──────────────────────────────────────────────── */
.floating-cart {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--panel);
  border: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 990;
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-cart:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.floating-cart[hidden] { display: none !important; }
.floating-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #dc2743;
  color: white;
  font-size: 12px; font-weight: 850;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--panel);
}
@media (min-width: 1024px) {
  .floating-cart { display: none !important; }
}

/* ── CART DISCOUNT ───────────────────────────────────────────────────────── */
.cart-discount {
  display: flex; gap: 8px;
  margin: 16px 24px;
}
.cart-discount input { flex: 1; }
.cart-discount button { white-space: nowrap; }

/* ── ADMIN PREVIEW & PROMO ───────────────────────────────────────────────── */
.admin-live-preview {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.empty-preview {
  padding: 40px; text-align: center; color: var(--muted);
  border: 2px dashed var(--line); border-radius: 16px;
}
.admin-actions-bar {
  display: flex; gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.badge.promo { background: #dc2743; color: white; }
.badge.stock-low { background: #f09433; color: white; }
.badge.no-stock { background: var(--line); color: var(--muted); }

/* ANIMACION AGREGAR CARRITO */
@keyframes popCart {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: var(--teal); }
  100% { transform: scale(1); }
}
.pop { animation: popCart 0.3s ease; }

/* ── FEATURED BAND ───────────────────────────────────────────────────────── */
.featured-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 0;
}
.featured-band-header {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
.featured-band-header h2 { margin: 0; font-size: 28px; line-height: 1.1; }
.featured-scroll {
  display: flex; gap: 16px;
  overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.featured-scroll::-webkit-scrollbar { display: none; }
.featured-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(29,22,18,.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
  position: relative;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(29,22,18,.16); }
.featured-card-img {
  height: 180px; overflow: hidden; background: var(--line);
  position: relative;
}
.featured-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-card:hover .featured-card-img img { transform: scale(1.06); }
.featured-card-body { padding: 14px; }
.featured-card-body h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-card-body .fc-price { font-size: 18px; font-weight: 950; color: var(--teal); }
.featured-card-body .fc-price-orig { font-size: 13px; text-decoration: line-through; color: var(--muted); margin-left: 8px; }
.featured-card-body .fc-action { margin-top: 10px; }
.featured-card-body .fc-action button {
  width: 100%; min-height: 36px; border: 0; border-radius: var(--radius);
  background: var(--charcoal); color: #fffdf9;
  font-size: 13px; font-weight: 900; cursor: pointer;
  transition: background 160ms, transform 120ms;
}
.featured-card-body .fc-action button:hover:not(:disabled) { background: var(--teal); transform: translateY(-1px); }
.featured-card-body .fc-action button:disabled { opacity: .45; cursor: not-allowed; }
[data-theme="dark"] .featured-card-body .fc-action button { background: var(--teal); }
.badge.featured-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--gold); color: #181513;
  font-size: 11px; font-weight: 900;
  padding: 3px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.badge.promo-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: white;
  font-size: 11px; font-weight: 900;
  padding: 3px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  animation: promoPulse 2s ease-in-out infinite;
}
@keyframes promoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(163,39,47,0); }
  50% { box-shadow: 0 0 0 6px rgba(163,39,47,0.25); }
}

/* ── PRECIO TACHADO / DESCUENTO ──────────────────────────────────────────── */
.price-block { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-orig { font-size: 14px; text-decoration: line-through; color: var(--muted); font-weight: 700; }
.discount-chip {
  font-size: 11px; font-weight: 900;
  background: var(--red); color: white;
  padding: 2px 7px; border-radius: 999px;
}

/* ── BARRA PROGRESO ENVÍO GRATIS ─────────────────────────────────────────── */
.shipping-progress {
  margin: 0 16px 4px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.shipping-progress-text {
  font-size: 12px; font-weight: 850; color: var(--muted);
  margin-bottom: 8px; line-height: 1.4;
}
.shipping-progress-text strong { color: var(--teal); }
.shipping-progress-text.reached { color: var(--teal); }
.shipping-progress-bar-track {
  height: 6px; border-radius: 999px;
  background: var(--line); overflow: hidden;
}
.shipping-progress-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ── TOAST CON ACCIÓN ────────────────────────────────────────────────────── */
.toast-action-btn {
  display: inline-block; margin-top: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.2);
  color: inherit; font-size: 12px; font-weight: 850;
  cursor: pointer; border: 1px solid rgba(255,255,255,.3);
  transition: background 160ms;
}
.toast-action-btn:hover { background: rgba(255,255,255,.32); }

/* ── HOVER OVERLAY EN CARDS ──────────────────────────────────────────────── */
.product-image-overlay {
  position: absolute; inset: 0;
  background: rgba(24,21,19,0.52);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease;
  color: white; font-size: 13px; font-weight: 850;
  gap: 6px;
}
.product-card:hover .product-image-overlay { opacity: 1; }
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }

/* ── ANIMACION CARD ADD ──────────────────────────────────────────────────── */
@keyframes cardPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.025); }
  100% { transform: scale(1); }
}
.card-pop { animation: cardPop 0.25s ease; }

/* ── FLY TO CART PARTICLE ────────────────────────────────────────────────── */
.fly-particle {
  position: fixed; z-index: 9999;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--teal);
  pointer-events: none;
  transition: none;
}

/* ── HERO COUNTER BADGE ──────────────────────────────────────────────────── */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-top: 22px;
}
.hero-stat {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(240,235,226,0.85); font-weight: 700;
}
.hero-stat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(25,112,113,0.35);
  animation: statPulse 2s ease-in-out infinite;
}
@keyframes statPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(25,112,113,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(25,112,113,0.15); }
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 48px;
  padding: 48px 32px 32px;
  background: rgba(24,21,19,.97);
  color: #d8cec1;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner {
  width: min(1180px, 100%); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand-mark {
  width: 40px; height: 40px; font-size: 14px;
}
.footer-brand p { margin: 12px 0 0; font-size: 14px; color: rgba(216,206,193,.7); line-height: 1.6; }
.footer-col h4 { margin: 0 0 16px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 900; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(216,206,193,.8); transition: color 160ms; }
.footer-col ul li a:hover { color: #fffdf9; }
.footer-payments { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.payment-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px; font-weight: 850; color: #d8cec1;
}
.footer-bottom {
  width: min(1180px, 100%); margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(216,206,193,.5);
}
.footer-bottom a { color: rgba(216,206,193,.7); }
.footer-bottom a:hover { color: #fffdf9; }
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer { padding: 40px 20px 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── CATALOG OVERLAY ─────────────────────────────────────────────────────── */
.catalog-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  animation: catalogSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.catalog-overlay[hidden] { display: none !important; }

@keyframes catalogSlideIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

body.catalog-open { overflow: hidden; }

.catalog-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  min-height: 72px;
  background: rgba(24,21,19,.95);
  color: #fffdf9;
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px);
  flex-shrink: 0;
}

.catalog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fffdf9;
  font-weight: 850;
  font-size: 14px;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
}
.catalog-back-btn:hover {
  background: rgba(255,255,255,.16);
  transform: translateX(-3px);
}

.catalog-overlay-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.catalog-overlay-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 40px;
}

.catalog-overlay-body .catalog-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 68px;
}

@media (max-width: 640px) {
  .catalog-overlay-header { padding: 10px 16px; min-height: 60px; }
  .catalog-back-btn { padding: 6px 14px; font-size: 13px; }
  .catalog-overlay-brand strong { font-size: 15px; }
  .catalog-overlay-body .catalog-shell { width: min(100% - 20px, 1180px); }
}

/* ── HAMBURGER MENU ──────────────────────────────────────────────────────── */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius);
  transition: background 200ms;
  z-index: 21;
}
.hamburger-toggle:hover { background: rgba(255,255,255,.1); }
.hamburger-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fffdf9;
  border-radius: 2px;
  transition: transform 300ms ease, opacity 200ms ease;
}
.hamburger-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-toggle.is-open span:nth-child(2) { opacity: 0; }
.hamburger-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .hamburger-toggle { display: flex; }
  .top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: 0;
    z-index: 20;
    background: rgba(24,21,19,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 300ms ease, transform 300ms ease;
  }
  .top-nav.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .top-nav a {
    font-size: 20px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: var(--radius);
  }
  .top-nav a:hover { background: rgba(255,255,255,.1); }
  .top-nav .ghost-button {
    font-size: 16px;
    min-height: 48px;
    padding: 0 20px;
  }
}

/* ── BOTTOM NAVIGATION BAR ───────────────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(24,21,19,.85);
  backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 6px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav {
  display: none;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .bottom-nav {
    display: grid;
  }

  /* Hide original floating buttons when bottom nav is visible */
  .floating-wa { display: none !important; }
  .floating-cart { display: none !important; }

  /* Add body padding for bottom nav */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }

  /* Adjust toast position above bottom nav */
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  color: rgba(216,206,193,.6);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color 200ms;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--gold);
}
.bottom-nav-item[data-nav="whatsapp"]:hover,
.bottom-nav-item[data-nav="whatsapp"].active { color: #25d366; }

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 200ms, transform 200ms;
}
.bottom-nav-badge.has-items {
  opacity: 1;
  transform: scale(1);
}

/* ── TOAST TYPES ─────────────────────────────────────────────────────────── */
.toast.toast-success { background: #197071; }
.toast.toast-error { background: var(--red); }
.toast.toast-info { background: var(--charcoal); }
[data-theme="dark"] .toast.toast-success { background: #197071; }
[data-theme="dark"] .toast.toast-error { background: var(--red); }
[data-theme="dark"] .toast.toast-info { background: var(--teal); }

/* ── OFFLINE BANNER ──────────────────────────────────────────────────────── */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 400ms ease, transform 400ms ease;
}
.offline-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLL TO TOP ───────────────────────────────────────────────────────── */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 55;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 300ms, transform 300ms, background 200ms;
}
.scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ── EXTRA SMALL MOBILE (< 400px) ────────────────────────────────────────── */
@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { grid-template-rows: 180px 1fr; }
  .hero h1 { font-size: 26px; }
  .hero p:not(.eyebrow) { font-size: 14px; }
  .section-heading h2 { font-size: 20px; }
  .about-copy h2 { font-size: 22px; }
  .about-photo-ring { width: 200px; height: 200px; }
  .featured-card { flex: 0 0 180px; }
  .bottom-nav-item span { font-size: 9px; }
}

/* ── SAFE AREA INSETS ────────────────────────────────────────────────────── */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-header {
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
  }
  @media (max-width: 640px) {
    .site-header {
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }
  }
}

/* ── PRODUCT CARD COMPACT MOBILE ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .product-card {
    grid-template-rows: 160px 1fr;
    min-height: 0;
  }
  .product-body { padding: 10px; gap: 6px; }
  .product-card h3 { font-size: 14px; line-height: 1.25; }
  .product-card p { font-size: 12px; line-height: 1.4; }
  .product-meta { font-size: 11px; }
  .price { font-size: 17px; }
  .stock-text { font-size: 11px; }
  .product-buy button { min-height: 36px; font-size: 12px; }
  .badge { font-size: 10px; min-height: 22px; padding: 0 7px; top: 6px; left: 6px; }
  .urgency-badge { font-size: 9px; bottom: 6px; left: 6px; padding: 2px 6px; }
}

/* ── DRAWER PANEL SAFE AREA ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .drawer-panel {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .cart-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
