/*
 * Modern 2026 E-commerce Theme
 * Clean, professional design inspired by ShopMN
 */

:root {
  /* Colors - Professional Elegant Palette */
  --bg: #ffffff;
  --surface: #fafbfc;
  --surface-light: #ffffff;
  --surface-hover: #f5f7fa;
  --surface-alt: #f8f9fa;
  --muted: #64748b;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --line-dark: #cbd5e1;
  
  /* Professional Accent Colors - Vibrant Indigo with Better Contrast */
  --accent: #4F46E5;
  --accent-solid: #5B52F0;
  --accent-hover: #4338CA;
  --accent-hover-solid: #4F46E5;
  --accent-light: #6366F1;
  --accent-dark: #3730A3;
  --accent-bg: rgba(91, 82, 240, 0.1);
  --accent-bg-hover: rgba(91, 82, 240, 0.15);
  
  --accent-alt: #0D9488;
  --accent-alt-hover: #0F766E;
  --accent-alt-solid: #14B8A6;
  --danger: #EF4444;
  --danger-hover: #DC2626;
  --danger-solid: #F87171;
  --warning: #F59E0B;
  --warning-solid: #FBBF24;
  --success: #10B981;
  --success-hover: #059669;
  --success-solid: #34D399;
  
  /* Spacing - More Generous for Premium Feel */
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  --spacing-xs: 6px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  
  /* Shadows - More Sophisticated Layered System */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --shadow-accent: 0 4px 14px 0 rgba(79, 70, 229, 0.2);
  --shadow-accent-hover: 0 6px 20px 0 rgba(79, 70, 229, 0.25);
  
  /* Typography - Enhanced Professional System */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-family-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 42px;
  
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  
  /* Transitions - Smooth & Refined */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Widths - Refined & Subtle */
  --border-width: 1px;
  --border-width-medium: 1.5px;
  --border-width-thick: 2px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

/* Утас / таблет дэлгэцэнд хэмжээг багасгах (768px-аас доош) */
@media (max-width: 768px) {
  html {
    font-size: 15px !important;
  }
  body {
    font-size: 15px !important;
  }
  .container {
    width: 100% !important;
    max-width: 100vw;
    padding: 0 12px !important;
    box-sizing: border-box;
  }
  .header-main {
    padding: 10px 0 !important;
  }
  .header-main-inner {
    gap: 10px !important;
  }
  main {
    padding: 12px 0 !important;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px !important;
  }
  body {
    font-size: 14px !important;
  }
  .container {
    padding: 0 10px !important;
  }
  .header-main {
    padding: 8px 0 !important;
  }
  .header-main-inner {
    gap: 8px !important;
  }
  main {
    padding: 10px 0 !important;
  }
}
@media (max-width: 360px) {
  html {
    font-size: 13px !important;
  }
  body {
    font-size: 13px !important;
  }
  .container {
    padding: 0 8px !important;
  }
  .header-main {
    padding: 6px 0 !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
  font-weight: var(--font-weight-medium);
}

a:hover {
  color: var(--accent-solid);
}

.container {
  width: min(1280px, 95vw);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   HEADER - Modern 2026 Style
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--border-width) solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.99);
}

.header-top {
  background: var(--surface);
  border-bottom: 1px solid var(--line-light);
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-sm);
  transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.3s ease;
  transform: translateY(0);
  opacity: 1;
  max-height: 100px;
  overflow: hidden;
}

.site-header.scrolled .header-top {
  transform: translateY(-100%);
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
  border: none;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.header-contact {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.contact-item {
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.header-links {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  flex-wrap: wrap;
}

.header-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-base);
}

.header-links a:hover {
  color: var(--accent-solid);
}

.demo-notice-text {
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.header-main {
  padding: var(--spacing-md) 0;
  background: var(--bg);
  transition: all var(--transition-base);
}

.site-header.scrolled .header-main {
  padding: var(--spacing-sm) 0;
  background: var(--bg);
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text);
  transition: opacity var(--transition-base);
}

.brand:hover {
  opacity: 0.8;
}

.brand-logo {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2xl);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
  color: var(--text);
  transition: all var(--transition-base);
}

.brand:hover .brand-logo {
  color: var(--accent-solid);
}

.brand-logo-img {
  max-width: 200px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.brand:hover .brand-logo-img {
  transform: scale(1.02);
}

.brand-demo {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 2px;
  text-transform: uppercase;
}

.header-search {
  flex: 1;
  max-width: 600px;
  display: flex;
  gap: 0;
  position: relative;
}

.search-input {
  flex: 1;
  padding: 14px 24px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  border: var(--border-width-thick) solid var(--line);
  background: var(--surface-light);
  color: var(--text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  transition: all var(--transition-base);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-solid);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-bg);
}

.search-btn {
  padding: 14px 28px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border: var(--border-width-thick) solid var(--accent-solid);
  border-left: none;
  background: var(--accent-solid);
  color: white;
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.search-btn:hover {
  background: var(--accent-hover-solid);
  border-color: var(--accent-hover-solid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.header-profile-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.header-profile-link * {
  pointer-events: none;
}

.header-profile-link {
  pointer-events: auto;
}

.header-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

.header-profile-avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: white;
  border: 2px solid var(--line);
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

.header-action-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: all var(--transition-base);
  font-size: var(--font-size-sm);
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
}

.header-action-item:hover {
  background: var(--surface-hover);
  color: var(--accent-solid);
  border-color: var(--line);
}

.action-icon {
  font-size: 20px;
  line-height: 1;
}

.action-count {
  background: var(--accent-solid);
  color: white;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  padding: 0;
  border-radius: var(--radius-full);
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.action-text {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.keyboard-shortcut {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: var(--font-size-xs);
  padding: 6px 10px;
  border-radius: var(--radius);
}

.keyboard-shortcut:hover {
  background: var(--surface-hover);
  border-color: var(--accent-solid);
  color: var(--accent-solid);
}

.btn-login-header {
  background: linear-gradient(135deg, var(--accent-solid) 0%, var(--accent-hover-solid) 100%);
  border: var(--border-width-thick) solid transparent;
  padding: 12px 24px;
  border-radius: var(--radius);
  color: white;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login-header i {
  font-size: 18px;
  color: white;
  display: inline-block;
}

.btn-login-header:hover {
  background: linear-gradient(135deg, var(--accent-hover-solid) 0%, var(--accent-dark) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: white;
}

.btn-login-header:hover i {
  color: white;
}

.header-nav {
  background: var(--surface);
  border-top: 1px solid var(--line-light);
  padding: 0;
  transition: background-color 0.3s ease;
}

.site-header.scrolled .header-nav {
  background: var(--surface);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius);
  transition: all var(--transition-base);
  flex-shrink: 0;
  order: 1;
}

.mobile-menu-toggle:hover {
  background: var(--surface-hover);
  color: var(--accent-solid);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-nav-drawer.active {
  pointer-events: auto;
  opacity: 1;
}

.mobile-nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg);
  box-shadow: var(--shadow-2xl);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav-drawer.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mobile-nav-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
}

.mobile-nav-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius);
  transition: all var(--transition-base);
}

.mobile-nav-close:hover {
  background: var(--surface-hover);
  color: var(--accent-solid);
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md);
  gap: var(--spacing-xs);
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition-base);
  font-weight: 500;
}

.mobile-nav-item i {
  font-size: 20px;
  width: 24px;
  text-align: center;
  color: var(--muted);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  background: var(--surface-hover);
  color: var(--accent-solid);
}

.mobile-nav-item:hover i,
.mobile-nav-item.active i {
  color: var(--accent-solid);
}

.header-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

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

.nav-links-left a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  transition: all var(--transition-base);
  border-bottom: 2px solid transparent;
  font-size: var(--font-size-base);
  position: relative;
}

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

.nav-links-left a:hover,
.nav-links-left a.active {
  color: var(--accent-solid);
}

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

.nav-links-right {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-links-right a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  transition: all var(--transition-base);
  border-bottom: 2px solid transparent;
  font-size: var(--font-size-base);
  position: relative;
}

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

.nav-links-right a:hover,
.nav-links-right a.active {
  color: var(--accent-solid);
}

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

.nav-category-toggle {
  display: flex;
  align-items: center;
}

.category-btn {
  padding: 14px 24px;
  background: var(--text);
  border: none;
  color: white;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  font-size: var(--font-size-base);
  border-radius: var(--radius);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  letter-spacing: var(--letter-spacing-normal);
}

.category-btn:hover {
  background: var(--accent-solid);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}

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

.nav-links-main a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: 14px 0;
  transition: all var(--transition-base);
  border-bottom: var(--border-width-thick) solid transparent;
  font-size: var(--font-size-base);
  position: relative;
  letter-spacing: var(--letter-spacing-normal);
}

.nav-links-main a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: var(--border-width-thick);
  background: var(--accent-solid);
  transition: width var(--transition-base);
}

.nav-links-main a:hover,
.nav-links-main a.active {
  color: var(--accent-solid);
  font-weight: var(--font-weight-semibold);
}

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

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  min-height: calc(100vh - 300px);
  padding: var(--spacing-lg) 0;
  background: var(--bg);
}

@media (max-width: 768px) {
  main {
    min-height: calc(100vh - 250px);
    padding: var(--spacing-md) 0;
  }
}

@media (max-width: 480px) {
  main {
    min-height: auto;
    padding: var(--spacing-md) 0;
  }
}

/* ============================================
   HERO INTRO SECTION
   ============================================ */
.hero-intro-section {
  text-align: center;
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-bottom: var(--border-width) solid var(--line-light);
  margin-bottom: var(--spacing-xl);
}

.hero-intro-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin: 0 auto var(--spacing-lg);
  max-width: 900px;
  color: var(--text);
  letter-spacing: var(--letter-spacing-tight);
}

.hero-badge {
  margin-top: var(--spacing-lg);
}

.hero-badge span {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(40, 167, 69, 0.1);
  color: var(--accent-alt);
  border: 2px solid rgba(40, 167, 69, 0.2);
  border-radius: 30px;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* ============================================
   HERO BANNER CAROUSEL
   ============================================ */
.hero-banner-section {
  margin: 0 0 var(--spacing-xl);
  width: 100%;
  position: relative;
}

@media (max-width: 768px) {
  .hero-banner-section {
    margin: 0 0 var(--spacing-lg);
  }
}

.hero-banner-carousel {
  width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-banner-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 37.5%; /* 600/1600 = 0.375 for 1600x600 aspect ratio */
  overflow: hidden;
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .hero-banner-wrapper {
    padding-bottom: 56.25%; /* Taller on mobile for better visibility */
    border-radius: var(--radius);
  }

  .hero-banner-overlay {
    bottom: 16px;
    padding: 6px 10px;
  }

  .btn-hero,
  .hero-banner-overlay .btn.btn-hero {
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: var(--radius) !important;
    line-height: 1.35 !important;
    overflow: visible !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }
}

@media (max-width: 480px) {
  .hero-banner-overlay {
    bottom: 12px;
    padding: 4px 8px;
  }

  .btn-hero,
  .hero-banner-overlay .btn.btn-hero {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    line-height: 1.4 !important;
    overflow: visible !important;
    white-space: nowrap !important;
    letter-spacing: 0.02em !important;
  }

  .carousel-nav {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

@media (max-width: 360px) {
  .hero-banner-overlay {
    bottom: 10px;
    padding: 4px 6px;
  }
  .btn-hero,
  .hero-banner-overlay .btn.btn-hero {
    padding: 5px 12px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    overflow: visible !important;
    white-space: nowrap !important;
    letter-spacing: 0.01em !important;
  }
}

.hero-banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.hero-banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  position: relative;
}

.hero-banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.banner-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.hero-banner-overlay {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  background: transparent;
}

.btn-hero,
.hero-banner-overlay .btn.btn-hero {
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.5) !important;
  color: var(--text) !important;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: var(--font-size-base);
  letter-spacing: 0.02em;
  line-height: 1.35;
  display: inline-block;
  pointer-events: auto;
  text-decoration: none;
  box-shadow: none;
  overflow: visible;
  white-space: nowrap;
}
.hero-banner-overlay .btn.btn-hero::before {
  display: none;
}

.btn-hero:hover,
.hero-banner-overlay .btn.btn-hero:hover {
  background: rgba(255, 255, 255, 0.65) !important;
  color: var(--text) !important;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

.carousel-nav {
  display: none;
}

.carousel-prev,
.carousel-next {
  display: none;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.dot.active {
  background: white;
  width: 24px;
  border-radius: 5px;
}

/* ============================================
   SECTIONS
   ============================================ */
.home-section {
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg) 0;
}

@media (max-width: 768px) {
  .home-section {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) 0;
  }
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.section-head h2 {
  margin: 0;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-solid) 0%, var(--accent-hover-solid) 100%);
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .section-head {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
  }
  
  .section-head h2 {
    font-size: var(--font-size-xl);
  }
  
  .section-head h2::after {
    width: 40px;
    height: 2px;
  }
}

.section-subtitle {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin: var(--spacing-xs) 0 0 0;
}

.link {
  color: var(--accent-solid);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0 var(--spacing-xl);
}

.card {
  display: block;
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-width) solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-solid);
  box-shadow: var(--shadow-xl);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-width) solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(91, 82, 240, 0.02) 0%, rgba(79, 70, 229, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 0;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-solid);
}

.product-card-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-solid);
  box-shadow: var(--shadow-xl);
}

.product-card:hover::before {
  opacity: 1;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.thumb {
  height: 240px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

/* Allow overlay to show on hover - must be visible for absolute positioned overlay */
.product-card:hover .thumb,
.product-card-wrapper:hover .thumb,
.product-card-link:hover .thumb {
  overflow: visible;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.product-card:hover .thumb img {
  transform: scale(1.05);
}

.product-actions-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 10;
}

/* Hover effect - multiple selectors to ensure it works */
.product-card:hover .thumb .product-actions-hover,
.product-card:hover .product-actions-hover,
.product-card-wrapper:hover .thumb .product-actions-hover,
.product-card-link:hover .thumb .product-actions-hover,
.product-card-link:hover + .product-actions-hover,
.thumb:hover .product-actions-hover,
.product-card:hover .product-card-wrapper .thumb .product-actions-hover,
.product-card:hover .product-card-link .thumb .product-actions-hover {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  display: flex !important;
}

.btn-wishlist-hover {
  width: 50px;
  height: 50px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.btn-wishlist-hover:hover {
  background: var(--accent);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.btn-wishlist-hover .wishlist-icon {
  filter: grayscale(100%);
  color: #9ca3af;
  transition: filter var(--transition-base), color var(--transition-base);
}

.btn-wishlist-hover:hover .wishlist-icon {
  filter: grayscale(0%);
  color: #ef4444;
}

.btn-wishlist-hover.active .wishlist-icon,
.btn-wishlist-hover.active:hover .wishlist-icon {
  filter: grayscale(0%) !important;
  color: #ef4444 !important;
}

.btn-add-cart {
  padding: 14px 28px;
  background: white;
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--font-size-base);
  letter-spacing: var(--letter-spacing-wide);
  box-shadow: var(--shadow-sm);
}

.btn-add-cart:hover {
  background: var(--accent-solid);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.products-grid {
  padding: var(--spacing-lg) 0;
}

.products-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-md);
}

.product-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.product-actions-top {
  display: none;
}

.btn-wishlist,
.btn-compare {
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn-wishlist:hover,
.btn-compare:hover {
  background: var(--accent);
  border-color: var(--accent-solid);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.wishlist-icon,
.compare-icon {
  display: block;
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}

.btn-wishlist:hover .wishlist-icon,
.btn-compare:hover .compare-icon {
  filter: grayscale(0%);
}

.product-actions-mobile {
  display: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-top: 1px solid var(--line);
  gap: var(--spacing-xs);
  align-items: center;
  justify-content: space-between;
}

.btn-wishlist {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  font-size: 20px;
  transition: transform var(--transition-base);
}

.btn-wishlist:hover {
  transform: scale(1.1);
}

.wishlist-icon {
  color: #9ca3af;
  filter: grayscale(100%);
}

.btn-wishlist.active .wishlist-icon,
.btn-wishlist.active:hover .wishlist-icon {
  color: #ef4444 !important;
  filter: none !important;
}

/* Always show red heart for liked items */
[data-wishlist="true"] .wishlist-icon,
[data-wishlist="true"]:hover .wishlist-icon,
.btn-wishlist-hover[data-wishlist="true"] .wishlist-icon,
.btn-wishlist-hover[data-wishlist="true"]:hover .wishlist-icon {
  color: #ef4444 !important;
  filter: grayscale(0%) !important;
}

.btn-add-cart-mobile {
  flex: 1;
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--font-size-sm);
}

.btn-add-cart-mobile:hover {
  background: var(--accent-hover);
}

.placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.card-body {
  padding: var(--spacing-md);
}

.card-title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-base);
  color: var(--text);
  line-height: 1.3;
  letter-spacing: var(--letter-spacing-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  color: var(--accent-solid);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  letter-spacing: var(--letter-spacing-tight);
}

.price-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin: var(--spacing-xs) 0;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: var(--font-size-sm);
  font-weight: 400;
}

.sale-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-hover) 100%);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  z-index: 5;
  box-shadow: var(--shadow-lg);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  border: var(--border-width) solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(13, 148, 136, 0.2) 100%);
  color: var(--accent-alt-solid);
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: 700;
  margin-top: var(--spacing-xs);
  border: 1px solid rgba(20, 184, 166, 0.2);
  box-shadow: var(--shadow-xs);
}

.rating {
  margin-top: var(--spacing-xs);
}

.stars {
  color: #9ca3af;
  font-size: var(--font-size-sm);
  letter-spacing: 2px;
  filter: grayscale(100%);
  transition: all var(--transition-base);
}

.stars.has-rating {
  color: #ffc107;
  filter: grayscale(0%);
}

.stars.rating-1 { color: #ef4444; filter: grayscale(0%); }
.stars.rating-2 { color: #f97316; filter: grayscale(0%); }
.stars.rating-3 { color: #eab308; filter: grayscale(0%); }
.stars.rating-4 { color: #84cc16; filter: grayscale(0%); }
.stars.rating-5 { color: #22c55e; filter: grayscale(0%); }

/* Review Modal Styles */
#reviewModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

#reviewModal .rating-star-select {
  background: none;
  border: none;
  font-size: 32px;
  color: #ccc;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform var(--transition-base);
}

#reviewModal .rating-star-select:hover {
  transform: scale(1.2);
}

/* Review Cards */
.review-card {
  background: var(--surface-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: box-shadow var(--transition-base);
}

.review-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.review-stars-display {
  display: inline-flex;
  gap: 2px;
}

/* Mobile Responsive Reviews */
@media (max-width: 768px) {
  #reviewModal {
    padding: var(--spacing-sm);
  }
  
  #reviewModal > div {
    max-width: 100%;
    padding: var(--spacing-md);
  }
  
  #reviewModal .rating-star-select {
    font-size: 28px;
  }
  
  .review-card {
    padding: var(--spacing-md) !important;
  }
  
  .product-reviews-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
  }
  
  .reviews-list {
    gap: var(--spacing-md) !important;
  }
  
  .admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .admin-table {
    min-width: 800px;
  }
}

@media (max-width: 480px) {
  #reviewModal .rating-star-select {
    font-size: 24px;
  }
  
  .review-comment-preview {
    max-width: 150px !important;
    font-size: var(--font-size-xs);
  }
  
  .admin-table {
    min-width: 700px;
  }
}

.product-filters {
  display: flex;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0 var(--spacing-lg);
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: 30px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-base);
  background: var(--surface-light);
}

.pill:hover {
  border-color: var(--accent-solid);
  color: var(--accent-solid);
  background: rgba(0, 123, 255, 0.05);
}

.pill.active {
  border-color: var(--accent-solid);
  background: var(--accent);
  color: white;
}

/* ============================================
   BLOG GRID
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.blog-card {
  display: block;
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-solid);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  width: 100%;
  aspect-ratio: 1200 / 630;
  height: auto;
  overflow: hidden;
  background: var(--surface);
}

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

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: var(--spacing-md);
}

.blog-title {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-lg);
  color: var(--text);
  line-height: 1.4;
}

.blog-excerpt {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-date {
  color: var(--muted);
  font-size: var(--font-size-xs);
}

/* Blog Grid Mobile Responsive */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
  }
  
  .blog-card {
    border-radius: var(--radius);
  }
  
  .blog-image {
    aspect-ratio: 1200 / 630;
    height: auto;
  }
  
  .blog-content {
    padding: var(--spacing-sm);
  }
  
  .blog-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
  }
  
  .blog-excerpt {
    font-size: var(--font-size-xs);
    margin-bottom: var(--spacing-xs);
    -webkit-line-clamp: 2;
  }
  
  .blog-date {
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 480px) {
  .blog-grid {
    gap: var(--spacing-sm);
  }
  
  .blog-image {
    height: 150px;
  }
  
  .blog-content {
    padding: var(--spacing-xs);
  }
}

.blog-slider-container {
  position: relative;
  margin-top: var(--spacing-lg);
}

.blog-slider {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-bottom: var(--spacing-sm);
  -webkit-overflow-scrolling: touch;
}

.blog-slider::-webkit-scrollbar {
  height: 8px;
}

.blog-slider::-webkit-scrollbar-track {
  background: transparent;
}

.blog-slider::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.blog-slider::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.blog-slide {
  flex: 0 0 calc(33.333% - var(--spacing-lg) * 2 / 3);
  min-width: 300px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 1200px) {
  .blog-slide {
    flex: 0 0 calc(50% - var(--spacing-lg) / 2);
  }
}

@media (max-width: 768px) {
  .blog-slide {
    flex: 0 0 calc(100% - var(--spacing-lg));
  }
}

.blog-slider-controls {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 10;
  pointer-events: none;
}

.blog-slider-controls .blog-slider-btn {
  pointer-events: auto;
}

.blog-slider-btn {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  transition: all var(--transition-base);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.blog-slider-btn:hover:not(:disabled) {
  background: white;
  border-color: var(--accent-solid);
  color: var(--accent-solid);
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.blog-slider-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--accent-solid) 0%, var(--accent-hover-solid) 100%);
  color: white;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  letter-spacing: var(--letter-spacing-wide);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-md);
  line-height: var(--line-height-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-hover-solid) 0%, var(--accent-dark) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: white;
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: var(--border-width-thick) solid var(--line);
  box-shadow: none;
}

.btn.secondary::before {
  display: none;
}

.btn.secondary:hover {
  background: var(--accent-bg);
  border-color: var(--accent-solid);
  color: var(--accent-solid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:disabled {
  opacity: 0.5;
}

/* ============================================
   FORMS
   ============================================ */
form {
  margin: 0;
}

.form-field {
  margin-bottom: var(--spacing-lg);
}

.form-field label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-normal);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="number"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select,
.input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: var(--border-width-thick) solid var(--line);
  background: var(--surface-light);
  color: var(--text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  font-family: inherit;
  line-height: var(--line-height-normal);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
  position: relative;
}

.form-field input[type="text"]::placeholder,
.form-field input[type="email"]::placeholder,
.form-field input[type="password"]::placeholder,
.form-field input[type="number"]::placeholder,
.form-field input[type="tel"]::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="password"]:focus,
.form-field input[type="number"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus,
.form-field select:focus,
.input:focus {
  outline: none;
  border-color: var(--accent-solid);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-bg), var(--shadow-md);
  transform: translateY(-1px);
}

.form-field input[type="text"]:disabled,
.form-field input[type="email"]:disabled,
.form-field input[type="password"]:disabled,
.form-field input[type="number"]:disabled,
.form-field input[type="tel"]:disabled,
.form-field textarea:disabled,
.form-field select:disabled,
.input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--surface);
}

.form-field input[type="file"] {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: var(--border-width-thick) dashed var(--line);
  background: var(--surface-light);
  color: var(--text);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.form-field input[type="file"]:hover {
  border-color: var(--accent-solid);
  background: var(--accent-bg);
  box-shadow: var(--shadow-sm);
}

.form-field input[type="file"]::file-selector-button {
  padding: 10px 20px;
  border-radius: var(--radius);
  border: var(--border-width-thick) solid var(--accent-solid);
  background: var(--accent-solid);
  color: white;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  cursor: pointer;
  margin-right: 16px;
  transition: all var(--transition-base);
  letter-spacing: var(--letter-spacing-wide);
  box-shadow: var(--shadow-sm);
}

.form-field input[type="file"]::file-selector-button:hover {
  background: var(--accent-hover-solid);
  border-color: var(--accent-hover-solid);
  box-shadow: var(--shadow-accent);
}

.form-field input[type="checkbox"] {
  width: auto;
  margin-right: var(--spacing-sm);
  cursor: pointer;
  width: 18px;
  height: 18px;
}

textarea.input {
  resize: vertical;
  min-height: 100px;
}

/* Responsive Forms */
@media (max-width: 768px) {
  .form-field {
    margin-bottom: var(--spacing-md);
  }
  
  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field input[type="password"],
  .form-field input[type="number"],
  .form-field input[type="tel"],
  .form-field textarea,
  .form-field select,
  .input {
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Form grids should stack on mobile */
  form > div[style*="grid-template-columns"],
  form > div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Button groups should stack or wrap */
  .form-actions,
  .address-form-actions,
  div[style*="display: flex"][style*="gap"] {
    flex-direction: column;
    gap: var(--spacing-sm) !important;
  }
  
  .form-actions .btn,
  .address-form-actions .btn,
  div[style*="display: flex"] .btn {
    width: 100%;
  }
  
  /* Inline form elements should stack */
  label[style*="display: flex"],
  .form-field > div[style*="display: flex"] {
    flex-direction: column;
    gap: var(--spacing-xs) !important;
  }
}

@media (max-width: 480px) {
  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field input[type="password"],
  .form-field input[type="number"],
  .form-field input[type="tel"],
  .form-field textarea,
  .form-field select,
  .input {
    padding: 10px 14px;
    font-size: 16px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: var(--font-size-sm);
    width: 100%;
  }
}

/* ============================================
   BADGES & ALERTS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: var(--border-width) solid transparent;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
  line-height: var(--line-height-tight);
}

.badge.big {
  padding: 10px 20px;
  font-size: var(--font-size-sm);
}

.alert {
  border: var(--border-width-thick) solid var(--line);
  background: var(--surface-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  margin: var(--spacing-md) 0;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  box-shadow: var(--shadow-xs);
}

.alert.success {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.alert.error {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.alert.warning {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* ============================================
   FOOTER - Modern 2026 Style
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
  border-top: var(--border-width-thick) solid var(--line);
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
  margin-top: var(--spacing-2xl);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .footer {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
  }
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-md);
  color: var(--text);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-solid) 0%, var(--accent-hover-solid) 100%);
  border-radius: var(--radius-full);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links-list li {
  margin: 0;
}

.footer-links-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  transition: all var(--transition-base);
  padding: 2px 0;
  letter-spacing: var(--letter-spacing-normal);
  line-height: 1.5;
}

.footer-links-list a:hover {
  color: var(--accent-solid);
  padding-left: var(--spacing-sm);
  font-weight: var(--font-weight-medium);
}

.footer-contact {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  margin: var(--spacing-lg) 0;
  font-size: var(--font-size-sm);
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--line-light);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
  }
  
  .footer-bottom-right {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-left: auto;
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--text);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-normal);
}

.footer-rights {
  font-size: var(--font-size-xs);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--muted);
  margin-top: var(--spacing-sm);
}

.footer-brand-link {
  color: var(--accent-solid);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-base);
}

.footer-brand-link:hover {
  color: var(--accent-hover);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-item {
  color: var(--muted);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--surface-light);
  border: var(--border-width) solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition-base);
  font-size: 18px;
  box-shadow: var(--shadow-xs);
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.05);
  background: var(--accent-solid);
  border-color: var(--accent-solid);
  color: white;
  box-shadow: var(--shadow-accent);
}

.social-icon i {
  font-size: 18px;
}

.footer-logo {
  max-width: 200px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-logo-link {
  display: inline-block;
}

.footer-bottom-text {
  color: var(--muted);
  font-size: var(--font-size-sm);
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page {
  padding: var(--spacing-lg) 0 var(--spacing-xl);
}

.page h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-size: var(--font-size-sm);
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  padding: 6px 12px;
  border-radius: var(--radius);
}

.nav-links a:hover {
  color: var(--accent-solid);
  background: var(--surface-hover);
}

.nav-links a.active {
  color: var(--accent-solid);
  background: rgba(0, 123, 255, 0.1);
  font-weight: 600;
}

.admin-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-light);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.admin-table thead {
  background: var(--surface);
}

.admin-table th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--line);
  font-size: var(--font-size-sm);
}

.admin-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--line-light);
  color: var(--text-secondary);
}

.admin-table tbody tr:hover {
  background: var(--surface-hover);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive table wrapper for all tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

@media (max-width: 768px) {
  .admin-table-wrapper {
    margin: var(--spacing-md) calc(-1 * var(--spacing-md));
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .admin-table {
    min-width: 600px;
    font-size: var(--font-size-sm);
  }
  
  .admin-table th,
  .admin-table td {
    padding: var(--spacing-sm);
    white-space: nowrap;
  }
  
  .admin-table th:first-child,
  .admin-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg);
    z-index: 10;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
  }
  
  /* General table responsive styles */
  table {
    min-width: 100%;
  }
  
  .table-responsive table {
    min-width: 600px;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* ============================================
   MOBILE HEADER - Professional Two-Row Layout
   ============================================ */
@media (max-width: 768px) {
  /* Header Main Container - Two Row Grid */
  .header-main {
    padding: 12px 0;
  }
  
  .header-main-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: center;
    column-gap: 12px;
  }
  
  /* Row 1: Menu | Brand | Actions */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 20px;
    transition: all 0.2s ease;
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
  }
  
  .mobile-menu-toggle:hover {
    background: var(--surface-hover);
    border-color: var(--accent-solid);
    color: var(--accent-solid);
  }
  
  .mobile-menu-toggle:active {
    transform: scale(0.95);
  }
  
  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: 140px;
    min-width: 0;
    text-align: center;
    overflow: hidden;
    padding: 0 8px;
  }
  
  .brand-logo {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    margin: 0;
  }
  
  .brand-logo-img {
    max-width: 120px;
    max-height: 32px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
  .header-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    justify-content: flex-end;
    min-width: 0;
  }
  
  .header-action-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    margin: 0;
    flex-shrink: 0;
  }
  
  .header-action-item:hover {
    background: var(--surface-hover);
    border-color: var(--accent-solid);
    color: var(--accent-solid);
  }
  
  .header-action-item:active {
    transform: scale(0.95);
  }
  
  /* Override for login button - don't apply square styles */
  .header-action-item.btn-login-header {
    background: linear-gradient(135deg, var(--accent-solid) 0%, var(--accent-hover-solid) 100%);
    border: 1px solid var(--accent-solid);
    color: white;
  }
  
  .header-action-item.btn-login-header:hover {
    background: linear-gradient(135deg, var(--accent-hover-solid) 0%, var(--accent-dark) 100%);
    border-color: var(--accent-hover-solid);
    color: white;
  }
  
  .action-icon {
    font-size: 20px;
  }
  
  .action-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--accent-solid);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
  }
  
  .action-text {
    display: none;
  }
  
  .header-profile-link .action-text {
    display: none;
  }
  
  .header-profile-avatar,
  .header-profile-avatar-fallback {
    width: 32px;
    height: 32px;
  }
  
  .btn-login-header {
    width: 44px;
    height: 44px;
    padding: 0;
    min-height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--accent-solid) 0%, var(--accent-hover-solid) 100%);
    border: 1px solid var(--accent-solid);
    border-radius: var(--radius);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    box-shadow: var(--shadow-sm);
  }
  
  .btn-login-header i {
    font-size: 20px;
    color: white;
    display: block;
  }
  
  .btn-login-header .action-text {
    display: none;
  }
  
  .btn-login-header:hover {
    background: linear-gradient(135deg, var(--accent-hover-solid) 0%, var(--accent-dark) 100%);
    border-color: var(--accent-hover-solid);
    color: white;
    transform: none;
    box-shadow: var(--shadow-md);
  }
  
  .btn-login-header:active {
    transform: scale(0.95);
  }
  
  /* Row 2: Full-width Search Bar */
  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: flex;
    gap: 0;
  }
  
  .search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px; /* Prevent iOS zoom */
    border: 1px solid var(--line);
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
    margin: 0;
  }
  
  .search-input:focus {
    outline: none;
    border-color: var(--accent-solid);
    background: var(--bg);
    box-shadow: 0 0 0 3px var(--accent-bg);
  }
  
  .search-input::placeholder {
    color: var(--muted);
    opacity: 0.7;
  }
  
  .search-btn {
    padding: 12px 20px;
    font-size: 18px;
    min-width: 52px;
    height: auto;
    border: 1px solid var(--accent-solid);
    border-left: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--accent-solid);
    color: white;
    transition: all 0.2s ease;
    margin: 0;
    cursor: pointer;
  }
  
  .search-btn:hover {
    background: var(--accent-hover-solid);
    border-color: var(--accent-hover-solid);
  }
  
  .search-btn:active {
    transform: scale(0.98);
  }
  
  .header-nav {
    display: none;
  }
  
  .nav-links-main {
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
  }
  
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm);
  }
  
  .products-grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-sm);
  }
  
  .hero-intro-title {
    font-size: var(--font-size-xl);
  }
  
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .product-actions-mobile {
    display: flex;
  }
  
  .product-actions-hover {
    display: none;
  }
  
  .product-card {
    display: flex;
    flex-direction: column;
  }
  
  .card-link {
    flex: 1;
  }
  
  /* Compact product cards for mobile */
  .thumb {
    height: 140px;
  }
  
  .card-body {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .card-title {
    font-size: var(--font-size-sm);
    margin-bottom: 4px;
  }
  
  .price {
    font-size: var(--font-size-base);
  }
  
  .price-old {
    font-size: var(--font-size-xs);
  }
  
  .sale-badge {
    padding: 6px 10px;
    font-size: 10px;
    top: 8px;
    left: 8px;
  }
  
  .discount-badge {
    padding: 3px 8px;
    font-size: 10px;
  }
  
  .price-row {
    margin: 4px 0;
    gap: var(--spacing-xs);
  }
  
  .rating {
    margin-top: 4px;
  }
  
  .product-actions-mobile {
    padding: 6px var(--spacing-sm);
    gap: 6px;
  }
  
  .btn-add-cart-mobile {
    padding: 6px 10px;
    font-size: var(--font-size-xs);
  }
  
  .btn-wishlist {
    padding: 4px;
  }
}

/* ============================================
   SMALL MOBILE (320px - 480px) - Ultra Compact
   ============================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .header-main {
    padding: 10px 0;
  }
  
  .header-main-inner {
    gap: 10px;
  }
  
  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .brand {
    max-width: 100px;
    padding: 0 4px;
  }
  
  .brand-logo {
    font-size: 13px;
    font-weight: 700;
  }
  
  .brand-logo-img {
    max-width: 90px;
    max-height: 28px;
  }
  
  .header-actions {
    gap: 6px;
    min-width: 0;
  }
  
  .header-main-inner {
    column-gap: 8px;
  }
  
  .header-action-item {
    width: 40px;
    height: 40px;
  }
  
  .action-icon {
    font-size: 18px;
  }
  
  .action-count {
    font-size: 9px;
    min-width: 14px;
    height: 14px;
    top: 2px;
    right: 2px;
  }
  
  .header-profile-avatar,
  .header-profile-avatar-fallback {
    width: 28px;
    height: 28px;
  }
  
  .btn-login-header {
    width: 40px;
    height: 40px;
    padding: 0;
    min-height: 40px;
    min-width: 40px;
  }
  
  .btn-login-header i {
    font-size: 18px;
  }
  
  .search-input {
    padding: 10px 14px;
    font-size: 16px; /* Prevent iOS zoom */
  }
  
  .search-btn {
    padding: 10px 16px;
    min-width: 48px;
    font-size: 16px;
  }
  
  .header-top-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-xs);
  }
  
  .products-grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-xs);
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* ============================================
   LOGIN PAGE - ShopMN Style
   ============================================ */
.login-page {
  min-height: calc(100vh - 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--bg);
}

.login-wrapper {
  width: 100%;
  max-width: 480px;
}

.login-container {
  width: 100%;
  background: var(--surface-light);
  border: var(--border-width) solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-xl);
}

.login-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--spacing-sm) 0;
  text-align: center;
  color: var(--text);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
}

.login-subtitle {
  color: var(--muted);
  font-size: var(--font-size-sm);
  text-align: center;
  margin: 0 0 var(--spacing-xl) 0;
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-normal);
}

.login-form {
  margin-top: var(--spacing-lg);
}

.login-form .form-field {
  margin-bottom: var(--spacing-md);
}

.login-form .form-field label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text);
  font-size: var(--font-size-sm);
}

.login-form .form-field .required {
  color: #e05d5d;
}

.login-form .input {
  width: 100%;
  padding: 14px 18px;
  border: var(--border-width-thick) solid var(--line);
  border-radius: var(--radius);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  transition: all var(--transition-base);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.login-form .input:focus {
  outline: none;
  border-color: var(--accent-solid);
  box-shadow: 0 0 0 4px var(--accent-bg), var(--shadow-sm);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--spacing-md);
}

.forgot-link {
  color: var(--accent-solid);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-base);
}

.forgot-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  display: block;
}

.btn-primary {
  background: var(--accent-solid);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover-solid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: var(--border-width-thick) solid var(--line);
  padding: 14px 28px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: var(--accent-bg);
  border-color: var(--accent-solid);
  color: var(--accent-solid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.login-divider {
  text-align: center;
  margin: var(--spacing-xl) 0;
  position: relative;
}

.login-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  height: 1px;
  background: var(--line);
}

.login-divider span {
  background: var(--surface-light);
  padding: 0 var(--spacing-md);
  color: var(--muted);
  position: relative;
  font-size: var(--font-size-sm);
}

.register-prompt {
  text-align: center;
  margin-top: var(--spacing-lg);
}

.register-prompt p {
  color: var(--muted);
  margin: 0 0 var(--spacing-md) 0;
  font-size: var(--font-size-sm);
}

.register-form-wrapper {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--line);
}

.register-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text);
}

.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.alert-error {
  background: rgba(224, 93, 93, 0.15);
  border: 1px solid rgba(224, 93, 93, 0.4);
  color: #c53030;
}

.alert-success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: #1e7e34;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  z-index: 2000;
  transition: right var(--transition-slow);
}

.cart-sidebar.active {
  right: 0;
}

.cart-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.cart-sidebar.active .cart-sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--surface-light);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-sidebar-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg);
  gap: var(--spacing-md);
}

.cart-sidebar-header-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.cart-sidebar-header h3 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.cart-sidebar-item-count {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.cart-sidebar-header-left .btn-empty-cart-sidebar {
  margin-top: 0;
  align-self: flex-start;
  padding: var(--spacing-xs) 0;
}

.cart-sidebar-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-xs);
  justify-content: space-between;
}

.cart-sidebar-total-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

.cart-sidebar-total-header span {
  color: var(--muted);
}

.cart-sidebar-total-header strong {
  color: var(--text);
  font-size: var(--font-size-base);
  font-weight: 600;
}

.cart-sidebar-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-base);
}

.cart-sidebar-close:hover {
  color: var(--text);
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-md);
}

.cart-sidebar-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--line);
}

.cart-sidebar-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-sidebar-item-info {
  flex: 1;
}

.cart-sidebar-item-name {
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

.cart-sidebar-item-price {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
}

.cart-sidebar-item-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  color: var(--text);
  transition: all var(--transition-base);
}

.cart-qty-btn:hover {
  background: var(--accent);
  border-color: var(--accent-solid);
  color: white;
}

.cart-qty-input {
  width: 50px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--font-size-sm);
  padding: 0;
  -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-remove-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  transition: all var(--transition-base);
  margin-left: auto;
}

.cart-item-remove-btn:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.cart-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cart-sidebar-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: auto;
  flex-shrink: 0;
}

.btn-empty-cart-sidebar {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 700;
  transition: all var(--transition-base);
  margin: 0;
}

.btn-empty-cart-sidebar:hover {
  color: var(--danger);
}

.btn-empty-cart-sidebar span:first-child {
  font-size: var(--font-size-base);
}

.cart-sidebar-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.cart-sidebar-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.cart-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cart-sidebar-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--line);
}

.cart-page-header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.cart-item-count {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

.cart-header-actions {
  display: flex;
  gap: var(--spacing-md);
}

.btn-empty-cart {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
}

.btn-empty-cart:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.cart-empty {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.cart-empty-icon {
  font-size: 64px;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.cart-empty h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.cart-page-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.cart-item-card {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--surface-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.cart-item-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-solid);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

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

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.cart-item-name {
  font-weight: 600;
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-xs);
}

.cart-item-name a {
  color: var(--text);
  text-decoration: none;
}

.cart-item-name a:hover {
  color: var(--accent-solid);
}

.cart-item-category {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
}

.cart-item-price-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.cart-item-price {
  color: var(--accent-solid);
  font-weight: 600;
  font-size: var(--font-size-base);
}

.cart-item-price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: var(--font-size-sm);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-sm);
}

.cart-item-qty-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  color: var(--text);
  transition: all var(--transition-base);
}

.cart-qty-btn:hover {
  background: var(--accent);
  border-color: var(--accent-solid);
  color: white;
}

.cart-qty-input {
  width: 50px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--font-size-sm);
  padding: 0;
  -moz-appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-remove-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  transition: all var(--transition-base);
}

.cart-item-remove-btn:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

.cart-summary {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.cart-summary-card {
  background: var(--surface-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.cart-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--line);
}

.cart-summary-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.cart-summary-total-amount {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--accent-solid);
}

.cart-summary-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.cart-summary-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.cart-summary-card h3 {
  margin: 0 0 var(--spacing-md) 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--text);
}

.cart-summary-divider {
  height: 1px;
  background: var(--line);
  margin: var(--spacing-md) 0;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-lg);
  font-weight: 700;
  padding-top: var(--spacing-sm);
}

@media (max-width: 768px) {
  .login-container {
    padding: var(--spacing-lg);
  }
  
  .login-title {
    font-size: var(--font-size-2xl);
  }
  
  .cart-page-content {
    grid-template-columns: 1fr;
  }
  
  .cart-summary {
    position: static;
  }
  
  .cart-sidebar {
    max-width: 100%;
    width: 100%;
  }
  
  .cart-sidebar-content {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    height: 100vh;
  }
  
  .cart-sidebar-header {
    padding: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }
  
  .cart-sidebar-header-left,
  .cart-sidebar-header-right {
    width: 100%;
  }
  
  .cart-sidebar-body {
    padding: var(--spacing-md);
    max-height: calc(100vh - 300px);
  }
  
  .cart-sidebar-footer {
    padding: var(--spacing-md);
  }
  
  .cart-sidebar-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .cart-sidebar-actions .btn {
    width: 100%;
  }
  
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .checkout-summary-section {
    position: static;
  }
  
  /* Product grid breakpoints handled above */
  
  .product-actions-mobile {
    display: flex;
  }
  
  .product-actions-hover {
    display: none;
  }
  
  .product-actions-top {
    opacity: 1;
    position: static;
    flex-direction: row;
    justify-content: flex-end;
    padding: var(--spacing-xs);
  }
  
  .product-card:hover .product-actions-top {
    opacity: 1;
  }
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--line);
}

.checkout-success {
  text-align: center;
  padding: var(--spacing-xl) 0;
  max-width: 600px;
  margin: 0 auto;
}

.checkout-success-icon {
  font-size: 64px;
  margin-bottom: var(--spacing-md);
}

.checkout-success h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--text);
  font-size: var(--font-size-2xl);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.checkout-form-section {
  background: var(--surface-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
}

.checkout-summary-section {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.checkout-section-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--text);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--line);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.checkout-summary-card {
  background: var(--surface-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--line);
}

.checkout-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.checkout-item-info {
  flex: 1;
}

.checkout-item-name {
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--text);
  font-size: var(--font-size-base);
}

.checkout-item-meta {
  display: flex;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--muted);
  align-items: center;
}

.checkout-item-total {
  font-weight: 600;
  color: var(--text);
  font-size: var(--font-size-base);
}

.checkout-summary-divider {
  height: 1px;
  background: var(--line);
  margin: var(--spacing-md) 0;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text);
  padding-top: var(--spacing-sm);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--text);
}

.form-section {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--line);
}

.form-section:last-child {
  border-bottom: none;
}

.delivery-type-options,
.payment-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.delivery-type-card,
.payment-option-card {
  position: relative;
  cursor: pointer;
}

.delivery-type-card input[type="radio"],
.payment-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-type-content,
.payment-option-content {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  background: var(--surface-light);
}

.delivery-type-card input[type="radio"]:checked + .delivery-type-content,
.payment-option-card input[type="radio"]:checked + .payment-option-content {
  border-color: var(--accent-solid);
  background: rgba(0, 123, 255, 0.05);
}

.delivery-type-header,
.payment-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.delivery-type-title,
.payment-option-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text);
}

.delivery-type-check,
.payment-option-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.delivery-type-card input[type="radio"]:checked + .delivery-type-content .delivery-type-check,
.payment-option-card input[type="radio"]:checked + .payment-option-content .payment-option-check {
  opacity: 1;
}

.delivery-type-desc,
.payment-option-desc {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
}

.delivery-type-fee {
  color: var(--accent-solid);
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.payment-option-note {
  color: var(--muted);
  font-size: var(--font-size-xs);
  margin-top: var(--spacing-xs);
}

#addressList {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.address-card {
  position: relative;
  cursor: pointer;
}

.address-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.address-card-content {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  transition: all var(--transition-base);
  background: var(--surface-light);
}

.address-card input[type="radio"]:checked + .address-card-content {
  border-color: var(--accent-solid);
  background: rgba(0, 123, 255, 0.05);
}

.address-type-badge {
  display: inline-block;
  padding: 4px 8px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  color: var(--muted);
  margin-bottom: var(--spacing-xs);
}

.address-text {
  color: var(--text);
  font-size: var(--font-size-sm);
}

.btn-add-address {
  width: 100%;
  padding: var(--spacing-lg);
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-light);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  transition: all var(--transition-base);
  font-size: var(--font-size-base);
}

.btn-add-address:hover {
  border-color: var(--accent-solid);
  background: rgba(0, 123, 255, 0.05);
}

.address-icon {
  font-size: 20px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--spacing-lg);
}

.modal-content {
  background: var(--bg);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: var(--surface);
  color: var(--text);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-footer {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  padding: var(--spacing-lg);
  border-top: 1px solid var(--line);
}

.address-type-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.address-type-btn {
  flex: 1;
  padding: var(--spacing-md);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-light);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.address-type-btn.active {
  border-color: var(--accent-solid);
  background: var(--accent);
  color: white;
}

/* Product Detail Styles */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.product-detail-media {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.product-detail-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.product-detail-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.product-detail-price-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.product-detail-price {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--accent-solid);
}

.product-detail-old-price {
  font-size: var(--font-size-lg);
  color: var(--muted);
  text-decoration: line-through;
}

.product-detail-discount {
  padding: 4px 12px;
  background: var(--danger);
  color: white;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.product-detail-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--danger);
  color: white;
  border-radius: 30px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  width: fit-content;
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.rating-text {
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.product-detail-description {
  padding: var(--spacing-lg);
  background: var(--surface-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.product-detail-description h3 {
  margin: 0 0 var(--spacing-md) 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.product-detail-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.product-detail-qty {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.product-detail-qty label {
  font-weight: 500;
}

/* Order Detail Styles */
.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--line);
}

.order-number {
  color: var(--muted);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
}

.order-status-badge {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
}

.order-status-badge.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.order-status-badge.status-paid,
.order-status-badge.status-confirmed {
  background: rgba(40, 167, 69, 0.2);
  color: #155724;
}

.order-status-badge.status-shipped {
  background: rgba(0, 123, 255, 0.2);
  color: #004085;
}

.order-status-badge.status-delivered,
.order-status-badge.status-done {
  background: rgba(40, 167, 69, 0.2);
  color: #155724;
}

.order-status-badge.status-canceled {
  background: rgba(220, 53, 69, 0.2);
  color: #721c24;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.order-detail-section {
  background: var(--surface-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin: 0 0 var(--spacing-lg) 0;
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--line);
}

.order-info-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.info-label {
  color: var(--muted);
  font-size: var(--font-size-sm);
}

.info-value {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.order-item-card {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.order-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
}

.order-item-placeholder {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border-radius: var(--radius);
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--text);
}

.order-item-meta {
  display: flex;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--muted);
}

.order-item-total {
  font-weight: 600;
  color: var(--text);
  font-size: var(--font-size-base);
}

.order-summary {
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--line);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  font-size: var(--font-size-lg);
}

.order-detail-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--line);
}

@media (max-width: 768px) {
  .product-detail-container,
  .order-detail-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .product-detail-media {
    position: static;
  }
  
  .modal-content {
    max-width: 100%;
    margin: var(--spacing-md);
  }
}

/* ===== УТАСНЫ ХЭМЖЭЭ (сүүлчийн давуу эрх) ===== */
@media (max-width: 768px) {
  html { font-size: 15px !important; }
  body { font-size: 15px !important; min-width: 0 !important; overflow-x: hidden; }
  .container { width: 100% !important; max-width: 100% !important; padding-left: 12px !important; padding-right: 12px !important; }
  .hero-banner-section { margin-bottom: 1rem !important; }
  .hero-banner-wrapper { padding-bottom: 50% !important; }
  .home-section .grid { gap: 12px !important; }
  .section-head h2 { font-size: 1.25rem !important; }
}
@media (max-width: 480px) {
  html { font-size: 14px !important; }
  body { font-size: 14px !important; }
  .container { padding-left: 10px !important; padding-right: 10px !important; }
  .hero-banner-wrapper { padding-bottom: 55% !important; }
  .brand-logo-img { max-height: 36px !important; }
  .section-head h2 { font-size: 1.15rem !important; }
}
@media (max-width: 360px) {
  html { font-size: 13px !important; }
  body { font-size: 13px !important; }
  .container { padding-left: 8px !important; padding-right: 8px !important; }
}
