/* ==========================================================================
   LUCIA GOMES' SHOP — LUXURY EROTIC LINGERIE & INTIMATE COUTURE
   Sensual Noir / Velvet Rose Aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Velvet Noir & Seductive Rose (Default Dark) */
  --bg-primary: #070406;
  --bg-secondary: #0f080e;
  --bg-tertiary: #170c15;
  --bg-surface: #22121e;
  --bg-glass: rgba(15, 8, 14, 0.88);
  --bg-glass-card: rgba(23, 12, 21, 0.7);
  --bg-elevated: #281423;
  
  --border-subtle: rgba(244, 63, 94, 0.12);
  --border-medium: rgba(244, 63, 94, 0.24);
  --border-strong: rgba(244, 63, 94, 0.45);
  --border-focus: #f43f5e;
  
  --text-primary: #fdf2f4;
  --text-secondary: #c9b4be;
  --text-tertiary: #8e7381;
  --text-inverse: #070406;
  
  --accent-primary: #e11d48;
  --accent-hover: #be123c;
  --accent-light: rgba(225, 29, 72, 0.15);
  --accent-rose-gold: #f43f5e;
  --accent-gold: #e0a96d;
  --accent-gold-light: rgba(224, 169, 109, 0.15);
  --accent-emerald: #10b981;
  --accent-emerald-light: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;
  --accent-amber-light: rgba(245, 158, 11, 0.15);
  --accent-indigo: #8b5cf6;
  --accent-indigo-light: rgba(139, 92, 246, 0.15);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 38px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 28px rgba(225, 29, 72, 0.35);
  --shadow-gold: 0 0 24px rgba(224, 169, 109, 0.25);
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

[data-theme="light"] {
  --bg-primary: #fff5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #fce7ec;
  --bg-surface: #f8d7e0;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-glass-card: rgba(255, 255, 255, 0.8);
  --bg-elevated: #ffffff;
  
  --border-subtle: rgba(225, 29, 72, 0.12);
  --border-medium: rgba(225, 29, 72, 0.22);
  --border-strong: rgba(225, 29, 72, 0.38);
  
  --text-primary: #1f0b15;
  --text-secondary: #633f52;
  --text-tertiary: #9c6c84;
  --text-inverse: #ffffff;
  
  --shadow-sm: 0 1px 4px rgba(225, 29, 72, 0.08);
  --shadow-md: 0 6px 18px rgba(225, 29, 72, 0.1);
  --shadow-lg: 0 18px 40px rgba(225, 29, 72, 0.14);
  --shadow-glow: 0 0 24px rgba(225, 29, 72, 0.2);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: transparent;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

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

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

/* ==========================================================================
   TYPOGRAPHY & SENSUAL UTILITIES
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #fda4af 60%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #1f0b15 0%, #be123c 60%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--accent-primary);
}

.text-gold {
  color: var(--accent-gold);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.725rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-primary {
  background: var(--accent-light);
  color: #fb7185;
  border: 1px solid rgba(225, 29, 72, 0.35);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.2);
}

.badge-emerald {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-muted {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  border: 1px solid rgba(224, 169, 109, 0.35);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fb7185 0%, #9f1239 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.6);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.2);
}

.btn-dark {
  background: #ffffff;
  color: #070406;
  font-weight: 700;
}
[data-theme="light"] .btn-dark {
  background: #070406;
  color: #ffffff;
}
.btn-dark:hover {
  background: #fda4af;
  color: #070406;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-primary);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  cursor: pointer;
  text-transform: uppercase;
}

.brand-badge {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #fb7185 100%);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.4);
}

.nav-search-bar {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.nav-search-input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: all var(--transition-smooth);
}

.nav-search-input:focus {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.nav-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-mode-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-smooth);
}

.admin-mode-pill:hover {
  background: var(--accent-light);
  border-color: var(--accent-primary);
  color: #fda4af;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.3);
}

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

.cart-button-wrap {
  position: relative;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 19px;
  height: 19px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.6);
}

/* ==========================================================================
   APP CONTAINER & VIEW SWITCHER
   ========================================================================== */

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ==========================================================================
   STOREFRONT HERO & SENSUAL ATMOSPHERE
   ========================================================================== */

.store-hero {
  border-bottom: 1px solid var(--border-subtle);
  background: 
    radial-gradient(ellipse at 50% 10%, rgba(225, 29, 72, 0.18) 0%, transparent 65%),
    radial-gradient(circle at 80% 30%, rgba(224, 169, 109, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.store-hero-inner {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fda4af;
  margin-bottom: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.2);
}

.store-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
  font-style: italic;
}

.store-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Category & Controls Bar */
.catalog-controls-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.category-pills-list {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  max-width: 100%;
}

.cat-pill {
  padding: 0.5rem 1.1rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.cat-pill:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.cat-pill.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #be123c 100%);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.4);
}

.filter-sort-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-select {
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  font-weight: 500;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--accent-primary);
}

/* ==========================================================================
   PRODUCT GRID & SENSUAL CARDS
   ========================================================================== */

.store-catalog-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
  box-shadow: var(--shadow-sm);
}

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

.product-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-tertiary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  gap: 0.5rem;
  font-size: 0.85rem;
}

.product-card-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.quick-view-overlay {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  transition: all var(--transition-smooth);
  z-index: 3;
}

.product-card:hover .quick-view-overlay {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.product-card-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.product-category-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-rose-gold);
  letter-spacing: 0.08em;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  cursor: pointer;
  transition: color var(--transition-fast);
  font-family: var(--font-display);
}

.product-card-title:hover {
  color: #fda4af;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.product-price-current {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-price-compare {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

/* ==========================================================================
   EMPTY STATE (Clean Store)
   ========================================================================== */

.empty-state-box {
  text-align: center;
  padding: 4.5rem 2rem;
  background: var(--bg-glass-card);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 620px;
  margin: 3rem auto;
  backdrop-filter: blur(14px);
}

.empty-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent-primary);
  font-size: 1.85rem;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.25);
}

.empty-state-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.empty-state-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   SLIDE-OVER CART DRAWER
   ========================================================================== */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 4, 6, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 450px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-medium);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

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

.cart-drawer-title {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
}

/* Free Shipping Meter */
.free-shipping-progress {
  padding: 0.9rem 1.5rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.825rem;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  margin-top: 0.45rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-gold) 100%);
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cart-empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.cart-item-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

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

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cart-item-name {
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  background: var(--bg-tertiary);
}

.qty-btn {
  padding: 0.25rem 0.55rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.qty-val {
  min-width: 26px;
  text-align: center;
  font-size: 0.825rem;
  font-weight: 600;
}

.cart-drawer-footer {
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.coupon-input-group {
  display: flex;
  gap: 0.5rem;
}

.coupon-input {
  flex: 1;
  padding: 0.5rem 0.85rem;
  font-size: 0.825rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  background: var(--bg-tertiary);
  text-transform: uppercase;
}

.coupon-input:focus {
  border-color: var(--accent-primary);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-medium);
  font-family: var(--font-display);
}

/* ==========================================================================
   MODALS (Quick View, Checkout, Product Edit)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 4, 6, 0.8);
  backdrop-filter: blur(8px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.35rem 1.6rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.6rem;
}

.modal-footer {
  padding: 1.35rem 1.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-tertiary);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Quick View Layout */
.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 640px) {
  .quick-view-grid {
    grid-template-columns: 1fr;
  }
}

.quick-view-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tertiary);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

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

/* ==========================================================================
   CHECKOUT MODAL
   ========================================================================== */

.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
}

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

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.95rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.payment-method-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.payment-option-card {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-tertiary);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.payment-option-card.active {
  border-color: var(--accent-primary);
  background: var(--accent-light);
  color: #fda4af;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.3);
}

/* ==========================================================================
   ADMIN ZONE LAYOUT
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: calc(100vh - 65px);
  background: var(--bg-primary);
}

.admin-sidebar {
  width: 270px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 1rem;
    flex-direction: row;
    overflow-x: auto;
  }
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.admin-nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.admin-nav-item.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.4);
}

.admin-main-content {
  flex: 1;
  padding: 2.25rem;
  overflow-y: auto;
  max-width: 1300px;
}

@media (max-width: 640px) {
  .admin-main-content {
    padding: 1rem;
  }
}

.admin-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-view-title {
  font-size: 1.85rem;
  letter-spacing: -0.01em;
}

/* Analytics Metric KPI Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-primary);
  opacity: 0.9;
}

.metric-card.emerald::before { background: var(--accent-emerald); }
.metric-card.amber::before { background: var(--accent-amber); }
.metric-card.indigo::before { background: var(--accent-indigo); }

.metric-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.metric-card-val {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-card-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Admin Data Table */
.table-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.admin-table th {
  padding: 0.9rem 1.25rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 1.05rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

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

.admin-table tr:hover td {
  background: rgba(225, 29, 72, 0.03);
}

/* Image Upload Preview Box */
.image-drop-zone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-tertiary);
  transition: all var(--transition-smooth);
}

.image-drop-zone:hover, .image-drop-zone.dragover {
  border-color: var(--accent-primary);
  background: var(--accent-light);
}

.image-preview-box {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface);
  margin: 0.75rem auto 0;
  position: relative;
  border: 1px solid var(--border-medium);
}

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

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 390px;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.25s ease;
}

.toast-success {
  border-left: 4px solid var(--accent-emerald);
}
.toast-error {
  border-left: 4px solid #ef4444;
}
.toast-info {
  border-left: 4px solid var(--accent-primary);
}
.toast-warning {
  border-left: 4px solid var(--accent-amber);
}

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

/* ==========================================================================
   ORDER RECEIPT INVOICE
   ========================================================================== */

.invoice-sheet {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--border-medium);
}

/* Interactive Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

/* Auth Modal Tabs & Badges */
.auth-tab-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn:hover {
  background: rgba(225, 29, 72, 0.05);
}

.badge-gold {
  background: rgba(224, 169, 109, 0.18);
  color: #fde047;
  border: 1px solid rgba(224, 169, 109, 0.4);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-animation {
  animation: spin 0.8s linear infinite;
}


