/*
  Moto Mox Suite — Desktop CSS independiente
  ----------------------------------------------------
  Esta hoja pertenece solo a /desktop.
  No importarla en /mobile.
  No agregar media queries móviles aquí.
*/
/*
  Moto Mox Suite — Demo HTML
  ----------------------------------------------------
  Objetivo: servir como maqueta visual funcional para que el equipo de desarrollo
  conserve fidelidad del mockup aprobado y pueda migrarlo a backend/framework.
*/

:root {
  --bg: #030405;
  --bg-2: #07090b;
  --surface: rgba(20, 23, 27, 0.92);
  --surface-2: rgba(30, 34, 40, 0.86);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --border-gold: rgba(218, 162, 9, 0.45);
  --gold: #d6a008;
  --gold-2: #f2bd21;
  --gold-3: #8e6600;
  --text: #f5f5f5;
  --text-soft: #c7c9cc;
  --muted: #8d9299;
  --danger: #ff5c5c;
  --success: #39d98a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --max: 1920px;
  --topbar-height: 92px;
  --font-display: "Rajdhani", "Orbitron", "Arial Narrow", system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

/* SVG ICON SYSTEM */
.icon-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-svg--sm { width: 16px; height: 16px; }
.icon-svg--md { width: 20px; height: 20px; }
.icon-svg--lg { width: 24px; height: 24px; }
.icon-svg--xl { width: 28px; height: 28px; }


html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 75% 10%, rgba(214, 160, 8, 0.12), transparent 35%),
    radial-gradient(circle at 15% 20%, rgba(255, 186, 0, 0.07), transparent 34%),
    linear-gradient(135deg, #000 0%, #050607 44%, #0b0d10 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.app-shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* HEADER */
.topbar {
  min-height: var(--topbar-height);
  display: grid;
  grid-template-columns: 264px auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(214, 160, 8, 0.28);
  background: rgba(2, 3, 4, 0.94);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.36);
  max-width: 100%;
  overflow: hidden;
}

.topbar.compact .brand img { width: 210px; }

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 264px;
  min-width: 160px;
}
.brand img { width: 230px; height: auto; object-fit: contain; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.desktop-nav a {
  position: relative;
  padding: 34px 0 31px;
  transition: color .2s ease;
}
.desktop-nav a:hover,
.desktop-nav a.is-active { color: var(--gold-2); }
.desktop-nav a.is-active::after,
.desktop-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 3px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 16px rgba(242, 189, 33, .55);
}

.searchbar {
  display: flex;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  flex: 1 1 240px;
  min-width: 160px;
  max-width: 420px;
  position: relative;
}
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  padding: 0 20px;
  font-size: 14px;
}
.searchbar input::placeholder { color: #777c83; }
.searchbar button {
  width: 58px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-size: 28px;
  line-height: 1;
  border-radius: 0 6px 6px 0;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
.icon-action,
.account-action,
.cart-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}
.icon-action:hover,
.account-action:hover,
.cart-action:hover { color: var(--gold-2); }
.icon { color: var(--gold); font-size: 24px; line-height: 1; display:inline-flex; align-items:center; justify-content:center; }
.top-actions .icon .icon-svg{width:24px;height:24px;}
.account-copy { display: grid; line-height: 1.05; text-align: left; }
.account-copy small { color: var(--muted); font-weight: 500; font-size: 12px; }
.cart-action strong {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-size: 12px;
}

/* MAIN LAYOUT */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px;
  align-items: stretch;
  max-width: 100%;
}
.sidebar {
  align-self: stretch;
  height: 100%;
  min-height: 100%;

  background: linear-gradient(180deg, #11161c 0%, #0d1117 100%);
  border: 1px solid rgba(255, 196, 0, 0.16);
  border-radius: 20px;

  overflow: hidden;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 40px rgba(0, 0, 0, 0.35);
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 24px;
}
.sidebar-top {
  flex: 0 0 auto;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-title {
  padding: 0 10px 18px;
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .8px;
}
.category-list { display: grid; gap: 4px; }
.category-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 10px;
  border-radius: 6px;
  color: #c6c9ce;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  transition: .22s ease;
  text-align: left;
  min-width: 0;
}
.category-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 14px;
}
.category-item span:first-child {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}
.category-item span:first-child .icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.category-item:hover,
.category-item.is-active {
  color: #fff;
  border-color: rgba(214,160,8,.24);
  background: linear-gradient(90deg, rgba(214,160,8,.35), rgba(214,160,8,.06));
}
.category-item small { opacity: .72; font-size: 22px; }

/* ── Subcategory Sidebar ─────────────────────────────── */
.category-parent-group { position: relative; }
.category-parent-group .cat-toggle {
  transition: transform .25s ease;
  display: inline-block;
}
.category-parent-group.is-expanded .cat-toggle {
  transform: rotate(90deg);
}
.category-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease;
  opacity: 0;
  padding-left: 58px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0; /* Will animate with max-height indirectly or we just let it be 0 when hidden, but wait, setting margin-top when hidden breaks max-height. Let's do margin-top only when expanded */
}
.category-parent-group.is-expanded .category-children {
  max-height: 400px;
  opacity: 1;
  margin-top: 10px;
  margin-bottom: 10px;
}
.category-child-item {
  position: relative;
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: .2s ease;
}
.category-child-item:hover,
.category-child-item.is-active {
  color: #ffffff;
  font-weight: 600;
}

/* ── Admin: Category hierarchy badges ─────────────────── */
.premium-badge--parent {
  background: rgba(214,160,8,.18);
  color: var(--gold-2);
}
.premium-badge--sub {
  background: rgba(255,255,255,.06);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.1);
}
.subcategory-indent {
  color: var(--gold-2);
  font-weight: 700;
  margin-right: 4px;
  opacity: .7;
}
.subcategory-row td:nth-child(3) {
  padding-left: 24px;
}

.club-card {
  margin: 28px 2px 8px;
  padding: 22px 20px;
  border: 1px solid rgba(214,160,8,.35);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(214,160,8,.12), transparent 55%),
    rgba(5, 7, 9, 0.72);
  overflow: hidden;
  position: relative;
}
.club-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(214,160,8,.28), transparent 68%);
}
.club-crown { color: var(--gold-2); font-size: 54px; line-height: .8; display:grid; place-items:center; margin-bottom:6px; }
.club-crown .icon-svg{width:54px;height:54px;}
.club-card h3 { margin: 10px 0 3px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .6px; }
.club-card p { margin: 0 0 16px; color: var(--text-soft); font-size: 14px; }
.club-card ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; color: var(--text-soft); font-size: 13px; }
.club-card li::before { content: "✓"; color: var(--gold-2); margin-right: 9px; }

.content-area { min-width: 0; display: grid; gap: 24px; overflow: hidden; align-content: start; }

/* HERO */
.hero-grid { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 12px; }
.hero-card {
  min-height: 496px;
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 42%, rgba(214,160,8,.22), transparent 32%),
    linear-gradient(100deg, rgba(3,4,6,.98) 0%, rgba(9,10,12,.98) 54%, rgba(7,8,10,.78) 100%);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0 24%, rgba(0,0,0,.58) 45%, transparent 100%),
    linear-gradient(135deg, transparent 0 38%, rgba(214,160,8,.12) 38% 39%, transparent 39% 100%);
  z-index: 1;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(214,160,8,.5) 1px, transparent 1px),
    linear-gradient(115deg, transparent, rgba(214,160,8,.18), transparent);
  background-size: 42px 42px, 100% 100%;
  opacity: .28;
}
.hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(520px, 55%);
  padding: 64px 0 38px 52px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-2);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .4px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-copy h1,
.page-hero h1,
.auth-brand-panel h1,
.admin-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.1vw, 72px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 950;
  transform: skew(-8deg);
}
.hero-copy h1 span { color: var(--gold-2); }
.hero-copy p:not(.eyebrow) {
  max-width: 430px;
  margin: 26px 0 34px;
  color: #d9dde2;
  font-size: 19px;
  line-height: 1.55;
}
.hero-bike {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 66%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: .96;
  mix-blend-mode: screen;
}
.hero-dots { 
  position: absolute; 
  bottom: 38px; 
  left: 52px; 
  z-index: 10; 
  display: flex; 
  gap: 12px; 
}
.hero-dots span { width: 11px; height: 11px; border-radius: 999px; background: #c5c9ce; opacity: .9; cursor: pointer; transition: background 0.3s ease, box-shadow 0.3s ease; }
.hero-dots .active { background: var(--gold-2); box-shadow: 0 0 14px rgba(242,189,33,.8); }

.promo-stack { display: grid; gap: 10px; }
.mini-promo {
  min-height: 140px;
  position: relative;
  display: grid;
  align-content: center;
  padding: 22px 24px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(214,160,8,.26);
  background: rgba(18,20,24,.92);
  isolation: isolate;
}
.mini-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  z-index: -2;
}
.mini-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.18));
  z-index: -1;
}
.mini-promo span { color: var(--gold-2); font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.mini-promo strong { max-width: 100%; margin: 4px 0; font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); line-height: .95; text-transform: uppercase; letter-spacing: .5px; }
.mini-promo small { color: var(--gold-2); text-transform: uppercase; font-weight: 900; font-size: 12px; }

/* BENEFITS */
.benefit-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(25,28,32,.92), rgba(14,16,19,.92));
  overflow: hidden;
}
.benefit-strip article {
  min-height: 72px;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 10px;
  align-content: center;
  padding: 0 14px;
  border-right: 1px solid rgba(255,255,255,.09);
  min-width: 0;
}
.benefit-strip article:last-child { border-right: 0; }
.benefit-strip span { grid-row: span 2; color: var(--gold-2); font-size: 24px; align-self: center; display:grid; place-items:center; }
.benefit-strip span .icon-svg{width:24px;height:24px;}
.benefit-strip strong { color: #fff; text-transform: uppercase; font-family: var(--font-display); letter-spacing: .4px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.benefit-strip small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.navbar-brand img {
  height: 40px;
  width: auto;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px;
}
.section-head h1,
.section-head h2 {
  margin: 0;
  color: #d6d9df;
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.section-head h2::before { content: ""; display: inline-block; width: 18px; height: 2px; margin-right: 10px; background: var(--gold); vertical-align: middle; }
.section-head a { color: var(--muted); font-weight: 800; font-size: 14px; }
.section-head a:hover { color: var(--gold-2); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.product-grid-page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(24,27,31,.92), rgba(11,13,16,.94));
  overflow: hidden;
  position: relative;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214,160,8,.38);
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
}
.product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fff;
}
.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
}
.badge {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 2;
  color: var(--gold-2);
  border: 1px solid rgba(214,160,8,.48);
  border-radius: 5px;
  background: rgba(0,0,0,.48);
  padding: 3px 8px;
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
}
.product-info { padding: 12px 16px 0; }
.product-info h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.product-info p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-row { display: flex; gap: 9px; align-items: baseline; padding-bottom: 12px; }
.price { color: var(--gold-2); font-weight: 950; font-size: 18px; }
.old-price { color: #777; text-decoration: line-through; font-size: 12px; }
.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.08);
}
.card-actions button,
.card-actions a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.01);
  color: var(--muted);
  cursor: pointer;
  font-size: 19px;
}
.card-actions .icon-svg{width:18px;height:18px;}
.card-actions > *:last-child { border-right: 0; }
.card-actions button:hover,
.card-actions a:hover { color: var(--gold-2); background: rgba(214,160,8,.08); }

.bottom-banners { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 14px; }
.bottom-banners a {
  border: 1px solid rgba(214,160,8,.24);
  border-radius: 6px;
  overflow: hidden;
  min-height: 92px;
  background: rgba(18,20,24,.88);
}
.bottom-banners img { width: 100%; height: 100%; object-fit: cover; }

/* INNER / CATEGORY */
.inner-page { padding: 0 2px 40px; }
.full-width-page { max-width: 1420px; margin: 0 auto; padding: 28px; }
.page-hero {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 42px;
  background:
    radial-gradient(circle at 75% 20%, rgba(214,160,8,.18), transparent 34%),
    linear-gradient(135deg, rgba(25,28,32,.94), rgba(8,10,13,.92));
  overflow: hidden;
}
.page-hero.slim { padding: 32px; }
.page-hero h1 { font-size: clamp(36px, 3vw, 56px); }
.page-hero p:not(.eyebrow) { max-width: 760px; color: var(--text-soft); line-height: 1.55; }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}
.result-copy { color: var(--text-soft); }
.toolbar label { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 10px; }
.toolbar select {
  height: 42px;
  color: #fff;
  background: rgba(20,23,27,.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
}

/* PRODUCT DETAIL */
.product-detail {
  width: min(1260px, calc(100% - 40px));
  margin: 32px auto 80px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.detail-gallery,
.detail-info {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(25,28,32,.94), rgba(9,11,14,.96));
  box-shadow: var(--shadow);
}
.detail-gallery { flex: 1 1 0%; min-height: 520px; display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; overflow: hidden; }
.detail-gallery::before { content: ""; position: absolute; inset: 10%; background: radial-gradient(circle, rgba(214,160,8,.18), transparent 60%); }
.detail-gallery img { position: relative; width: min(560px, 100%); filter: drop-shadow(0 24px 42px rgba(0,0,0,.65)); }
.detail-info { flex: 0 0 480px; padding: 34px; }
.detail-info h1 { margin: 0 0 8px; font-family: var(--font-display); font-size: 44px; line-height: 1; text-transform: uppercase; }
.detail-info .category { color: var(--gold-2); font-weight: 900; text-transform: uppercase; }
.detail-info p { color: var(--text-soft); line-height: 1.6; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0; }
.detail-price strong { color: var(--gold-2); font-size: 34px; }
.detail-specs { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.detail-specs div { flex: 1 1 calc(50% - 5px); padding: 14px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.detail-specs span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.detail-specs strong { font-size: 14px; }
.qty-row { display: flex; gap: 12px; margin: 26px 0; }
.qty-row input { width: 82px; color: #fff; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; }

/* CART / DRAWER */
.cart-drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: rgba(10,12,15,.98);
  border-left: 1px solid rgba(214,160,8,.22);
  box-shadow: -30px 0 90px rgba(0,0,0,.55);
  transform: translateX(110%);
  transition: transform .22s ease;
  padding: 22px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
}
.cart-drawer.is-open { transform: translateX(0); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; font-family: var(--font-display); text-transform: uppercase; }
.drawer-head button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: #fff; font-size: 28px; cursor: pointer; }
.drawer-items { overflow: auto; display: grid; align-content: start; gap: 12px; }
.drawer-item, .cart-line {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}
.drawer-item img, .cart-line img { width: 68px; height: 58px; object-fit: contain; }
.drawer-item h4, .cart-line h4 { margin: 0 0 4px; font-size: 13px; }
.drawer-item p, .cart-line p { margin: 0; color: var(--gold-2); font-weight: 900; }
.drawer-total { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 18px; }
.drawer-total strong { color: var(--gold-2); font-size: 22px; }
.empty-state { color: var(--muted); text-align: center; padding: 40px 10px; }

.checkout-page {
  width: min(1240px, calc(100% - 40px));
  margin: 32px auto 90px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.checkout-card,
.checkout-summary {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(25,28,32,.94), rgba(9,11,14,.96));
  box-shadow: var(--shadow);
  padding: 28px;
}
.cart-page-items { display: grid; gap: 14px; }
.cart-line { grid-template-columns: 86px 1fr auto; }
.checkout-summary { align-self: start; position: sticky; top: 110px; display: grid; gap: 14px; }
.checkout-summary h2 { margin: 0 0 12px; font-family: var(--font-display); text-transform: uppercase; }
.checkout-summary div { display: flex; justify-content: space-between; color: var(--text-soft); }
.checkout-summary hr { border: 0; border-top: 1px solid var(--border); width: 100%; }
.grand-total strong { color: var(--gold-2); font-size: 26px; }
.microcopy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

/* BUTTONS */
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .2px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 12px 32px rgba(214,160,8,.22);
}
.btn-outline { color: #fff; border-color: rgba(214,160,8,.42); background: rgba(214,160,8,.08); }
.btn-gold-outline { color: var(--gold-2); border-color: rgba(214,160,8,.42); background: rgba(214,160,8,.08); }
.btn-gold-outline:hover { background: rgba(214,160,8,.18); }
.btn-gold-outline.is-fav { color: var(--gold-2); background: rgba(214,160,8,.2); }
.btn-gold-outline.is-fav svg { fill: var(--gold-2); }
.card-actions .is-fav { color: var(--gold-2); background: rgba(214,160,8,.12); }
.card-actions .is-fav svg { fill: var(--gold-2); stroke: var(--gold-2); }
[data-fav-toggle] { transition: color .2s ease, background .2s ease; }
.btn-full { width: 100%; }

/* AUTH — Login / Register Pages */
.main-auth {
  display: block;
  padding: 0;
}
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.auth-container {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 440px;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(25,28,32,.92), rgba(9,11,14,.96));
  box-shadow: none;
}
.auth-hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
}
.auth-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
  mix-blend-mode: screen;
}
.auth-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 42px;
  background: linear-gradient(to top, rgba(0,0,0,.95) 10%, transparent);
  z-index: 2;
}
.auth-hero-overlay h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 48px);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-2);
}
.auth-hero-overlay p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  max-width: 400px;
  line-height: 1.55;
}
.auth-form-panel {
  padding: 42px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-logo { display: block; margin-bottom: 28px; }
.auth-logo img { width: 200px; }
.auth-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.auth-form { display: grid; gap: 18px; }
.form-group { display: grid; gap: 6px; }
.form-group label {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 14px;
}
.form-group label small {
  color: var(--muted);
  font-weight: 400;
}
.form-group input,
.form-group select,
.form-group textarea,
.form-input {
  height: 48px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: #fff;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
  box-sizing: border-box;
}
.form-group textarea,
textarea.form-input {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}
.form-group select,
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select option {
  background: #1a1d22;
  color: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214,160,8,.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.form-input::placeholder { color: #555; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-error {
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
}
.input-password-wrap {
  position: relative;
}
.input-password-wrap input { width: 100%; padding-right: 48px; }
.toggle-password {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.toggle-password:hover { color: var(--gold-2); }
.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.auth-alert--error {
  color: var(--danger);
  background: rgba(255,92,92,.1);
  border: 1px solid rgba(255,92,92,.25);
}
.auth-alert--success {
  color: var(--success);
  background: rgba(57,217,138,.1);
  border: 1px solid rgba(57,217,138,.25);
}
.btn--primary {
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 24px rgba(214,160,8,.2);
}
.btn--primary:hover {
  box-shadow: 0 12px 32px rgba(214,160,8,.35);
}
.btn--full { width: 100%; }
.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.auth-switch a {
  color: var(--gold-2);
  font-weight: 800;
}
.auth-switch a:hover { text-decoration: underline; }
.back-link { display: inline-block; margin-top: 22px; color: var(--gold-2); font-weight: 900; }

/* ADMIN */
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 290px 1fr; }
.admin-side { background: rgba(3,4,5,.95); border-right: 1px solid rgba(214,160,8,.22); padding: 26px; }
.admin-side img { width: 240px; margin-bottom: 36px; }
.admin-side nav { display: grid; gap: 8px; }
.admin-side a { padding: 14px 16px; border-radius: 8px; color: var(--text-soft); font-weight: 800; }
.admin-side a:hover, .admin-side a.is-active { background: rgba(214,160,8,.14); color: var(--gold-2); }
.admin-content { padding: 34px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 22px; }
.metric-grid article, .admin-card { border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, rgba(25,28,32,.92), rgba(9,11,14,.96)); padding: 22px; box-shadow: var(--shadow); }
.metric-grid span { color: var(--muted); }
.metric-grid strong { display: block; color: var(--gold-2); font-size: 30px; margin: 8px 0 4px; }
.metric-grid small { color: var(--text-soft); }
.admin-table { display: grid; gap: 8px; }
.table-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr .7fr; gap: 14px; padding: 14px; border-radius: 8px; background: rgba(255,255,255,.04); color: var(--text-soft); }
.table-head { color: #fff; font-weight: 900; text-transform: uppercase; font-size: 12px; }
.table-row strong { color: var(--success); }

/* MOBILE */

@media (max-width: 1600px) {
  .topbar { grid-template-columns: 264px auto minmax(240px, 410px) auto; gap: 16px; }
  .brand img { width: 230px; }
  .desktop-nav { gap: 16px; font-size: 14px; }
  .main-layout { grid-template-columns: 240px 1fr; }
  .hero-grid { grid-template-columns: 1fr 420px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1280px) {
  .topbar { grid-template-columns: 238px 1fr auto; }
  .desktop-nav { display: none; }
  .searchbar { max-width: 520px; justify-self: stretch; }
  .top-actions { gap: 14px; }
  .main-layout { grid-template-columns: 214px 1fr; padding: 0 14px 14px; }
  .sidebar { margin-left: -14px; }
  .sidebar-inner { padding-left: calc(14px + 12px); }
  .hero-grid { grid-template-columns: 1fr; }
  .promo-stack { grid-template-columns: repeat(3, 1fr); }
  .benefit-strip { grid-template-columns: repeat(3, 1fr); }
  .benefit-strip article { border-bottom: 1px solid rgba(255,255,255,.08); }
  .product-detail { flex-direction: column; }
  .detail-info { flex: 1 1 auto; }
}

/* Desktop only: no se incluyen reglas móviles en esta versión. */
body { min-width: 1180px; }
body[data-page="admin"] { min-width: 0; }

/* ══════════════════════════════════════════════════════════ */
/* ADMIN PANEL — Layout, Sidebar, Tables, Forms, Cards       */
/* ══════════════════════════════════════════════════════════ */

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ── Admin Sidebar ──────────────────────────────────────── */
.admin-side {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-side > a:first-child { margin-bottom: 20px; }
.admin-side > a:first-child img { height: 38px; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.admin-side nav a:hover { background: var(--surface-soft); color: var(--text); }
.admin-side nav a.is-active {
  background: linear-gradient(135deg, rgba(214,160,8,.18), rgba(214,160,8,.06));
  color: var(--gold-2);
  font-weight: 600;
}

/* ── Admin Content ──────────────────────────────────────── */
.admin-content {
  padding: 32px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}

/* ── Admin Header ──────────────────────────────────────── */
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.admin-head h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 1px;
}

/* ── Metric Cards Grid ─────────────────────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.metric-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric-grid article span { color: var(--muted); }
.metric-grid article strong {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold-2);
}
.metric-grid article small {
  font-size: 13px;
  color: var(--text-soft);
}

/* ── Admin Card ────────────────────────────────────────── */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

/* ── Admin Toolbar ─────────────────────────────────────── */
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-toolbar .search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px 10px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  position: relative;
}
.admin-toolbar .search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.admin-toolbar .search-wrap .icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.admin-toolbar .search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
}
.admin-toolbar select {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  min-width: 140px;
}
.admin-toolbar select option { background: var(--bg-2); }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-md); font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: all .15s; text-transform: uppercase; letter-spacing: .5px; }
.btn--primary { background: var(--gold); color: #000; }
.btn--primary:hover { background: var(--gold-2); }
.btn--sm { padding: 6px 12px; font-size: 12px; }
.btn--secondary { background: transparent; border: 1px solid var(--gold); color: var(--gold-2); }
.btn--secondary:hover { background: rgba(214,160,8,.12); }
.btn--outline { background: transparent; border: 1px solid var(--border); color: var(--text-soft); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--danger { background: rgba(255,92,92,.15); color: var(--danger); border: 1px solid rgba(255,92,92,.25); }
.btn--danger:hover { background: rgba(255,92,92,.25); }
.btn--ghost { background: transparent; color: var(--muted); padding: 6px 10px; }
.btn--ghost:hover { color: var(--text); }

/* ── Admin Table ───────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 14px;
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.admin-table .col-thumb { width: 56px; }
.admin-table .col-thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.admin-table .col-actions { width: 100px; text-align: right; }
.admin-table .col-actions .action-group { display: flex; gap: 4px; justify-content: flex-end; }

/* ── Status Badges ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge--active { background: rgba(57,217,138,.12); color: var(--success); }
.badge--draft { background: rgba(141,146,153,.12); color: var(--muted); }
.badge--inactive { background: rgba(255,92,92,.12); color: var(--danger); }
.badge--out_of_stock { background: rgba(255,165,0,.12); color: #ffa500; }
.badge--preorder { background: rgba(100,149,237,.12); color: #6495ed; }

/* ── Pagination ────────────────────────────────────────── */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-top: 8px;
}
.admin-pagination .page-info {
  font-size: 13px;
  color: var(--muted);
}
.admin-pagination .page-links {
  display: flex;
  gap: 4px;
}
.admin-pagination .page-links a,
.admin-pagination .page-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all .15s;
}
.admin-pagination .page-links a:hover { border-color: var(--gold); color: var(--gold-2); }
.admin-pagination .page-links .is-current {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 700;
}

/* ── Admin Form ────────────────────────────────────────── */
.admin-form { max-width: 860px; }
.admin-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.admin-form .form-row--full { grid-template-columns: 1fr; }
.admin-form .form-row--triple { grid-template-columns: 1fr 1fr 1fr; }
.admin-form .form-group { display: flex; flex-direction: column; gap: 6px; }
.admin-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  transition: border-color .15s;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.admin-form textarea { min-height: 100px; resize: vertical; }
.admin-form .form-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.admin-form .form-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

/* ── Image Upload Area ─────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s;
}
.upload-area:hover { border-color: var(--gold); }
.upload-area .icon-svg { width: 36px; height: 36px; margin-bottom: 8px; }
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.thumbnail-grid .thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.thumbnail-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbnail-grid .thumb .thumb-actions {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity .2s;
}
.thumbnail-grid .thumb:hover .thumb-actions { opacity: 1; }

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state .icon-svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { margin: 0 0 8px; color: var(--text-soft); font-size: 18px; }
.empty-state p { margin: 0 0 20px; font-size: 14px; }

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px); z-index: 900;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.admin-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  width: 90%; max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--surface, #111418);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius, 16px);
  z-index: 950; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.admin-modal.is-open {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.admin-modal form {
  display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0;
}
.admin-modal__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.admin-modal__header h2 { margin: 0; font-size: 18px; font-weight: 600; }
.admin-modal__body { padding: 24px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.admin-modal__footer {
  padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: flex-end; gap: 12px;
  flex-shrink: 0;
}

/* ── Form Row (side-by-side) ──────────────────────────── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-row > * { min-width: 0; }
.admin-form-col-side .form-row { gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Form Check ───────────────────────────────────────── */
.form-check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; color: var(--text-soft, #c0c0c0);
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--gold, #d6a008); cursor: pointer;
}

/* ── Form Hint ────────────────────────────────────────── */
.form-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--muted, #8d9299); }

/* ── Icon Picker ─────────────────────────────────────── */
.icon-picker { position: relative; }
.icon-picker__trigger {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  text-align: left; width: 100%;
}
.icon-picker__preview svg { width: 24px; height: 24px; flex-shrink: 0; }
.icon-picker__label { flex: 1; }
.icon-picker__dropdown {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  max-height: 260px; overflow-y: auto; z-index: 200;
  background: var(--card-bg, #0d1117); border: 1px solid var(--border, #1e293b);
  border-radius: 10px; margin-top: 4px; padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.icon-picker__dropdown.is-open { display: block; }
.icon-picker__option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: none; background: transparent;
  color: var(--text-soft, #c0c0c0); cursor: pointer; border-radius: 6px;
  font-size: 13px; text-align: left; transition: background .15s;
}
.icon-picker__option:hover { background: rgba(255,255,255,.06); }
.icon-picker__option.is-selected { background: rgba(214,160,8,.12); color: var(--gold, #d6a008); }

/* ═══════════════════════════════════════════════════════
   PREMIUM ADMIN FORM — Product Edit Layout
   ═══════════════════════════════════════════════════════ */
.admin-form-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-top: 28px;
}
.admin-form-grid > * {
  min-width: 0;
}
@media (max-width: 1024px) {
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* ── Section Card — Glass Container ──────────── */
.admin-section-card {
  background: linear-gradient(168deg, rgba(18,20,25,0.95), rgba(10,12,16,0.98));
  border: 1px solid rgba(214,160,8,.1);
  border-top: 2px solid rgba(214,160,8,.2);
  border-radius: 16px;
  padding: 0;
  margin: 0 0 24px 0;
  min-width: 0;
  box-shadow:
    0 4px 24px rgba(0,0,0,.25),
    0 1px 0 rgba(214,160,8,.05) inset;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.admin-section-card:hover {
  border-color: rgba(214,160,8,.18);
  border-top-color: rgba(214,160,8,.35);
  box-shadow:
    0 6px 28px rgba(0,0,0,.3),
    0 1px 0 rgba(214,160,8,.08) inset;
}

/* ── Section Title — Gold Accent Header ──────── */
.admin-section-title {
  display: block;
  width: 100%;
  padding: 16px 24px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(214,160,8,.75);
  border-bottom: 1px solid rgba(214,160,8,.1);
  background: rgba(214,160,8,.03);
  border-radius: 16px 16px 0 0;
  box-sizing: border-box;
  position: relative;
}

/* ── Card Content ────────────────────────────── */
.admin-card-content {
  padding: 28px 24px;
}

/* ── Card Divider ────────────────────────────── */
.card-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,160,8,.12), transparent);
  margin: 24px 0;
}

/* ── Required Indicator ──────────────────────── */
.required {
  color: #ff5c5c;
  margin-left: 3px;
  font-weight: 700;
}

/* ── Form Groups & Labels ────────────────────── */
.admin-section-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-section-card label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(240,241,243,.7);
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ── Premium Inputs ──────────────────────────── */
.admin-section-card input[type="text"],
.admin-section-card input[type="number"],
.admin-section-card input[type="url"],
.admin-section-card input[type="email"],
.admin-section-card input[type="search"],
.admin-section-card input[type="file"],
.admin-section-card select,
.admin-section-card textarea {
  padding: 12px 16px;
  background: rgba(5,7,10,.6);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #f0f1f3;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.admin-section-card input:focus,
.admin-section-card select:focus,
.admin-section-card textarea:focus {
  outline: none;
  border-color: rgba(214,160,8,.5);
  box-shadow: 0 0 0 3px rgba(214,160,8,.1);
  background: rgba(8,10,14,.8);
}
.admin-section-card input::placeholder,
.admin-section-card textarea::placeholder {
  color: rgba(141,146,153,.45);
  font-weight: 400;
}
.admin-section-card textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* ── Custom Select (with gold arrow) ─────────── */
.custom-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23DDB522%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px top 50%;
  background-size: 10px auto;
  padding-right: 38px;
  cursor: pointer;
}
.status-select {
  font-weight: 700;
  color: var(--gold);
}

/* ── Input with Prefix (e.g., $ icon) ────────── */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon .input-prefix {
  position: absolute;
  left: 16px;
  color: rgba(214,160,8,.6);
  font-weight: 700;
  pointer-events: none;
  font-size: 15px;
}
.input-with-icon input {
  padding-left: 34px !important;
  width: 100%;
}

/* ── Toggle Switch — Premium ─────────────────── */
.switch-group {
  display: flex;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.switch-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.switch-title {
  color: #f0f1f3;
  font-weight: 700;
  font-size: 14px;
}
.switch-desc {
  color: rgba(141,146,153,.7);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(5,7,10,.6);
  border: 1px solid rgba(255,255,255,.1);
  transition: .3s ease;
  border-radius: 26px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: rgba(141,146,153,.6);
  transition: .3s ease;
  border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: rgba(214,160,8,.15);
  border-color: rgba(214,160,8,.5);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(22px);
  background-color: var(--gold);
  box-shadow: 0 0 8px rgba(214,160,8,.4);
}

/* ── Upload Area — Premium Dashed Zone ────────── */
.upload-area {
  background: rgba(214,160,8,.02);
  border: 2px dashed rgba(214,160,8,.15);
  border-radius: 14px;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 44px 24px;
  cursor: pointer;
}
.upload-area:hover {
  background: rgba(214,160,8,.05);
  border-color: rgba(214,160,8,.4);
  box-shadow: 0 0 24px rgba(214,160,8,.06) inset;
}
.upload-icon-wrapper {
  background: linear-gradient(135deg, rgba(18,20,25,.9), rgba(10,12,16,.95));
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214,160,8,.2);
  color: var(--gold);
  box-shadow:
    0 4px 16px rgba(0,0,0,.3),
    0 0 0 4px rgba(214,160,8,.05);
  transition: all .3s ease;
}
.upload-area:hover .upload-icon-wrapper {
  border-color: rgba(214,160,8,.4);
  box-shadow:
    0 4px 20px rgba(0,0,0,.3),
    0 0 0 6px rgba(214,160,8,.08);
  transform: scale(1.05);
}
.upload-area .icon-svg {
  width: 26px; height: 26px; margin: 0;
}
.upload-text h4 {
  margin: 0 0 4px; color: #f0f1f3; font-size: 15px; font-weight: 700;
}
.upload-text p {
  margin: 0; color: rgba(141,146,153,.6); font-size: 12px;
}

/* ── Thumbnails ──────────────────────────────── */
.thumbnail-grid .thumb.is-primary {
  border-color: rgba(214,160,8,.5);
  box-shadow: 0 0 0 3px rgba(214,160,8,.15);
}
.badge-primary {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--gold), #e6b800);
  color: #000;
  font-size: 9px;
  padding: 3px 10px;
  border-radius: 5px;
  font-weight: 800;
  letter-spacing: .6px;
  box-shadow: 0 2px 8px rgba(214,160,8,.3);
}

/* ── Spec Row (dynamic key-value) ────────────── */
.spec-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.spec-row input {
  flex: 1;
}
.btn-remove-spec {
  background: rgba(255,92,92,.06) !important;
  border: 1px solid rgba(255,92,92,.2) !important;
  color: #ff5c5c !important;
  border-radius: 10px !important;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.btn-remove-spec:hover {
  background: rgba(255,92,92,.12) !important;
  border-color: rgba(255,92,92,.4) !important;
  transform: scale(1.05);
}



/* ==========================================================================
   PRODUCTS DATA TABLE (PREMIUM)
   ========================================================================== */
.premium-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--surface);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.premium-search {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border-radius: 8px;
    padding: 0 16px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.premium-search:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(221, 181, 34, 0.2);
}

.premium-search input {
    background: transparent;
    border: none;
    color: var(--text);
    padding: 12px 10px;
    width: 100%;
    outline: none;
}

.premium-search .icon-svg {
    color: var(--muted);
}

.premium-select-wrap {
    position: relative;
    min-width: 160px;
}

.premium-select-wrap .select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
}

.premium-select {
    width: 100%;
    appearance: none;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 36px 12px 16px;
    color: var(--text);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.premium-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(221, 181, 34, 0.2);
}

.premium-filter-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid var(--gold);
    color: var(--gold);
    background: rgba(221, 181, 34, 0.05);
    font-weight: 600;
    transition: all 0.2s;
    height: auto;
}

.premium-filter-btn:hover {
    background: var(--gold);
    color: #111;
}

/* ═══════════════════════════════════════════════════
   TABLE CARD — Premium Glass Container
   ═══════════════════════════════════════════════════ */
.premium-table-card {
    background: linear-gradient(168deg, rgba(18,20,25,0.95) 0%, rgba(10,12,16,0.98) 100%);
    border-radius: 16px;
    border: 1px solid rgba(214,160,8,.12);
    box-shadow:
        0 8px 32px rgba(0,0,0,.35),
        0 1px 0 rgba(214,160,8,.06) inset;
    overflow-x: auto;
    position: relative;
}
.premium-table-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214,160,8,.3), transparent);
    z-index: 1;
}

/* ── Data Table ────────────────────────────────── */
.premium-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

/* ── Header ────────────────────────────────────── */
.premium-data-table thead {
    position: relative;
}
.premium-data-table th {
    background: rgba(214,160,8,.04);
    backdrop-filter: blur(8px);
    padding: 10px 12px;
    text-align: left;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(214,160,8,.7);
    border-bottom: 1px solid rgba(214,160,8,.12);
    font-weight: 700;
    white-space: nowrap;
}
.premium-data-table th:first-child { padding-left: 16px; }
.premium-data-table th:last-child { padding-right: 16px; text-align: center; }

/* ── Rows ──────────────────────────────────────── */
.premium-data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    vertical-align: middle;
    transition: background .2s ease;
}
.premium-data-table td:first-child { padding-left: 16px; }
.premium-data-table td:last-child { padding-right: 16px; }

.premium-data-table tbody tr {
    transition: all .25s ease;
}
.premium-data-table td:first-child {
    position: relative;
}
.premium-data-table tbody tr td:first-child::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: scaleY(0.4);
    transition: opacity .25s ease, transform .25s ease;
}
.premium-data-table tbody tr:hover td:first-child::before {
    opacity: 1;
    transform: scaleY(0.7);
}
.premium-data-table tbody tr:hover td {
    background: linear-gradient(90deg, rgba(214,160,8,.06), rgba(214,160,8,.02) 40%, transparent);
}
.premium-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Thumbnail ─────────────────────────────────── */
.premium-data-table .col-thumb {
    width: 72px;
}
.premium-data-table td.col-thumb img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid rgba(214,160,8,.2);
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    display: block;
}
.premium-data-table tbody tr:hover td.col-thumb img {
    border-color: rgba(214,160,8,.5);
    box-shadow: 0 4px 16px rgba(214,160,8,.15);
    transform: scale(1.08);
}

/* ── Product Name ──────────────────────────────── */
.premium-data-table td strong {
    display: block;
    font-weight: 700;
    color: #f0f1f3;
    font-size: 14px;
    letter-spacing: .1px;
    line-height: 1.3;
}
.premium-data-table tbody tr:hover td strong {
    color: #fff;
}
.premium-data-table td small {
    font-size: 12px;
    color: rgba(141,146,153,.7);
    letter-spacing: .2px;
}

/* ── SKU Code ──────────────────────────────────── */
.premium-data-table td code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: rgba(214,160,8,.08);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    border: 1px solid rgba(214,160,8,.12);
    letter-spacing: .5px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   STATUS BADGES — Premium Pill Design
   ═══════════════════════════════════════════════════ */
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    border: 1px solid transparent;
    transition: all .2s ease;
}
.premium-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Active */
.premium-badge--active {
    background: rgba(57,217,138,.08);
    color: #39d98a;
    border-color: rgba(57,217,138,.15);
}
.premium-badge--active::before { background: #39d98a; box-shadow: 0 0 6px rgba(57,217,138,.5); }

/* Inactive */
.premium-badge--inactive {
    background: rgba(255,92,92,.08);
    color: #ff5c5c;
    border-color: rgba(255,92,92,.15);
}
.premium-badge--inactive::before { background: #ff5c5c; box-shadow: 0 0 6px rgba(255,92,92,.5); }

/* Draft */
.premium-badge--draft {
    background: rgba(255,255,255,.05);
    color: rgba(141,146,153,.9);
    border-color: rgba(255,255,255,.08);
}
.premium-badge--draft::before { background: #8d9299; }

/* Out of Stock */
.premium-badge--out_of_stock {
    background: rgba(255,165,0,.08);
    color: #ffa500;
    border-color: rgba(255,165,0,.15);
}
.premium-badge--out_of_stock::before { background: #ffa500; box-shadow: 0 0 6px rgba(255,165,0,.5); }

/* Preorder */
.premium-badge--preorder {
    background: rgba(147,51,234,.08);
    color: #a855f7;
    border-color: rgba(147,51,234,.15);
}
.premium-badge--preorder::before { background: #a855f7; box-shadow: 0 0 6px rgba(147,51,234,.5); }

/* ── Order Status Badges ──────────────────────── */
.premium-badge--pending {
    background: rgba(255,165,0,.08);
    color: #ffa500;
    border-color: rgba(255,165,0,.15);
}
.premium-badge--pending::before { background: #ffa500; }

.premium-badge--confirmed {
    background: rgba(214,160,8,.08);
    color: var(--gold-2);
    border-color: rgba(214,160,8,.15);
}
.premium-badge--confirmed::before { background: var(--gold-2); }

.premium-badge--processing {
    background: rgba(14,165,233,.08);
    color: #0ea5e9;
    border-color: rgba(14,165,233,.15);
}
.premium-badge--processing::before { background: #0ea5e9; box-shadow: 0 0 6px rgba(14,165,233,.5); }

.premium-badge--shipped {
    background: rgba(57,217,138,.08);
    color: #39d98a;
    border-color: rgba(57,217,138,.15);
}
.premium-badge--shipped::before { background: #39d98a; }

.premium-badge--delivered {
    background: rgba(57,217,138,.08);
    color: #39d98a;
    border-color: rgba(57,217,138,.15);
}
.premium-badge--delivered::before { background: #39d98a; box-shadow: 0 0 6px rgba(57,217,138,.5); }

.premium-badge--cancelled {
    background: rgba(255,92,92,.08);
    color: #ff5c5c;
    border-color: rgba(255,92,92,.15);
}
.premium-badge--cancelled::before { background: #ff5c5c; }

.premium-badge--returned {
    background: rgba(255,92,92,.08);
    color: #ff5c5c;
    border-color: rgba(255,92,92,.15);
}
.premium-badge--returned::before { background: #ff5c5c; }

/* ═══════════════════════════════════════════════════
   ACTION BUTTONS — Premium Mini Controls
   ═══════════════════════════════════════════════════ */
.premium-action-group {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.premium-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(141,146,153,.8);
    transition: all .25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.premium-action-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, currentColor, transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
}
.premium-action-btn:hover::after { opacity: .06; }

.premium-action-btn:hover {
    background: rgba(214,160,8,.08);
    border-color: rgba(214,160,8,.35);
    color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214,160,8,.1);
}

.premium-action-btn.delete-btn:hover {
    background: rgba(255,92,92,.08);
    border-color: rgba(255,92,92,.35);
    color: #ff5c5c;
    box-shadow: 0 4px 12px rgba(255,92,92,.1);
}

.premium-action-btn .icon-svg {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════════
   FOOTER — Desktop
   ══════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid rgba(214,160,8,.2);
  background: rgba(5,7,9,.96);
  padding: 48px 32px 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 32px;
}
.footer-logo { width: 200px; margin-bottom: 12px; }
.footer-tagline { color: var(--muted); font-size: 14px; line-height: 1.5; }
.footer-col h4 {
  margin: 0 0 16px;
  color: var(--gold-2);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .6px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ══════════════════════════════════════════════════
   GLOBAL ANTI-OVERFLOW
   ══════════════════════════════════════════════════ */
html {
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — Medium Desktop (1024px → 1440px)
   ══════════════════════════════════════════════════ */
@media (max-width: 1440px) {
  .topbar { grid-template-columns: 236px auto 1fr auto; gap: 14px; padding: 0 16px; }
  .brand img { width: 210px; }
  .desktop-nav { gap: 14px; font-size: 13px; }
  .main-layout { grid-template-columns: 220px 1fr; padding: 0 16px 24px; }
  .sidebar { margin-left: -16px; }
  .sidebar-inner { padding-left: calc(16px + 12px); }
  .hero-grid { grid-template-columns: 1fr minmax(220px, 300px); }
  .hero-card { min-height: 420px; }
  .hero-copy { padding: 48px 0 32px 36px; }
  .hero-copy h1 { font-size: clamp(36px, 3.5vw, 60px); }
  .benefit-strip strong { font-size: 12px; }
  .benefit-strip small { font-size: 11px; }
}

@media (max-width: 1200px) {
  .brand img { width: 190px; }
  .desktop-nav { gap: 10px; font-size: 12px; }
  .desktop-nav a { padding: 28px 0 25px; }
  .topbar { grid-template-columns: 212px auto 1fr auto; gap: 10px; padding: 0 12px; min-height: 76px; }
  .searchbar { height: 40px; min-width: 140px; }
  .main-layout { grid-template-columns: 200px 1fr; gap: 0 12px; padding: 0 12px 24px; }
  .sidebar { margin-left: -12px; }
  .sidebar-inner { padding-left: calc(12px + 12px); }
  .hero-grid { grid-template-columns: 1fr minmax(180px, 260px); }
  .hero-card { min-height: 360px; }
  .hero-copy p:not(.eyebrow) { font-size: 16px; }
  .benefit-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit-strip article:nth-child(3) { border-right: 0; }
  .benefit-strip article:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.09); }
  .bottom-banners { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .promo-stack { display: grid; grid-template-columns: repeat(3, 1fr); }
  .mini-promo { min-height: 120px; }
  .benefit-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ═══════════════════════════════════════════════════════
   CATALOG — Product Grid & Cards
   ═══════════════════════════════════════════════════════ */

.catalog-header {
  display: flex; align-items: baseline; gap: 24px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.catalog-header h1 {
  font-family: var(--heading-font); font-size: 1.8rem; font-weight: 700;
  color: var(--text); margin: 0;
}
.catalog-count {
  font-size: 13px; color: var(--muted); background: rgba(255,255,255,.06);
  padding: 4px 12px; border-radius: 20px;
}
.catalog-desc {
  width: 100%; font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0;
}

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  border-color: var(--gold-2);
}
.product-card__img {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.product-card__img img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform .3s;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
}
.product-card__placeholder .icon-svg { width: 48px; height: 48px; opacity: .2; }
.product-card__badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold-2); color: #000; font-size: 11px; font-weight: 700;
  text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
}
.product-card__discount {
  position: absolute; top: 8px; right: 8px;
  background: rgba(220,40,40,.9); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 8px; border-radius: 4px; z-index: 2;
  letter-spacing: .3px;
}
.product-card__info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-card__brand {
  display: block; font-size: 11px; text-transform: uppercase;
  color: var(--gold-2); letter-spacing: .5px; margin-bottom: 4px;
  min-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card__info h3 {
  font-size: 14px; font-weight: 600; margin: 0 0 8px;
  line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
  line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.product-card__price { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.product-card__price del { font-size: 13px; color: var(--muted); }
.product-card__price strong { font-size: 18px; color: var(--gold-2); font-weight: 800; }

/* Category sidebar active state */
.category-item.is-active { color: var(--gold-2); }
.category-item.is-active strong { color: var(--gold-2); }
.category-child-item.is-active {
  color: var(--gold-2); font-weight: 600;
}

/* ═══════════════════════════════════════════════
   PRODUCT DETAIL — ACCORDION GRID (50/50)
   ═══════════════════════════════════════════════ */
.detail-accordion-grid {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 768px) {
  .detail-accordion-grid {
    flex-direction: column;
  }
}
.detail-accordion-grid > .accordion-item {
  flex: 1 1 calc(50% - 8px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(214,160,8,.2);
  background: rgba(12,14,17,.85);
}
.detail-accordion-grid > .accordion-item--full {
  flex: 1 1 100%;
}

/* Legacy single-column accordion (fallback) */
.detail-accordion {
  margin-top: 32px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(214,160,8,.2);
  background: rgba(12,14,17,.85);
}

.detail-accordion > .accordion-item {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.detail-accordion > .accordion-item:last-child { border-bottom: 0; }
.detail-accordion-grid > .accordion-item { border-bottom: 0; }

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease;
}
.accordion-header:hover { background: rgba(214,160,8,.06); }
.accordion-header .icon-svg { color: var(--gold-2); flex: none; }

.accordion-chevron {
  margin-left: auto;
  color: var(--muted);
  transition: transform .25s ease;
  font-size: 12px;
}
.accordion-item.is-open .accordion-chevron { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 20px;
}
.accordion-item.is-open .accordion-body {
  max-height: 1200px;
  padding: 0 20px 18px;
}

.accordion-content {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table tr { border-bottom: 1px solid rgba(255,255,255,.05); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left;
  padding: 10px 16px 10px 0;
  color: var(--gold-2);
  font-weight: 700;
  width: 38%;
  vertical-align: top;
}
.spec-table td {
  padding: 10px 0;
  color: #d7d9dd;
}
.spec-table tr:nth-child(even) {
  background: rgba(255,255,255,.02);
}

/* Video Embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ═══════════════════════════════════════════════
   SIZE SELECTOR — Premium Pill Buttons
   ═══════════════════════════════════════════════ */
.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-pill {
  min-width: 48px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #d7d9dd;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.size-pill:hover:not(.is-disabled) {
  border-color: rgba(214,160,8,.5);
  background: rgba(214,160,8,.08);
  color: var(--gold-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(214,160,8,.1);
}
.size-pill.is-active {
  border-color: var(--gold-2);
  background: rgba(214,160,8,.15);
  color: var(--gold-2);
  box-shadow: 0 0 0 2px rgba(214,160,8,.2);
}
.size-pill.is-disabled {
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Search Suggest Dropdown ──────────────────────────────── */
.search-suggest-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(20,20,22,.97);
  border: 1px solid rgba(214,160,8,.15);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  max-height: 420px;
  overflow-y: auto;
  backdrop-filter: blur(12px);
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover,
.suggest-item.is-highlighted {
  background: rgba(214,160,8,.08);
}
.suggest-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  flex-shrink: 0;
}
.suggest-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  flex-shrink: 0;
  display: block;
}
.suggest-text {
  flex: 1;
  min-width: 0;
}
.suggest-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.suggest-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   PRODUCT IMAGE — Fondo blanco + contain completo
   ═══════════════════════════════════════════════ */

/* Tarjeta catálogo — refuerzo final */
.product-image,
.product-card__img {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}
.product-image img,
.product-card__img img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  filter: none !important;
  display: block !important;
}

/* Detalle de producto */
.detail-gallery {
  background: #fff !important;
}
.detail-gallery::before { display: none !important; }
.detail-gallery img {
  filter: none !important;
}
.gallery-main {
  background: #fff !important;
  border-radius: 12px;
}
#gallery-main-img {
  object-fit: contain !important;
}

/* Drawer / carrito */
.drawer-item img,
.cart-line img {
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  object-fit: contain !important;
}

/* Admin thumbnails */
.thumbnail-grid .thumb {
  background: #fff;
}
.thumbnail-grid .thumb img {
  object-fit: contain !important;
}

/* ═══════════════════════════════════════════════
   SHIPPING STICKER — Circular overlay on product image
   ═══════════════════════════════════════════════ */
.shipping-sticker {
  position: absolute !important;
  bottom: 6px;
  left: 6px;
  z-index: 3;
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  object-fit: contain !important;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  border-radius: 50%;
  background: transparent !important;
}

/* ═══════════════════════════════════════════════════════
   FLOATING BUTTONS — WhatsApp + Location
   ═══════════════════════════════════════════════════════ */
.floating-buttons {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 4px 20px rgba(0,0,0,.35),
    0 0 0 3px rgba(255,255,255,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: floatPulse 3s ease-in-out infinite;
}
.float-btn:hover {
  transform: scale(1.12);
  box-shadow:
    0 6px 28px rgba(0,0,0,.45),
    0 0 0 4px rgba(255,255,255,.1);
}
.float-btn--whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}
.float-btn--location {
  background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
}
@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.float-btn:hover { animation: none; }

/* ═══════════════════════════════════════════════════════
   SIZE FILTER — Talla filter bar for product grids
   ═══════════════════════════════════════════════════════ */
.size-filter {
  margin-bottom: 18px;
}
.size-filter__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(214,160,8,.35);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(214,160,8,.08), rgba(214,160,8,.02));
  color: var(--gold-2);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.size-filter__toggle:hover {
  border-color: rgba(214,160,8,.55);
  background: linear-gradient(135deg, rgba(214,160,8,.14), rgba(214,160,8,.04));
  box-shadow: 0 4px 16px rgba(214,160,8,.12);
}
.size-filter__toggle .icon-svg {
  color: var(--gold-2);
}
.size-filter__chevron {
  transition: transform .25s ease;
  color: var(--muted) !important;
}
.size-filter.is-open .size-filter__chevron {
  transform: rotate(90deg);
}
.size-filter__badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #000;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}
.size-filter__panel {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(20,23,27,.95), rgba(10,12,15,.98));
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  animation: sizeFilterSlideIn .25s ease;
}
.size-filter.is-open .size-filter__panel {
  display: flex;
}
@keyframes sizeFilterSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Size pills */
.size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}
.size-pill:hover {
  border-color: rgba(214,160,8,.4);
  color: var(--gold-2);
  background: rgba(214,160,8,.08);
}
.size-pill.is-active {
  border-color: var(--gold-2);
  background: linear-gradient(135deg, rgba(214,160,8,.2), rgba(214,160,8,.08));
  color: var(--gold-2);
  box-shadow: 0 0 12px rgba(214,160,8,.15);
}

/* Product card size tags */
.product-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.product-card__size-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(214,160,8,.1);
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Hidden card when filtered */
.product-card.size-hidden,
.mobile-product-card.size-hidden {
  display: none !important;
}

/* No results message for active filter */
.size-filter-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.size-filter-empty svg {
  width: 40px;
  height: 40px;
  opacity: .3;
  margin-bottom: 12px;
}


/* ==========================================================================
   Premium Shipping Badge
   ========================================================================== */
.shipping-badge-premium {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(214, 160, 8, 0.4);
    padding: 4px 10px 4px 6px;
    border-radius: 30px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    color: var(--gold);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, border-color 0.3s ease;
    animation: shippingPulse 3s infinite alternate;
}

@keyframes shippingPulse {
    0% { box-shadow: 0 4px 12px rgba(0,0,0,0.5); border-color: rgba(214, 160, 8, 0.4); }
    100% { box-shadow: 0 4px 16px rgba(214, 160, 8, 0.2); border-color: rgba(214, 160, 8, 0.8); }
}

.shipping-badge-premium:hover {
    transform: scale(1.05) translateY(-2px);
    background: rgba(20, 20, 20, 0.95);
    border-color: var(--gold);
    animation-play-state: paused;
}

.shipping-badge-premium svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    background: rgba(214, 160, 8, 0.1);
    padding: 3px;
    border-radius: 50%;
}

.shipping-badge-premium .sb-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.shipping-badge-premium .sb-text span {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bbb;
}

.shipping-badge-premium .sb-text strong {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}
