/* ========================================
   AMAR NUTRITION — Design System
   Mobile-first • Dark Premium Theme
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2333;
  --bg-card-hover: #222d3f;
  --bg-glass: rgba(28, 35, 51, 0.65);
  --bg-glass-strong: rgba(28, 35, 51, 0.88);

  --accent-gold: #10b981;
  --accent-gold-light: #34d399;
  --accent-gold-dark: #059669;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #34d399 50%, #10b981 100%);
  --accent-gradient-hover: linear-gradient(135deg, #34d399 0%, #10b981 50%, #34d399 100%);

  --text-primary: #f2f0ed;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --text-accent: #10b981;
  --text-light: #f2f0ed;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(16, 185, 129, 0.3);
  --border-glow: rgba(16, 185, 129, 0.15);
  --border-color: rgba(255, 255, 255, 0.12);

  --primary-color: #10b981;

  --success: #34d399;
  --error: #f87171;
  --warning: #fbbf24;

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(16, 185, 129, 0.25);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1280px;
  --nav-height: 64px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-gold-dark);
  border-radius: var(--radius-full);
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(16, 185, 129, 0.3);
  color: var(--text-primary);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ========================================
   NAVIGATION (FLOATING DOCK)
   ======================================== */
.navbar {
  position: fixed;
  top: 20px; /* Floating away from top */
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1000px; /* Condensed width */
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition-base);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--border-color);
  border-radius: 999px; /* Pill shape */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(16, 185, 129, 0.1); /* Subtle green glow */
}

.navbar.scrolled {
  top: 10px; /* Sits slightly higher when scrolled */
  background: rgba(28, 35, 51, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px; /* Inner padding for pill */
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  z-index: 1001;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 10px rgba(212, 168, 67, 0.3); /* Subtle gold glow to match the logo */
}

.nav-logo:hover .brand-logo-img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 15px rgba(212, 168, 67, 0.6);
}

.nav-logo .logo-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition-base);
  border-radius: var(--radius-full);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  z-index: 1001;
}

[dir="rtl"] .navbar .container {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-right {
  flex-direction: row-reverse;
}


.nav-cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-base);
}

.nav-cart:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.nav-cart svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  transition: var(--transition-fast);
}

.nav-cart:hover svg {
  stroke: var(--accent-gold);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition-spring);
}

.cart-badge.show {
  opacity: 1;
  transform: scale(1);
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-selected {
  height: 40px;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
}

.lang-selected:hover, .lang-selected.active {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.lang-selected svg {
  transition: var(--transition-fast);
}

.lang-selected.active svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: -10px; /* Small offset to prevent clipping */
  width: 150px;
  background: #141c2b; /* Solid premium dark background */
  border: 1px solid rgba(16, 185, 129, 0.3); /* Subtle gold border */
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.1);
  padding: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: top right;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10001; /* Above loader (9999) */
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: -10px; /* Safety margin for RTL too */
  transform-origin: top left;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown button {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

[dir="rtl"] .lang-dropdown button {
  text-align: right;
}

.lang-dropdown button:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-gold);
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.nav-mobile-overlay.active {
  display: flex;
  opacity: 1;
}

.nav-mobile-overlay a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: var(--space-md) 0;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.nav-mobile-overlay.active a {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile-overlay.active a:nth-child(1) { transition-delay: 0.1s; }
.nav-mobile-overlay.active a:nth-child(2) { transition-delay: 0.15s; }
.nav-mobile-overlay.active a:nth-child(3) { transition-delay: 0.2s; }
.nav-mobile-overlay.active a:nth-child(4) { transition-delay: 0.25s; }
.nav-mobile-overlay.active a:nth-child(5) { transition-delay: 0.3s; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.3) 0%,
    rgba(10, 10, 15, 0.5) 40%,
    rgba(10, 10, 15, 0.95) 85%,
    var(--bg-primary) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-gold-light);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease both;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
  animation: pulse 2s ease infinite;
}

/* ========================================
   MASSIVE STACKED HERO TITLE
   ======================================== */
.hero-title-stacked {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-title-stacked .stack-line {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  letter-spacing: -0.04em;
}

.hero-title-stacked .solid {
  color: var(--text-primary);
}

.hero-title-stacked .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-gold);
  /* Optional: animated gradient stroke */
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s ease 0.3s both;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  animation: fadeInUp 0.8s ease 0.45s both;
  flex-wrap: wrap;
}

/* ========================================
   PREMIUM BENTO GRID (GLASSMORPHISM)
   ======================================== */
.hero-bento-premium {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-3xl);
  max-width: 600px;
  width: 100%;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.bento-row-small {
  display: flex;
  gap: var(--space-md);
}

.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: rgba(13, 17, 23, 0.4);
  flex: 1;
}

.bento-glass {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 0;
}

.bento-content {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.bento-content.center {
  align-items: center;
  text-align: center;
}

.bento-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  text-transform: uppercase;
}

.bento-avatars {
  display: flex;
}

.bento-avatars .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #0d1117;
  margin-left: -16px;
  background-size: cover;
  background-position: center;
}
.bento-avatars .avatar:first-child { margin-left: 0; }

.bento-neon-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.bento-neon-icon {
  width: 40px;
  height: 40px;
  stroke: var(--accent-gold);
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.5));
  margin-bottom: var(--space-sm);
}

.bento-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: fadeInUp 0.8s ease 0.75s both;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ========================================
   RECONSTRUCTION: CATEGORY TABS
   ======================================== */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
  overflow-x: auto;
  padding: var(--space-sm) 0;
  scrollbar-width: none; /* Hide scrollbar for clean look */
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 12px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tab:hover {
  background: var(--bg-card);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-1px);
}

/* FIXED CONTRAST: High-Impact Gold for Selected Type */
.category-tab.active {
  background: var(--accent-gradient) !important;
  background-color: var(--accent-gold) !important; /* Fallback */
  color: #0d1117 !important; /* Absolute dark navy for maximum contrast on gold */
  border-color: var(--accent-gold-light) !important;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  text-shadow: none; /* Clean text on gold */
}

[dir="rtl"] .search-icon {
  left: auto;
  right: 18px;
}
[dir="rtl"] .search-input-wrapper input {
  padding: 14px 50px 14px 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: 4px; /* Sharp, modern neo-brutalist style */
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: 2px solid transparent;
}

/* ========================================
   RADICAL BUTTONS
   ======================================== */
.radical-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  background: var(--bg-primary);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 8px;
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  cursor: pointer;
  z-index: 1;
}

.btn-magnetic .magnetic-text {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn-magnetic .magnetic-scanner {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  z-index: 0;
}

.btn-magnetic:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3), inset 0 0 20px rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 1);
}

.btn-magnetic:hover .magnetic-scanner {
  left: 200%;
  transition: left 0.7s ease;
}

.btn-minimal-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 4px;
  cursor: pointer;
}

.btn-minimal-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-gold);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-minimal-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.btn-minimal-arrow:hover {
  color: var(--text-primary);
}

.btn-minimal-arrow:hover svg {
  transform: translateX(6px);
}

.btn-minimal-arrow:hover::after {
  width: 100%;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   CATEGORY TABS
   ======================================== */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  padding: 0 var(--space-md);
}

.category-tab {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-base);
  cursor: pointer;
}

.category-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.category-tab.active {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition-base);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-badge.bestseller {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

.product-badge.new {
  background: var(--success);
  color: var(--bg-primary);
}

.product-badge.sale {
  background: var(--error);
  color: #fff;
}

.product-badge.coming-soon {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
  animation: comingSoonPulse 2.4s ease-in-out infinite;
}

@keyframes comingSoonPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(59, 130, 246, 0.45); }
  50%      { box-shadow: 0 0 20px rgba(139, 92, 246, 0.65); }
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-image .quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
  transform: translateY(100%);
  transition: var(--transition-base);
  display: flex;
  justify-content: center;
}

.product-card:hover .product-image .quick-add {
  transform: translateY(0);
}

.product-info {
  padding: var(--space-lg);
}

.product-category-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.product-price .original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: var(--space-xs);
  font-weight: 400;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-rating .star {
  color: var(--accent-gold);
  font-size: 0.75rem;
}

.product-rating .count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: var(--space-xs);
}

/* ========================================
   FEATURES / BENEFITS SECTION
   ======================================== */
.premium-features-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
  margin-top: var(--space-3xl);
  overflow: hidden; /* Prevent background text from leaking */
}

.premium-feature-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 400px;
  padding: var(--space-3xl) 0;
}

.premium-feature-row.right {
  justify-content: flex-end;
  text-align: right;
}

.feature-bg-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 20rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.premium-feature-row.left .feature-bg-text {
  right: -5%;
}

.premium-feature-row.right .feature-bg-text {
  left: -5%;
}

.feature-text-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   DOUBLE STACKED MARQUEE (RADICAL)
   ======================================== */
.radical-marquee-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.marquee-row {
  display: flex;
  white-space: nowrap;
}

.marquee-left .marquee-content {
  animation: marquee-left 40s linear infinite;
  display: flex;
  gap: var(--space-2xl);
}

.marquee-right .marquee-content {
  animation: marquee-right 40s linear infinite;
  display: flex;
  gap: var(--space-2xl);
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-text {
  font-family: var(--font-display);
  font-size: 5rem; /* Massive text */
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
}

.marquee-text.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text-secondary);
  opacity: 0.5;
}

.marquee-text.solid {
  color: var(--text-primary);
  opacity: 0.9;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-track {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-md);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 320px;
  max-width: 400px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: var(--transition-base);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-stars .star {
  color: var(--accent-gold);
  font-size: 0.85rem;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--bg-primary);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-section {
  padding: var(--space-4xl) 0;
}

.cta-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
  border-radius: var(--radius-full);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06), transparent 70%);
  border-radius: var(--radius-full);
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.cta-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-base);
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* ========================================
   FOOTER
   ======================================== */


/* ========================================
   CART DRAWER
   ======================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: var(--bg-secondary);
  z-index: 2001;
  transform: translateX(100%);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-subtle);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  transition: var(--transition-fast);
}

.cart-close:hover {
  background: var(--bg-card-hover);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.cart-item-price {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  border-color: var(--border-hover);
}

.cart-item-qty {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--error);
}

.cart-empty {
  text-align: center;
  padding: var(--space-3xl) 0;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.cart-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) var(--space-xl);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

/* ===== WHATSAPP BUTTONS ===== */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition-fast);
  text-decoration: none;
  width: 100%;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.card-whatsapp-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(37, 211, 102, 0.9);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
}

.card-whatsapp-btn:hover {
  background: #25D366;
  transform: scale(1.1);
}

/* ===== REVIEWS SYSTEM ===== */
.reviews-section {
  margin-top: 30px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.stars-rating {
  display: flex;
  gap: 4px;
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.review-form {
  background: rgba(255,255,255,0.03);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
  border: 1px solid var(--border-subtle);
}

.star-input {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  cursor: pointer;
}

.star-input .star {
  font-size: 1.5rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.star-input .star.active {
  color: var(--accent-gold);
}

.review-item {
  padding: 15px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 15px;
}

.review-user {
  font-weight: 600;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-light);
}

/* ===== NEWSLETTER ===== */
.cta-section {
  padding: var(--space-3xl) 0;
  background: var(--bg-card);
}

.cta-banner {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  padding: var(--space-3xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
  color: var(--text-light);
}

.cta-text {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.cta-form {
  display: flex;
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

@media (max-width: 576px) {
  .cta-form {
    flex-direction: column;
  }
}

.cart-total-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cart-total-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-glow);
}

.cart-checkout-btn:hover {
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-1px);
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.85rem;
  transform: translateX(120%);
  transition: var(--transition-spring);
  min-width: 280px;
}

.toast.show {
  transform: translateX(0);
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-success {
  border-color: rgba(52, 211, 153, 0.3);
}

/* ========================================
   PRODUCT MODAL — PREMIUM LIGHT THEME (v3)
   ======================================== */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  max-width: 840px;  /* Wider for split view */
  width: 100%;
  max-height: 90vh;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: row; /* Split view on desktop */
  overflow: hidden; /* Hide overflowing corners */
}

.product-modal-overlay.active .product-modal {
  transform: scale(1) translateY(0);
}

/* ---- Product Gallery (Modal) ---- */
.modal-gallery {
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
  flex: 1; /* Take up half the modal */
  min-width: 40%;
  display: flex;
  align-items: center;
}

.modal-gallery-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  width: 100%;
}

.product-modal-image {
  width: 100%;
  min-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain; /* Decreased zoom so product fits perfectly */
  padding: 20px;
  flex-shrink: 0;
  cursor: zoom-in;
  mix-blend-mode: normal;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: #111111;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s;
  line-height: 1;
}

.gallery-arrow:hover { 
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-dot.active { 
  background: #111111; 
  transform: scale(1.2); 
}

.product-modal-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent body scrolling directly */
  height: 100%;
  box-sizing: border-box;
}

.product-modal-scrollable-content {
  flex: 1;
  overflow-y: auto; /* Scrollable content area */
  margin-bottom: 20px;
  padding-right: 4px; /* Scrollbar spacing */
}

.product-modal-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.product-modal-name {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 8px;
  line-height: 1.25;
}

.product-modal-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #111111;
  margin-bottom: 16px;
}

.product-modal-desc {
  color: #555555;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.product-modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.product-modal-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #444444;
  padding: 8px 12px;
  background: #f7f7f7;
  border-radius: 8px;
  font-weight: 500;
}

.product-modal-feature .check {
  color: #10b981;
}

.product-modal-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0; /* Actions never shrink */
  border-top: 1px solid #eeeeee;
  padding-top: 16px;
  background: #ffffff;
}

.product-modal-actions .btn-primary {
  background: #111111 !important;
  color: #ffffff !important;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: none;
  font-size: 0.95rem;
  padding: 14px 20px;
  border: none;
  transition: all 0.2s ease !important;
}

.product-modal-actions .btn-primary:hover {
  background: #cc181e !important;
}

.product-modal-actions .btn-whatsapp {
  background: #25d366 !important;
  color: #ffffff !important;
  border-radius: 12px;
  font-weight: 700;
  padding: 14px 20px;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease !important;
}

.product-modal-actions .btn-secondary {
  background: #f3f3f3 !important; /* Clean light grey Close button */
  color: #555555 !important;
  border-radius: 12px;
  font-weight: 700;
  padding: 14px 20px;
  border: none;
  text-transform: none;
  font-size: 0.95rem;
  transition: all 0.2s ease !important;
}

.product-modal-actions .btn-secondary:hover {
  background: #eaeaea !important;
  color: #111111 !important;
}

.product-modal-actions .btn-whatsapp:hover {
  background: #1da851 !important;
}

.product-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #111111;
  transition: all 0.2s ease;
  z-index: 10;
}

.product-modal-close:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-base);
  cursor: pointer;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes scrollPulse {
  0%, 100% { 
    opacity: 0.3;
    transform: scaleY(0.7);
    transform-origin: top;
  }
  50% { 
    opacity: 1;
    transform: scaleY(1);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .hero-stats {
    gap: var(--space-xl);
  }

  .hero-stat .stat-label {
    font-size: 0.65rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .product-info {
    padding: var(--space-md);
  }

  .product-name {
    font-size: 0.9rem;
  }

  .product-desc {
    display: none;
  }

  .product-price {
    font-size: 1rem;
  }

  .product-image .quick-add {
    transform: translateY(0);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form input,
  .cta-form .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .testimonial-card {
    min-width: 280px;
  }

  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .toast {
    min-width: auto;
    width: 100%;
  }

  .back-to-top {
    left: auto;
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .product-modal {
    max-height: 85vh;
  }

  .product-modal-features {
    grid-template-columns: 1fr;
  }

  .product-modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* ========================================
   LOADING STATE
   ======================================== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  animation: loaderSlide 1s ease infinite;
}

.loader-status {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  text-align: center;
  min-height: 1.1em;          /* reserve space so layout doesn't jump */
  transition: opacity 0.3s ease;
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.delete-review-btn {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.2);
  color: #ff4757;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-review-btn:hover {
  background: #ff4757;
  color: #fff;
  transform: scale(1.1);
}

/* ===== Stock Management ===== */
.product-card.out-of-stock {
  opacity: 0.8;
}

.stock-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #ff4757;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.btn-add-cart:disabled {
  background: var(--bg-card);
  color: var(--text-muted);
  border-color: var(--border-color);
  cursor: not-allowed;
  transform: none !important;
}

.btn-add-cart:disabled::after {
  content: ' (Sold Out)';
}

/* Fix for Select Dropdown visibility */
select option {
  background-color: #1a1a1f; 
  color: #fff;
  padding: 10px;
}

/* ===== YALIDINE DELIVERY FOOTER ===== */
.delivery-features {
  background: #0a0a0a;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  contain: content;
  transform: translateZ(0); /* Force GPU acceleration */
  backface-visibility: hidden;
  perspective: 1000px;
}

.products-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: stretch;
  flex-wrap: wrap;
}

/* ========================================
   PREMIUM MAGNETIC SEARCH
   ======================================== */
.premium-search-container {
  flex: 1;
  position: relative;
  min-width: 200px;
}

.premium-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  height: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.premium-search-box:focus-within {
  background: var(--bg-card);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2), 0 10px 20px rgba(0,0,0,0.5);
  transform: scale(1.02);
}

.premium-search-box .search-icon {
  position: absolute;
  left: 20px;
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  transition: stroke 0.4s;
}

.premium-search-box:focus-within .search-icon {
  stroke: var(--accent-gold);
}

.premium-search-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0 50px 0 50px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
}

.premium-search-input::placeholder {
  color: var(--text-muted);
}

.premium-clear {
  position: absolute;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
}

.premium-clear:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}

.premium-clear svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-primary);
}

@media (max-width: 768px) {
  .products-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .filter-group {
    display: flex;
    gap: 10px;
    width: 100%;
  }
  
  .filter-group select {
    flex: 1;
    width: 50%; /* Force side-by-side on mobile */
  }
}

/* ========================================
   TERMINAL FOOTER ISLAND
   ======================================== */
.terminal-footer-wrapper {
  padding: var(--space-4xl) var(--space-md) var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.terminal-footer-island {
  position: relative;
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: var(--space-2xl);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.terminal-delivery-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pulse-dot.green {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-green 2s infinite;
}

.pulse-dot.gold {
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(16,185,129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129, 0); }
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(212,168,67, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(212,168,67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212,168,67, 0); }
}

.terminal-footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.terminal-brand-block {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.terminal-logo-img {
  height: 48px;
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.terminal-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.terminal-slogan {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.terminal-socials {
  display: flex;
  gap: var(--space-sm);
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-pill:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.terminal-links-block {
  display: flex;
  gap: var(--space-3xl);
}

.terminal-link-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.terminal-col-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.terminal-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.terminal-link:hover {
  color: var(--accent-gold);
}

.terminal-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-legal {
  display: flex;
  gap: var(--space-md);
}

.terminal-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.terminal-legal a:hover {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .terminal-footer-island {
    padding: var(--space-xl);
  }
  .terminal-links-block {
    flex-direction: column;
    gap: var(--space-xl);
  }
  .terminal-footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.lang-toggle:hover {
  background: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.category-tab.active {
  background: linear-gradient(135deg, var(--primary-color), #10b981);
  color: #000;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

[dir="rtl"] .category-tab {
  letter-spacing: 0;
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] {
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

[dir="rtl"] .navbar .container {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-right {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
  text-align: right;
  align-items: flex-end;
}

[dir="rtl"] .hero-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-actions .btn svg {
  transform: rotate(180deg);
  margin-right: 10px;
  margin-left: 0;
}

[dir="rtl"] .section-header {
  text-align: right;
}

[dir="rtl"] .products-controls {
  flex-direction: row-reverse;
}

.products-controls {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.1), transparent 42%),
    rgba(14, 14, 22, 0.88);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}


.filter-group {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.filter-group select {
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23d4a843' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 14px center;
  background-size: auto, 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 12px 42px 12px 16px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  min-width: 140px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

.filter-group select:hover,
.filter-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.08);
}

.filter-group select option {
  background: #171720;
  color: #f2f0ed;
}

.filter-group select option:checked {
  background: #2a2111;
  color: #f8e4ad;
}

.products-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  color: var(--text-secondary);
}

.products-results-copy {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.products-meta-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.products-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.products-meta-tag strong {
  color: var(--text-primary);
}

.products-reset-btn,
.products-empty-action {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-gold-light);
  font-weight: 700;
  transition: var(--transition-fast);
}

.products-reset-btn:hover,
.products-empty-action:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.55);
}

/* --------- CYBER HOLOGRAM LOADING & QUERY CONSOLE --------- */
.hologram-console {
  grid-column: 1 / -1;
  position: relative;
  border-radius: 28px;
  background: rgba(8, 10, 13, 0.7);
  border: 1px solid rgba(212, 168, 67, 0.1);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(212, 168, 67, 0.02);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 40px;
  transition: border-color 0.4s ease;
}

.hologram-console.no-results-state {
  border-color: rgba(255, 71, 87, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(255, 71, 87, 0.02);
}

.hologram-console:hover {
  border-color: rgba(212, 168, 67, 0.25);
}

.hologram-console.no-results-state:hover {
  border-color: rgba(255, 71, 87, 0.25);
}

/* Horizontal Laser Scanning Line */
.console-laser-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold, #d4af37) 50%, transparent);
  box-shadow: 0 0 15px var(--accent-gold, #d4af37);
  animation: scan-vertical 5s linear infinite;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.console-laser-line.error-mode {
  background: linear-gradient(90deg, transparent, #ff4757 50%, transparent);
  box-shadow: 0 0 15px #ff4757;
  opacity: 0.5;
}

@keyframes scan-vertical {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

.console-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.console-glow.error-mode {
  background: radial-gradient(circle, rgba(255, 71, 87, 0.04) 0%, transparent 70%);
}

.console-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Diagnostics Panel (Left) */
.console-diagnostics {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  justify-content: center;
}

.diagnostics-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.pulse-dot-red {
  width: 6px;
  height: 6px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ecc71;
  animation: pulse-dot-green 1.5s infinite;
}

.pulse-dot-red.error-color {
  background: #ff4757;
  box-shadow: 0 0 8px #ff4757;
  animation: pulse-dot-error 1.5s infinite;
}

@keyframes pulse-dot-green {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; box-shadow: 0 0 12px #2ecc71; }
}

@keyframes pulse-dot-error {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; box-shadow: 0 0 12px #ff4757; }
}

.diagnostics-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-line {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: pre-wrap;
}

.log-line.success {
  color: rgba(46, 204, 113, 0.85);
}

.log-line.warning {
  color: rgba(212, 168, 67, 0.85);
}

.log-line.error {
  color: rgba(255, 71, 87, 0.85);
}

.log-line.blink {
  animation: log-blink 1s infinite steps(2);
}

@keyframes log-blink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* Radar core visualization (Right) */
.console-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.radar-scanner {
  position: relative;
  width: 110px;
  height: 110px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 168, 67, 0.1);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(212, 168, 67, 0.05);
}

.radar-scanner.error-mode {
  border-color: rgba(255, 71, 87, 0.1);
  box-shadow: inset 0 0 15px rgba(255, 71, 87, 0.05);
}

.radar-grid {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg at 0% 0%, rgba(212, 168, 67, 0.15) 0deg, transparent 90deg);
  transform-origin: top left;
  animation: radar-sweep-rotate 4s linear infinite;
  pointer-events: none;
}

@keyframes radar-sweep-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-dot {
  position: absolute;
  top: 30%;
  left: 65%;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold);
  animation: radar-dot-fade 1.5s infinite;
}

@keyframes radar-dot-fade {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.console-action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.console-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.console-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
  max-width: 320px;
}

.btn-console-action {
  background: rgba(212, 168, 67, 0.05);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 14px 28px;
  border-radius: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-console-action:hover {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 25px rgba(212, 168, 67, 0.35);
  transform: translateY(-2px);
}

.btn-console-action.error-btn {
  border-color: #ff4757;
  color: #ff4757;
  background: rgba(255, 71, 87, 0.05);
}

.btn-console-action.error-btn:hover {
  background: #ff4757;
  color: #fff;
  box-shadow: 0 0 25px rgba(255, 71, 87, 0.35);
}

/* Responsive console */
@media (max-width: 992px) {
  .console-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hologram-console {
    padding: 32px 24px;
  }
}

.products-empty-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.products-empty h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.products-empty p {
  max-width: 460px;
  color: var(--text-secondary);
}

[dir="rtl"] .filter-group select {
  background-position: center, left 14px center;
  padding: 12px 16px 12px 42px;
}

[dir="rtl"] .cart-drawer {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

[dir="rtl"] .cart-drawer.active {
  transform: translateX(0);
}

[dir="rtl"] .cart-drawer-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .cart-total {
  flex-direction: row-reverse;
}

[dir="rtl"] .product-card-badge {
  right: auto;
  left: 15px;
}

[dir="rtl"] .delivery-item {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .footer-grid {
  text-align: right;
}

[dir="rtl"] .footer-brand {
  text-align: right;
}

[dir="rtl"] .footer-links {
  padding: 0;
}

[dir="rtl"] .footer-bottom .container {
  flex-direction: row-reverse;
}

[dir="rtl"] .modal-content {
  text-align: right;
}

[dir="rtl"] .form-actions {
  flex-direction: row-reverse;
}

.payment-badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
}

@media (max-width: 850px) {
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 20px;
  }
  .delivery-divider {
    display: none;
  }
  .delivery-item p {
    max-width: 100%;
  }
}

#checkout-wilaya:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
/* ========================================
   ADMIN DASHBOARD — Advanced UI/UX
   ======================================== */
.admin-view-container {
  display: flex;
  min-height: 100vh;
  background: #050508;
  color: #fff;
}

.admin-sidebar {
  width: 260px;
  background: rgba(10, 10, 15, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.admin-sidebar-header {
  padding: 0 25px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.admin-nav {
  flex: 1;
  padding: 0 15px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
  border: 1px solid transparent;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-nav-item.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-gold);
  border-color: rgba(16, 185, 129, 0.2);
}

.admin-nav-item .icon { font-size: 1.2rem; }

.admin-main {
  flex: 1;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.admin-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.admin-section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.stat-card {
  height: auto;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card .label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: var(--accent-gold); margin-top: 5px; }

/* Table Enhancements */
.admin-table-wrapper { overflow-x: auto; border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: rgba(255, 255, 255, 0.02); padding: 15px; text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
.admin-table td { padding: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }

.promo-badge {
  padding: 4px 10px;
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

/* ---- Image Upload Zone (Admin) ---- */
.image-upload-zone {
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255,255,255,0.02);
}
.image-upload-zone:hover, .image-upload-zone.drag-over {
  border-color: var(--accent-gold);
  background: rgba(16, 185, 129,0.05);
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.upload-placeholder svg { opacity: 0.4; }
.image-previews {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.img-preview-item {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  cursor: grab;
  transition: border-color 0.2s;
}
.img-preview-item:hover { border-color: var(--accent-gold); }
.img-preview-item.dragging { opacity: 0.4; }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.img-preview-remove {
  position: absolute;
  top: 3px; right: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,71,87,0.9);
  color: #fff;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-preview-main {
  position: absolute;
  bottom: 3px; left: 3px;
  background: var(--accent-gold);
  color: #000;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}
.img-preview-order {
  position: absolute;
  top: 3px; left: 3px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Translation Section (Admin) ---- */
.translation-section {
  margin: 8px 0;
  padding: 18px;
  background: rgba(99,102,241,0.04);
  border: 1px solid rgba(99,102,241,0.12);
  border-radius: 12px;
}
.translation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.btn-auto-translate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 8px;
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-auto-translate:hover { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.4); }
.btn-auto-translate:disabled { opacity: 0.5; cursor: not-allowed; }
.translation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px) { .translation-grid { grid-template-columns: 1fr; } }

.admin-logout-btn {
  margin: 20px 15px 0;
  padding: 12px;
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
  border: 1px solid rgba(255, 71, 87, 0.2);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.admin-logout-btn:hover { background: #ff4757; color: #fff; }

/* ---- Dashboard Header ---- */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}
.dash-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.dash-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.dash-header-right { display: flex; align-items: center; gap: 12px; }
.dash-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}
.btn-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}
.btn-icon:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-icon.spinning svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Stat Cards Grid ---- */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}
.dash-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.dash-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.dash-stat-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }
.dash-stat-card:hover::before { opacity: 1; }
.dash-stat-revenue { border-color: rgba(16, 185, 129,0.15); }
.dash-stat-revenue:hover { border-color: rgba(16, 185, 129,0.3); }

.dash-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.dash-stat-info { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.dash-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.dash-stat-value { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1.1; }
.dash-stat-revenue .dash-stat-value { color: var(--accent-gold); }

.dash-stat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  width: 100%;
  align-self: stretch;
}
.dash-stat-detail { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

.dash-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,71,87,0.08);
  border: 1px solid rgba(255,71,87,0.2);
  border-radius: 6px;
  color: #ff6b7a;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.dash-reset-btn:hover { background: rgba(255,71,87,0.18); border-color: rgba(255,71,87,0.4); }

/* ---- Quick Actions Row ---- */
.dash-actions-row {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}
.dash-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.dash-action-btn:hover {
  background: rgba(16, 185, 129,0.08);
  border-color: rgba(16, 185, 129,0.25);
  color: var(--accent-gold);
}

/* ---- Bottom Grid ---- */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
}
.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dash-card-header h3 { font-size: 1rem; font-weight: 700; }
.dash-link-btn {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}
.dash-link-btn:hover { opacity: 0.7; }
.dash-alert-count {
  background: rgba(255,71,87,0.15);
  color: #ff6b7a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}
.dash-alert-count.clear { background: rgba(16,185,129,0.12); color: #34d399; }

/* Recent Orders List */
.dash-recent-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.dash-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.dash-order-item:hover { background: rgba(255,255,255,0.05); }
.dash-order-left { display: flex; flex-direction: column; gap: 3px; }
.dash-order-name { font-weight: 600; font-size: 0.85rem; }
.dash-order-date { font-size: 0.7rem; color: var(--text-muted); }
.dash-order-right { text-align: right; }
.dash-order-total { font-weight: 700; color: var(--accent-gold); font-size: 0.9rem; }
.dash-order-status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.dash-order-status.confirmed { color: #34d399; }
.dash-order-status.pending { color: #fbbf24; }

/* Alerts List */
.dash-alerts-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.dash-alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
}
.dash-alert-item.warning { background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.12); color: #fbbf24; }
.dash-alert-item.danger { background: rgba(255,71,87,0.06); border: 1px solid rgba(255,71,87,0.12); color: #ff6b7a; }
.dash-alert-item.info { background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.12); color: #818cf8; }
.dash-alert-icon { font-size: 1rem; flex-shrink: 0; }
.dash-alert-text { line-height: 1.4; }
.dash-alert-text strong { display: block; font-size: 0.78rem; }

.dash-empty-state {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
  .admin-view-container { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; padding: 20px 0; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .dash-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .dash-stats-grid { grid-template-columns: 1fr; }
  .dash-actions-row { flex-direction: column; }
}

@media (max-width: 640px) {
  .admin-view-container {
    min-height: 100dvh;
  }

  .admin-sidebar {
    padding: 12px 0 !important;
  }

  .admin-sidebar-header {
    padding: 0 16px 12px !important;
    margin-bottom: 10px !important;
    text-align: center;
  }

  .admin-sidebar-header .logo-icon-mask {
    width: 42px !important;
    height: 42px !important;
    margin-bottom: 8px !important;
  }

  .admin-sidebar-header h2 {
    font-size: 1rem !important;
    margin: 0 !important;
  }

  .admin-sidebar-header p {
    display: none !important;
  }

  .admin-nav {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 0 12px 4px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-nav-item {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    min-height: 42px !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
  }

  .admin-logout-btn {
    margin: 10px 12px 0 !important;
    padding: 10px 12px !important;
    text-align: center;
  }

  .admin-main {
    padding: 18px 12px 28px !important;
    max-width: none !important;
  }

  .admin-card {
    padding: 16px !important;
    border-radius: 12px !important;
    margin-bottom: 18px !important;
  }

  .dash-header {
    gap: 12px !important;
    margin-bottom: 18px !important;
  }

  .dash-title,
  .admin-section > h2,
  #section-products h2 {
    font-size: 1.25rem !important;
  }

  .dash-header-right,
  .dash-actions-row,
  #productForm > div[style*="display:flex"],
  #productForm .form-group div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #productForm input,
  #productForm select,
  #productForm textarea,
  #promoForm input,
  #promoForm select,
  .admin-card input,
  .admin-card select,
  .admin-card textarea {
    min-height: 44px !important;
    font-size: 16px !important;
    width: 100% !important;
  }

  #productForm .form-group {
    margin-bottom: 14px !important;
  }

  .image-upload-zone {
    padding: 18px !important;
  }

  .upload-placeholder {
    text-align: center !important;
  }

  .img-preview-item {
    width: 76px !important;
    height: 76px !important;
  }

  .admin-table-wrapper {
    border-radius: 10px !important;
    margin: 0 -6px !important;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px !important;
    font-size: 0.78rem !important;
  }
}

/* ========================================
   MODERN CHECKOUT FORM
   ======================================== */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Unified Input Group (Promo) */
.input-group {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-base);
}

.input-group:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
}

.input-group .btn-apply {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  padding: 0 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.input-group .btn-apply:hover {
  background: var(--accent-gold-light);
}

/* Modern Delivery Selection */
.delivery-options {
  display: flex;
  gap: var(--space-sm);
}

.delivery-pill {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.delivery-pill input {
  position: absolute;
  opacity: 0;
}

.delivery-pill .pill-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition-base);
}

.delivery-pill input:checked + .pill-content {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.delivery-options.delivery-required .pill-content {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

/* Premium Summary Box */
.checkout-summary-box {
  margin-top: var(--space-md);
  padding: var(--space-lg);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

@media (max-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Specific Checkout Modal Styling */
.checkout-modal {
  max-width: 560px !important;
  border-right: 4px solid var(--accent-gold) !important; /* Calm Amar green accent line on the side */
  border-left: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important; /* Hide overflow of outer shell */
  max-height: 92vh !important; /* Give the form more usable vertical room */
  background: #ffffff !important; /* Solid premium white background */
  color: #111111 !important; /* Premium dark text */
  box-shadow: 0 24px 64px rgba(0,0,0,0.2) !important;
  border-radius: 20px !important;
}

[dir="rtl"] .checkout-modal {
  border-right: none !important;
  border-left: 4px solid var(--accent-gold) !important;
}

.checkout-modal .modal-content {
  padding: 0 !important; /* Managed by inner content and scroll container */
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.checkout-modal .checkout-form {
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important; /* Form handles overall flex */
  min-height: 0 !important;
}

/* Scrollable container for the checkout form inputs */
.checkout-modal .form-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 14px 20px !important;
  align-items: flex-start !important;
  padding: 18px var(--space-2xl) 6px var(--space-2xl) !important;
  overflow-y: auto !important;
  flex: 1 !important;
  min-height: 0 !important;
  scrollbar-gutter: stable !important;
}

.checkout-modal h2 {
  font-family: var(--font-display) !important;
  color: #111111 !important; /* Bold, solid black header */
  font-weight: 800 !important;
  font-size: 1.45rem !important;
  margin: 22px var(--space-2xl) 4px var(--space-2xl) !important;
}

.checkout-modal .modal-subtitle {
  color: #555555 !important; /* Muted black/dark grey subtitle */
  font-size: 0.84rem !important;
  margin: 0 var(--space-2xl) 0 var(--space-2xl) !important;
}

.checkout-modal .form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.checkout-modal .form-group label {
  color: #333333 !important; /* Solid dark labels */
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

.checkout-modal .form-input {
  background: #f7f7f7 !important; /* Clean light grey input backgrounds */
  border: 1px solid #e0e0e0 !important; /* Legible input border */
  color: #111111 !important; /* Solid black user input text */
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-weight: 500 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.checkout-modal .form-input:focus {
  border-color: var(--accent-gold) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12) !important;
}

.checkout-modal .form-input::placeholder {
  color: #999999 !important; /* Clearly readable placeholder text */
  opacity: 1 !important;
}

/* Delivery options in checkout modal */
.checkout-modal .delivery-pill .pill-content {
  background: #f7f7f7 !important;
  border: 1px solid #e0e0e0 !important;
  color: #555555 !important;
  border-radius: 8px !important;
}

.checkout-modal .delivery-pill input:checked + .pill-content {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: var(--accent-gold) !important;
  color: var(--accent-gold-dark) !important;
}

/* Promo Code section */
.checkout-modal #promo-code {
  background: #f7f7f7 !important;
  border: 1px solid #e0e0e0 !important;
  color: #111111 !important;
  border-radius: 8px 0 0 8px !important;
  padding: 14px 16px !important;
}

.checkout-modal .btn-apply {
  background: #111111 !important; /* Solid black apply button */
  color: #ffffff !important;
  border-radius: 0 8px 8px 0 !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 0 20px !important;
  transition: all 0.2s ease !important;
}

.checkout-modal .btn-apply:hover {
  background: var(--accent-gold-dark) !important;
}

/* Summary box and action buttons - sticky footer inside the modal */
.checkout-modal .checkout-summary-box {
  background: rgba(16, 185, 129, 0.06) !important;
  border: 1px dashed rgba(16, 185, 129, 0.22) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  margin: 6px var(--space-2xl) 0 var(--space-2xl) !important;
}

.checkout-modal #checkoutSummary {
  color: var(--accent-gold-dark) !important;
  font-weight: 800 !important;
  font-size: 0.98rem !important;
  line-height: 1.35 !important;
}

.checkout-modal #checkoutSummary > div {
  font-size: 0.82rem !important;
  margin-bottom: 2px !important;
  margin-top: 0 !important;
}

.checkout-modal #checkoutSummary > div:nth-last-child(2) {
  font-size: 1.02rem !important;
  margin-top: 4px !important;
}

.checkout-modal #checkoutSummary > div:last-child {
  font-size: 0.74rem !important;
}

.checkout-modal .checkout-form > div[style*="display: grid"] {
  padding: 12px var(--space-2xl) 16px var(--space-2xl) !important;
  border-top: 1px solid #eeeeee !important;
  background: #ffffff !important;
  margin-top: 8px !important;
  box-sizing: border-box !important;
}

.checkout-modal .btn-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 55%, #34d399 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  border-radius: 12px !important;
  padding: 12px 20px !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28) !important;
  transition: all 0.25s ease !important;
}

.checkout-modal .btn-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 60%, #10b981 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.38) !important;
}

.checkout-modal .btn-secondary {
  background: #f3f3f3 !important; /* Sleek light grey cancel button */
  color: #555555 !important; /* Dark grey text */
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border-radius: 12px !important;
  padding: 12px 20px !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

.checkout-modal .btn-secondary:hover {
  background: #eaeaea !important;
  color: #111111 !important;
}

@media (max-width: 640px) {
  .checkout-modal {
    width: calc(100vw - 20px) !important;
    max-height: 92dvh !important;
    border-radius: 18px !important;
  }

  .checkout-modal h2 {
    font-size: 1.22rem !important;
    margin: 16px 20px 4px 20px !important;
  }

  .checkout-modal .modal-subtitle {
    font-size: 0.78rem !important;
    margin: 0 20px !important;
  }

  .checkout-modal .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px 20px 4px 20px !important;
  }

  .checkout-modal .form-group label {
    font-size: 0.68rem !important;
    letter-spacing: 0.6px !important;
  }

  .checkout-modal .form-input,
  .checkout-modal #promo-code {
    min-height: 40px !important;
    padding: 10px 12px !important;
    font-size: 0.92rem !important;
  }

  .checkout-modal .delivery-pill .pill-content {
    padding: 10px !important;
    min-height: 42px !important;
  }

  .checkout-modal .checkout-summary-box {
    padding: 8px 10px !important;
    margin: 5px 20px 0 20px !important;
    border-radius: 10px !important;
  }

  .checkout-modal #checkoutSummary > div {
    font-size: 0.76rem !important;
  }

  .checkout-modal #checkoutSummary > div:nth-last-child(2) {
    font-size: 0.94rem !important;
  }

  .checkout-modal #checkoutSummary > div:last-child {
    font-size: 0.7rem !important;
  }

  .checkout-modal .checkout-form > div[style*="display: grid"] {
    grid-template-columns: 0.9fr 1.4fr !important;
    gap: 10px !important;
    padding: 10px 20px 12px 20px !important;
    margin-top: 6px !important;
  }

  .checkout-modal .btn-primary,
  .checkout-modal .btn-secondary {
    padding: 11px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 10px !important;
    letter-spacing: 0.3px !important;
  }
}




/* ================================================================
   =========== ROUTER VIEWS + NEW PAGE COMPONENTS =================
   ================================================================ */

/* Hidden view containers */
[data-view][hidden] { display: none !important; }

/* --------- NAV DROPDOWN (Shop menu) --------- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  background: transparent;
  border: none;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--accent-gold);
  background: rgba(16, 185, 129, 0.08);
}
.nav-dropdown-toggle svg {
  transition: transform 0.2s;
}
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover {
  background: rgba(16, 185, 129, 0.08);
  color: var(--text-primary);
}
.nav-dropdown-all {
  font-weight: 700;
  color: var(--accent-gold);
}
.nav-dropdown-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 8px;
}
.nav-link.active {
  color: var(--accent-gold) !important;
}

/* --------- MOBILE NAV CATEGORIES --------- */
.mobile-nav-section-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 20px 0 8px;
  padding: 0 20px;
}
.mobile-nav-category {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 14px 20px !important;
  font-size: 1rem !important;
}
.mobile-nav-icon {
  font-size: 1.3rem;
  width: 28px;
  text-align: center;
}

/* --------- BREADCRUMB --------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover {
  color: var(--accent-gold);
}
.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.5;
}
.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* --------- PREMIUM MINIMALIST CATALOG HERO (LIGHT THEME & RED ACCENT) --------- */
.premium-catalog-hero {
  position: relative;
  padding: 80px 0 60px;
  background: radial-gradient(circle at center, #f4f3f0 0%, #e9e6e0 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.hero-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(204, 24, 30, 0.04) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.breadcrumb-premium {
  position: relative;
  z-index: 2;
  margin-bottom: var(--space-lg);
}

.breadcrumb-premium a,
.breadcrumb-premium span {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666666 !important;
}

.breadcrumb-premium a:hover {
  color: #cc181e !important;
}

.hero-minimal-layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.hero-minimal-left {
  width: 100%;
}

.hero-minimal-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -2px;
  color: #cc181e;
  margin: 0;
  line-height: 0.9;
  text-transform: uppercase;
  display: block;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.hero-minimal-title::after {
  content: none;
}

.hero-minimal-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.hero-minimal-desc {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: #555555;
  margin: 0;
  max-width: 500px;
  letter-spacing: 0.2px;
}

.hero-minimal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #222222;
  text-transform: uppercase;
}

/* --------- SECTION CTA (home: view all btn) --------- */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* --------- LUXURY MINIMAL STATUS CARD --------- */
.minimal-status-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: center;
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--category-accent, var(--accent-gold));
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.status-code-visual {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: -2px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
}

.status-details-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-start;
}

.status-title-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.status-desc-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 500px;
}

.btn-minimal-status {
  margin-top: 8px;
  background: transparent;
  border: 1px solid var(--category-accent, var(--accent-gold));
  color: var(--category-accent, var(--accent-gold));
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-minimal-status:hover {
  background: var(--category-accent, var(--accent-gold));
  color: #000;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .minimal-status-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px var(--space-md);
  }
  .status-code-visual {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    height: auto;
    justify-content: flex-start;
  }
}

/* --------- MOBILE-FIRST CATEGORY CARDS --------- */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns for thumbs */
  gap: var(--space-sm);
  padding-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .category-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
  }
}

.premium-cat-card {
  --cat-accent: var(--accent-gold);
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl) var(--space-lg);
  min-height: 160px;
  /* Native app feel */
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.premium-cat-card:active {
  transform: scale(0.96); /* Touch feedback */
}

@media (hover: hover) {
  .premium-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(16, 185, 129, 0.3);
  }
}

.cat-bg-text {
  position: absolute;
  top: -10px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

.cat-content {
  position: relative;
  z-index: 1;
}

.cat-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --------- CATEGORY PILLS (shop view jump-to-category) --------- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px 0;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.category-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.category-pill.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-primary);
  font-weight: 700;
}
.category-pill-icon {
  font-size: 0.95rem;
}

/* --------- PAGINATION --------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 48px;
  padding: 20px 0;
}
.pagination:empty {
  display: none;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  justify-content: center;
  transition: all 0.15s;
}
.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--bg-card-hover);
}
.page-btn.active {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  cursor: default;
}
.page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}
.page-ellipsis {
  color: var(--text-muted);
  padding: 0 6px;
}
.page-num {
  min-width: 40px;
  padding: 0 10px;
}

/* --------- STICKY FILTER BAR (shop/category) --------- */
.products-controls-sticky {
  position: sticky;
  top: 72px; /* navbar height */
  z-index: 50;
  background: var(--bg-primary);
  padding: 16px 0;
  margin: 0 -20px 20px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(10, 10, 15, 0.85);
}

/* ================================================================
   =========== MOBILE POLISH (90% of traffic) =====================
   ================================================================ */
@media (max-width: 768px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-card {
    padding: 18px 14px;
    min-height: 130px;
  }
  .category-card-icon { font-size: 1.8rem; margin-bottom: 8px; }
  .category-card-title { font-size: 0.95rem; }
  .category-card-count { font-size: 0.75rem; }

  .category-hero {
    padding: 40px 0 24px;
  }
  .category-hero-icon { font-size: 3rem; }

  .shop-header-section {
    padding: 40px 0 24px;
  }

  .category-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin: 0 -20px 20px;
    padding: 4px 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .category-pills::-webkit-scrollbar { display: none; }

  .products-controls-sticky {
    top: 64px;
  }

  /* Bigger tap targets for pagination */
  .page-btn {
    min-width: 44px;
    height: 44px;
  }

  /* Nav dropdown is desktop-only; hide on mobile (categories go in hamburger) */
  .nav-dropdown {
    display: none;
  }
  .nav-links .nav-link[href="#/"] {
    display: none; /* home link hidden on mobile, logo goes home */
  }
  .nav-links .nav-link[href="#/#features"] {
    display: none;
  }
}

@media (max-width: 480px) {
  .category-cards-grid { gap: 10px; }
  .category-card { padding: 14px 12px; min-height: 120px; }

  .pagination { gap: 4px; }
  .page-btn { min-width: 42px; padding: 0 8px; font-size: 0.85rem; }
  .page-btn span { display: none; } /* hide "Prev"/"Next" text on very small screens */
  .page-btn.page-prev, .page-btn.page-next { min-width: 44px; }
}

/* --------- FLOATING MOBILE CART BAR (when cart has items) --------- */
.mobile-cart-fab {
  display: none;
}
@media (max-width: 768px) {
  .mobile-cart-fab {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
    cursor: pointer;
    transform: translateY(120%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mobile-cart-fab.visible {
    transform: translateY(0);
  }
  .mobile-cart-fab-count {
    background: var(--bg-primary);
    color: var(--accent-gold);
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-right: auto;
    margin-left: 10px;
  }
  .mobile-cart-fab-price { margin-left: 10px; }
}

/* --------- SKELETON LOADERS --------- */
.product-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}
.product-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: skeleton-shimmer 1.4s infinite;
}
@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* RTL tweaks */
[dir="rtl"] .category-card-arrow { right: auto; left: 20px; transform: translateX(6px) rotate(180deg); }
[dir="rtl"] .category-card:hover .category-card-arrow { transform: translateX(0) rotate(180deg); }
[dir="rtl"] .nav-dropdown-menu { left: auto; right: 0; }
[dir="rtl"] .mobile-cart-fab { direction: rtl; }

/* ================================================================
   =========== ADMIN INVENTORY TOOLBAR + PAGINATION ===============
   ================================================================ */
.inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 14px;
}
.inv-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 200px;
}
.inv-search svg {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}
.inv-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s;
}
.inv-search input:focus {
  border-color: var(--accent-gold);
}
.inv-filter {
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  min-width: 140px;
  outline: none;
}
.inv-filter:focus { border-color: var(--accent-gold); }
.inv-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 8px;
}
.inv-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 16px 0 0;
  margin-top: 10px;
}
.inv-pagination:empty { display: none; }
.inv-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.inv-page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.inv-page-btn.active {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  cursor: default;
}
.inv-page-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.inv-page-ellipsis {
  color: var(--text-muted);
  padding: 0 4px;
}

@media (max-width: 600px) {
  .inv-toolbar { padding: 10px; gap: 8px; }
  .inv-search { flex: 1 1 100%; min-width: 0; }
  .inv-filter { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .inv-count { flex: 1 1 100%; text-align: center; margin: 0; }
}

/* ================================================================
   ============ MOBILE UX OVERHAUL v2 =============================
   Professional, compact, touch-friendly. Overrides prior mobile
   rules. Built around real shopper friction points: scrolling
   fatigue, inaccessible categories, intrusive FAB.
   ================================================================ */
@media (max-width: 768px) {

  /* ---------- 1. Mobile nav drawer (slide from right) ---------- */
  /* Replaces the centered fullscreen overlay — that couldn't scroll
     once we added 12 categories. Now a proper right-drawer. */
  .nav-mobile-overlay {
    display: flex !important;          /* we control visibility via transform */
    opacity: 1 !important;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 0 24px;              /* room for close button + safe area */
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(180deg, #12121a 0%, #0a0a0f 100%);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    visibility: visible;
    z-index: 9999;
  }
  .nav-mobile-overlay.active {
    transform: translateX(0);
  }
  [dir="rtl"] .nav-mobile-overlay {
    right: auto; left: 0;
    transform: translateX(-100%);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.6);
  }
  [dir="rtl"] .nav-mobile-overlay.active {
    transform: translateX(0);
  }

  /* Drawer links — compact, left-aligned, touch-friendly */
  .nav-mobile-overlay a,
  .nav-mobile-overlay .mobile-nav-link {
    font-family: var(--font-display);
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    color: var(--text-primary);
    opacity: 1 !important;
    transform: none !important;
    transition: background 0.15s, color 0.15s !important;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin: 0 !important;
  }
  [dir="rtl"] .nav-mobile-overlay a,
  [dir="rtl"] .nav-mobile-overlay .mobile-nav-link {
    text-align: right;
  }
  .nav-mobile-overlay a:active,
  .nav-mobile-overlay a:hover {
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-gold);
  }
  .mobile-nav-section-label {
    margin: 20px 0 4px !important;
    padding: 0 24px !important;
    font-size: 0.68rem !important;
    opacity: 0.65;
  }
  .mobile-nav-category {
    gap: 12px !important;
    padding: 12px 24px !important;
    font-size: 0.98rem !important;
  }
  .mobile-nav-icon { font-size: 1.15rem; width: 24px; }

  /* Backdrop behind drawer (dims the page) */
  .nav-mobile-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s;
  }
  .nav-mobile-overlay.active::before {
    opacity: 1;
    /* allow tap-outside-to-close — js handles this, but the dim is visual */
  }

  /* Close button injected by JS lives inside the drawer */
  .mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  [dir="rtl"] .mobile-nav-close { right: auto; left: 16px; }

  /* ---------- 2. Compact category hero ---------- */
  /* Top padding MUST clear the fixed navbar (56px on mobile) — otherwise
     the breadcrumb renders behind the logo. */
  .category-hero {
    padding: 76px 0 14px !important;
  }
  .category-hero-icon {
    font-size: 2rem !important;
    margin-bottom: 8px !important;
  }
  .category-hero-title {
    font-size: 1.55rem !important;
    margin: 0 0 6px !important;
  }
  .category-hero-desc {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin: 0 auto 10px !important;
    padding: 0 8px;
  }
  .category-hero-count {
    font-size: 0.72rem !important;
    padding: 4px 12px !important;
  }
  .breadcrumb {
    font-size: 0.75rem !important;
    margin-bottom: 10px !important;
    gap: 6px !important;
  }

  /* ---------- 3. Compact shop header ---------- */
  /* Same as category-hero — needs to clear the fixed navbar. */
  .shop-header-section {
    padding: 76px 0 14px !important;
  }
  .shop-header-title {
    font-size: 1.6rem !important;
    margin: 0 0 6px !important;
  }
  .shop-header-section p,
  .shop-header-section .subtitle {
    font-size: 0.85rem !important;
  }

  /* ---------- 4. Search + Sort in one compact row ---------- */
  .products-controls {
    flex-direction: row !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 16px !important;
  }
  .products-controls .search-bar,
  .products-controls .search-wrapper,
  .products-controls input[type="text"],
  .products-controls input[type="search"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 44px;
  }
  .products-controls .filter-group {
    flex: 0 0 auto !important;
    width: auto !important;
    gap: 6px !important;
  }
  .products-controls .filter-group select {
    width: 120px !important;
    min-width: 100px !important;
    height: 44px;
    font-size: 0.85rem;
  }
  .products-controls-sticky {
    top: 60px !important;
    padding: 10px 20px !important;
    margin: 0 -20px 12px !important;
  }

  /* Hide the sort filter when there's only a few results — saves width */
  /* (admin can re-enable if needed) */

  /* ---------- 5. Category pills — tight horizontal scroll ---------- */
  .category-pills {
    margin: 0 -20px 12px !important;
    padding: 2px 20px 8px !important;
  }
  .category-pill {
    font-size: 0.8rem;
    padding: 7px 14px;
  }

  /* ---------- 6. Product grid — tighter ---------- */
  .products-grid {
    gap: 10px !important;
  }
  .product-card { padding: 0 !important; }
  .product-card .card-image { aspect-ratio: 1 / 1; }
  .product-card .card-body { padding: 10px !important; }
  .product-card .card-title { font-size: 0.92rem !important; line-height: 1.3; }
  .product-card .card-price { font-size: 1rem !important; }

  /* ---------- 7. Section padding ---------- */
  .section, section { padding-top: 32px; padding-bottom: 32px; }
  .products-section { padding-top: 14px !important; }

  /* ---------- 8. Bottom safe area — room for floating cart ---------- */
  main, body { padding-bottom: 88px; }
  body { padding-bottom: env(safe-area-inset-bottom, 0); }
  /* Push footer above FAB */
  footer { margin-bottom: 0; }
}

/* ================================================================
   ============ MOBILE CART FAB — elegant pill (v2) ================
   Was: full-width bright yellow bar (ugly, intrusive).
   Now: compact floating pill in bottom-right with subtle shadow.
   ================================================================ */
@media (max-width: 768px) {
  .mobile-cart-fab {
    display: inline-flex !important;
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    left: auto;                         /* override old full-width rule */
    z-index: 90;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 12px 14px;
    background: linear-gradient(135deg, #141c2b 0%, #22222e 100%);
    color: var(--text-primary);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.5),
      0 2px 8px rgba(16, 185, 129, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transform: translateY(200%) scale(0.9);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
    pointer-events: none;
    max-width: calc(100vw - 32px);
  }
  .mobile-cart-fab.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-cart-fab svg {
    color: var(--accent-gold);
    flex-shrink: 0;
  }
  /* The generic "View Cart" text label — hide on mobile for compactness,
     keep icon + count + price */
  .mobile-cart-fab > span[data-i18n] {
    display: none;
  }
  .mobile-cart-fab-count {
    background: var(--accent-gold) !important;
    color: var(--bg-primary) !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
    min-width: 22px;
    text-align: center;
  }
  .mobile-cart-fab-price {
    color: var(--accent-gold) !important;
    font-size: 0.88rem !important;
    margin: 0 !important;
    white-space: nowrap;
  }
  [dir="rtl"] .mobile-cart-fab {
    right: auto; left: 16px;
    direction: ltr;                     /* keep count/price order readable */
  }

  /* Tap feedback */
  .mobile-cart-fab:active {
    transform: translateY(0) scale(0.96);
  }
}

/* ================================================================
   ============ SMALL PHONES (≤ 400px) =============================
   ================================================================ */
@media (max-width: 400px) {
  .products-controls .filter-group select {
    width: 100px !important;
    font-size: 0.8rem;
  }
  .category-hero-title { font-size: 1.4rem !important; }
  .shop-header-title { font-size: 1.4rem !important; }
  .product-card .card-title { font-size: 0.86rem !important; }
  .product-card .card-price { font-size: 0.95rem !important; }
}

/* ================================================================
   ============ PRODUCT MODAL — COMPACT on mobile =================
   ================================================================ */
@media (max-width: 768px) {
  .product-modal-overlay {
    padding: 16px !important;      
    align-items: flex-end !important;     /* bottom-sheet style */
  }
  .product-modal {
    max-width: 100% !important;        
    max-height: 90vh !important;
    border-radius: 24px 24px 0 0 !important;
    margin: 0 -16px -16px -16px !important;
    width: calc(100% + 32px) !important;
    flex-direction: column !important;
  }
  .modal-gallery {
    border-radius: 24px 24px 0 0 !important;
  }
  .product-modal-image {
    aspect-ratio: auto !important;
    height: 35vh !important;
    max-height: 300px !important;
    min-height: 200px !important;
  }
  .product-modal-body {
    padding: 20px 20px 32px 20px !important;
  }
  .product-modal-category {
    margin-bottom: 6px !important;
    font-size: 0.68rem !important;
  }
  .product-modal-name {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
    line-height: 1.25;
  }
  .product-modal-price {
    font-size: 1.25rem !important;
    margin-bottom: 16px !important;
  }
  .product-modal-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-modal-features {
    grid-template-columns: 1fr 1fr !important;  
    gap: 8px !important;
    margin-bottom: 20px !important;
  }
  /* Show only the first 4 features on mobile */
  .product-modal-feature:nth-child(n+5) {
    display: none !important;
  }
  .product-modal-feature {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    gap: 6px !important;
  }
  .product-modal-actions {
    flex-direction: row !important;      
    gap: 10px !important;
  }
  .product-modal-actions > * {
    flex: 1;
    padding: 14px 16px !important;
    font-size: 0.95rem !important;
    text-align: center;
    justify-content: center;
  }
  .product-modal-close {
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
  }
  .gallery-arrow {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.2rem !important;
  }
}

/* Narrow phones */
@media (max-width: 360px) {
  .product-modal-image {
    height: 30vh !important;
    min-height: 180px !important;
  }
  .product-modal-name { font-size: 1.15rem !important; }
  .product-modal-actions button { font-size: 0.88rem !important; padding: 12px !important; }
}

/* "All Products" hero card — sits first in the Shop by Category grid */
.category-card.category-card-all {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0.04) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.1);
}
.category-card.category-card-all:hover {
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.22);
  transform: translateY(-3px);
}
.category-card.category-card-all .category-card-title {
  color: var(--accent-gold);
}
.category-card.category-card-all .category-card-icon {
  filter: drop-shadow(0 2px 12px rgba(16, 185, 129, 0.5));
}

/* Compact product meta row on mobile (Showing / tags / reset) */
@media (max-width: 768px) {
  .products-meta {
    gap: 6px !important;
    margin-bottom: 10px !important;
    font-size: 0.78rem !important;
    flex-wrap: wrap;
    align-items: center;
  }
  .products-results-copy { font-size: 0.78rem !important; opacity: 0.75; }
  .products-meta-tags { gap: 4px !important; }
  .products-meta-tags .meta-tag,
  .products-meta-tags > * {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
  }
  .products-reset-btn {
    padding: 5px 10px !important;
    font-size: 0.72rem !important;
  }
}

/* =========================================================
   Product card skeletons — shown until the first live
   Firestore snapshot lands. Prevents the "deleted product
   flashes for a second after refresh" bug by never painting
   stale-cache cards.
   ========================================================= */
.product-card-skel {
  background: var(--bg-card, #181818);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.product-card-skel .skel-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: linear-gradient(110deg, #1f1f1f 8%, #2a2a2a 18%, #1f1f1f 33%);
  background-size: 200% 100%;
}
.product-card-skel .skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(110deg, #1f1f1f 8%, #2a2a2a 18%, #1f1f1f 33%);
  background-size: 200% 100%;
}
.product-card-skel .skel-line-lg { width: 75%; height: 14px; }
.product-card-skel .skel-line-md { width: 55%; }
.product-card-skel .skel-line-sm { width: 35%; height: 10px; }

.product-card-skel .skel-img,
.product-card-skel .skel-line {
  animation: skelShimmer 1.4s linear infinite;
}

@keyframes skelShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card-skel .skel-img,
  .product-card-skel .skel-line {
    animation: none;
  }
}

/* =====================================================================
   PROFESSIONAL POLISH  (appended 2026-04-21)
   ---------------------------------------------------------------------
   Tightens typography, replaces emoji-era icon styling with SVG-friendly
   containers, refines badges into a premium pill system, and improves
   mobile polish. No functional changes — pure visual layer.
   ===================================================================== */

/* ---------- Typography refinement ------------------------------------ */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on, "cv11" on;
  letter-spacing: -0.005em;
}
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  font-feature-settings: "ss01" on;
}
.section-label,
.products-meta-tag,
.category-card-count,
.product-category-label,
.hero-badge,
.payment-badge,
.yalidine-text,
.delivery-label,
.footer-heading,
.mobile-nav-section-label {
  letter-spacing: 0.14em;
  font-feature-settings: "ss01" on;
}

/* ---------- Brand marquee — text-only premium look ------------------- */
/* Reset the original large gap so our new dot separators control rhythm */
.brands-marquee {
  gap: 0 !important;
  align-items: center;
}
.brand-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary, #a0a0b0);
  white-space: nowrap;
  padding: 0 var(--space-xl, 2rem);
  opacity: 0.85;
  transition: color var(--transition-base, 0.3s ease), opacity var(--transition-base, 0.3s ease);
}
.brand-item:hover { color: var(--accent-gold, #10b981); opacity: 1; }
.brand-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-gold-dark, #059669);
  opacity: 0.55;
  flex: 0 0 auto;
}

/* ---------- Feature card icons — SVG container ---------------------- */
.feature-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: var(--accent-gold, #10b981);
  font-size: 0 !important; /* kill any leftover emoji sizing from earlier rules */
  margin-bottom: var(--space-md, 1rem);
  transition: transform var(--transition-base, 0.3s ease),
              background var(--transition-base, 0.3s ease),
              border-color var(--transition-base, 0.3s ease),
              box-shadow var(--transition-base, 0.3s ease);
}
.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}
.feature-card:hover .feature-icon {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.08));
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}

/* ---------- Delivery icons — SVG container -------------------------- */
.delivery-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: var(--accent-gold, #10b981);
  font-size: 0 !important;
  flex: 0 0 auto;
}
.delivery-icon svg { width: 22px; height: 22px; }

/* ---------- Footer social icons ------------------------------------- */
.footer-social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  color: var(--text-secondary, #a0a0b0);
  background: rgba(255, 255, 255, 0.015);
  font-size: 0 !important;
  transition: color var(--transition-base, 0.3s ease),
              border-color var(--transition-base, 0.3s ease),
              background var(--transition-base, 0.3s ease),
              transform var(--transition-base, 0.3s ease);
}
.footer-social-link:hover {
  color: var(--accent-gold, #10b981);
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.06);
  transform: translateY(-2px);
}
.footer-social-link svg { width: 16px; height: 16px; }

/* ---------- Cart close + back-to-top — SVG icon buttons ------------- */
.cart-close {
  font-size: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #a0a0b0);
}
.cart-close svg { width: 18px; height: 18px; }
.back-to-top {
  font-size: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Category card icons — SVG + accent tint ----------------- */
.category-card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--cat-accent, #10b981) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-accent, #10b981) 22%, transparent);
  color: var(--cat-accent, #10b981);
  font-size: 0 !important;
  transition: transform var(--transition-base, 0.3s ease),
              background var(--transition-base, 0.3s ease),
              box-shadow var(--transition-base, 0.3s ease);
}
.category-card-icon svg { width: 28px; height: 28px; stroke: currentColor; }
.category-card:hover .category-card-icon {
  transform: translateY(-3px) scale(1.04);
  background: color-mix(in srgb, var(--cat-accent, #10b981) 18%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--cat-accent, #10b981) 20%, transparent);
}
.category-card-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.category-card-count {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted, #6b6b7b);
  font-weight: 500;
}
.category-card-arrow {
  font-size: 0 !important;
  color: var(--cat-accent, #10b981);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.category-card-arrow svg { width: 16px; height: 16px; }

/* ---------- Category pills (shop view) — SVG icon support ----------- */
.category-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0;
}
.category-pill-icon svg { width: 14px; height: 14px; stroke: currentColor; }
.nav-dropdown-icon,
.mobile-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0;
  color: var(--accent-gold, #10b981);
}
.nav-dropdown-icon svg,
.mobile-nav-icon svg { width: 14px; height: 14px; stroke: currentColor; }

/* ---------- Category hero icon (category detail page) --------------- */
.category-hero-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin: 0 auto var(--space-md, 1rem);
  background: color-mix(in srgb, currentColor 10%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-size: 0 !important;
}
.category-hero-icon svg { width: 34px; height: 34px; stroke: currentColor; }

/* ---------- Product badge system — typography-first, no emojis ------
   Solid pills, tight uppercase labels, subtle color-coding per variant.
   Replaces the old emoji-decorated badges. */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  background: rgba(10, 10, 15, 0.85);
  color: var(--text-primary, #f2f0ed);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.product-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  opacity: 0.9;
}

/* Force the neutral dark pill background on legacy variants. The original
   rules earlier in this stylesheet (`.product-badge.bestseller { background:
   var(--accent-gold); color: var(--bg-primary); }` etc.) have equal
   specificity to our variant color rules below, so with only `color` set
   below the old solid-color backgrounds would win and we'd render, e.g.,
   green text on a green background — invisible. This rule wins by source
   order and pins the background to the neutral pill for every variant. */
.product-badge.bestseller,
.product-badge.new,
.product-badge.sale,
.product-badge.coming-soon,
.product-badge.Elite,
.product-badge.Pro,
.product-badge.Diamond,
.product-badge.Value,
.product-badge.Extreme,
.product-badge.Special {
  background: rgba(10, 10, 15, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: none !important; /* kill legacy coming-soon pulse */
}

/* Variant accents — the dot and border tint to the variant color, the text
   reads in soft white for maximum legibility against the dark pill. */
.product-badge.bestseller  { color: #f2f0ed; border-color: rgba(255, 159, 67, 0.55); }
.product-badge.new         { color: #f2f0ed; border-color: rgba(74, 222, 128, 0.55); }
.product-badge.sale        { color: #f2f0ed; border-color: rgba(248, 113, 113, 0.55); }
.product-badge.coming-soon { color: #f2f0ed; border-color: rgba(96, 165, 250, 0.55); }
.product-badge.Elite       { color: #f2f0ed; border-color: rgba(16, 185, 129, 0.55); }
.product-badge.Pro         { color: #f2f0ed; border-color: rgba(192, 132, 252, 0.55); }
.product-badge.Diamond     { color: #f2f0ed; border-color: rgba(147, 197, 253, 0.55); }
.product-badge.Value       { color: #f2f0ed; border-color: rgba(251, 191, 36, 0.55); }
.product-badge.Extreme     { color: #f2f0ed; border-color: rgba(248, 113, 113, 0.55); }
.product-badge.Special     { color: #f2f0ed; border-color: rgba(52, 211, 153, 0.55); }

/* The little dot before the label keeps the variant's color so each badge
   is still visually distinguishable at a glance. */
.product-badge.bestseller::before  { background: #ff9f43; }
.product-badge.new::before         { background: #4ade80; }
.product-badge.sale::before        { background: #f87171; }
.product-badge.coming-soon::before { background: #60a5fa; }
.product-badge.Elite::before       { background: #10b981; }
.product-badge.Pro::before         { background: #c084fc; }
.product-badge.Diamond::before     { background: #93c5fd; }
.product-badge.Value::before       { background: #fbbf24; }
.product-badge.Extreme::before     { background: #f87171; }
.product-badge.Special::before     { background: #34d399; }

/* Premium tiers get a slightly richer gradient pill so they still feel more
   "premium" at a glance — but readable white text on dark, not colored. */
.product-badge.Elite,
.product-badge.Pro,
.product-badge.Diamond {
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.92), rgba(30, 30, 42, 0.92));
}

/* Product card text hierarchy refinements */
.product-category-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted, #6b6b7b);
  font-weight: 600;
}
.product-name {
  letter-spacing: -0.012em;
  line-height: 1.3;
}
.product-price {
  font-feature-settings: "tnum" on, "lnum" on; /* tabular numerals */
}

/* ---------- Section labels & hero refinement ------------------------ */
.section-label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
  color: var(--accent-gold, #10b981);
  font-size: 0.7rem;
  font-weight: 700;
}
.hero-badge {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Hero stats — typographic refinement --------------------- */
.stat-number {
  font-feature-settings: "tnum" on, "lnum" on;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted, #6b6b7b);
  font-weight: 500;
}

/* ---------- No-results empty state --------------------------------- */
.no-results-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  color: var(--text-muted, #6b6b7b);
  margin: 0 auto var(--space-md, 1rem);
}

/* ---------- Cart empty state ---------------------------------------- */
.cart-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #6b6b7b);
  margin-bottom: var(--space-md, 1rem);
  opacity: 0.6;
}
.cart-empty-icon svg { width: 44px; height: 44px; }

/* ---------- Delete-review icon button ------------------------------- */
.delete-review-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted, #6b6b7b);
  border: 1px solid transparent;
  background: transparent;
  transition: color var(--transition-base, 0.3s ease),
              background var(--transition-base, 0.3s ease),
              border-color var(--transition-base, 0.3s ease);
  font-size: 0 !important;
}
.delete-review-btn:hover {
  color: var(--error, #f87171);
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
}

/* ---------- Navbar refinement --------------------------------------- */
.nav-link {
  letter-spacing: 0.02em;
  font-weight: 500;
}
.navbar {
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

/* ---------- Buttons — crisper edges, tighter type ------------------- */
.btn {
  letter-spacing: 0.03em;
  font-weight: 600;
}
.btn-primary {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ---------- Product card hover — subtler elevation ------------------ */
.product-card {
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  transition: transform var(--transition-base, 0.3s ease),
              border-color var(--transition-base, 0.3s ease),
              box-shadow var(--transition-base, 0.3s ease);
}
.product-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(16, 185, 129, 0.08);
}

/* ---------- Respect reduced motion ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .feature-card:hover .feature-icon,
  .category-card:hover .category-card-icon,
  .footer-social-link:hover,
  .product-card:hover {
    transform: none;
  }
}

/* ---------- Mobile refinements -------------------------------------- */
@media (max-width: 768px) {
  .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .feature-icon svg { width: 22px; height: 22px; }

  .delivery-icon {
    width: 40px;
    height: 40px;
  }
  .delivery-icon svg { width: 20px; height: 20px; }

  .category-card-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px;
    margin-bottom: 10px !important;
  }
  .category-card-icon svg { width: 22px; height: 22px; }

  .category-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .category-hero-icon svg { width: 26px; height: 26px; }

  .footer-social-link {
    width: 42px;
    height: 42px; /* larger touch target on mobile */
  }

  .product-badge {
    font-size: 0.58rem;
    padding: 4px 8px;
    letter-spacing: 0.12em;
  }

  .brand-item {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    padding: 0 var(--space-sm, 0.5rem);
  }
  .brand-dot { margin: 0 var(--space-xs, 0.25rem); }

  /* Tighter section label on mobile */
  .section-label {
    font-size: 0.62rem;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  .feature-icon {
    width: 44px;
    height: 44px;
  }
  .feature-icon svg { width: 20px; height: 20px; }

  .category-card-icon {
    width: 40px !important;
    height: 40px !important;
  }
  .category-card-icon svg { width: 20px; height: 20px; }

  .category-hero-icon {
    width: 52px;
    height: 52px;
  }
  .category-hero-icon svg { width: 24px; height: 24px; }
}

/* Fallback for browsers without color-mix (older Safari / Firefox):
   gracefully revert to a subtle gold accent for all categories. */
@supports not (background: color-mix(in srgb, red 10%, blue)) {
  .category-card-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.22);
    color: var(--cat-accent, #10b981);
  }
  .category-card:hover .category-card-icon {
    background: rgba(16, 185, 129, 0.18);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.22);
  }
  .category-hero-icon {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.22);
  }
}

/* =========================================================================
   IMAGE LIGHTBOX — full-screen view with zoom + swipe.
   Opens when user taps a product image inside the product modal so they can
   see the FULL image (no crop) and pinch / double-tap to zoom in for detail.
   ========================================================================= */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
  animation: lightboxFadeIn 0.18s ease-out;
}
.image-lightbox[hidden] { display: none; }

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;       /* JS handles all touch (pinch zoom + swipe) */
  user-select: none;
}

.lightbox-image {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;       /* never crop — show the WHOLE image */
  transform-origin: center center;
  transition: transform 0.18s ease;
  cursor: zoom-in;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}
.lightbox-image.zoomed {
  cursor: grab;
  transition: none;          /* instant updates while panning */
}
.lightbox-image.dragging { cursor: grabbing; }

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.7rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(16, 185, 129, 0.85);
  transform: scale(1.05);
}
.lightbox-close { top: 18px; right: 18px; font-size: 2rem; }
.lightbox-prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.04em;
}

.lightbox-hint {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  pointer-events: none;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .lightbox-close { width: 40px; height: 40px; font-size: 1.6rem; top: 14px; right: 14px; }
  .lightbox-arrow { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox-prev  { left: 10px; }
  .lightbox-next  { right: 10px; }
  .lightbox-hint  { font-size: 0.65rem; top: 14px; }
  .lightbox-counter { bottom: 16px; font-size: 0.75rem; }
}

/* =========================================================================
   READ MORE / READ LESS toggle for the product description on mobile.
   Only visible when the description is actually being clamped — JS toggles
   the `hidden` attribute based on scrollHeight > clientHeight.
   ========================================================================= */
.modal-desc-toggle {
  background: none;
  border: none;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 0 12px;
  margin: -8px 0 0;
  cursor: pointer;
  text-align: start;
  letter-spacing: 0.02em;
  text-transform: none;
  align-self: flex-start;
  -webkit-tap-highlight-color: transparent;
}
.modal-desc-toggle:hover { text-decoration: underline; }
.modal-desc-toggle::after {
  content: " ›";
  display: inline-block;
  transition: transform 0.2s ease;
}
.modal-desc-toggle.expanded::after {
  transform: rotate(90deg);
}

/* When description is expanded, override the mobile clamp from earlier rule */
.product-modal-desc.expanded {
  -webkit-line-clamp: unset !important;
  display: block !important;
  overflow: visible !important;
}

/* RTL: flip arrows on the lightbox + read-more chevron */
[dir="rtl"] .lightbox-prev,
[dir="rtl"] .lightbox-next { transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .modal-desc-toggle::after { content: " ‹"; }

/* =========================================================================
   LIGHT RETAIL SHOP CATALOG THEME (MATCHES THE DESIGN REFERENCE IMAGE)
   ========================================================================= */
#products {
  background: #f4f3f0 !important;
  color: #111111 !important;
  padding: 60px 0 var(--space-4xl) !important;
}

#products .container {
  background: transparent !important;
}

/* Controls / Search Bar */
#products .products-controls {
  margin-bottom: 24px !important;
}

#products .premium-search-box {
  background: #ffffff !important;
  border: 1px solid #dddddd !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

#products .premium-search-input {
  color: #111111 !important;
}

#products .search-icon {
  color: #cc181e !important;
}

/* Category navigation pills */
#products .category-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 32px !important;
  justify-content: center !important;
}

#products .category-pill {
  background: #e9e8e3 !important;
  border: none !important;
  border-radius: 4px !important;
  color: #333333 !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 10px 18px !important;
  box-shadow: none !important;
}

#products .category-pill:hover {
  background: #e0ded8 !important;
  color: #111111 !important;
}

#products .category-pill.active {
  background: #cc181e !important;
  color: #ffffff !important;
}

#products .category-pill-icon {
  display: none !important; /* Hide icons in pills like reference */
}

/* Product results info */
#products .products-results-copy {
  color: #666666 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px !important;
}

#products .products-reset-btn {
  background: #cc181e !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  border: none !important;
  font-weight: 700 !important;
}

/* =========================================================================
   REDESIGNED PRODUCT CARDS — EDGE-TO-EDGE IMMERSIVE LAYOUT (v3)
   Inspired by Gymshark / MyProtein / Apple Store cards.
   No more boxy white boxes with centered text. Now: full-bleed imagery,
   gradient overlays, and integrated bottom action bars.
   ========================================================================= */

/* --- Grid Layout --- */
.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 20px !important;
}

/* --- Card Container --- */
.product-card {
  background: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  padding: 0 !important;
  overflow: hidden !important;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10) !important;
}

/* --- Product Image — Edge-to-edge hero --- */
.product-image {
  background: #fdfdfd !important; /* Premium near-white gallery backdrop */
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  padding: 16px !important; /* Premium framing padding */
  box-sizing: border-box !important;
  aspect-ratio: 3 / 4 !important; /* Premium vertical portrait aspect ratio */
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-image img {
  object-fit: contain !important; /* Completely prevent zoomed/cropped bottle assets */
  width: 100% !important;
  height: 100% !important;
  mix-blend-mode: normal !important;
  border-radius: 0 !important;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.product-card:hover .product-image img {
  transform: scale(1.04) !important; /* Gentle hover scaling */
}

/* --- Product Info — Clean bottom section with left-alignment --- */
.product-info {
  padding: 14px 16px 6px 16px !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 !important;
}

.product-category-label {
  color: #888888 !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  margin-bottom: 2px !important;
}

.product-name {
  color: #111111 !important;
  font-family: var(--font-body) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  margin-bottom: 0 !important;
  line-height: 1.3 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-desc {
  display: none !important;
}

/* --- Product Footer — Price & Rating inline --- */
.product-footer {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0 !important;
  margin-top: auto !important;
  border-top: none !important;
  padding-top: 4px !important;
}

.product-price {
  font-family: var(--font-display) !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  color: #111111 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 6px !important;
}

.product-price .original {
  font-size: 0.78rem !important;
  color: #bbbbbb !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
}

.product-rating {
  font-size: 0.72rem !important;
  color: #f59e0b !important;
}

.product-rating .star {
  color: #f59e0b !important;
}

.product-rating .count {
  color: #aaaaaa !important;
}

/* --- Bottom Action Bar — Full-width add-to-cart + WhatsApp side by side --- */
.quick-add {
  position: static !important;
  opacity: 1 !important;
  transform: none !important;
  padding: 0 16px 14px 16px !important;
  background: none !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.product-card:hover .quick-add {
  transform: none !important;
  opacity: 1 !important;
}

.add-to-cart-btn {
  flex: 1 !important;
  background: #111111 !important;
  border: none !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  font-size: 0.78rem !important;
  padding: 10px 12px !important;
  transition: all 0.2s ease !important;
}

.add-to-cart-btn:hover {
  background: #cc181e !important;
}

/* --- WhatsApp Button — Integrated into the bottom action bar --- */
.card-whatsapp-btn {
  position: static !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  background: #25d366 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  top: auto !important;
  right: auto !important;
}

.card-whatsapp-btn:hover {
  background: #1da851 !important;
  color: #ffffff !important;
  border-color: transparent !important;
  transform: scale(1.05) !important;
}

.card-whatsapp-btn svg {
  width: 18px !important;
  height: 18px !important;
}

/* --- Badges — Top-left minimal tag --- */
.product-badge {
  top: 12px !important;
  left: 12px !important;
  border-radius: 6px !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  background: #111111 !important;
  color: #ffffff !important;
  padding: 5px 10px !important;
}

.product-badge.sale {
  background: #cc181e !important;
}

.product-badge.bestseller {
  background: #d4af37 !important;
  color: #111111 !important;
}

/* Minimal Status Card in Light Theme */
.minimal-status-card {
  background: #ffffff !important;
  border: 1px solid #eaeaea !important;
  border-left: 3px solid #cc181e !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
}

.status-code-visual {
  color: rgba(0, 0, 0, 0.05) !important;
  border-right-color: rgba(0, 0, 0, 0.05) !important;
}

.status-title-text {
  color: #111111 !important;
}

.status-desc-text {
  color: #555555 !important;
}

.btn-minimal-status {
  border-color: #cc181e !important;
  color: #cc181e !important;
}

.btn-minimal-status:hover {
  background: #cc181e !important;
  color: #ffffff !important;
}

/* =========================================================================
   PREMIUM ELITE BLACK NAVIGATION HEADER OVERRIDES (ON-STORE STYLE)
   ========================================================================= */
.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 72px !important;
  background: #000000 !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.navbar.scrolled {
  top: 0 !important;
  background: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6) !important;
}

.navbar .container {
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
}

/* Brand Logo Layout */
.nav-logo {
  gap: 12px !important;
}

.brand-logo-img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 4px !important; /* Modern square with small rounding like premium logos */
  box-shadow: none !important;
}

.nav-logo .logo-text {
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: 1.15rem !important;
  letter-spacing: 1px !important;
  background: #ffffff !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Navigation Links */
.nav-links {
  gap: 32px !important;
}

.nav-links a,
.nav-dropdown-toggle {
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #cccccc !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 6px 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: all 0.2s ease !important;
}

.nav-links a::after {
  content: '' !important;
  position: absolute !important;
  bottom: -4px !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: #cc181e !important; /* Premium brand-red accent highlight line */
  transition: all 0.2s ease !important;
}

.nav-links a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: #ffffff !important;
  background: transparent !important;
}

.nav-links a:hover::after {
  width: 100% !important;
}

.nav-dropdown-toggle svg {
  stroke: #cccccc !important;
}

.nav-dropdown-toggle:hover svg,
.nav-dropdown.open .nav-dropdown-toggle svg {
  stroke: #ffffff !important;
}

/* Dropdown Menu Styles */
.nav-dropdown-menu {
  background: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
  padding: 8px !important;
}

.nav-dropdown-menu a {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #999999 !important;
  padding: 8px 12px !important;
  border-radius: 2px !important;
  letter-spacing: 0.05em !important;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* Cart Button */
.nav-cart {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
  width: 38px !important;
  height: 38px !important;
  color: #ffffff !important;
  transition: all 0.2s ease !important;
}

.nav-cart:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: none !important;
}

.nav-cart svg {
  stroke: #ffffff !important;
}

.nav-cart:hover svg {
  stroke: #cc181e !important; /* Brand red hover */
}

.cart-badge {
  background: #cc181e !important;
  color: #ffffff !important;
  border-radius: 99px !important;
  width: 16px !important;
  height: 16px !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
}

/* Language Selector */
.lang-selected {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
  height: 38px !important;
  color: #ffffff !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.lang-selected:hover,
.lang-selected.active {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.lang-selected svg {
  stroke: #ffffff !important;
}

.lang-dropdown {
  background: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.lang-dropdown button {
  color: #999999 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

.lang-dropdown button:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* Mobile Toggle Hamburger lines */
.nav-toggle span {
  background: #ffffff !important;
}

@media (max-width: 992px) {
  .navbar .container {
    padding: 0 20px !important;
  }
}

/* =========================================================================
   ADVANCED MOBILE & PORTRAIT PHONE OPTIMIZATIONS (NATIVE RETAIL EXPERIENCE)
   ========================================================================= */
@media (max-width: 768px) {
  /* Solid matte black drawer instead of old purple gradient */
  .nav-mobile-overlay {
    background: #0d0d0d !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  
  [dir="rtl"] .nav-mobile-overlay {
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .nav-mobile-overlay a:active,
  .nav-mobile-overlay a:hover,
  .nav-mobile-overlay .mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #cc181e !important;
  }

  /* Swipable, non-wrapping horizontal filter pill bar */
  #products .category-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    padding: 4px 16px !important;
    margin-bottom: 24px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  
  #products .category-pills::-webkit-scrollbar {
    display: none !important;
  }
  
  #products .category-pill {
    flex-shrink: 0 !important;
    padding: 8px 14px !important;
    font-size: 0.75rem !important;
  }

  /* Responsive Catalog Hero */
  .premium-catalog-hero {
    padding: 100px 0 40px !important;
  }

  .hero-minimal-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem) !important;
  }
}

@media (max-width: 576px) {
  /* 2-Column Catalog Grid on phones */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }
  
  .product-card {
    border-radius: 12px !important;
  }
  
  .product-image {
    aspect-ratio: 3 / 4 !important;
    padding: 10px !important;
  }

  .product-info {
    padding: 10px 10px 4px 10px !important;
    gap: 1px !important;
  }

  .product-name {
    font-size: 0.78rem !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
  }
  
  .product-category-label {
    font-size: 0.58rem !important;
    margin-bottom: 1px !important;
  }
  
  .product-price {
    font-size: 0.85rem !important;
  }

  .product-price .original {
    font-size: 0.65rem !important;
  }

  .product-rating {
    font-size: 0.6rem !important;
  }

  /* Bottom action bar compact sizing */
  .quick-add {
    padding: 0 10px 10px 10px !important;
    gap: 6px !important;
  }
  
  .add-to-cart-btn {
    padding: 8px 6px !important;
    font-size: 0.65rem !important;
    border-radius: 6px !important;
  }

  .card-whatsapp-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 6px !important;
  }
  
  .card-whatsapp-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .product-badge {
    top: 8px !important;
    left: 8px !important;
    font-size: 0.55rem !important;
    padding: 3px 7px !important;
    border-radius: 4px !important;
  }
}
