@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Satoshi:wght@300;400;500;600;700&display=swap');

/* ============================================================
   IV STORES - MAIN STYLESHEET
   Premium E-Commerce Design System
   Theme: White/Dark, Orange (#FF6B35), Green (#2ECC71)
   ============================================================ */

/* ---------- CSS VARIABLES (Light Mode) ---------- */
:root {
  --orange:       #FF6B35;
  --orange-dark:  #e55a25;
  --orange-light: #fff0eb;
  --orange-glow:  rgba(255, 107, 53, 0.35);
  --green:        #2ECC71;
  --green-dark:   #27ae60;
  --green-light:  #eafaf1;
  --white:        #ffffff;
  --bg:           #f7f7fa;
  --bg-secondary: #f0f0f5;
  --surface:      #ffffff;
  --surface-hover:#fafafa;
  --border:       #ebebf0;
  --border-light: #f5f5f8;
  --text:         #1a1a2e;
  --text-secondary:#3d3d56;
  --text-muted:   #6b7280;
  --text-light:   #9ca3af;
  --shadow-xs:    0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 20px 48px rgba(0,0,0,0.14);
  --shadow-xl:    0 32px 64px rgba(0,0,0,0.18);
  --shadow-orange:0 8px 24px rgba(255,107,53,0.28);
  --shadow-green: 0 8px 24px rgba(46,204,113,0.24);
  --radius-xs:    6px;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --radius-2xl:   36px;
  --font-display: 'Clash Display', sans-serif;
  --font-body:    'Satoshi', sans-serif;
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h:     68px;
  --glass-bg:     rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.5);
  --glass-blur:   20px;
}

/* ---------- DARK MODE ---------- */
[data-theme="dark"] {
  --bg:           #0d0d14;
  --bg-secondary: #14141f;
  --surface:      #1a1a28;
  --surface-hover:#22222f;
  --border:       #2a2a3a;
  --border-light: #1f1f2f;
  --text:         #f0f0f5;
  --text-secondary:#c8c8d8;
  --text-muted:   #8888a0;
  --text-light:   #555570;
  --white:        #1a1a28;
  --orange-light: rgba(255,107,53,0.12);
  --green-light:  rgba(46,204,113,0.12);
  --shadow-xs:    0 1px 3px rgba(0,0,0,0.2);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg:    0 20px 48px rgba(0,0,0,0.45);
  --shadow-xl:    0 32px 64px rgba(0,0,0,0.55);
  --shadow-orange:0 8px 24px rgba(255,107,53,0.2);
  --shadow-green: 0 8px 24px rgba(46,204,113,0.15);
  --glass-bg:     rgba(26,26,40,0.8);
  --glass-border: rgba(255,255,255,0.06);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: calc(var(--navbar-h) + env(safe-area-inset-top, 0px));
  animation: pageLoad 0.5s ease both;
}
body.has-sub-nav {
  padding-top: calc(var(--navbar-h) + env(safe-area-inset-top, 0px)) !important;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
  user-select: text !important;
  -webkit-user-select: text !important;
  font-size: 16px !important;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--orange-dark); }

/* ---------- SELECTION ---------- */
::selection {
  background: var(--orange);
  color: white;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; }
.display-2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.2; }
.heading-1 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
.heading-2 { font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }
.heading-3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }
.text-green  { color: var(--green); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  position: relative;
}
.section-title span { color: var(--orange); }
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  border-radius: 2px;
  margin-top: 8px;
}
.see-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
}
.see-all:hover { gap: 8px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: white;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,107,53,0.38);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: white;
  box-shadow: var(--shadow-green);
}
.btn-secondary:hover {
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: white;
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--orange-light);
  color: var(--orange);
}
.btn-ghost:hover {
  background: var(--orange);
  color: white;
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  transition: var(--transition);
}
.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}
.form-control::placeholder { color: var(--text-light); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-orange { background: var(--orange); color: white; }
.badge-green  { background: var(--green); color: white; }
.badge-sale   { background: linear-gradient(135deg, #FF6B35, #ff4500); color: white; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar-placeholder {
  width: 100%;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--surface) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: auto !important;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.header-nav-bar {
  display: flex !important;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding-top: 4px;
  padding-bottom: 4px;
}
.header-nav-bar .bottom-nav-item {
  color: var(--text-secondary) !important;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 10px;
  transition: all 0.2s ease;
  max-width: 80px;
  flex: 1;
}
.header-nav-bar .bottom-nav-item.active {
  color: var(--orange) !important;
  background: var(--orange-light);
}
.header-nav-bar .bottom-nav-item:active {
  transform: scale(0.94);
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}
.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.navbar-logo span { color: var(--orange); }
.navbar-search {
  flex: 1;
  position: relative;
  max-width: 480px;
}
.navbar-search input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 2px solid var(--border);
  border-radius: 40px;
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}
.navbar-search input:focus {
  border-color: var(--orange);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}
.navbar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
.navbar-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.navbar-search-results.active { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
}
.search-result-item:hover { background: var(--orange-light); }
.search-result-item img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.search-result-item span { font-size: 0.85rem; font-weight: 500; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--orange);
  background: var(--orange-light);
}
/* Categories mega dropdown */
.nav-categories { position: relative; }
.nav-categories .dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 20px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.nav-categories:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}
.dropdown-item:hover {
  background: var(--orange-light);
  color: var(--orange);
}
.dropdown-item .icon { font-size: 1.1rem; width: 18px; text-align: center; }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.1rem;
  transition: var(--transition);
  background: transparent;
}
.action-btn:hover {
  background: var(--orange-light);
  color: var(--orange);
  transform: scale(1.08);
}
.action-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 17px;
  height: 17px;
  background: var(--orange);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  animation: badgePop 0.3s ease both;
}
.btn-login {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  padding: 9px 20px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
}

/* Dark mode toggle */
.dark-mode-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  background: transparent;
}
.dark-mode-toggle:hover {
  background: var(--orange-light);
  color: var(--orange);
  transform: rotate(20deg);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: #1a1a2e;
  min-height: 540px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none; /* Prevent invisible slides from intercepting clicks */
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
  display: flex;
  align-items: center;
}
.slide.active {
  pointer-events: auto; /* Only the visible slide can receive clicks */
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
/* Animated subtle grain overlay */
.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,107,53,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26,26,46,0.85) 40%, transparent 80%);
}
.slide-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 80px 80px;
  max-width: 640px;
}
.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
  animation: shimmer 3s infinite;
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, var(--orange) 0%, #ff8f65 50%, var(--orange) 100%);
}
.slide-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
}
.slide-title span { color: var(--orange); }
.slide-desc { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 32px; line-height: 1.7; }
.slide-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Desktop: floating product image on the right */
.slide-visual {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 480px;
  height: 80%;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow: hidden;
}
.slide-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.95;
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 95%);
  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 95%);
  animation: float 6s ease-in-out infinite;
}

/* Mobile: show image as full background behind content */
@media (max-width: 992px) {
  .hero-slider {
    min-height: 420px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .slide-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    right: auto;
    top: auto;
    transform: none;
    z-index: 0;
    opacity: 0.25;
  }
  .slide-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
    animation: none;
  }
  .slide-content {
    padding: 48px 24px 56px !important;
    max-width: 100% !important;
    text-align: left;
  }
  .slide-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }
  .slide-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .slide-actions .btn {
    padding: 12px 22px;
    font-size: 0.85rem;
  }
  .slider-arrows {
    display: none !important;
  }
}

.slider-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 20px;
  height: 20px;
  padding: 6px;
  background: rgba(255,255,255,0.4);
  background-clip: content-box;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 50%;
}
.slider-dot.active {
  background: var(--orange);
  background-clip: content-box;
  width: 40px;
  box-shadow: 0 0 12px rgba(255,107,53,0.5);
  border-radius: 10px;
}
.slider-arrows {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1340px;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 10;
  pointer-events: none;
}
.slider-arrow {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.slider-arrow:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5);
}

/* ============================================================
   SHOP LAYOUT (SIDEBAR & PRODUCTS COLUMN)
   ============================================================ */
.shop-layout-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 20px 0;
}
.shop-sidebar {
  width: 280px;
  position: sticky;
  top: 90px;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}
.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  border-radius: 2px;
}
.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  background: transparent;
}
.sidebar-cat-item:hover {
  background: var(--surface-hover);
  transform: translateX(6px);
}
.sidebar-cat-item.active {
  background: var(--orange-light) !important;
  border-color: rgba(255, 107, 53, 0.15);
  font-weight: 600;
  color: var(--orange);
}

.sidebar-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--bg);
}
.sidebar-cat-item.active .sidebar-cat-icon {
  border-color: var(--orange);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.sidebar-cat-name {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.sidebar-cat-item.active .sidebar-cat-name {
  color: var(--orange);
  font-weight: 700;
}

.shop-products-column {
  flex: 1;
  min-width: 0;
}
.shop-section-group {
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .shop-layout-container {
    flex-direction: column;
    gap: 24px;
  }
  .shop-sidebar {
    width: 100%;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 8px;
  }
  .sidebar-title {
    display: none;
  }
  .sidebar-categories {
    flex-direction: row;
    overflow-x: auto;
    padding: 4px 0 16px;
    gap: 12px;
    scrollbar-width: none;
  }
  .sidebar-categories::-webkit-scrollbar {
    display: none;
  }
  .sidebar-cat-item {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--surface);
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
  }
  .sidebar-cat-item:hover {
    transform: none;
  }
  .sidebar-cat-item.active {
    background: var(--orange) !important;
    border-color: var(--orange) !important;
    color: white !important;
  }
  .sidebar-cat-item.active .sidebar-cat-name {
    color: white !important;
  }
  .sidebar-cat-item.active .sidebar-cat-icon {
    background: white !important;
    color: var(--orange) !important;
    box-shadow: none;
  }
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 16px 36px rgba(0,0,0,0.06);
  transform: translateY(-8px);
  border-color: rgba(255,107,53,0.25);
}
.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #fcfcfd;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image-wrap img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-image-wrap a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.product-card:hover .product-image-wrap img { transform: scale(1.08); }
.product-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #FF6B35, #ff4500);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255,69,0,0.3);
}
.product-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  color: var(--text-muted);
}
.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  background: #ffe5e5;
  color: #e74c3c;
  transform: scale(1.15);
}
.product-wishlist-btn.active { color: #e74c3c; }
.product-actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  padding: 24px 12px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 2;
}
.product-card:hover .product-actions-overlay {
  opacity: 1;
  transform: translateY(0);
}
.product-body {
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-brand {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.product-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.45;
  min-height: 40px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  margin-top: auto;
}
.price-sale {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.price-mrp {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount { font-size: 0.78rem; font-weight: 700; color: var(--green); }
.product-card .btn-add-cart {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.product-card .btn-add-cart:hover {
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.promo-banner {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0f0c1b 0%, #18152d 50%, #26163b 100%);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.25) 0%, transparent 70%);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
.promo-banner::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: float 10s ease-in-out infinite alternate;
}
.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,107,53,0.2);
  color: var(--orange);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255,107,53,0.3);
  margin-bottom: 12px;
  animation: shimmer 3s infinite;
  background-size: 200% 100%;
  background-image: linear-gradient(90deg, rgba(255,107,53,0.2) 0%, rgba(255,143,101,0.3) 50%, rgba(255,107,53,0.2) 100%);
}
.promo-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  line-height: 1.2;
}
.promo-title span { color: var(--orange); }
.promo-desc { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin-bottom: 24px; }
.promo-visual {
  flex-shrink: 0;
  font-size: 6rem;
  opacity: 0.15;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #090a0f; /* Sleek dark black background */
  color: rgba(255,255,255,0.7);
  padding: 80px 0 20px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08); /* Clean modern border */
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .navbar-logo {
  color: white;
  display: block;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.45);
}
.footer-brand .logo-stores {
  color: #ffffff !important;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.5);
}
.social-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255,107,53,0.35);
}
.social-btn svg { width: 16px; height: 16px; }
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  display: inline-block;
}
.footer-heading::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--orange);
  margin-top: 6px;
  border-radius: 1px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
  display: flex;
  align-items: center;
}
.footer-link:hover {
  color: var(--orange);
  transform: translateX(4px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--orange); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
  border-left: 4px solid var(--orange);
  position: relative;
  overflow: hidden;
}
.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--orange);
  animation: toastProgress 3s linear forwards;
  border-radius: 0 2px 0 0;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--green); }
.toast.success::after { background: var(--green); }
.toast.error { border-left-color: #e74c3c; }
.toast.error::after { background: #e74c3c; }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.toast-desc { font-size: 0.78rem; color: var(--text-muted); }
.toast-close {
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 2px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.toast-close:hover { color: var(--text); }

/* ============================================================
   PRODUCT DETAILS PAGE
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--text-light); }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-gallery { position: sticky; top: calc(var(--navbar-h) + 20px); }
.gallery-main {
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--bg);
  padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }
.gallery-thumb {
  aspect-ratio: 1/1;
  width: 72px;
  min-width: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  background: var(--bg);
}
.gallery-thumb.active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,53,0.15); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--orange); }
.detail-brand { font-size: 0.78rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}
.detail-pricing {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail-sale { font-size: 2rem; font-weight: 700; color: var(--text); }
.detail-mrp { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.detail-discount {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.detail-desc {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.detail-meta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-meta-row { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.detail-meta-label { color: var(--text-muted); width: 80px; flex-shrink: 0; }
.detail-meta-value { font-weight: 600; }
.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 20px;
}
.qty-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}
.qty-btn:hover { background: var(--orange); color: white; }
.qty-value {
  width: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}
.cart-empty .empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.4; }
.cart-empty h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background 0.2s;
}
.cart-item:hover { background: var(--bg); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-brand { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-bottom: 2px; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.cart-item-price { font-size: 1rem; font-weight: 700; color: var(--orange); }
.cart-item-mrp { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }
.cart-item-qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; margin-top: 8px; }
.cart-qty-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; font-size: 0.9rem; background: var(--bg); }
.cart-qty-btn:hover { background: var(--orange); color: white; }
.cart-qty-num { width: 34px; text-align: center; font-weight: 700; font-size: 0.875rem; border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 30px; display: flex; align-items: center; justify-content: center; }
.cart-item-remove { color: var(--text-muted); font-size: 0.8rem; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); transition: var(--transition); display: flex; align-items: center; gap: 4px; }
.cart-item-remove:hover { background: #ffe5e5; color: #e74c3c; }
.cart-summary-card { background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border); padding: 24px; position: sticky; top: calc(var(--navbar-h) + 20px); box-shadow: var(--shadow-sm); }
.cart-summary-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 8px 0; }
.cart-summary-row.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 16px; font-size: 1.1rem; font-weight: 700; }
.cart-summary-row.saving { color: var(--green); font-weight: 600; }

/* ============================================================
   WISHLIST PAGE
   ============================================================ */
.wishlist-empty {
  text-align: center;
  padding: 80px 20px;
}
.wishlist-empty .empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.4; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #fff5f2 0%, #ffffff 50%, #f0fdf4 100%);
}
[data-theme="dark"] .auth-page {
  background: linear-gradient(135deg, #0d0d14 0%, #14141f 50%, #0d1a12 100%);
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}
.auth-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.auth-logo span { color: var(--orange); }
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 20px 0;
  position: relative;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span {
  background: var(--surface);
  padding: 0 12px;
  position: relative;
}
.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 20px;
}
.auth-switch a { color: var(--orange); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 256px;
  background: linear-gradient(180deg, #1a1a2e 0%, #12121f 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform 0.3s;
  overflow-y: auto;
  transform: translateX(-100%);
}
.admin-sidebar.open {
  transform: translateX(0);
}
.admin-sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
}
.admin-sidebar-logo .logo-text span { color: var(--orange); }
.admin-sidebar-logo .admin-tag {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-nav { padding: 20px 14px; flex: 1; }
.admin-nav-section { margin-bottom: 24px; }
.admin-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  padding: 0 10px;
  margin-bottom: 6px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
}
.admin-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}
.admin-nav-item.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.admin-nav-item .icon { font-size: 1rem; width: 18px; text-align: center; }

/* Hamburger Sidebar Toggle & Overlay */
#sidebarToggleBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}
#sidebarToggleBtn:hover {
  background: var(--orange-light);
  color: var(--orange);
  border-color: var(--orange);
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 17, 26, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}
.admin-main {
  flex: 1;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}
.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg);
  border-radius: 40px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
}
.admin-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-content { padding: 28px; flex: 1; }
/* Stat Cards */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card::after {
  content: attr(data-icon);
  position: absolute;
  bottom: -8px;
  right: -4px;
  font-size: 4rem;
  opacity: 0.06;
}
.stat-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.stat-trend { font-size: 0.78rem; font-weight: 600; margin-top: 4px; }
.stat-trend.up { color: var(--green); }
.stat-trend.neutral { color: var(--text-muted); }
/* Admin Table */
.admin-table-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.admin-table-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.admin-table-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.admin-search input {
  background: transparent;
  font-size: 0.85rem;
  color: var(--text);
  width: 180px;
}
.admin-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 12px 24px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 14px 24px;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-hover); }
.tbl-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border);
}
.tbl-name { font-weight: 600; }
.tbl-actions { display: flex; gap: 6px; }
.tbl-btn {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}
.tbl-btn.edit { background: var(--orange-light); color: var(--orange); }
.tbl-btn.edit:hover { background: var(--orange); color: white; }
.tbl-btn.delete { background: #fef0f0; color: #e74c3c; }
.tbl-btn.delete:hover { background: #e74c3c; color: white; }
/* Stock badge */
.stock-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.stock-badge.in-stock { background: var(--green-light); color: var(--green-dark); }
.stock-badge.low-stock { background: #fff8e1; color: #f39c12; }
.stock-badge.out-of-stock { background: #fef0f0; color: #e74c3c; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.18);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Image Upload */
.img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}
.img-upload-area:hover { border-color: var(--orange); background: var(--orange-light); }
.img-upload-area .upload-icon { font-size: 2rem; margin-bottom: 8px; }
.img-upload-area p { font-size: 0.85rem; color: var(--text-muted); }
.img-upload-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: none;
  margin-top: 10px;
}

/* Activity Logs */
.log-item {
  display: flex;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  transition: background 0.2s;
}
.log-item:hover { background: var(--bg); }
.log-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.log-icon.add { background: var(--green-light); color: var(--green); }
.log-icon.edit { background: var(--orange-light); color: var(--orange); }
.log-icon.delete { background: #fef0f0; color: #e74c3c; }
.log-icon.login { background: #e8f4fd; color: #3498db; }
.log-icon.logout { background: #f5f5f5; color: var(--text-muted); }
.log-content { flex: 1; }
.log-action { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; }
.log-time { font-size: 0.75rem; color: var(--text-muted); }
.log-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,107,53,0.45);
}

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.skeleton-image {
  aspect-ratio: 1/1;
  background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.skeleton-text {
  height: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.skeleton-text-lg {
  height: 16px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.skeleton-btn {
  height: 36px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { gap: 36px; }
  .cart-layout { grid-template-columns: 1fr 300px; }
}

/* Sidebar Navigation (shared for both desktop and mobile) */
.mobile-nav {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(16, 17, 26, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999; /* Sit above navbar and bottom nav */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.active { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-nav-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 310px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  padding: calc(20px + env(safe-area-inset-top, 10px)) 20px 24px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  z-index: 1000000;
}
.mobile-nav.active .mobile-nav-inner { transform: translateX(0); }
.mobile-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}
.mobile-drawer-item:hover, .mobile-drawer-item.active {
  background: var(--bg);
  color: var(--orange);
}
.drawer-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.drawer-badge {
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 20px;
  position: relative;
}
.mobile-search input { background: none; flex: 1; font-size: 0.9rem; color: var(--text); }

@media (max-width: 768px) {
  .navbar {
    height: calc(var(--navbar-h) + env(safe-area-inset-top, 20px)) !important;
    padding-top: env(safe-area-inset-top, 20px) !important;
  }
  body {
    padding-top: calc(var(--navbar-h) + env(safe-area-inset-top, 20px)) !important;
  }
  body.has-sub-nav {
    padding-top: calc(var(--navbar-h) + env(safe-area-inset-top, 20px)) !important;
  }
  .admin-topbar {
    padding-top: env(safe-area-inset-top, 20px) !important;
    height: calc(64px + env(safe-area-inset-top, 20px)) !important;
  }
  .admin-sidebar-logo {
    padding-top: calc(24px + env(safe-area-inset-top, 20px)) !important;
  }
  .navbar-search { display: none; }
  .navbar-nav { display: none; }
  .menu-toggle { display: flex; }
  .navbar-logo {
    font-size: 1.15rem !important;
  }
  .navbar-logo img {
    width: 36px !important;
    height: 36px !important;
  }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .promo-banner { flex-direction: column; padding: 32px; text-align: center; }
  .promo-visual { display: none; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 16px; }
  .scroll-top-btn { bottom: 90px; right: 16px; width: 42px; height: 42px; }

  /* Mobile responsiveness enhancements */
  .navbar-actions .nav-link,
  .navbar-actions .btn-login {
    display: none !important;
  }
  .container { padding: 0 12px !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .product-card {
    border-radius: var(--radius-md) !important;
  }
  .product-card:hover {
    transform: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.02) !important;
    border-color: var(--border) !important;
  }
  .product-image-wrap {
    padding: 0 !important;
  }
  .product-image-wrap a {
    padding: 8px !important;
  }
  .product-image-wrap img {
    max-width: 100% !important;
    max-height: 100% !important;
  }
  .product-discount-badge {
    top: 6px !important;
    left: 6px !important;
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
    box-shadow: 0 2px 4px rgba(255,69,0,0.2) !important;
  }
  .product-wishlist-btn {
    top: 6px !important;
    right: 6px !important;
    width: 28px !important;
    height: 28px !important;
  }
  .product-wishlist-btn svg {
    width: 12px !important;
    height: 12px !important;
  }
  .product-stock-badge-out {
    top: 6px !important;
    left: 6px !important;
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }
  .product-actions-overlay {
    display: none !important;
  }
  .product-body {
    padding: 10px 8px 8px !important;
  }
  .product-brand {
    font-size: 0.6rem !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.4px !important;
  }
  .product-name {
    font-size: 0.82rem !important;
    margin-bottom: 6px !important;
    min-height: 34px !important;
    line-height: 1.3 !important;
  }
  .product-pricing {
    margin-bottom: 8px !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }
  .price-sale {
    font-size: 0.88rem !important;
  }
  .price-mrp {
    font-size: 0.72rem !important;
  }
  .price-discount {
    font-size: 0.68rem !important;
  }
  .product-card .btn-add-cart {
    padding: 6px 8px !important;
    font-size: 0.74rem !important;
    height: 32px !important;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 8px !important; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .stat-cards { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 22px; }
  .detail-actions { flex-direction: column; }
  .detail-actions .btn { width: 100%; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-img { width: 70px; height: 70px; }
}
@media (max-width: 360px) {
  .navbar-logo {
    font-size: 1rem !important;
  }
  .navbar-logo img {
    width: 32px !important;
    height: 32px !important;
  }
}

/* ============================================================
   ANIMATIONS & UTILITIES
   ============================================================ */
@keyframes pageLoad {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes skeletonShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-10px, -15px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes badgePop {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}
@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.hidden { display: none !important; }
.show  { display: flex !important; }
.mt-auto { margin-top: auto; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.page-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; }
/* Glassmorphism card */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}
/* Loading spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.tag:hover, .tag.active {
  background: var(--orange-light);
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- STANDARD NATIVE BOTTOM NAVIGATION BAR ---------- */
.mobile-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 58px !important;
  background: var(--surface) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border) !important;
  border-radius: 0 !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  z-index: 99999 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
  padding: 0 8px !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.bottom-nav-item {
  color: var(--text-secondary) !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 1;
}

.bottom-nav-item:hover,
.bottom-nav-item:active {
  color: var(--orange) !important;
}

.bottom-nav-item.active {
  color: var(--orange) !important;
  font-weight: 800 !important;
}

.bottom-nav-badge {
  border-color: #10111a !important;
}

.bottom-nav-icon {
  font-size: 1.3rem;
  margin-bottom: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.bottom-nav-icon .action-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  width: 16px;
  height: 16px;
  background: var(--orange);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--surface);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 20px;
}
.switch .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.switch input:checked + .slider {
  background-color: var(--green);
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Brand Logo Colors */
.logo-i {
  color: #0a5c36 !important; /* Logo dark green */
}
.logo-v {
  color: #f37021 !important; /* Logo orange */
}
.logo-stores {
  color: #111827 !important; /* Premium dark charcoal */
}

/* White text for logo-stores on dark backgrounds */
.footer-brand .logo-stores,
.admin-sidebar-logo .logo-stores,
.admin-login-page .logo-stores,
#splash-screen .logo-stores {
  color: #ffffff !important;
}

/* ============================================================
   CATEGORIES NAV DROPDOWN IN NAVBAR
   ============================================================ */
.nav-menu-dropdown {
  position: relative;
  margin-left: 20px;
}
.nav-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.nav-menu-btn:hover {
  background: var(--orange-light);
  border-color: rgba(255,107,53,0.15);
  color: var(--orange);
}
.nav-menu-btn svg {
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-menu-btn:hover svg {
  color: var(--orange);
}
.nav-menu-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 240px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-menu-dropdown:hover .nav-menu-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu-content a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-menu-content a:hover {
  background: var(--surface-hover);
  color: var(--orange);
}
.dropdown-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

@media (max-width: 992px) {
  .nav-menu-dropdown {
    display: none !important;
  }
}

/* ============================================================
   HORIZONTAL HOMEPAGE CATEGORIES
   ============================================================ */
.homepage-categories-wrap {
  width: 100%;
}
.homepage-categories {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.homepage-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  width: 100px;
}
.homepage-cat-img-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: var(--transition);
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.homepage-cat-item:hover .homepage-cat-img-wrap {
  transform: scale(1.08) translateY(-4px);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}
.homepage-cat-item.active .homepage-cat-img-wrap {
  border-color: var(--orange);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  transform: scale(1.04);
}
.homepage-cat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: var(--transition);
}
.homepage-cat-item:hover .homepage-cat-name,
.homepage-cat-item.active .homepage-cat-name {
  color: var(--orange);
}

@media (max-width: 992px) {
  .homepage-categories {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
    gap: 20px;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch; /* Safari momentum scrolling */
    scroll-behavior: smooth;
  }
  .homepage-categories::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
  }
  .homepage-cat-item {
    width: 80px;
    flex-shrink: 0;
  }
  .homepage-cat-img-wrap {
    width: 64px;
    height: 64px;
  }
}

/* Styling for compact footer */
.footer {
  padding: 24px 0 !important;
  margin-top: 40px !important;
  margin-bottom: 70px !important;
}

/* Hide floating dynamic bottom nav when hamburger menu drawer is open */
body.menu-open .mobile-bottom-nav {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   MOBILE SPACING & ZERO OVERLAP RESET
   ============================================================ */
@media (max-width: 992px) {
  body {
    padding-top: calc(var(--navbar-h) + env(safe-area-inset-top, 0px) + 6px) !important;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .main-content, main, .homepage-content, .container {
    padding-bottom: 24px;
  }
}

/* ============================================================
   SLICK MICRO-ANIMATIONS & UI POLISH
   ============================================================ */
@keyframes fadeInUpSmooth {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.animate-fadeInUp {
  animation: fadeInUpSmooth 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.homepage-cat-item {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.homepage-cat-item:active .homepage-cat-img-wrap,
.homepage-cat-item:hover .homepage-cat-img-wrap {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--orange) !important;
  box-shadow: 0 8px 24px var(--orange-glow) !important;
}

.product-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-nav {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
}
.bottom-nav-item:active {
  transform: scale(0.92);
}

/* ============================================================
   HIDE NETLIFY INJECTED BADGE & DRAWER
   ============================================================ */
[class*="netlify-badge"],
[id*="netlify-badge"],
[data-netlify-badge],
netlify-badge,
iframe[src*="netlify"],
div:has(> a[href*="netlify.com"]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}