﻿/* ============================================================
   denandro - Main Stylesheet
   Premium Glassmorphism + Modern Ecommerce UI
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────────────────────────── */
:root {
  --primary:       #6366f1;
  --primary-dark:  #4f46e5;
  --primary-light: #818cf8;
  --primary-rgb:   99, 102, 241;
  --secondary:     #f59e0b;
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --info:          #3b82f6;
  --dark:          #0f172a;
  --dark-2:        #1e293b;
  --dark-3:        #334155;
  --gray:          #64748b;
  --gray-light:    #94a3b8;
  --light:         #f1f5f9;
  --white:         #ffffff;
  --border:        #e2e8f0;

  --font-main:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-md:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-lg:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-xl:  0 25px 50px -12px rgba(0,0,0,.25);

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --transition-fast: all .15s ease;

  --glass-bg:      rgba(255,255,255,.7);
  --glass-border:  rgba(255,255,255,.3);
  --glass-shadow:  0 8px 32px rgba(31,38,135,.15);

  --header-h: 70px;
}

/* ─── Dark Theme ─────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --primary:       #818cf8;
  --primary-dark:  #6366f1;
  --primary-light: #a5b4fc;
  --primary-rgb:   129, 140, 248;
  --dark:          #f8fafc;
  --dark-2:        #f1f5f9;
  --dark-3:        #e2e8f0;
  --gray:          #94a3b8;
  --gray-light:    #64748b;
  --light:         #1e293b;
  --white:         #0f172a;
  --border:        #334155;
  --glass-bg:      rgba(15,23,42,.85);
  --glass-border:  rgba(255,255,255,.08);
  --glass-shadow:  0 8px 32px rgba(0,0,0,.4);
}

/* ─── Ocean Theme (Teal) ──────────────────────────────────────────────────────── */
[data-theme="ocean"] {
  --primary:       #0891b2;
  --primary-dark:  #0e7490;
  --primary-light: #22d3ee;
  --primary-rgb:   8, 145, 178;
  --secondary:     #f59e0b;
}

/* ─── Royal Theme (Deep Blue) ────────────────────────────────────────────────── */
[data-theme="royal"] {
  --primary:       #1d4ed8;
  --primary-dark:  #1e40af;
  --primary-light: #60a5fa;
  --primary-rgb:   29, 78, 216;
  --secondary:     #f59e0b;
}

/* ─── Ember Theme (Warm Orange) ──────────────────────────────────────────────── */
[data-theme="ember"] {
  --primary:       #ea580c;
  --primary-dark:  #c2410c;
  --primary-light: #fb923c;
  --primary-rgb:   234, 88, 12;
  --secondary:     #6366f1;
}

/* ─── Rose Theme (Vibrant Pink) ──────────────────────────────────────────────── */
[data-theme="rose"] {
  --primary:       #e11d48;
  --primary-dark:  #be123c;
  --primary-light: #fb7185;
  --primary-rgb:   225, 29, 72;
  --secondary:     #6366f1;
}

/* ─── Midnight Theme (Dark + Teal) ───────────────────────────────────────────── */
[data-theme="midnight"] {
  --primary:       #06b6d4;
  --primary-dark:  #0891b2;
  --primary-light: #67e8f9;
  --primary-rgb:   6, 182, 212;
  --secondary:     #f59e0b;
  --dark:          #e2f8fb;
  --dark-2:        #cff4fc;
  --dark-3:        #a5f3fc;
  --gray:          #94a3b8;
  --gray-light:    #64748b;
  --light:         #164e63;
  --white:         #0c1a2e;
  --border:        #155e75;
  --glass-bg:      rgba(12, 26, 46, .88);
  --glass-border:  rgba(6, 182, 212, .15);
  --glass-shadow:  0 8px 32px rgba(0,0,0,.5);
}

/* ─── Forest Theme (Emerald Green) ──────────────────────────────────────────── */
[data-theme="forest"] {
  --primary:       #059669;
  --primary-dark:  #047857;
  --primary-light: #34d399;
  --primary-rgb:   5, 150, 105;
  --secondary:     #f59e0b;
}

/* ─── Violet Theme (Deep Purple) ────────────────────────────────────────────── */
[data-theme="violet"] {
  --primary:       #7c3aed;
  --primary-dark:  #6d28d9;
  --primary-light: #a78bfa;
  --primary-rgb:   124, 58, 237;
  --secondary:     #f59e0b;
}

/* ─── Gold Theme (Amber) ─────────────────────────────────────────────────────── */
[data-theme="gold"] {
  --primary:       #d97706;
  --primary-dark:  #b45309;
  --primary-light: #fcd34d;
  --primary-rgb:   217, 119, 6;
  --secondary:     #6366f1;
}

/* ─── Sakura Theme (Soft Pink) ───────────────────────────────────────────────── */
[data-theme="sakura"] {
  --primary:       #ec4899;
  --primary-dark:  #db2777;
  --primary-light: #f9a8d4;
  --primary-rgb:   236, 72, 153;
  --secondary:     #8b5cf6;
}

/* ─── Sunset Theme (Red-Orange) ──────────────────────────────────────────────── */
[data-theme="sunset"] {
  --primary:       #f97316;
  --primary-dark:  #ea580c;
  --primary-light: #fdba74;
  --primary-rgb:   249, 115, 22;
  --secondary:     #6366f1;
}

/* ─── Arctic Theme (Ice Blue/Dark BG) ────────────────────────────────────────── */
[data-theme="arctic"] {
  --primary:       #38bdf8;
  --primary-dark:  #0ea5e9;
  --primary-light: #7dd3fc;
  --primary-rgb:   56, 189, 248;
  --secondary:     #f59e0b;
  --dark:          #e0f2fe;
  --dark-2:        #bae6fd;
  --dark-3:        #7dd3fc;
  --gray:          #94a3b8;
  --gray-light:    #64748b;
  --light:         #0c4a6e;
  --white:         #082f49;
  --border:        #075985;
  --glass-bg:      rgba(8, 47, 73, .88);
  --glass-border:  rgba(56, 189, 248, .2);
  --glass-shadow:  0 8px 32px rgba(0,0,0,.5);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  transition: background .3s, color .3s;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark); }

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

/* ─── Typography ─────────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
}

/* ─── Header / Navbar ────────────────────────────────────────────────────────── */
#main-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  height: var(--header-h);
}

#main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Top bar */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,.9);
  font-size: 0.8rem;
  padding: 6px 0;
}
.top-bar a { color: rgba(255,255,255,.9); }
.top-bar a:hover { color: #fff; }

/* Search bar */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 600px;
}
.search-wrapper input {
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  padding: 10px 50px 10px 20px;
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
}
.search-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.1);
  outline: none;
}
.search-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.search-btn:hover { background: var(--primary-dark); }

/* Search autocomplete dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}
.search-results-dropdown.show { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  transition: var(--transition-fast);
  cursor: pointer;
}
.search-result-item:hover { background: var(--light); }
.search-result-item img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }

/* Nav icons */
.nav-icon-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--dark);
  font-size: 0.7rem;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
}
.nav-icon-btn i { font-size: 1.3rem; }
.nav-icon-btn:hover { color: var(--primary); background: rgba(var(--primary-rgb),.07); }
.nav-icon-btn .badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 4px;
}

/* Mega Menu */
.mega-menu-wrapper {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.mega-menu-wrapper .nav-link {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 14px 16px;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
}
.mega-menu-wrapper .nav-link:hover,
.mega-menu-wrapper .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: var(--shadow-xl);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 30px;
  display: none;
}
.mega-dropdown.show { display: flex; gap: 30px; }
.mega-cat-col { flex: 1; }
.mega-cat-col h6 {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mega-cat-col a {
  display: block;
  color: var(--gray);
  font-size: 0.875rem;
  padding: 5px 0;
  transition: var(--transition-fast);
}
.mega-cat-col a:hover { color: var(--primary); padding-left: 8px; }

/* ─── Hero Banner / Slider ───────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.hero-slide {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide img.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  transition: transform 6s ease;
}

.hero-slide:hover img.bg-img { transform: scale(1.05); }

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
}

.hero-content .badge-pill {
  display: inline-block;
  background: rgba(var(--primary-rgb),.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--primary-rgb),.5);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 28px; }

/* ─── Product Cards ──────────────────────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--primary-rgb),.2);
}

.product-card .img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--light);
}

.product-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.product-card .badge-corner {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.product-card .quick-actions {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(20px);
  transition: var(--transition);
  z-index: 1;
}

.product-card:hover .quick-actions { opacity: 1; transform: translateX(0); }

.quick-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.quick-action-btn:hover { background: var(--primary); color: #fff; }
.quick-action-btn.wishlisted { background: var(--danger); color: #fff; }

.product-card .card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-card .brand-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card .product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.product-card .price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original {
  font-size: 0.85rem;
  color: var(--gray-light);
  text-decoration: line-through;
}

.price-discount {
  background: rgba(239,68,68,.1);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.product-card .add-to-cart-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 12px;
}

.product-card .add-to-cart-btn:hover { background: var(--primary-dark); }

/* ─── Category Cards ─────────────────────────────────────────────────────────── */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.1), var(--shadow-md);
  transform: translateY(-4px);
}

.category-card .cat-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(var(--primary-rgb),.15), rgba(245,158,11,.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
  transition: var(--transition);
}

.category-card:hover .cat-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.category-card .cat-name { font-weight: 700; font-size: 0.9rem; }
.category-card .cat-count { font-size: 0.77rem; color: var(--gray); margin-top: 4px; }

/* ─── Flash Deal Section ─────────────────────────────────────────────────────── */
.flash-deal-section {
  background: linear-gradient(135deg, #1e293b 0%, var(--primary) 100%);
  color: #fff;
  padding: 50px 0;
}

.deal-timer {
  display: flex;
  gap: 10px;
  align-items: center;
}

.timer-box {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  min-width: 60px;
}

.timer-box .num {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.timer-box .label { font-size: 0.65rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; }

/* ─── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb),.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #3730a3);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb),.5);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover { background: var(--primary); color: #fff; }

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

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* ─── Cart Sidebar ───────────────────────────────────────────────────────────── */
.cart-offcanvas { max-width: 420px; }

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

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.cart-item-variant { font-size: 0.77rem; color: var(--gray); }

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}
.qty-control button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--light);
  cursor: pointer;
  font-size: 1rem;
  color: var(--dark);
  transition: var(--transition-fast);
}
.qty-control button:hover { background: var(--primary); color: #fff; }
.qty-control input {
  width: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 4px;
  height: 32px;
  background: var(--white);
  color: var(--dark);
}

/* ─── Toast Notifications ────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  pointer-events: none;
}

.toast-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideInRight .4s ease;
  pointer-events: all;
  position: relative;
  overflow: hidden;
}

.toast-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: inherit;
  animation: toastProgress 4s linear forwards;
  border-radius: 0 0 0 var(--radius);
}

.toast-item.success  { border-color: var(--success); }
.toast-item.danger   { border-color: var(--danger);  }
.toast-item.warning  { border-color: var(--warning); }
.toast-item.info     { border-color: var(--info);    }

.toast-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.toast-item.success  .toast-icon { color: var(--success); }
.toast-item.danger   .toast-icon { color: var(--danger);  }
.toast-item.warning  .toast-icon { color: var(--warning); }
.toast-item.info     .toast-icon { color: var(--info);    }

.toast-msg { font-size: 0.875rem; font-weight: 500; flex: 1; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--gray); font-size: 1rem; padding: 0; flex-shrink: 0; }

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0; }
}

/* ─── Skeleton Loading ───────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--light) 25%, #e2e8f0 50%, var(--light) 75%);
  background-size: 400% 100%;
  animation: skeletonLoad 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-img  { aspect-ratio: 1; }
.skeleton-line { height: 14px; margin: 8px 16px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────────── */
.breadcrumb-section {
  background: var(--light);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb { margin: 0; }
.breadcrumb-item a { color: var(--gray); font-size: 0.875rem; }
.breadcrumb-item.active { color: var(--dark); font-size: 0.875rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--gray-light); }

/* ─── Product Page ───────────────────────────────────────────────────────────── */
.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }

.gallery-main {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  cursor: zoom-in;
  background: var(--light);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-main:hover img { transform: scale(1.05); }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.gallery-thumb {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-thumb:hover,
.gallery-thumb.active { border-color: var(--primary); }

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

/* Variant selector */
.variant-group { margin-bottom: 20px; }
.variant-group-label { font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }

.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition-fast);
  background: var(--white);
  color: var(--dark);
}
.size-option:hover { border-color: var(--primary); color: var(--primary); }
.size-option.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.size-option.out-of-stock { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.color-option:hover { transform: scale(1.15); }
.color-option.selected { border-color: var(--dark); }
.color-option.selected::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* ─── Checkout Steps ─────────────────────────────────────────────────────────── */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.checkout-step {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray);
  z-index: 1;
}

.checkout-step.active .step-number { background: var(--primary); border-color: var(--primary); color: #fff; }
.checkout-step.completed .step-number { background: var(--success); border-color: var(--success); color: #fff; }

.step-label { margin-left: 10px; font-size: 0.85rem; font-weight: 600; color: var(--gray); }
.checkout-step.active .step-label { color: var(--primary); }
.checkout-step.completed .step-label { color: var(--success); }

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
}

.checkout-step.completed + .checkout-step .step-connector,
.step-connector.completed { background: var(--success); }

/* ─── User Dashboard Sidebar ─────────────────────────────────────────────────── */
.dashboard-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dashboard-sidebar .user-info {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 24px;
  text-align: center;
}

.dashboard-sidebar .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.4);
  margin: 0 auto 12px;
}

.dashboard-sidebar .avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
  font-weight: 700;
}

.dashboard-sidebar .nav-link {
  padding: 12px 20px;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid transparent;
}

.dashboard-sidebar .nav-link:hover { background: var(--light); color: var(--primary); }
.dashboard-sidebar .nav-link.active { background: rgba(var(--primary-rgb),.07); color: var(--primary); border-left-color: var(--primary); }

/* ─── Order Table ────────────────────────────────────────────────────────────── */
.order-table td { vertical-align: middle; }

.order-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

/* ─── Filter Sidebar (Shop) ──────────────────────────────────────────────────── */
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.filter-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Price Range Slider */
.price-range { display: flex; gap: 12px; align-items: center; }
.price-range input[type=number] {
  width: 80px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.875rem;
  text-align: center;
  background: var(--white);
  color: var(--dark);
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark-2);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}

.footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--primary); }

.site-footer h6 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.site-footer a {
  color: rgba(255,255,255,.6);
  font-size: 0.875rem;
  display: block;
  padding: 4px 0;
  transition: var(--transition-fast);
}

.site-footer a:hover { color: var(--primary); padding-left: 6px; }

.footer-bottom {
  background: rgba(0,0,0,.2);
  padding: 16px 0;
  margin-top: 40px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.4);
}

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ─── Newsletter ─────────────────────────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}

.newsletter-form { display: flex; gap: 0; max-width: 500px; }
.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.9rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-form input:focus { outline: none; background: rgba(255,255,255,.25); }
.newsletter-form button {
  padding: 14px 24px;
  background: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}
.newsletter-form button:hover { background: #d97706; }

/* ─── WhatsApp Button ────────────────────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}

.whatsapp-btn:hover { transform: scale(1.1); background: #128c7e; color: #fff; box-shadow: 0 6px 25px rgba(37,211,102,.6); }

@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70%      { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
}

/* ─── Back to Top ────────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ─── Testimonials ───────────────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* ─── Sections ───────────────────────────────────────────────────────────────── */
.section-padding { padding: 60px 0; }
.section-header  { margin-bottom: 40px; }

/* ─── Form Controls ──────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  background: var(--white);
  color: var(--dark);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb),.1);
  outline: none;
}

.form-label { font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; color: var(--dark-3); }

/* ─── Alerts ─────────────────────────────────────────────────────────────────── */
.alert { border-radius: var(--radius); border: none; padding: 14px 18px; }
.alert-success { background: rgba(16,185,129,.1); color: #065f46; }
.alert-danger   { background: rgba(239,68,68,.1);  color: #7f1d1d; }
.alert-warning  { background: rgba(245,158,11,.1); color: #78350f; }
.alert-info     { background: rgba(59,130,246,.1); color: #1e3a8a; }

/* ─── Badges ─────────────────────────────────────────────────────────────────── */
.badge-new      { background: var(--success);  color: #fff; }
.badge-sale     { background: var(--danger);   color: #fff; }
.badge-hot      { background: var(--secondary);color: #fff; }
.badge-featured { background: var(--primary);  color: #fff; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  :root { --header-h: 60px; }
  .product-gallery { position: static; }
  .filter-sidebar  { position: static; }

  .mega-dropdown { position: fixed; left: 0; right: 0; top: var(--header-h); border-radius: 0; padding: 20px; }
}

@media (max-width: 767.98px) {
  .section-padding { padding: 40px 0; }
  .hero-slide { min-height: 320px; }
  .checkout-steps .step-label { display: none; }
  .checkout-step { flex: none; }
  .step-connector { display: none; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form input  { border-radius: var(--radius); border-bottom: none; }
  .newsletter-form button { border-radius: var(--radius); }
}

@media (max-width: 575.98px) {
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .toast-container { max-width: calc(100vw - 40px); }
}

/* ─── Dark Mode Overrides ────────────────────────────────────────────────────── */
[data-theme="dark"] .product-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .filter-sidebar,
[data-theme="dark"] .dashboard-sidebar,
[data-theme="dark"] .testimonial-card,
[data-theme="midnight"] .product-card,
[data-theme="midnight"] .category-card,
[data-theme="midnight"] .filter-sidebar,
[data-theme="midnight"] .dashboard-sidebar,
[data-theme="midnight"] .testimonial-card {
  background: var(--light);
  border-color: var(--border);
}

[data-theme="dark"] .form-control,    [data-theme="midnight"] .form-control,
[data-theme="dark"] .form-select,     [data-theme="midnight"] .form-select     { background: var(--light); border-color: var(--border); color: var(--dark); }

[data-theme="dark"] .search-wrapper input,    [data-theme="midnight"] .search-wrapper input    { background: var(--light); border-color: var(--border); color: var(--dark); }
[data-theme="dark"] .search-results-dropdown, [data-theme="midnight"] .search-results-dropdown { background: var(--light); border-color: var(--border); }
[data-theme="dark"] .mega-dropdown,           [data-theme="midnight"] .mega-dropdown           { background: var(--light); }
[data-theme="dark"] .toast-item { background: #1e293b; color: #f8fafc; }
[data-theme="midnight"] .toast-item { background: #0c2a3d; color: #e2f8fb; }

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

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

/* ─── Global Responsive ──────────────────────────────────────────────────────── */

/* Tablet (≤991px) */
@media (max-width: 991.98px) {
  /* Hero */
  .hero-content h1 { font-size: 2rem; }
  .hero-slide { min-height: 360px; }

  /* Product grid */
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  /* Cart offcanvas */
  .cart-offcanvas { max-width: 100%; }

  /* User portal sidebar stacks above content on tablet */
  .user-content-wrap { padding: 0; }
}

/* Mobile (≤767px) */
@media (max-width: 767.98px) {
  /* Spacing */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Hero */
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content p  { font-size: .9rem; }
  .hero-slide { min-height: 240px; }

  /* Product grid: 2 columns */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .product-card .card-body { padding: .75rem; }
  .product-card .product-name { font-size: .82rem; -webkit-line-clamp: 2; }
  .product-card .price-row   { flex-direction: column; gap: 2px; }

  /* Category grid */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .category-card .cat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
  .category-card .cat-name { font-size: .78rem; }

  /* Cart table on mobile */
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }

  /* Checkout */
  .order-summary { margin-top: 1.5rem; }

  /* Product detail */
  .product-gallery { gap: .75rem; }
  .gallery-main    { border-radius: 12px; }

  /* Flash badge in product cards */
  .product-card .badge-corner { font-size: .6rem; padding: 3px 6px; }

  /* Quick actions hidden on mobile (use add-to-cart btn instead) */
  .product-card .quick-actions { display: none; }
  .product-card:hover .quick-actions { display: none; }

  /* User portal — stack sidebar above */
  .col-lg-3.mb-auto, .col-lg-3 > .user-sidebar {
    margin-bottom: 1rem;
  }

  /* Newsletter */
  .newsletter-section .display-6 { font-size: 1.4rem; }

  /* Footer columns */
  .footer-cols { flex-direction: column; gap: 1.5rem; }

  /* Breadcrumb truncate */
  .breadcrumb-item + .breadcrumb-item::before { padding: 0 4px; }
}

/* Small mobile (≤575px) */
@media (max-width: 575.98px) {
  /* Products: 2 col, smaller */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }

  /* Category: 3 col */
  .categories-grid { grid-template-columns: repeat(3, 1fr); }

  /* Hide email in footer on very small screens */
  .footer-contact-email { display: none; }

  /* Checkout steps: icon only */
  .checkout-step { padding: 0 4px; }

  /* Adjust font sizes */
  h1.display-4 { font-size: 1.6rem; }
  h2.display-5 { font-size: 1.4rem; }

  /* Cart offcanvas full screen */
  .cart-offcanvas { max-width: 100vw; width: 100vw !important; }

  /* Sticky add-to-cart on product page */
  .product-sticky-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--border);
    padding: .75rem 1rem; z-index: 900;
    box-shadow: 0 -4px 12px rgba(0,0,0,.08);
  }
}

/* ─── Admin Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  /* Admin tables — horizontal scroll */
  .data-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Admin cards stack */
  .admin-card { border-radius: 12px; }

  /* POS layout */
  #posContainer { flex-direction: column; }
  #posCart      { width: 100% !important; border-left: none !important; border-top: 1px solid #e2e8f0; }

  /* Stat cards */
  .stat-card { padding: 1rem; }
}

/* ─── Print ──────────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .cart-fab, .toast-container,
  .no-print, nav, .breadcrumb-wrapper { display: none !important; }
  body { background: #fff; }
  .container { max-width: 100%; }
}

.animate-fade-up  { animation: fadeInUp .6s ease both; }
.animate-fade-in  { animation: fadeIn .4s ease both; }

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* ─── Utilities ──────────────────────────────────────────────────────────────── */
.text-primary   { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary     { background: var(--primary) !important; }
.cursor-pointer { cursor: pointer; }
.transition     { transition: var(--transition); }
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.star-rating { display: inline-flex; align-items: center; gap: 2px; }
.star-rating i { font-size: 0.875rem; }

/* Recently Purchased Popup */
.purchase-popup {
  position: fixed;
  bottom: 30px;
  left: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  z-index: 9999;
  animation: slideInLeft .5s ease;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.purchase-popup.visible { opacity: 1; visibility: visible; }
.purchase-popup img { width: 50px; height: 50px; border-radius: var(--radius-sm); object-fit: cover; }
.purchase-popup .info .name { font-size: 0.82rem; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.purchase-popup .info .meta { font-size: 0.75rem; color: var(--gray); }

@keyframes slideInLeft {
  from { transform: translateX(-120%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ─── Theme Picker ───────────────────────────────────────────────────────────── */
.theme-picker-menu {
  min-width: 210px;
  padding: 12px 14px;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-xl) !important;
  background: var(--white) !important;
}
.theme-picker-menu .dropdown-header {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray);
  padding: 0 0 8px;
}
.theme-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 4px 0;
}
.theme-swatch {
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.95);
  font-size: 1.1rem;
  transition: var(--transition-fast);
  outline: none;
  position: relative;
}
.theme-swatch:hover { transform: scale(1.08); }
.theme-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--primary);
}
.theme-swatch .swatch-check {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: #fff;
  color: #222;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: .6rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.theme-swatch.active .swatch-check { display: flex; }

/* ─── Dashboard Cards & Stats ────────────────────────────────────────────────── */
.dashboard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.dashboard-card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.dashboard-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.dashboard-stat .stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin: 0 auto .75rem;
}
.dashboard-stat .stat-val  { font-size: 1.5rem; font-weight: 700; line-height: 1; margin-bottom: .25rem; }
.dashboard-stat .stat-lbl  { font-size: .78rem; color: var(--gray); }

[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .dashboard-card-header,
[data-theme="dark"] .dashboard-stat { background: var(--light); border-color: var(--border); }
