/* ==========================================================
   DIGITAL WAVE — PREMIUM UI/UX TRANSFORMATION
   Mobile-first · Apple/Samsung/Amazon inspired
   Breakpoints: 320 · 480 · 576 · 768 · 992 · 1200 · 1400
   ========================================================== */

/* ── CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Brand */
  --primary:        #0071e3;
  --primary-dark:   #0058b0;
  --primary-light:  #e8f1fb;
  --primary-glow:   rgba(0,113,227,.18);
  --accent:         #ff6b00;
  --accent-dark:    #d95800;
  --success:        #30d158;
  --danger:         #ff3b30;
  --warning:        #ff9f0a;
  --info:           #32ade6;

  /* Neutrals */
  --dark:           #1d1d1f;
  --dark-2:         #2c2c2e;
  --dark-3:         #3a3a3c;
  --gray-6:         #636366;
  --gray-5:         #8e8e93;
  --gray-4:         #aeaeb2;
  --gray-3:         #c7c7cc;
  --gray-2:         #e5e5ea;
  --gray-1:         #f2f2f7;
  --white:          #ffffff;

  /* Semantic */
  --bg:             #ffffff;
  --bg-secondary:   #f2f2f7;
  --bg-card:        #ffffff;
  --bg-input:       #ffffff;
  --border:         #e5e5ea;
  --border-strong:  #aeaeb2;
  --text:           #1d1d1f;
  --text-secondary: #636366;
  --text-tertiary:  #8e8e93;
  --text-on-dark:   rgba(255,255,255,.92);
  --text-on-dark-2: rgba(255,255,255,.65);

  /* Elevation */
  --shadow-xs:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-md:  0 8px 24px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.14), 0 8px 24px rgba(0,0,0,.08);
  --shadow-primary: 0 4px 20px rgba(0,113,227,.28);

  /* Shape */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius:     12px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Motion */
  --ease:         cubic-bezier(.25,.46,.45,.94);
  --ease-bounce:  cubic-bezier(.34,1.56,.64,1);
  --ease-in:      cubic-bezier(.55,.055,.675,.19);
  --transition:   all .22s var(--ease);
  --transition-fast: all .14s var(--ease);

  /* Typography */
  --font:        'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   'SF Mono', 'Fira Code', monospace;

  /* Layout */
  --container-max: 1280px;
  --header-h: 64px;
  --nav-h: 46px;
  --topbar-h: 36px;
  --sidebar-w: 260px;
}

/* ── DARK THEME ────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #000000;
  --bg-secondary: #1c1c1e;
  --bg-card:      #1c1c1e;
  --bg-input:     #2c2c2e;
  --border:       #3a3a3c;
  --border-strong:#636366;
  --text:         #f5f5f7;
  --text-secondary:#8e8e93;
  --text-tertiary: #636366;
  --white:        #1c1c1e;
  --gray-1:       #2c2c2e;
  --gray-2:       #3a3a3c;
  --shadow:       0 4px 16px rgba(0,0,0,.4);
  --shadow-md:    0 8px 24px rgba(0,0,0,.5);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.6);
}

/* ── RESET ─────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── UTILITIES ─────────────────────────────────────────── */
.text-primary  { color: var(--primary) !important; }
.text-accent   { color: var(--accent) !important; }
.text-muted    { color: var(--text-secondary) !important; }
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--danger) !important; }
.bg-primary    { background: var(--primary) !important; }
.bg-dark       { background: var(--dark) !important; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.rounded { border-radius: var(--radius-sm); }
.rounded-full { border-radius: var(--radius-full); }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.p-0 { padding: 0; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ── CONTAINER ─────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
@media (min-width: 1400px) {
  .container { max-width: 1340px; padding: 0 2rem; }
}
@media (max-width: 576px) {
  .container { padding: 0 1rem; }
}
@media (max-width: 320px) {
  .container { padding: 0 .75rem; }
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,113,227,.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0) scale(.97); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,107,0,.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--dark-2);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--gray-1);
  border-color: var(--border-strong);
}

.btn-sm  { padding: .42rem 1rem; font-size: .82rem; }
.btn-lg  { padding: .85rem 2.25rem; font-size: 1rem; }
.btn-xl  { padding: 1rem 2.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-pill { border-radius: var(--radius-full); }

.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
.btn-icon.btn-icon-round { border-radius: 50%; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--dark);
  color: var(--text-on-dark-2);
  font-size: .78rem;
  padding: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar a { color: var(--text-on-dark-2); }
.topbar a:hover { color: #fff; }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.topbar-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.topbar-links i { font-size: .75rem; opacity: .75; }
.topbar-links span { opacity: .5; }

/* ── SITE HEADER ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
  height: var(--header-h);
  display: flex;
  align-items: center;
  width: 100%;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 20px rgba(0,0,0,.10);
}
.site-header.header-hidden { transform: translateY(-100%); }

[data-theme="dark"] .site-header {
  background: rgba(0,0,0,.82);
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(28,28,30,.96);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo:hover { color: var(--dark); opacity: .85; }
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, #0051a8 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,113,227,.3);
  flex-shrink: 0;
}
.logo span { color: var(--primary); }

/* Search */
.search-bar {
  position: relative;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
}
.search-bar form { display: flex; }
.search-bar input {
  flex: 1;
  padding: .58rem 1.1rem;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: .875rem;
  outline: none;
  background: var(--bg-input);
  color: var(--text);
  transition: var(--transition);
  min-width: 0;
}
.search-bar input::placeholder { color: var(--text-tertiary); }
.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.search-bar button {
  padding: .58rem 1.1rem;
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-size: .95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.search-bar button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* Mobile search trigger */
.search-trigger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.search-trigger:hover { background: var(--gray-1); color: var(--primary); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  cursor: pointer;
  padding: .4rem .55rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  color: var(--text);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.header-action:hover { background: var(--gray-1); color: var(--primary); }
.header-action i { font-size: 1.25rem; }
.header-action > span { font-size: .68rem; font-weight: 600; letter-spacing: .01em; }

.cart-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  min-width: 17px; height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 4px;
  border: 1.5px solid var(--bg);
  animation: badgePop .25s var(--ease-bounce);
}
@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── MAIN NAV ────────────────────────────────────────────── */
.main-nav {
  background: var(--dark);
  position: relative;
  z-index: 890;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}
.nav-links {
  display: flex;
  list-style: none;
  height: 100%;
  margin: 0;
}
.nav-links > li { position: relative; height: 100%; display: flex; align-items: center; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 0 1rem;
  color: rgba(255,255,255,.82);
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  height: 100%;
  position: relative;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  transition: left .2s var(--ease), right .2s var(--ease);
}
.nav-links > li > a:hover,
.nav-links > li.active > a {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.nav-links > li > a:hover::after,
.nav-links > li.active > a::after { left: 0; right: 0; }
.nav-links > li > a i.fa-chevron-down { font-size: .65rem; opacity: .7; }

/* Mega Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 640px;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  border-top: 2px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-links > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .875rem;
}
.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .875rem .75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text);
  transition: var(--transition);
}
.nav-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-dropdown-item .cat-icon {
  width: 52px; height: 52px;
  background: var(--gray-1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}
.nav-dropdown-item:hover .cat-icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,113,227,.3);
}
.nav-dropdown-item span { font-size: .8rem; font-weight: 600; }

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: .5rem;
  margin-right: .5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile-toggle:hover { background: rgba(255,255,255,.1); }

/* ── MOBILE NAVIGATION DRAWER ───────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-nav-drawer {
  position: fixed;
  top: 0; left: -100%;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-card);
  z-index: 1101;
  overflow-y: auto;
  transition: left .3s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.mobile-nav-drawer.open { left: 0; }

.mobile-drawer-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: .25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.mobile-drawer-close:hover { background: var(--gray-1); color: var(--danger); }

.mobile-nav-links { flex: 1; padding: .75rem 0; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1.25rem;
  color: var(--text);
  font-size: .95rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}
.mobile-nav-link i { width: 22px; text-align: center; font-size: 1rem; color: var(--primary); }
.mobile-nav-divider {
  height: 1px;
  background: var(--border);
  margin: .5rem 1.25rem;
}
.mobile-nav-category-header {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-tertiary);
  padding: .75rem 1.25rem .25rem;
}
.mobile-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex-shrink: 0;
}

/* ── MOBILE SEARCH DRAWER ───────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}
.search-overlay.open { opacity: 1; pointer-events: auto; }

.search-drawer {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg-card);
  z-index: 1201;
  padding: 1rem;
  transform: translateY(-100%);
  transition: transform .3s var(--ease);
  box-shadow: var(--shadow-lg);
}
.search-drawer.open { transform: translateY(0); }
.search-drawer-inner {
  display: flex;
  gap: .75rem;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}
.search-drawer form,
.search-drawer input {
  min-width: 0;
}
.search-drawer input {
  flex: 1;
  padding: .75rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  background: var(--bg-input);
  color: var(--text);
}
.search-drawer input:focus { border-color: var(--primary); }
.search-drawer-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: .4rem;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── HERO CAROUSEL ──────────────────────────────────────── */
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 520px;
  background: var(--dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem clamp(1.5rem, calc((100% - 1200px) / 2 + 2rem), 8rem);
  opacity: 0;
  transition: opacity .7s var(--ease);
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-1 { background: linear-gradient(135deg, #0d0d1a 0%, #0a2240 100%); }
.hero-slide-2 { background: linear-gradient(135deg, #0f1e3a 0%, #1a0a38 100%); }
.hero-slide-3 { background: linear-gradient(135deg, #1a0a1e 0%, #0a1e3a 100%); }

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content {
  flex: 0 1 480px;
  max-width: 480px;
  color: #fff;
  z-index: 1;
  padding-left: 0;
  padding-right: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: linear-gradient(90deg, var(--accent), #ff8533);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(255,107,0,.35);
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -.03em;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-btns .btn { min-width: 150px; }

.hero-image {
  flex: 0 0 460px;
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-image::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,113,227,.25) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-image img {
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.5));
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

.hero-indicators {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 2;
}
.hero-dot {
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: all .3s var(--ease);
  border: none;
  width: 6px;
}
.hero-dot.active { background: #fff; width: 22px; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .85rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.hero-arrow:hover { background: rgba(255,255,255,.22); transform: translateY(-50%) scale(1.08); }
.hero-arrow-prev { left: 1.25rem; }
.hero-arrow-next { right: 1.25rem; }

/* ── SECTIONS ───────────────────────────────────────────── */
.section     { padding: 4rem 0; }
.section-sm  { padding: 2.5rem 0; }
.section-lg  { padding: 5.5rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 2.75rem;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .5rem;
  letter-spacing: -.03em;
}
.section-title p {
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-title-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-title-line h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -.025em;
}
.section-title-line::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: var(--border);
}

/* ── CATEGORY CARDS ─────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-4px);
  color: var(--primary);
}
.category-card:hover::before { opacity: 1; }
.category-card .icon {
  width: 58px; height: 58px;
  background: var(--gray-1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--primary);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.category-card:hover .icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,113,227,.35);
  transform: scale(1.08);
}
.category-card h4 {
  font-size: .85rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  letter-spacing: -.01em;
}
.category-card p {
  font-size: .73rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* ── PRODUCT CARDS ──────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }
.products-grid-5 { grid-template-columns: repeat(5, 1fr); }

.product-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.product-card-badges {
  position: absolute;
  top: .75rem; left: .75rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  z-index: 2;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: .22rem .55rem;
  border-radius: var(--radius-full);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.badge-sale    { background: var(--danger);   color: #fff; }
.badge-new     { background: var(--success);  color: #fff; }
.badge-hot     { background: var(--accent);   color: #fff; }
.badge-feature { background: var(--primary);  color: #fff; }

.product-card-actions {
  position: absolute;
  top: .75rem; right: .75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 2;
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-1);
  cursor: pointer;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .875rem;
  transition: transform .45s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.07); }

.product-card-body {
  padding: .875rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-category {
  font-size: .7rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: .3rem;
}
.product-card-name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  letter-spacing: -.01em;
}
.product-card-name a { color: inherit; }
.product-card-name a:hover { color: var(--primary); }

.product-card-rating {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .5rem;
}
.stars { color: #ff9f0a; font-size: .8rem; letter-spacing: .5px; }
.rating-count { font-size: .75rem; color: var(--text-secondary); }

.product-card-price { margin-bottom: .875rem; }
.price-current {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
}
.price-original {
  font-size: .85rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-left: .35rem;
}
.price-discount {
  display: inline-block;
  background: rgba(255,59,48,.1);
  color: var(--danger);
  font-size: .68rem;
  font-weight: 800;
  padding: .15rem .4rem;
  border-radius: var(--radius-xs);
  margin-left: .35rem;
}

.product-card-footer {
  padding: 0 1rem .875rem;
  display: flex;
  gap: .5rem;
}
.btn-cart {
  flex: 1;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
  -webkit-tap-highlight-color: transparent;
}
.btn-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}
.btn-cart:active { transform: scale(.97); }
.btn-cart:disabled {
  background: var(--gray-3);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  color: var(--text-secondary);
}

.product-card-out-of-stock .product-card-img { opacity: .65; }

/* ── DEALS / TIMER ──────────────────────────────────────── */
.deals-section {
  background: linear-gradient(135deg, #0d0d1a 0%, #0a1e3a 60%, #1a0a38 100%);
  color: #fff;
  padding: 3.5rem 0;
}
.deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.deals-timer {
  display: flex;
  gap: .625rem;
  align-items: center;
}
.timer-block {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: .5rem .875rem;
  text-align: center;
  min-width: 58px;
  backdrop-filter: blur(8px);
}
.timer-block .num {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.timer-block .label {
  font-size: .62rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.timer-sep {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: .3; }
}

/* ── PROMO BANNER ───────────────────────────────────────── */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.promo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  padding: 2.25rem;
  color: #fff;
  transition: var(--transition);
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo-card-content { position: relative; z-index: 1; }
.promo-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.promo-card p { color: rgba(255,255,255,.78); margin-bottom: 1.25rem; font-size: .9rem; }

/* ── CATALOG LAYOUT ─────────────────────────────────────── */
.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  align-items: start;
}

.filter-sidebar {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 16px);
}
.filter-group {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-tertiary);
  margin-bottom: .875rem;
}
.filter-check { display: flex; flex-direction: column; gap: .5rem; }
.filter-check label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  cursor: pointer;
  padding: .2rem 0;
  transition: var(--transition-fast);
  color: var(--text);
}
.filter-check label:hover { color: var(--primary); }
.filter-check input[type=checkbox] { accent-color: var(--primary); width: 15px; height: 15px; }

.price-range-inputs { display: flex; gap: .5rem; align-items: center; }
.price-range-inputs input {
  width: 100%;
  padding: .42rem .6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  text-align: center;
  background: var(--bg-input);
  color: var(--text);
  outline: none;
}
.price-range-inputs input:focus { border-color: var(--primary); }
.price-range-inputs span { font-size: .8rem; color: var(--text-tertiary); flex-shrink: 0; }

/* Mobile filter drawer trigger */
.filter-drawer-trigger {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.filter-drawer-trigger:hover { border-color: var(--primary); color: var(--primary); }

/* Filter drawer (mobile) */
.filter-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1050;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.filter-drawer-overlay.open { opacity: 1; }

.filter-drawer {
  position: fixed;
  bottom: -100%;
  left: 0; right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 1051;
  padding: 1.5rem;
  transition: bottom .35s var(--ease);
  max-height: 88vh;
  overflow-y: auto;
}
.filter-drawer.open { bottom: 0; }
.filter-drawer-handle {
  width: 40px; height: 4px;
  background: var(--gray-3);
  border-radius: var(--radius-full);
  margin: 0 auto 1.25rem;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.catalog-count { font-size: .875rem; color: var(--text-secondary); }
.catalog-count strong { color: var(--text); }

.sort-select {
  padding: .45rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.sort-select:focus { border-color: var(--primary); }

.view-toggle { display: flex; gap: .25rem; }
.view-btn {
  width: 34px; height: 34px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: .85rem;
}
.view-btn.active, .view-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px; height: 38px;
  padding: 0 .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── PRODUCT DETAIL ─────────────────────────────────────── */
.product-detail { padding: 2.5rem 0; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-detail-grid > * { min-width: 0; }

/* Gallery */
.product-gallery { position: sticky; top: calc(var(--header-h) + var(--nav-h) + 20px); }
.main-image-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--gray-1);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
  cursor: zoom-in;
  margin-bottom: .875rem;
}
.main-image-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform .4s var(--ease);
}
.main-image-wrap:hover img { transform: scale(1.04); }

.thumb-strip {
  display: flex;
  gap: .625rem;
  flex-wrap: wrap;
}
.thumb-img {
  width: 68px; height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: var(--transition);
  background: var(--gray-1);
  flex-shrink: 0;
}
.thumb-img img { width: 100%; height: 100%; object-fit: contain; padding: .3rem; }
.thumb-img:hover, .thumb-img.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Product info */
.product-info {}
.product-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}
.product-brand a {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--primary);
}
.product-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: .875rem;
  color: var(--text);
}
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: var(--gray-1);
  border-radius: var(--radius-sm);
}
.product-price-row .price-current { font-size: 1.75rem; }

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding: .5rem .875rem;
  border-radius: var(--radius-full);
}
.in-stock  { background: rgba(48,209,88,.1); color: var(--success); }
.out-stock { background: rgba(255,59,48,.1); color: var(--danger); }
.stock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.in-stock  .stock-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(48,209,88,.2); }
.out-stock .stock-dot { background: var(--danger);  box-shadow: 0 0 0 3px rgba(255,59,48,.2);  }

.variant-group { margin-bottom: 1.25rem; }
.variant-label {
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .625rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
}
.variant-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-btn {
  padding: .45rem .875rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.variant-btn.active, .variant-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
  transition: border-color .2s var(--ease);
}
.product-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.qty-selector:focus-within { border-color: var(--primary); }
.qty-btn {
  width: 40px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-1);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-btn:active { transform: scale(.92); }
.qty-input {
  width: 54px;
  border: none;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  outline: none;
  background: var(--bg-card);
  color: var(--text);
}

.product-actions-row {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.product-actions-row > * { min-width: 0; }

.product-meta {
  background: var(--gray-1);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .85rem;
}
.product-meta-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.product-meta-item:last-child { border-bottom: none; }
.product-meta-item i { color: var(--primary); width: 16px; text-align: center; }

/* Tabs */
.product-tabs { margin-top: 3rem; }
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: .875rem 1.5rem;
  border: none;
  background: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color .2s var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content { padding: 1.75rem 0; display: none; }
.tab-content.active { display: block; }

/* Sticky add to cart (mobile) */
.sticky-cart-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: .875rem 1rem;
  z-index: 800;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.1);
}
[data-theme="dark"] .sticky-cart-bar { background: rgba(28,28,30,.92); }
.sticky-cart-price { font-size: 1.2rem; font-weight: 800; color: var(--primary); }
.sticky-cart-bar .btn-cart-sticky {
  flex: 1;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.sticky-cart-bar .btn-cart-sticky:active { transform: scale(.97); }

.related-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── CART ───────────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
}
.cart-table {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cart-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  padding: .875rem 1.5rem;
  background: var(--gray-1);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-secondary);
}
.cart-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}
.cart-row:last-child { border-bottom: none; }
.cart-row:hover { background: var(--gray-1); }
.cart-product-info { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.cart-product-img {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-1);
  border: 1.5px solid var(--border);
}
.cart-product-img img { width: 100%; height: 100%; object-fit: contain; padding: .3rem; }
.cart-product-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.cart-product-variant { font-size: .76rem; color: var(--text-secondary); margin-top: .15rem; }

.cart-summary {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 16px);
}
.cart-summary h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.02em;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  font-size: .88rem;
}
.summary-row.total {
  font-size: 1.1rem;
  font-weight: 800;
  padding-top: 1rem;
  margin-top: .5rem;
  border-top: 2px solid var(--border);
  color: var(--primary);
}
.summary-row.discount { color: var(--success); }

.coupon-form { margin: 1rem 0; }
.coupon-input-row { display: flex; gap: .5rem; }
.coupon-input-row input {
  flex: 1;
  padding: .52rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  text-transform: uppercase;
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  min-width: 0;
}
.coupon-input-row input:focus { border-color: var(--primary); }

/* ── CHECKOUT ───────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
}
.checkout-section {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.checkout-section h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: -.02em;
}
.checkout-section h3 .step-num {
  width: 26px; height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── FORMS ──────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .45px;
}
.form-input, .form-select, .form-textarea {
  padding: .65rem .875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  outline: none;
  background: var(--bg-input);
  color: var(--text);
  transition: var(--transition);
  width: 100%;
  font-family: inherit;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-tertiary); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-textarea { resize: vertical; min-height: 88px; }
.form-input.error { border-color: var(--danger); }

.payment-options { display: flex; flex-direction: column; gap: .75rem; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.payment-option:has(input:checked),
.payment-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.payment-option input[type=radio] { accent-color: var(--primary); }
.payment-option-icon { font-size: 1.5rem; }
.payment-option-info h4 { font-size: .9rem; font-weight: 700; }
.payment-option-info p { font-size: .78rem; color: var(--text-secondary); }
.payment-option-icon{
    width:52px;
    height:52px;
    border-radius:12px;
    border:1.5px solid var(--border);
    background:var(--bg-card);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.payment-option-icon i{
    font-size:1.45rem;
    color:var(--text);
}

.payment-option-icon img{
    width:32px;
    height:32px;
    object-fit:contain;
}

.payment-badge{
    margin-left:auto;
    background:var(--primary);
    color:#fff;
    font-size:.65rem;
    font-weight:700;
    padding:.2rem .55rem;
    border-radius:999px;
}

/* ── AUTH PAGES ─────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--header-h) - var(--nav-h) - var(--topbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--bg-secondary);
}
.auth-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}
.auth-card-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-card-header .logo {
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}
.auth-card-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .35rem;
}
.auth-card-header p { font-size: .88rem; color: var(--text-secondary); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin: 1.25rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span { font-size: .78rem; color: var(--text-tertiary); white-space: nowrap; }

/* ── ADMIN LAYOUT ───────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-secondary);
}
.admin-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  transition: transform .3s var(--ease);
}
.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.sidebar-brand .brand-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.sidebar-brand h3 {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}
.sidebar-brand span { font-size: .7rem; color: rgba(255,255,255,.45); }

.sidebar-nav { flex: 1; padding: .75rem 0; overflow-y: auto; }
.nav-section-title {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: rgba(255,255,255,.3);
  padding: .625rem 1.25rem .2rem;
  margin-top: .25rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.sidebar-link:hover, .sidebar-link.active {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}
.sidebar-link i { width: 18px; text-align: center; font-size: .9rem; flex-shrink: 0; }

.admin-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}
.admin-topbar {
  background: var(--bg-card);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}
.admin-topbar-left { display: flex; align-items: center; gap: 1rem; }
.admin-page-title { font-size: 1rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.admin-content { padding: 1.75rem; flex: 1; }

/* Admin sidebar toggle (mobile) */
.admin-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
  padding: .3rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-info h3 {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: .35rem;
}
.stat-info .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: .35rem;
  letter-spacing: -.03em;
}
.stat-info .change { font-size: .78rem; font-weight: 600; }
.stat-change-up   { color: var(--success); }
.stat-change-down { color: var(--danger); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon-blue   { background: rgba(0,113,227,.1); color: var(--primary); }
.stat-icon-green  { background: rgba(48,209,88,.1); color: var(--success); }
.stat-icon-orange { background: rgba(255,107,0,.1); color: var(--accent); }
.stat-icon-purple { background: rgba(108,92,231,.1); color: #6c5ce7; }

/* Admin Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.data-table th {
  padding: .75rem 1rem;
  background: var(--gray-1);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.data-table tbody tr { transition: background .12s var(--ease); }
.data-table tbody tr:hover { background: var(--gray-1); }
.data-table tbody tr:last-child td { border-bottom: none; }

.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.admin-card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card-header h3 { font-size: .9rem; font-weight: 800; letter-spacing: -.02em; }
.admin-card-body { padding: 1.5rem; }

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .24rem .7rem;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-pending    { background: rgba(255,159,10,.1);  color: var(--warning); }
.status-confirmed  { background: rgba(50,173,230,.1);  color: var(--info); }
.status-processing { background: rgba(0,113,227,.1);   color: var(--primary); }
.status-shipped    { background: rgba(48,209,88,.1);   color: var(--success); }
.status-delivered  { background: rgba(48,209,88,.15);  color: #1da843; }
.status-cancelled  { background: rgba(255,59,48,.1);   color: var(--danger); }
.status-refunded   { background: rgba(142,142,147,.1); color: var(--gray-5); }

/* ── ALERTS / FLASH ─────────────────────────────────────── */
.alert {
  padding: .875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.alert-success { background: rgba(48,209,88,.08);   color: #1a8a3a; border: 1px solid rgba(48,209,88,.2); }
.alert-danger  { background: rgba(255,59,48,.08);   color: #cc1f14; border: 1px solid rgba(255,59,48,.2); }
.alert-warning { background: rgba(255,159,10,.08);  color: #b86800; border: 1px solid rgba(255,159,10,.2); }
.alert-info    { background: rgba(50,173,230,.08);  color: #0a70a0; border: 1px solid rgba(50,173,230,.2); }
[data-theme="dark"] .alert-success { color: var(--success); }
[data-theme="dark"] .alert-danger  { color: var(--danger);  }
[data-theme="dark"] .alert-warning { color: var(--warning); }
[data-theme="dark"] .alert-info    { color: var(--info);    }

/* Account */
.account-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.account-sidebar-wrap,
.account-sidebar-card,
.account-content,
.account-content .admin-card {
  min-width: 0;
}
.account-user-card p,
.account-sidebar-card h2 {
  overflow-wrap: anywhere;
}
.account-tabs-nav button {
  min-width: 0;
}
.account-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.account-orders-table {
  min-width: 640px;
}

/* ── TRUST BAR ──────────────────────────────────────────── */
.trust-bar{
    border-top:1px solid var(--border);
    background:linear-gradient(
        to bottom,
        rgba(0,113,227,.035),
        rgba(0,113,227,.02)
    );
}

.trust-items{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:24px;
    padding:22px 0;
}

.trust-item{
    display:flex;
    align-items:flex-start;
    gap:12px;
    min-width:0;
}

.trust-item i{
    font-size:1.9rem;
    color:var(--primary);
    width:34px;
    min-width:34px;
    text-align:center;
    line-height:1;
    margin-top:15px;
}

.trust-item-content{
    min-width:0;
}

.trust-item-content h4{
    margin:0 0 3px;
    font-size:1rem;
    font-weight:700;
    line-height:1.15;
    color:var(--text);
}

.trust-item-content p{
    margin:0;
    font-size:.9rem;
    line-height:1.3;
    color:var(--text-secondary);
}

.trust-item-content p a{
    color:var(--primary);
    text-decoration:none;
}

/* Tablet */
@media (max-width: 992px){

    .trust-items{
        grid-template-columns:repeat(2,1fr);
        gap:20px;
    }

}

/* Mobile */
@media (max-width: 576px){

    .trust-items{
        grid-template-columns:1fr;
        gap:16px;
    }

}

/* ── NEWSLETTER ─────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, #0d0d1a 0%, #0a1e3a 60%, #1a0a38 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.newsletter-section h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: .5rem;
  letter-spacing: -.03em;
}
.newsletter-section p { color: rgba(255,255,255,.7); margin-bottom: 1.75rem; font-size: .95rem; }
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: .5rem;
}
.newsletter-form input {
  flex: 1;
  padding: .78rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  outline: none;
  background: rgba(255,255,255,.96);
  color: var(--dark);
  min-width: 0;
}
.newsletter-form input::placeholder { color: var(--gray-5); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: var(--text-on-dark-2);
  padding: 4.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-desc {
  margin: 1rem 0 1.5rem;
  font-size: .875rem;
  line-height: 1.75;
  color: rgba(255,255,255,.5);
}
.footer-social { display: flex; gap: .625rem; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  font-size: .88rem;
}
.social-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.footer-links { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--primary); padding-left: .25rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}
.footer-payments { display: flex; gap: .5rem; align-items: center; }
.footer-payments i { font-size: 1.4rem; color: rgba(255,255,255,.45); }

/* ── MOBILE BOTTOM NAV ──────────────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
  z-index: 700;
  padding: .5rem 0 env(safe-area-inset-bottom, .5rem);
  box-shadow: 0 -1px 0 rgba(0,0,0,.06);
}
[data-theme="dark"] .mobile-bottom-nav { background: rgba(28,28,30,.92); }
.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .35rem .75rem;
  color: var(--text-tertiary);
  font-size: .65rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: none;
  text-decoration: none;
}
.mob-nav-item i { font-size: 1.35rem; }
.mob-nav-item.active { color: var(--primary); }
.mob-nav-item .cart-badge { position: absolute; top: .1rem; right: .4rem; }

/* ── SKELETON LOADING ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-1) 25%, var(--gray-2) 50%, var(--gray-1) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.6s var(--ease) infinite;
  border-radius: var(--radius-xs);
}
[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #2c2c2e 25%, #3a3a3c 50%, #2c2c2e 75%);
  background-size: 200% 100%;
}
@keyframes skeleton { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── TOAST NOTIFICATIONS ────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  max-width: 420px;
  width: calc(100vw - 3rem);
}
.toast {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: .875rem 1.25rem;
  box-shadow: var(--shadow-lg);
  border-left: 3.5px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-width: 280px;
  animation: toastIn .28s var(--ease-bounce);
  line-height: 1.4;
}
.toast-success { border-color: var(--success); }
.toast-error   { border-color: var(--danger);  }
.toast-warning { border-color: var(--warning); }
.toast-info    { border-color: var(--info);    }
@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ── QUICK VIEW MODAL ───────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; animation: fadeIn .2s var(--ease); }
.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalIn .28s var(--ease-bounce);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 34px; height: 34px;
  background: var(--gray-1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  z-index: 1;
}
.modal-close:hover { background: var(--danger); color: #fff; }
.modal-body { padding: 1.75rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { transform: scale(.94) translateY(12px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

/* ── SCROLL ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── MISC ───────────────────────────────────────────────── */
.info-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
  line-height: 1.8;
}
.info-page-content h2 { font-size: 1.4rem; font-weight: 800; margin: 2rem 0 .75rem; letter-spacing: -.02em; }
.info-page-content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.info-page-content p  { color: var(--text-secondary); margin-bottom: 1rem; }
.info-page-content ul { color: var(--text-secondary); padding-left: 1.5rem; margin-bottom: 1rem; }
.info-page-content li { margin-bottom: .4rem; }

/* ── CONTACT GRID (informacion.php) ────────────────────── */
.contact-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1.5rem;
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-page .error-code {
  font-size: 7rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  letter-spacing: -.06em;
  margin-bottom: 1rem;
}
.error-page h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .75rem; }
.error-page p { color: var(--text-secondary); margin-bottom: 1.75rem; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ═══════════════════════════════════════════════════════ */

/* ── 1400px+ ────────────────────────────────────────────── */
@media (min-width: 1400px) {
  .hero-carousel { height: 560px; }
  .hero-content h1 { font-size: 3.4rem; }
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ── up to 1200px ───────────────────────────────────────── */
@media (max-width: 1200px) {
  .products-grid         { grid-template-columns: repeat(3, 1fr); }
  .products-grid-5       { grid-template-columns: repeat(4, 1fr); }
  .related-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-grid            { grid-template-columns: repeat(2, 1fr); }
  .categories-grid       { grid-template-columns: repeat(4, 1fr); }
  .footer-grid           { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-dropdown-grid     { grid-template-columns: repeat(4, 1fr); }
}

/* ── up to 992px ────────────────────────────────────────── */
@media (max-width: 992px) {
  :root { --sidebar-w: 0px; }

  .header-inner { gap: 1rem; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .filter-drawer-trigger { display: flex; }
  .filter-drawer-overlay { display: block; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .hero-carousel { height: 420px; }
  .hero-content h1 { font-size: 2.3rem; }
  .hero-image { display: none !important; }
  .hero-slide {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    gap: 0;
  }
  .hero-content {
    text-align: center;
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-btns {
    justify-content: center;
  }
  .promo-grid { grid-template-columns: 1fr; }
  .nav-dropdown-grid { grid-template-columns: repeat(3, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: relative; top: auto; }
  .account-layout { grid-template-columns: 1fr; }
  .related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-sidebar { transform: translateX(-100%); z-index: 1200; width: 280px; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-sidebar-toggle { display: flex; }
  .admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1199;
  }
  .admin-sidebar-overlay.open { display: block; }
}

/* ── up to 768px ────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --topbar-h: 0px; }
  .topbar { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }

  /* Contact section: stack columns on mobile */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .products-grid-3, .products-grid-5 { grid-template-columns: repeat(2, 1fr); }

  /* Mobile nav - show toggle, hide desktop links */
  .nav-mobile-toggle { display: flex; }
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark);
    display: none;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    max-height: 60vh;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { height: auto; }
  .nav-links > li > a { padding: .875rem 1.25rem; height: auto; }
  .nav-links > li > a::after { display: none; }
  .nav-dropdown { position: static; min-width: auto; border-radius: 0; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border-top: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-dropdown-grid { grid-template-columns: repeat(2, 1fr); }

  /* Mobile search */
  .search-bar { display: none; }
  .search-trigger { display: flex; }
  .search-overlay { display: block; }
  .search-drawer { display: block; }

  /* Mobile bottom nav */
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 70px; }
  .admin-layout body { padding-bottom: 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  /* ── MOBILE CART REDESIGN — premium card layout ── */
  .cart-table {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .cart-table-header { display: none; }

  /* Each product becomes an elevated card */
  .cart-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 1rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: .875rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: box-shadow .2s var(--ease);
    overflow: hidden;
  }
  .cart-row:hover { box-shadow: var(--shadow); }
  .cart-row:last-child { border-bottom: 1.5px solid var(--border); margin-bottom: 0; }

  /* Accent strip on the left edge */
  .cart-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 3px 0 0 3px;
  }

  /* Product info (image + name) — full width top row */
  .cart-product-info {
    flex: 0 0 100%;
    padding-right: 2.75rem;  /* room for the delete btn */
    margin-bottom: .875rem;
    align-items: flex-start;
  }

  /* Larger, more prominent product image */
  .cart-product-img {
    width: 84px;
    height: 84px;
    border-radius: var(--radius);
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
  }

  /* Product name — more readable */
  .cart-product-name {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
  }

  /* Unit price cell — spans full width, styled bold primary */
  .cart-row > *:nth-child(2) {
    flex: 0 0 100%;
    margin-bottom: .875rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--border);
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
  }

  /* Qty cell — grows to fill left side of bottom row */
  .cart-row > *:nth-child(3) {
    flex: 1 1 auto;
  }

  /* Subtotal cell — right side of bottom row, bold */
  .cart-row > *:nth-child(4) {
    flex: 0 0 auto;
    text-align: right;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--text) !important;
  }

  /* Delete button — absolute top-right corner */
  .cart-row > *:nth-child(5) {
    position: absolute;
    top: .875rem;
    right: .875rem;
    flex: none;
  }

  /* Refined qty controls on mobile */
  .qty-selector {
    border-radius: var(--radius-sm);
    border-width: 1.5px;
  }
  .qty-btn {
    width: 34px;
    height: 36px;
    font-size: .9rem;
    border-radius: 0;
  }
  .qty-input {
    width: 42px;
    font-size: .9rem;
    font-weight: 800;
  }

  /* Cart summary card */
  .cart-summary {
    position: static;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 1.25rem;
  }
  .product-detail { padding: 1.25rem 0; }
  .product-detail-grid { gap: 1.5rem; }
  .product-info,
  .product-gallery { width: 100%; }
  .main-image-wrap img { padding: 1rem; }
  .product-qty-row {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .product-actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px 52px;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  .product-actions-row .btn {
    min-width: 0;
    height: 48px;
    padding-left: .75rem;
    padding-right: .75rem;
    white-space: normal;
  }
  .product-actions-row .btn-icon {
    width: 52px !important;
    height: 48px !important;
  }
  .product-meta { padding: .875rem 1rem; }
  .product-tabs { margin-top: 2rem; }
  .account-page { padding-top: 1.5rem; }
  .account-layout { gap: 1rem; }
  .account-user-card {
    padding: 1.25rem !important;
  }
  .account-tabs-nav {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .625rem !important;
    -webkit-overflow-scrolling: touch;
  }
  .account-tabs-nav::-webkit-scrollbar { display: none; }
  .account-tabs-nav button {
    width: auto !important;
    flex: 0 0 auto;
    border-left: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: var(--radius-sm);
    padding: .65rem .85rem !important;
    white-space: nowrap;
  }
  .account-content .admin-card {
    border-radius: var(--radius-sm);
  }
  .account-content .admin-card-header {
    padding: .95rem 1rem;
  }
  .account-orders-table {
    min-width: 0;
    display: block;
  }
  .account-orders-table thead { display: none; }
  .account-orders-table tbody {
    display: block;
  }
  .account-orders-table tr {
    display: grid;
    gap: .35rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  .account-orders-table tr:last-child { border-bottom: none; }
  .account-orders-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .15rem 0 !important;
    border-bottom: none !important;
    text-align: right;
    word-break: break-word;
  }
  .account-orders-table td::before {
    content: attr(data-label);
    color: var(--text-secondary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
    flex: 0 0 5.5rem;
  }
  .account-orders-table td strong {
    max-width: 12rem;
    overflow-wrap: anywhere;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .trust-items { justify-content: flex-start; gap: 1.25rem; }
  .trust-item { flex: 1; min-width: 140px; }

  /* Product detail sticky */
  .sticky-cart-bar { display: flex; }
  body.product-detail-page { padding-bottom: calc(70px + 68px); }
  .hero-carousel { height: 360px; }
  .hero-slide { padding: 2rem 1.5rem; }
  .hero-content h1 { font-size: 1.85rem; }

  .auth-card { padding: 1.75rem; }
  .newsletter-form { flex-direction: column; }

  .cart-layout { grid-template-columns: 1fr; padding: 1.5rem 0; }
  .checkout-layout { grid-template-columns: 1fr; padding: 1.5rem 0; }
}

/* ── up to 576px ────────────────────────────────────────── */
@media (max-width: 576px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .875rem; }
  .hero-carousel { height: 300px; }
  .hero-content h1 { font-size: 1.55rem; }
  .hero-carousel { height: 280px; }
  .hero-slide { padding: 1.5rem 1.25rem; }
  .hero-badge { font-size: .7rem; }
  .hero-content p { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-btns { gap: .625rem; justify-content: center; }
  .hero-btns .btn { padding: .6rem 1.25rem; font-size: .85rem; min-width: 130px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .875rem; }
  .stat-card { padding: 1.1rem; }
  .stat-info .value { font-size: 1.4rem; }

  .section { padding: 2.75rem 0; }
  .section-title h2 { font-size: 1.5rem; }

  .product-card-body { padding: .75rem .875rem; }
  .product-card-footer { padding: 0 .875rem .75rem; }
  .price-current { font-size: 1.05rem; }
  .product-card-name { font-size: .82rem; }

  .deals-timer { gap: .4rem; }
  .timer-block { min-width: 48px; padding: .4rem .625rem; }
  .timer-block .num { font-size: 1.3rem; }

  .auth-card { padding: 1.5rem 1.1rem; border-radius: var(--radius-md); }
  .toast-container { top: auto; bottom: 5.5rem; right: 1rem; left: 1rem; }
  .toast { min-width: auto; }

  .admin-content { padding: 1.1rem; }
  .admin-topbar  { padding: 0 1.1rem; }

  .modal-box { max-height: 92vh; }
  .modal-body { padding: 1.25rem; }
}

/* ── up to 480px ────────────────────────────────────────── */
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .625rem; }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
  }
  .header-actions {
    gap: .25rem;
  }
  .header-action {
    min-width: 36px;
    padding: .35rem;
  }
  .header-action > span:not(.cart-badge) {
    display: none;
  }
  .search-trigger {
    font-size: 1.1rem;
    padding: .35rem;
  }
  .logo { font-size: 1.2rem; }
  .logo-icon { width: 32px; height: 32px; font-size: .95rem; }

  .hero-carousel { height: 240px; }
  .hero-content h1 { font-size: 1.35rem; }
  .hero-arrow { display: none; }

  .product-title { font-size: 1.5rem; }
  .product-price-row .price-current { font-size: 1.4rem; }
  .product-price-row {
    padding: 1rem;
    align-items: flex-start;
  }
  .product-stock {
    max-width: 100%;
    white-space: normal;
  }
  .tab-btn {
    padding: .75rem 1rem;
  }

  .promo-card { min-height: 160px; padding: 1.5rem; }
  .promo-card h3 { font-size: 1.1rem; }

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

/* ── up to 320px ────────────────────────────────────────── */
@media (max-width: 320px) {
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .hero-carousel { height: 210px; }
  .hero-content h1 { font-size: 1.2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-lg { padding: .72rem 1.5rem; font-size: .9rem; }
  .product-actions-row {
    grid-template-columns: minmax(0, 1fr) 48px;
  }
  .product-actions-row .btn-primary {
    grid-column: 1 / -1;
  }
  .product-actions-row .btn-icon {
    width: 48px !important;
  }

  .auth-card { padding: 1.1rem .75rem; }

  .stats-grid { grid-template-columns: 1fr; }
  .header-action > span:not(.cart-badge) { display: none; }
}

/* =========================================
   CUSTOM LOGO
========================================= */

.logo-custom{
    display:flex;
    align-items:center;
    text-decoration:none;
    flex-shrink:0;
}

.logo-image{
    height:62px;
    width:auto;
    display:block;
    object-fit:contain;
}

/* Tablet */
@media (max-width:768px){

    .logo-image{
        height:52px;
    }

}

/* Mobile */
@media (max-width:576px){

    .logo-image{
        height:44px;
    }

}
/* =========================================
   FOOTER LOGO
========================================= */

.footer-logo{
    display:flex;
    align-items:center;
    margin-bottom:18px;
}

.footer-logo .logo-image{
    height:98px;
    width:auto;
    object-fit:contain;
    display:block;
}

/* Mobile */
@media (max-width:768px){

    .footer-logo{
        justify-content:center;
    }

    .footer-logo .logo-image{
        height:64px;
    }

}