/* ==========================================================
   2NIO - PREMIUM MOROCCAN E-COMMERCE DESIGN SYSTEM
   Modern Luxury Theme | RTL First | COD Delivery Optimized
   Fonts: Cairo & Tajawal (Google Fonts)
   ========================================================== */

:root {
  /* Brand Palette - Deep Navy, Moroccan Gold & Emerald COD */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.25);

  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --accent-gold-light: #fffbeb;
  --accent-gold-glow: rgba(245, 158, 11, 0.25);

  --cod-green: #10b981;
  --cod-green-dark: #059669;
  --cod-green-light: #ecfdf5;
  --cod-green-glow: rgba(16, 185, 129, 0.25);

  --dark-bg: #0a0f1d;
  --dark-surface: #0f172a;
  --dark-card: #1e293b;
  --dark-border: rgba(255, 255, 255, 0.1);

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 30px -6px rgba(15, 23, 42, 0.15), 0 10px 16px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);
}

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

body {
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: 52px; /* Space for top floating switcher */
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  transition: all 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   TOP FLOATING SWITCHER (OS NAVIGATION)
   ======================================================== */
.view-switcher-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(10, 15, 29, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.switcher-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.95rem;
}

.switcher-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--cod-green);
  box-shadow: 0 0 10px var(--cod-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.badge-pro {
  font-size: 0.65rem;
  padding: 2px 7px;
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #fff;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.switcher-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.switcher-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.switcher-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.switcher-btn.active {
  color: #ffffff;
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px var(--primary-glow);
}

.switcher-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-cart-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.quick-cart-badge:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

.badge-count {
  background: var(--accent-gold);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ========================================================
   VIEW CONTAINERS
   ======================================================== */
.view-container {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.view-container.active {
  display: block;
  opacity: 1;
}

/* ========================================================
   STOREFRONT: TOP ANNOUNCEMENT & HEADER
   ======================================================== */
.top-announcement {
  background: linear-gradient(90deg, #0a0f1d 0%, #1e293b 50%, #0a0f1d 100%);
  color: #f1f5f9;
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cod-tag-top {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 8px;
}

.announcement-center {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fef08a;
  font-size: 0.82rem;
}

.pulse-icon-box {
  display: flex;
  align-items: center;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cod-green);
  box-shadow: 0 0 8px var(--cod-green);
  animation: pulseDot 1.5s infinite;
}

.announcement-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.top-link:hover {
  color: #ffffff;
}

.sep {
  color: #475569;
}

/* Header */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 52px;
  z-index: 900;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 24px;
}

.store-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), #1e3a8a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.logo-icon.small {
  width: 36px;
  height: 36px;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
  display: block;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
}

.main-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  color: #475569;
  padding: 6px 4px;
  position: relative;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  min-width: 220px;
  padding: 8px 0;
  display: none;
  z-index: 1000;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.dropdown-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.header-search input {
  width: 100%;
  padding: 9px 40px 9px 14px;
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.header-search .search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.admin-shortcut-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.admin-shortcut-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ========================================================
   HERO CAROUSEL SECTION
   ======================================================== */
.hero-section {
  padding: 24px 0 10px;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

.hero-container {
  position: relative;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 440px;
  background: #ffffff;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 440px;
  padding: 40px 50px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #eff6ff 100%);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

.hero-slide.active {
  display: grid;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.gold-badge {
  background: var(--accent-gold-light);
  color: #b45309;
  border: 1px solid #fde68a;
}

.blue-badge {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.emerald-badge {
  background: var(--cod-green-light);
  color: var(--cod-green-dark);
  border: 1px solid #a7f3d0;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 14px;
}

.highlight-text {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-hero-secondary:hover {
  background: var(--bg-body);
  border-color: #cbd5e1;
}

.hero-stats-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.pill-dot.green { background: var(--cod-green); }
.pill-dot.amber { background: var(--accent-gold); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  max-width: 420px;
}

.hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.hero-floating-tag {
  position: absolute;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
}

.tag-discount {
  top: 20px;
  right: -15px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  flex-direction: column;
  padding: 8px 16px;
  line-height: 1.1;
}
.tag-discount .tag-title { font-size: 0.7rem; font-weight: 600; }
.tag-discount .tag-val { font-size: 1.4rem; font-weight: 900; }

.tag-shipping {
  bottom: 20px;
  left: -15px;
  color: var(--text-main);
}

/* Controls */
.hero-controls {
  position: absolute;
  bottom: 20px;
  right: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.hero-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.hero-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-dots .dot.active {
  width: 24px;
  background: var(--primary);
}

/* ========================================================
   MOROCCAN COD REASSURANCE BANNER
   ======================================================== */
.cod-banner-strip {
  margin: 30px 0 10px;
}

.cod-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.cod-strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px;
}

.cod-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.cod-strip-item h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.cod-strip-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ========================================================
   CATEGORIES GRID
   ======================================================== */
.categories-section {
  padding: 30px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-bar {
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.view-all-link {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
}
.view-all-link:hover { text-decoration: underline; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

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

.cat-img-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-body);
  border: 2px solid #f1f5f9;
}

.cat-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .cat-img-box img {
  transform: scale(1.1);
}

.cat-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

/* ========================================================
   PRODUCTS SECTION & CARDS
   ======================================================== */
.products-section {
  padding: 20px 0 50px;
}

.products-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.product-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
}

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

.filter-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.sort-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 700;
}

.sort-selector-wrap select {
  border: none;
  background: transparent;
  color: var(--text-main);
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.prod-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-danger { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }
.badge-blue { background: #dbeafe; color: #2563eb; border: 1px solid #93c5fd; }
.badge-amber { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }

.prod-cod-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(4, 120, 87, 0.95);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.prod-img-box {
  width: 100%;
  height: 200px;
  background: var(--bg-body);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  cursor: pointer;
}

.prod-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .prod-img-box img {
  transform: scale(1.06);
}

.quick-view-overlay-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.prod-img-box:hover .quick-view-overlay-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.prod-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.prod-rating .stars {
  color: var(--accent-gold);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.prod-rating .rating-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.prod-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 14px;
}

.current-price {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
}

.currency {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.old-price {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: line-through;
  margin-right: 4px;
}

.card-actions-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-add-cart:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-card-quick-buy {
  background: var(--cod-green-light);
  color: var(--cod-green-dark);
  border: 1px solid #a7f3d0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.8rem;
}

.btn-card-quick-buy:hover {
  background: #047857;
  color: #fff;
}

/* ========================================================
   PROMOTIONAL BANNERS
   ======================================================== */
.promo-banners-section {
  padding: 20px 0 40px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promo-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.promo-blue { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); color: #fff; }
.promo-warm { background: linear-gradient(135deg, #78350f 0%, #d97706 100%); color: #fff; }
.promo-teal { background: linear-gradient(135deg, #064e3b 0%, #059669 100%); color: #fff; }

.promo-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.promo-content h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 6px;
  line-height: 1.2;
}

.promo-content p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.promo-btn {
  background: #ffffff;
  color: #0f172a;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.promo-btn:hover {
  transform: translateY(-2px);
  background: var(--bg-body);
}

.promo-img-wrapper img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ========================================================
   NEWSLETTER SECTION
   ======================================================== */
.newsletter-section {
  background: linear-gradient(90deg, #0a0f1d, #1e293b);
  color: #ffffff;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.newsletter-text {
  display: flex;
  align-items: center;
  gap: 16px;
}

.newsletter-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.newsletter-text h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.newsletter-text p {
  font-size: 0.88rem;
  color: #94a3b8;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 440px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-btn {
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
}

.newsletter-btn:hover {
  background: var(--primary-hover);
}

/* ========================================================
   STOREFOOTER
   ======================================================== */
.store-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-brand-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.78rem;
  color: #94a3b8;
}

.footer-about {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #94a3b8;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.social-icon:hover {
  background: var(--primary);
  color: #ffffff;
}

.col-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

.footer-links, .footer-contact {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
  padding-right: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
}

.payment-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-badge {
  background: #1e293b;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pay-badge.highlight-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

/* ========================================================
   ADMIN DASHBOARD LAYOUT & TABS
   ======================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 52px);
  background: #f1f5f9;
}

.admin-sidebar {
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.brand-cart-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  display: block;
}

.brand-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.88rem;
  position: relative;
  transition: all 0.2s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.menu-item.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.menu-badge {
  margin-right: auto;
  background: var(--accent-gold);
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-bottom-plan {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-info {
  line-height: 1.25;
}
.plan-title { font-size: 0.7rem; color: #94a3b8; display: block; }
.plan-name { font-size: 0.85rem; font-weight: 800; color: #ffffff; display: block; }
.plan-expiry { font-size: 0.7rem; color: #10b981; display: block; font-weight: 700; }

/* Dashboard Main */
.dashboard-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 52px);
  background: #f8fafc;
}

.dash-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.user-name { font-size: 0.95rem; font-weight: 800; color: var(--text-main); display: block; line-height: 1.1; }
.user-role { font-size: 0.75rem; color: var(--text-muted); display: block; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-btn-store {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
}
.topbar-btn-store:hover { background: var(--primary); color: #fff; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.icon-btn:hover { background: #e2e8f0; color: var(--text-main); }

.topbar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-body);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Dash Tab Panes */
.dash-tab-pane {
  display: none;
  flex: 1;
}

.dash-tab-pane.active {
  display: block;
}

.dash-scroll-content {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Welcome Box */
.dash-welcome {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 24px 30px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.welcome-heading {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.welcome-sub {
  font-size: 0.88rem;
  color: #94a3b8;
}

.welcome-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-dash-accent {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gold);
  color: #0f172a;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
}
.btn-dash-accent:hover { background: var(--accent-gold-hover); color: #fff; }

.btn-dash-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}
.btn-dash-primary:hover { background: var(--primary-hover); }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-blue-light { background: #dbeafe; } .text-blue { color: #2563eb; }
.bg-green-light { background: #d1fae5; } .text-green { color: #059669; }
.bg-purple-light { background: #ede9fe; } .text-purple { color: #7c3aed; }
.bg-amber-light { background: #fef3c7; } .text-amber { color: #d97706; }

.stat-data { line-height: 1.2; }
.stat-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 6px; }
.stat-number { font-size: 1.6rem; font-weight: 900; color: var(--text-main); display: block; margin-bottom: 4px; }
.stat-trend { font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.trend-up { color: #059669; }
.stat-sub { font-size: 0.75rem; color: #94a3b8; }

/* Middle Grid: Charts & Table */
.dash-middle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dash-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-wrap h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-text-link {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
}
.btn-text-link:hover { text-decoration: underline; }

.chart-container {
  padding: 16px 20px 20px;
  height: 250px;
  position: relative;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.orders-table, .admin-products-table, .admin-orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.85rem;
}

.orders-table th, .admin-products-table th, .admin-orders-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 800;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.orders-table td, .admin-products-table td, .admin-orders-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  vertical-align: middle;
}

.orders-table tr:hover, .admin-products-table tr:hover, .admin-orders-table tr:hover {
  background: #f8fafc;
}

/* Status Pills */
.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pending { background: #fef3c7; color: #b45309; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipping { background: #e0e7ff; color: #4338ca; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.status-select {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid var(--border-color);
  background: #ffffff;
  cursor: pointer;
}

/* Bottom Grid */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.donut-chart-wrapper {
  padding: 20px;
}

.donut-canvas-container {
  height: 180px;
  position: relative;
  margin-bottom: 16px;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.legend-item strong { margin-right: auto; color: var(--text-main); }

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.dot-electronics { background: #2563eb; }
.dot-fashion { background: #10b981; }
.dot-home { background: #f59e0b; }
.dot-beauty { background: #ec4899; }
.dot-other { background: #64748b; }

/* Top products in dashboard */
.top-prod-list {
  padding: 12px 16px;
}

.top-prod-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.top-prod-item:last-child { border-bottom: none; }

.prod-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-body);
  flex-shrink: 0;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }

.top-prod-item .name { font-size: 0.85rem; font-weight: 800; display: block; color: var(--text-main); }
.top-prod-item .sales { font-size: 0.75rem; color: var(--text-muted); }
.rank-badge { margin-right: auto; font-size: 0.8rem; font-weight: 900; color: #94a3b8; }
.rank-gold { color: #f59e0b; }

/* Store info in dash */
.store-info-body {
  padding: 20px;
  text-align: center;
}

.store-badge-logo {
  margin-bottom: 16px;
}

.store-badge-logo .logo-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.store-badge-logo h4 { font-size: 1.15rem; font-weight: 900; }
.store-badge-logo p { font-size: 0.78rem; color: var(--text-muted); }

.store-url-box {
  display: flex;
  align-items: center;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  margin-bottom: 14px;
}

.store-url-box input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  outline: none;
}

.copy-url-btn { color: var(--primary); }

.store-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cod-green-light);
  color: var(--cod-green-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.btn-preview-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
}

/* ========================================================
   ADMIN PRODUCTS CRUD TAB
   ======================================================== */
.admin-pane-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-pane-header h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.admin-pane-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 700px;
}

.pane-header-actions {
  display: flex;
  gap: 10px;
}

.table-toolbar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: #fbfcfe;
}

.table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  width: 280px;
}

.table-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  width: 100%;
}

.table-count-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-prod-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  display: block;
}

.table-action-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-table-edit {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.btn-table-del {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
}

.btn-table-del:hover {
  background: #dc2626;
  color: #fff;
}

.order-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pill-btn.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* ========================================================
   MODALS (Quick View, Edit Product, COD Checkout, Receipt)
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 29, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 28px;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Edit Product Modal Spec */
.modal-edit-product {
  max-width: 720px;
}

.modal-header-with-icon {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-modal-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.edit-img-preview-box {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  margin-bottom: 10px;
}

.edit-img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-change-photo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
}

/* Quick View Modal Spec */
.modal-quick-view {
  max-width: 820px;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.quick-view-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
}

.quick-view-gallery {
  position: relative;
  background: #f1f5f9;
  height: 100%;
  min-height: 440px;
}

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

.qv-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
}

.quick-view-info {
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.qv-category { font-size: 0.78rem; color: var(--primary); font-weight: 800; text-transform: uppercase; margin-bottom: 4px; }
.qv-title { font-size: 1.45rem; font-weight: 900; line-height: 1.25; margin-bottom: 8px; }
.qv-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 0.85rem; }
.qv-rating .stars { color: var(--accent-gold); }
.qv-price-box { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.qv-current-price { font-size: 1.8rem; font-weight: 900; color: var(--text-main); }
.qv-currency { font-size: 0.95rem; font-weight: 700; color: var(--text-muted); }
.qv-old-price { font-size: 0.95rem; color: #94a3b8; text-decoration: line-through; }

.qv-cod-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cod-green-light);
  border: 1px solid #a7f3d0;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.qv-cod-highlight strong { color: var(--cod-green-dark); font-size: 0.88rem; display: block; }
.qv-cod-highlight p { font-size: 0.78rem; color: #065f46; margin: 0; }

.qv-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 18px; }

.qv-delivery-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 700;
}
.del-feat { display: flex; align-items: center; gap: 8px; }

.qv-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.qv-qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
}
.qv-qty-selector button { width: 34px; height: 38px; font-size: 1rem; font-weight: 800; color: var(--text-main); }
.qv-qty-selector span { width: 34px; text-align: center; font-weight: 800; font-size: 0.9rem; }

.btn-qv-add-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.85rem;
}
.btn-qv-add-cart:hover { background: #e2e8f0; }

.btn-qv-buy-now {
  flex: 1;
  background: #047857;
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px var(--cod-green-glow);
}
.btn-qv-buy-now:hover { background: #065f46; }

/* COD Checkout Modal Spec */
.modal-checkout-cod {
  max-width: 520px;
}

.cod-icon-head {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--cod-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.cod-guarantee-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 20px;
  font-size: 0.82rem;
  color: #14532d;
}

.input-with-flag {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.flag-morocco {
  background: #f1f5f9;
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  border-left: 1px solid var(--border-color);
}

.input-with-flag input {
  flex: 1;
  border: none;
  padding: 9px 12px;
  outline: none;
}

.checkout-summary-box {
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.summary-line.total-line {
  border-top: 1px dashed var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
}
.summary-line.total-line strong { color: var(--primary); font-size: 1.3rem; }

.payment-method-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cod-green-light);
  color: var(--cod-green-dark);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 10px;
}
.payment-method-badge .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cod-green); }

.btn-confirm-order {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #047857, #065f46);
  color: #fff;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 4px 15px var(--cod-green-glow);
}
.btn-confirm-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--cod-green-glow);
}

/* Order Success Receipt Modal */
.modal-order-receipt {
  max-width: 520px;
  text-align: center;
}

.receipt-success-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--cod-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.receipt-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 6px; }
.receipt-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }

.receipt-details-card {
  background: var(--bg-body);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: right;
  margin-bottom: 22px;
  font-size: 0.85rem;
}

.receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.receipt-id { font-size: 1.1rem; color: var(--primary); }

.receipt-section {
  margin-bottom: 12px;
}
.receipt-section h4 { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }

.receipt-items-list {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 12px;
}

.receipt-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
}
.receipt-item-row:last-child { border-bottom: none; }

.receipt-total-bar {
  border-top: 2px solid var(--border-color);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 800;
}
.receipt-total-bar strong { color: var(--cod-green-dark); font-size: 1.25rem; }

.receipt-footer-actions {
  display: flex;
  gap: 12px;
}
.receipt-footer-actions button { flex: 1; padding: 11px; border-radius: var(--radius-md); font-weight: 800; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--bg-body); border: 1.5px solid var(--border-color); color: var(--text-main); padding: 9px 16px; border-radius: var(--radius-md); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }

/* Forms elements */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-with-currency {
  position: relative;
}
.input-with-currency input { padding-left: 50px; }
.currency-tag {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
}

.modal-actions-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.modal-actions-bar button { flex: 1; }
.btn-cancel {
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 800;
}

/* ========================================================
   CART DRAWER
   ======================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: none;
}
.cart-drawer-overlay.active { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: #ffffff;
  z-index: 9999;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active { transform: translateX(0); }

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

.cart-title-box { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.cart-close-btn { font-size: 1.4rem; color: var(--text-muted); }

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.btn-start-shopping {
  margin-top: 14px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 50px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }
.cart-item-title { font-size: 0.85rem; font-weight: 800; line-height: 1.2; margin-bottom: 2px; }
.cart-item-price { font-size: 0.82rem; color: var(--primary); font-weight: 800; }

.cart-qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}
.cart-qty-controls button { width: 22px; height: 26px; font-size: 0.85rem; }
.cart-qty-controls span { width: 22px; text-align: center; font-size: 0.8rem; font-weight: 800; }
.remove-item-btn { color: #dc2626; font-size: 1.2rem; margin-right: 4px; }

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-subtotal-row, .cart-shipping-row, .cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}
.free-shipping-tag { background: var(--cod-green-light); color: var(--cod-green-dark); font-weight: 800; font-size: 0.78rem; padding: 2px 8px; border-radius: 4px; }
.cart-total-row { font-size: 1.1rem; font-weight: 900; border-top: 1px dashed var(--border-color); padding-top: 10px; }
.total-price-val { color: var(--primary); font-size: 1.3rem; }

.btn-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #047857;
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px var(--cod-green-glow);
}
.btn-checkout:hover { background: #065f46; }

/* ========================================================
   ADD PRODUCT PAGE STYLES
   ======================================================== */
.add-product-page {
  padding-bottom: 60px;
}

.add-prod-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}
.add-prod-header-inner { display: flex; align-items: center; justify-content: space-between; }
.store-greeting { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.greeting-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }

.btn-exit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.add-prod-title-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.title-cube-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.page-title { font-size: 1.35rem; font-weight: 900; margin-bottom: 2px; }
.page-sub { font-size: 0.82rem; color: var(--text-muted); }

.form-columns-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.form-card-header h3 { font-size: 0.95rem; font-weight: 800; }

.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 14px;
}
.upload-dropzone:hover { border-color: var(--primary); background: #eff6ff; }
.upload-icon { margin-bottom: 8px; }
.upload-title { font-size: 0.88rem; font-weight: 800; margin-bottom: 4px; }
.upload-hint { font-size: 0.75rem; color: var(--text-muted); }

.image-previews-row {
  display: flex;
  gap: 10px;
}
.preview-slot {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--primary);
  background: var(--bg-body);
}
.preview-slot img { width: 100%; height: 100%; object-fit: cover; }

.form-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.btn-submit-prod {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 800;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-submit-prod:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* ========================================================
   TOAST NOTIFICATIONS
   ======================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: toastSlide 0.3s ease;
  pointer-events: auto;
}

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

/* ========================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ======================================================== */
@media (max-width: 1024px) {
  .hero-slide { grid-template-columns: 1fr; padding: 30px; }
  .hero-visual { display: none; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .cod-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar { display: none; } /* On mobile, use switcher */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-middle-grid, .dash-bottom-grid { grid-template-columns: 1fr; }
  .form-columns-grid { grid-template-columns: 1fr; }
  .quick-view-grid { grid-template-columns: 1fr; }
  .quick-view-gallery { min-height: 280px; }
  .edit-modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .switcher-buttons span { display: none; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; }
  .header-search { order: 3; max-width: 100%; width: 100%; margin-top: 10px; }
  .hero-title { font-size: 1.8rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .cod-strip-inner { grid-template-columns: 1fr; }
  .footer-top-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 20px 16px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ========================================================
   CORRECTIFS — accès admin, stock, états d'erreur, accessibilité
   ======================================================== */
[hidden] { display: none !important; }

/* La barre d'administration n'existe que pour l'admin connecté */
body:not(.is-admin) { padding-top: 0; }
body:not(.is-admin) .admin-only { display: none !important; }
body:not(.is-admin) .main-header { top: 0; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none !important;
  box-shadow: none !important;
}

.header-cart-btn .badge-count { margin-inline-start: 2px; }
.top-link.cart-link { font: inherit; font-size: 0.82rem; }

/* Carte produit : image cliquable (bouton), rupture, stock, remise */
button.prod-img-box {
  display: block;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
}
.out-of-stock-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
}
.product-card.is-out-of-stock .prod-img-box img { filter: grayscale(0.8); }

.prod-stock-note { font-size: 0.78rem; font-weight: 700; margin-bottom: 8px; }
.stock-ok { color: #047857; }
.stock-low { color: #b45309; }
.stock-out { color: #dc2626; }
.qv-stock { font-size: 0.85rem; font-weight: 800; margin-bottom: 12px; }

.discount-pill {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-right: 6px;
}

.products-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}
.products-empty-state .empty-title { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin-top: 12px; }
.products-empty-state .empty-sub { font-size: 0.9rem; margin-top: 4px; }
.products-empty-state button {
  margin-top: 14px;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.table-empty-cell { text-align: center; padding: 32px 16px; color: #64748b; font-size: 0.9rem; }

/* Notifications d'erreur */
.toast.toast-error { background: rgba(127, 29, 29, 0.97); }
.toast span { overflow-wrap: anywhere; }
.toast-container { max-width: calc(100vw - 48px); }

/* Récapitulatif de commande */
.summary-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}
.summary-item-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.summary-item-line span { color: var(--text-muted); }

/* Connexion admin */
.modal-admin-login { max-width: 420px; }
.modal-admin-login h2 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-admin-login .modal-sub { margin-bottom: 18px; color: var(--text-muted); font-size: 0.9rem; }
.admin-login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.newsletter-admin-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.85rem;
}

.hero-actions { flex-wrap: wrap; }

@media (max-width: 640px) {
  .view-switcher-bar { overflow-x: auto; gap: 10px; padding: 0 10px; }
  .switcher-brand { display: none; }
  .announcement-inner { flex-wrap: wrap; justify-content: center; text-align: center; gap: 6px; }
  .announcement-center { order: -1; width: 100%; justify-content: center; }
  .announcement-right { display: none; }
  .dash-topbar { flex-wrap: wrap; gap: 10px; }
  .topbar-date { display: none; }
  .header-cart-btn > span:not(.badge-count) { display: none; }
  .toast-container { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

.nowrap { white-space: nowrap; }

.summary-item-line strong, .summary-line strong, .cart-item-price { white-space: nowrap; }
