/*
   PumpiSHOP Premium UI - style.css
   Modern, glassmorphic, responsive e-commerce stylesheet.
*/

:root {
  /* Colors */
  --primary: #6d28d9;
  --primary-dark: #5b21b6;
  --primary-2: #8b5cf6;
  --primary-soft: rgba(109, 40, 217, 0.1);
  --secondary: #8b5cf6;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;

  /* Neutral scale */
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  
  /* Theming mappings */
  --text: var(--neutral-900);
  --text-muted: var(--neutral-500);
  --bg: #ffffff;
  --bg-soft: var(--neutral-50);
  --card: #ffffff;
  --line: var(--neutral-200);
  --border: var(--neutral-200);
  --surface: var(--neutral-50);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --blur: blur(16px);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 12px 32px rgba(109, 40, 217, 0.15);
  
  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme='dark'] {
  --text: var(--neutral-50);
  --text-muted: var(--neutral-400);
  --bg: var(--neutral-900);
  --bg-soft: var(--neutral-800);
  --card: #1e293b;
  --line: var(--neutral-700);
  --border: var(--neutral-700);
  --surface: #1e293b;
  
  --primary-soft: rgba(109, 40, 217, 0.25);
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-primary: 0 12px 32px rgba(109, 40, 217, 0.25);
}

/* Base Styles & Resets */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  width: 100%;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: transparent; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
::selection { background-color: var(--primary-soft); color: var(--primary); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: var(--radius-full); }
:root[data-theme='dark'] ::-webkit-scrollbar-thumb { background: var(--neutral-600); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Utilities */
.container { width: min(1280px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.desktop-only { display: block; }
.hide-on-mobile { display: block; }
.full { width: 100%; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 25%, 75% { transform: scale(1.2); } 50% { transform: scale(0.9); } }
@keyframes toastIn { from { transform: translateX(100%) translateY(20px); opacity: 0; } to { transform: translateX(0) translateY(0); opacity: 1; } }

/* Typography Classes */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; }
.eyebrow { display: block; color: var(--primary); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 8px; }

/* Buttons */
.primary-button, .secondary-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.primary-button {
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  box-shadow: var(--shadow-primary);
}
.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(109, 40, 217, 0.3);
}
.primary-button:active { transform: scale(0.98) translateY(0); }

.secondary-button {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 14px 24px;
}
.secondary-button:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.secondary-button:active { transform: scale(0.98); }

.text-button {
  color: var(--primary);
  padding: 8px 16px;
  background: transparent;
}
.text-button:hover { color: var(--primary-dark); background: var(--primary-soft); }
.large { min-height: 56px; font-size: 1.1rem; }

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #3b0764, #6d28d9, #3b0764);
  background-size: 200% 100%;
  animation: shimmer 10s linear infinite;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.announcement-inner {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.announcement-inner > span, .announcement-links { display: flex; gap: 24px; align-items: center; }
.announcement-links a { opacity: 0.8; transition: opacity var(--transition-fast); }
.announcement-links a:hover { opacity: 1; }

/* Header & Glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  z-index: 60;
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.85);
}
:root[data-theme='dark'] .site-header.scrolled {
  background: rgba(15, 23, 42, 0.85);
}

.header-main {
  height: 90px;
  display: grid;
  grid-template-columns: auto auto minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--transition-fast);
}
.brand:hover { transform: scale(1.02); }
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-primary);
  font-weight: 800;
}
.brand strong { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--text-muted); font-size: 0.75rem; font-weight: 600; margin-top: 2px; }

.catalog-button {
  height: 52px;
  padding: 0 24px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}
.catalog-button:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}
.catalog-button.active { background: var(--primary); color: #fff; }

.search-box {
  height: 52px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  display: flex;
  background: var(--bg-soft);
  position: relative;
  transition: all var(--transition);
}
.search-box:focus-within {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 20px;
  outline: none;
  color: var(--text);
  font-weight: 500;
}
.search-box > button {
  width: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}
.search-box > button:hover { background: var(--primary-dark); }

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  overflow: hidden;
  z-index: 100;
}
.search-suggestions.active { display: block; animation: slideDown var(--transition); }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--bg-soft); }
.suggestion-item img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-soft);
}
.suggestion-info { display: flex; flex-direction: column; gap: 4px; }
.suggestion-info span { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.suggestion-info small { color: var(--primary); font-weight: 800; font-size: 0.8rem; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action {
  min-width: 72px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text);
  position: relative;
  transition: all var(--transition);
}
.header-action:hover { background: var(--bg-soft); color: var(--primary); transform: translateY(-2px); }
.header-action i { font-size: 1.25rem; }
.header-action span { font-size: 0.75rem; font-weight: 700; }
.header-action b {
  position: absolute;
  top: 8px;
  right: 14px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-full);
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  border: 2px solid var(--card);
  transition: transform var(--transition);
}
.header-action:hover b { transform: scale(1.2); }

/* Catalog Panel */
.catalog-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition);
  z-index: 50;
}
.catalog-panel.active { opacity: 1; visibility: visible; transform: translateY(0); }
.catalog-panel-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  padding: 32px 0;
}
.catalog-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.catalog-menu button {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-soft);
  transition: all var(--transition);
}
.catalog-menu button:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateX(4px);
}
.catalog-menu button i {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}
:root[data-theme='dark'] .catalog-menu button i { background: var(--bg); }
.catalog-promo {
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  overflow: hidden;
}
.catalog-promo::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  transform: rotate(45deg);
}
.catalog-promo span { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; }
.catalog-promo h3 { font-size: 1.75rem; margin: 12px 0 24px; font-weight: 800; line-height: 1.2; position: relative; z-index: 1; }
.catalog-promo button {
  background: #fff;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 800;
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}
.catalog-promo button:hover { transform: translateY(-2px); }

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding-top: 32px;
}
.hero-slider {
  min-height: 460px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}
.hero-slide {
  position: absolute;
  inset: 0;
  padding: 64px;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: center;
  background-size: cover !important;
  background-position: center !important;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  animation: fadeInUp 0.8s ease backwards;
}
.hero-slide h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 16px 0 24px;
  letter-spacing: -0.04em;
}
.hero-slide p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 32px;
}
.hero-dots {
  position: absolute;
  left: 64px;
  bottom: 40px;
  display: flex;
  gap: 12px;
  z-index: 10;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  transition: all var(--transition);
}
.hero-dots button.active { width: 32px; background: #fff; }

.hero-side-cards { display: grid; gap: 24px; }
.hero-mini {
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 218px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}
.hero-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hero-mini::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.hero-mini i {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.hero-mini strong { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; display: block; }
.hero-mini span { font-size: 0.85rem; opacity: 0.9; line-height: 1.6; display: block; }
.hero-mini-delivery { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.hero-mini-cashback { background: linear-gradient(135deg, #ea580c, #f59e0b); }

/* Category Strip */
.category-section { padding-top: 64px; }
.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
.category-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.category-card:hover, .category-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
  transform: translateY(-4px);
}
.category-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  margin-bottom: 16px;
  transition: transform var(--transition-fast);
}
.category-card:hover .category-card-icon { transform: scale(1.1); background: var(--primary-soft); }
.category-card strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; margin-bottom: 4px; }
.category-card small { display: block; color: var(--text-muted); font-size: 0.75rem; }

/* Benefits Grid */
.benefits-grid {
  margin-top: 64px;
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefits-grid article { display: flex; align-items: center; gap: 16px; }
.benefits-grid article > span {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.benefits-grid strong { display: block; font-size: 1rem; font-weight: 800; color: var(--text); }
.benefits-grid small { display: block; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-top: 4px; }

/* Product Layout */
.products-section { padding-top: 64px; padding-bottom: 64px; }
.products-heading { align-items: center; }
.view-controls {
  display: flex;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 4px;
}
.view-controls button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}
.view-controls button.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }
.view-controls button:hover:not(.active) { color: var(--text); }

.market-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
}

/* Filter Panel */
.filter-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: max-content;
  position: sticky;
  top: 110px;
}
.filter-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.filter-panel-head h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.filter-panel-head button { display: none; color: var(--text); font-size: 1.5rem; }
.filter-title { display: block; font-size: 0.85rem; font-weight: 800; color: var(--text); margin: 24px 0 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.price-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-filter input, .filter-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}
.price-filter input:focus, .filter-panel select:focus { outline: none; border-color: var(--primary); }
.check-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; cursor: pointer; }
.check-row input { accent-color: var(--primary); width: 20px; height: 20px; cursor: pointer; }
.check-row span { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.check-row:hover span { color: var(--text); }

/* Products Toolbar */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  background: var(--bg-soft);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
}
.products-toolbar span { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.products-toolbar select {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  height: 44px;
  padding: 0 40px 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.filter-mobile-button {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
  height: 44px;
  font-weight: 700;
  color: var(--text);
  align-items: center;
  gap: 8px;
}

/* Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-soft);
}
.product-image {
  aspect-ratio: 1;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; mix-blend-mode: multiply; }
:root[data-theme='dark'] .product-image img { mix-blend-mode: normal; }
.product-card:hover .product-image img { transform: scale(1.08); }

.product-badges { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 10; }
.product-badge {
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}
.product-badge.new { background: var(--success); }

.wishlist-card-button {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  z-index: 10;
}
:root[data-theme='dark'] .wishlist-card-button { background: rgba(30, 41, 59, 0.9); }
.wishlist-card-button:hover { color: #e11d48; transform: scale(1.1); }
.wishlist-card-button.active { color: #e11d48; }

.stock-warning {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  z-index: 10;
}
:root[data-theme='dark'] .stock-warning { background: rgba(30, 41, 59, 0.95); }

.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.product-rating { display: flex; align-items: center; gap: 4px; color: var(--text); font-weight: 800; }
.product-rating i { color: var(--accent); }

.product-title {
  font-size: 1rem;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: color var(--transition-fast);
}
.product-title:hover { color: var(--primary); }

.installment {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: auto;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.product-prices strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--text); line-height: 1; }
.product-prices del { display: block; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 4px; }

.add-cart-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.add-cart-button:hover { background: var(--primary); color: #fff; transform: scale(1.05); }
.add-cart-button:active { transform: scale(0.95); }
.add-cart-button:disabled { background: var(--bg-soft); color: var(--text-muted); cursor: not-allowed; transform: none; }

.qty-control {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  height: 44px;
  padding: 0 4px;
}
.qty-control button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
}
.qty-control button:hover { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }
.qty-control span { width: 32px; text-align: center; font-size: 0.9rem; font-weight: 800; color: var(--text); }

/* List View */
.product-grid.list-view { grid-template-columns: 1fr; }
.product-grid.list-view .product-card { flex-direction: row; align-items: center; padding-right: 24px; }
.product-grid.list-view .product-image { width: 240px; height: 240px; flex-shrink: 0; border-radius: calc(var(--radius-lg) - 1px) 0 0 calc(var(--radius-lg) - 1px); }
.product-grid.list-view .product-card-body { padding: 24px; display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: center; }
.product-grid.list-view .product-title { height: auto; font-size: 1.2rem; }
.product-grid.list-view .installment { margin-bottom: 0; }
.product-grid.list-view .product-price-row { border-top: none; margin-top: 0; padding-top: 0; flex-direction: column; align-items: flex-end; gap: 16px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--text);
  transition: all var(--transition-fast);
}
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-soft) 25%, var(--border) 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.product-skeleton { height: 420px; border-radius: var(--radius-lg); }
.skeleton-card { height: 100%; border-radius: var(--radius-lg); }
.skeleton-text { height: 16px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.skeleton-circle { width: 48px; height: 48px; border-radius: var(--radius-full); }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  grid-column: 1 / -1;
}
.empty-state i { font-size: 4rem; color: var(--text-muted); opacity: 0.5; }
.empty-state h3 { margin: 24px 0 8px; font-size: 1.5rem; font-weight: 800; }
.empty-state p { margin: 0; color: var(--text-muted); font-size: 1rem; }

/* App Promo */
.app-promo {
  margin: 96px 0;
  border-radius: var(--radius-xl);
  padding: 64px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05), rgba(139, 92, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.app-promo > div:first-child { max-width: 600px; position: relative; z-index: 2; }
.app-promo h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 8px 0 16px; letter-spacing: -0.04em; }
.app-promo p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; margin-bottom: 32px; }
.app-phone {
  width: 260px;
  height: 340px;
  border-radius: 48px 48px 0 0;
  background: var(--neutral-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(64px) rotate(8deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
  border: 8px solid var(--neutral-800);
  border-bottom: 0;
}
.app-phone i { font-size: 5rem; color: var(--primary-2); }
.app-phone span { margin-top: 16px; font-weight: 800; font-size: 1.2rem; }

/* Sections */
.flash-sale-section, .trending-section, .brand-showcase, .newsletter-section, .testimonials-section, .recently-viewed-section {
  padding: 64px 0;
}
.countdown-timer { display: flex; gap: 8px; }
.countdown-timer span { background: var(--danger); color: #fff; padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 800; font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--neutral-900); color: #fff; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { color: #fff; margin-bottom: 24px; }
.footer-brand .brand-mark { background: linear-gradient(135deg, #fff, var(--neutral-300)); color: var(--primary); }
.footer-grid p { color: var(--neutral-400); font-size: 0.9rem; line-height: 1.6; max-width: 400px; margin-bottom: 24px; }
.footer-grid h4 { font-size: 1.1rem; font-weight: 800; margin: 0 0 24px; }
.footer-grid > div > a, .footer-grid > div > span { display: block; color: var(--neutral-400); font-size: 0.9rem; margin: 12px 0; transition: color var(--transition-fast); }
.footer-grid a:hover { color: #fff; }
.payment-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-badges span {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--neutral-800);
  border: 1px solid var(--neutral-700);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.footer-bottom {
  border-top: 1px solid var(--neutral-800);
  margin-top: 64px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  color: var(--neutral-500);
  font-size: 0.85rem;
}

/* Mobile Nav */
.mobile-nav { display: none; }

/* Side Drawer (Cart / Wishlist) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}
.drawer-backdrop.active { opacity: 1; visibility: visible; }
.side-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(480px, 100%);
  background: var(--card);
  z-index: 100;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.side-drawer.active { transform: translateX(0); }
.drawer-head {
  height: 90px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.drawer-head span { font-size: 1.5rem; font-weight: 800; display: block; color: var(--text); }
.drawer-head small { font-size: 0.85rem; color: var(--text-muted); display: block; margin-top: 4px; }
.drawer-head button, .modal-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}
.drawer-head button:hover, .modal-close:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }

.shipping-progress { padding: 24px 32px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.shipping-progress > div:first-child { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.progress-track { height: 8px; background: var(--border); border-radius: var(--radius-full); overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.5s ease; border-radius: var(--radius-full); }

.drawer-body { flex: 1; overflow-y: auto; padding: 24px 32px; }
.drawer-footer { border-top: 1px solid var(--border); padding: 24px 32px 32px; background: var(--card); }
.drawer-footer > div { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 1rem; color: var(--text); font-weight: 600; }
.drawer-footer strong { font-size: 1.5rem; font-weight: 800; }

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 88px; height: 88px; border-radius: var(--radius); object-fit: cover; background: var(--bg-soft); }
.cart-item h4 { font-size: 0.9rem; margin: 0 0 8px; line-height: 1.4; color: var(--text); }
.cart-item-price { font-weight: 800; font-size: 1rem; color: var(--text); margin-bottom: 12px; }
.cart-item > button { align-self: flex-start; color: var(--text-muted); font-size: 1.2rem; transition: color var(--transition-fast); padding: 4px; }
.cart-item > button:hover { color: var(--danger); }

.drawer-empty { text-align: center; padding: 100px 24px; }
.drawer-empty i {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 3rem;
  margin: 0 auto 24px;
}
.drawer-empty h3 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 800; }
.drawer-empty p { color: var(--text-muted); font-size: 1rem; }

.wishlist-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.wishlist-item img { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; }
.wishlist-item h4 { font-size: 0.9rem; margin: 0 0 8px; color: var(--text); }
.wishlist-item strong { font-size: 1rem; color: var(--text); font-weight: 800; }
.wishlist-item-actions { display: flex; flex-direction: column; gap: 8px; }
.wishlist-item-actions button { width: 40px; height: 40px; border-radius: var(--radius-sm); font-size: 1.1rem; }
.wishlist-item-actions button:first-child { background: var(--primary); color: #fff; }
.wishlist-item-actions button:last-child { background: var(--bg-soft); color: var(--text-muted); }
.wishlist-item-actions button:hover { opacity: 0.9; }

/* Modals */
.modal-shell {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
  overflow-y: auto;
}
.modal-shell.active { opacity: 1; visibility: visible; }
.modal-card {
  margin: auto;
  width: min(560px, 100%);
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 40px;
  transform: translateY(40px) scale(0.95);
  transition: all var(--transition);
}
.modal-shell.active .modal-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; right: 24px; top: 24px; z-index: 10; }

.product-modal-card { width: min(1140px, 100%); padding: 48px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-detail-gallery { position: relative; }
.product-detail-info { padding: 16px 0; }
.product-detail-category { color: var(--primary); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.product-detail h2 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin: 12px 0 16px; color: var(--text); }
.detail-rating { display: flex; gap: 16px; font-size: 0.9rem; color: var(--text-muted); }
.detail-rating strong { color: var(--text); font-weight: 800; }
.detail-rating i { color: var(--accent); }
.detail-price { margin: 32px 0; }
.detail-price strong { font-size: 2rem; font-weight: 800; color: var(--text); }
.detail-price del { display: block; color: var(--text-muted); font-size: 1rem; margin-top: 4px; }
.detail-desc { font-size: 1rem; line-height: 1.8; color: var(--text-muted); }
.detail-stock { display: flex; gap: 12px; margin: 24px 0; }
.detail-stock span { background: var(--bg-soft); border-radius: var(--radius); padding: 10px 16px; font-size: 0.85rem; font-weight: 700; color: var(--text); }
.detail-stock .available { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.detail-actions { display: flex; gap: 16px; margin-top: 32px; }
.detail-actions .primary-button { flex: 1; height: 56px; font-size: 1.1rem; }
.detail-actions .secondary-button { width: 56px; height: 56px; padding: 0; font-size: 1.5rem; }

.reviews-block { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 32px; }
.reviews-block h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 24px; }
.review-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.review-item-head { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9rem; margin-bottom: 12px; }
.review-item-head strong { color: var(--text); }
.review-item p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.verified-label { color: var(--success); font-size: 0.75rem; font-weight: 800; background: rgba(16, 185, 129, 0.1); padding: 4px 8px; border-radius: var(--radius-sm); }

/* Auth Modal */
.auth-card { width: min(480px, 100%); padding: 48px; }
.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-brand .brand-mark { margin: 0 auto 16px; width: 64px; height: 64px; font-size: 2rem; }
.auth-brand h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; }
.auth-brand p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: var(--radius-md); padding: 6px; margin-bottom: 32px; }
.auth-tabs button { padding: 12px; border-radius: var(--radius-sm); font-weight: 800; font-size: 0.9rem; color: var(--text-muted); transition: all var(--transition-fast); }
.auth-tabs button.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.auth-form { display: none; animation: scaleIn var(--transition-fast); }
.auth-form.active { display: block; }
.auth-form label, .checkout-fields label { display: block; font-size: 0.85rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.auth-form input, .checkout-fields input, .checkout-fields textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 1rem;
  transition: all var(--transition-fast);
  margin-bottom: 20px;
}
.auth-form input:focus, .checkout-fields input:focus, .checkout-fields textarea:focus {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--primary-soft);
  outline: none;
}
.password-field { position: relative; }
.password-field input { padding-right: 56px; }
.password-field button { position: absolute; right: 8px; top: 32px; width: 44px; height: 44px; color: var(--text-muted); font-size: 1.2rem; }
.auth-form .primary-button { width: 100%; margin-top: 8px; }
.auth-divider { display: flex; align-items: center; gap: 16px; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; margin: 32px 0; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--border); flex: 1; }

/* Checkout Card */
.checkout-card { width: min(1200px, 100%); padding: 48px; }
.checkout-head h2 { margin: 0 0 8px; font-size: 2rem; font-weight: 800; }
.checkout-head p { color: var(--text-muted); font-size: 1rem; margin: 0 0 32px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid > div.full { grid-column: 1 / -1; }
.location-button {
  width: 100%;
  border: 2px dashed var(--border);
  background: var(--bg-soft);
  color: var(--primary);
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}
.location-button:hover { border-color: var(--primary); background: var(--primary-soft); }

.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 32px; }
.payment-methods label { margin: 0; cursor: pointer; }
.payment-methods input { position: absolute; opacity: 0; }
.payment-methods span {
  height: 140px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-soft);
  transition: all var(--transition-fast);
  text-align: center;
}
.payment-methods input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.payment-methods i { font-size: 2rem; color: var(--text); }
.payment-methods input:checked + span i { color: var(--primary); }
.payment-methods strong { font-size: 0.9rem; color: var(--text); display: block; }
.payment-methods small { font-size: 0.75rem; color: var(--text-muted); }

.receipt-upload { background: var(--bg-soft); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; border: 1px solid var(--border); }
.card-details { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-size: 0.85rem; font-weight: 700; color: var(--text); }

.promo-row { display: flex; gap: 12px; margin-bottom: 8px; }
.promo-row input { margin-bottom: 0; }
.promo-row button { background: var(--text); color: #fff; border-radius: var(--radius); padding: 0 24px; font-weight: 800; }
.promo-row button:hover { background: var(--primary); }
.promo-message { font-size: 0.85rem; font-weight: 600; min-height: 20px; }
.promo-message.success { color: var(--success); }
.promo-message.error { color: var(--danger); }

.checkout-summary { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 32px; height: max-content; position: sticky; top: 110px; }
.checkout-summary h3 { margin: 0 0 24px; font-size: 1.25rem; font-weight: 800; }
.checkout-summary-item { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9rem; padding: 12px 0; color: var(--text); }
.checkout-summary-item span { max-width: 200px; line-height: 1.4; }
.summary-lines { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; }
.summary-lines > div { display: flex; justify-content: space-between; font-size: 0.95rem; padding: 8px 0; color: var(--text-muted); }
.summary-lines > div span:last-child { color: var(--text); font-weight: 700; }
.summary-lines .summary-total { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 24px; font-size: 1.25rem; font-weight: 800; color: var(--text); }
.checkout-consent { display: block; color: var(--text-muted); font-size: 0.75rem; line-height: 1.6; text-align: center; margin-top: 16px; }

/* Success Card */
.success-card { text-align: center; padding: 24px; }
.success-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  margin: 0 auto 32px;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-card h2 { margin: 0 0 16px; font-size: 2.25rem; font-weight: 800; }
.success-card p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 32px; }
.order-success-number { background: var(--bg-soft); border: 1px dashed var(--border); color: var(--text); padding: 20px; border-radius: var(--radius-md); font-size: 1.25rem; font-weight: 800; margin-bottom: 32px; display: inline-block; }
.success-actions { display: flex; justify-content: center; gap: 16px; }

/* Toast Notifications */
.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast {
  min-width: 320px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
:root[data-theme='dark'] .toast { background: var(--neutral-800); }
.toast i { font-size: 1.5rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast span { font-size: 0.95rem; font-weight: 700; }

/* Review Form & Related Products */
.review-form, .review-login-note { margin-top: 32px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-soft); }
.review-form { display: grid; gap: 20px; }
.review-form h3 { margin: 0 0 8px; font-size: 1.25rem; }
.review-form p, .review-login-note { color: var(--text-muted); font-size: 0.95rem; }
.review-form label { display: grid; gap: 8px; font-weight: 800; font-size: 0.9rem; color: var(--text); }
.review-form select, .review-form textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--card); color: var(--text); font-size: 1rem; outline: none; transition: border-color var(--transition-fast); }
.review-form select:focus, .review-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.review-form textarea { min-height: 120px; resize: vertical; }
.review-login-note { display: flex; align-items: center; gap: 16px; font-weight: 600; }

.related-products { margin-top: 48px; }
.related-products > h3 { margin: 0 0 24px; font-size: 1.5rem; font-weight: 800; }
.related-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 24px; scrollbar-width: none; }
.related-grid::-webkit-scrollbar { display: none; }
.related-grid button {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.related-grid button:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-soft); }
.related-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); background: var(--bg-soft); }
.related-grid span { font-size: 0.9rem; font-weight: 600; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-grid strong { font-size: 1rem; color: var(--primary); font-weight: 800; }

.wishlist-card-button.animating { animation: heartBeat 0.4s ease-in-out; }

/* Responsive Media Queries */
@media(max-width: 1200px) {
  .header-main { grid-template-columns: auto auto 1fr auto; }
  .hide-on-mobile { display: none !important; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .category-strip { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
  .checkout-layout { grid-template-columns: 1fr 340px; }
}

@media(max-width: 992px) {
  body { padding-bottom: 80px; }
  .announcement-links { display: none; }
  .header-main { height: auto; padding: 16px 0; grid-template-columns: 1fr auto; gap: 16px; }
  .brand small, .catalog-button { display: none; }
  .search-box { grid-column: 1 / -1; grid-row: 2; height: 48px; }
  .site-header { top: 0; }
  .catalog-panel { top: 120px; }
  .catalog-panel-inner { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .catalog-promo { display: none; }
  .catalog-menu { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  
  .hero-section { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-slider { min-height: 380px; }
  .hero-slide { padding: 48px; }
  .hero-dots { left: 48px; }
  .hero-side-cards { grid-template-columns: 1fr 1fr; }
  .hero-mini { min-height: 160px; padding: 24px; }
  
  .category-strip { display: flex; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
  .category-strip::-webkit-scrollbar { display: none; }
  .category-card { min-width: 130px; flex: 0 0 auto; }
  
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .market-layout { grid-template-columns: 1fr; }
  
  .filter-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(380px, 90%);
    border: none;
    border-radius: 0;
    z-index: 150;
    background: var(--card);
    transform: translateX(-100%);
    transition: transform var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .filter-panel.active { transform: translateX(0); }
  .filter-panel-head button, .filter-mobile-button { display: flex; }
  
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .products-toolbar span { display: none; }
  
  .mobile-nav {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-top: 1px solid var(--glass-border);
    z-index: 90;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  }
  :root[data-theme='dark'] .mobile-nav { background: rgba(15, 23, 42, 0.85); box-shadow: 0 -4px 10px rgba(0,0,0,0.3); }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    position: relative;
    transition: color var(--transition-fast);
  }
  .mobile-nav button.active { color: var(--primary); }
  .mobile-nav i { font-size: 1.25rem; }
  .mobile-nav span { font-size: 0.65rem; font-weight: 700; }
  .mobile-nav b {
    position: absolute;
    top: 8px;
    right: calc(50% - 16px);
    background: var(--danger);
    color: #fff;
    border-radius: var(--radius-full);
    min-width: 18px;
    height: 18px;
    font-size: 0.6rem;
    display: grid;
    place-items: center;
    font-weight: 800;
  }
  
  .app-promo { padding: 48px; flex-direction: column; text-align: center; gap: 48px; }
  .app-promo > div:first-child { margin: 0 auto; }
  .app-phone { display: none; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .payment-methods { grid-template-columns: 1fr; }
  .payment-methods span { height: auto; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; text-align: left; }
  .payment-methods span i { grid-row: 1 / 3; font-size: 1.75rem; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
}

@media(max-width: 576px) {
  .container { width: min(100% - 32px, 1280px); }
  .announcement-inner { height: 32px; }
  .announcement-inner > span { font-size: 0.75rem; }
  .brand-mark { width: 40px; height: 40px; font-size: 1.25rem; }
  .brand strong { font-size: 1.1rem; }
  
  .hero-slider { min-height: 320px; border-radius: var(--radius-lg); }
  .hero-slide { padding: 32px; }
  .hero-slide h1 { font-size: 2rem; }
  .hero-slide p { font-size: 0.9rem; margin-bottom: 24px; }
  .hero-dots { left: 32px; bottom: 24px; }
  .hero-side-cards { gap: 16px; }
  .hero-mini { min-height: 140px; border-radius: var(--radius-md); padding: 20px; }
  .hero-mini i { width: 44px; height: 44px; font-size: 1.2rem; }
  .hero-mini strong { font-size: 1.1rem; }
  
  .category-section, .products-section { padding-top: 48px; padding-bottom: 48px; }
  .benefits-grid { padding: 20px; gap: 16px; grid-template-columns: 1fr; }
  .benefits-grid article { padding: 12px; background: var(--card); border-radius: var(--radius); }
  .benefits-grid small { display: block; }
  
  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .product-card { border-radius: var(--radius-md); }
  .product-card-body { padding: 12px; }
  .product-title { font-size: 0.85rem; height: 2.8em; margin-bottom: 8px; }
  .product-prices strong { font-size: 1.1rem; }
  .installment { font-size: 0.65rem; padding: 4px 8px; }
  .add-cart-button { width: 36px; height: 36px; flex-basis: 36px; font-size: 1rem; }
  .product-badge { font-size: 0.6rem; padding: 4px 8px; }
  
  .app-promo { margin: 64px 0; border-radius: var(--radius-lg); padding: 32px 20px; }
  .app-promo h2 { font-size: 1.75rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > div:not(:first-child) { display: none; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  
  .modal-shell { padding: 16px; align-items: flex-end; }
  .modal-card { margin: 0; margin-top: auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 24px; max-height: 90vh; overflow-y: auto; }
  .product-modal-card, .checkout-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .checkout-head { padding-right: 48px; }
  .checkout-head h2 { font-size: 1.5rem; }
  .success-actions { flex-direction: column; }
  
  .toast-stack { left: 16px; right: 16px; bottom: 88px; }
  .toast { min-width: 0; width: 100%; }
  
  .product-grid.list-view .product-card { flex-direction: column; padding: 0; }
  .product-grid.list-view .product-image { width: 100%; height: 200px; border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .product-grid.list-view .product-card-body { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  
  .side-drawer { width: 100%; }
  .drawer-head { padding: 0 20px; height: 72px; }
  .drawer-body { padding: 20px; }
  .drawer-footer { padding: 20px; }
  .cart-item { grid-template-columns: 72px 1fr auto; }
  .cart-item img { width: 72px; height: 72px; }
}


/* Gallery Styles */
.product-gallery-main { background: var(--bg-soft); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.product-gallery-main img { width: 100%; max-height: 400px; object-fit: contain; }
.product-gallery-thumbnails { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.product-gallery-thumbnails::-webkit-scrollbar { display: none; }
.product-gallery-thumbnails img { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition-fast); }
.product-gallery-thumbnails img.active, .product-gallery-thumbnails img:hover { border-color: var(--primary); }

/* Variations */
.variation-group { margin-bottom: 16px; }
.variation-group strong { display: block; font-size: 0.9rem; margin-bottom: 8px; color: var(--text); }
.variation-options { display: flex; gap: 8px; flex-wrap: wrap; }
.var-color-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform var(--transition-fast), border-color var(--transition-fast); }
.var-color-btn:hover, .var-color-btn.active { transform: scale(1.1); border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.var-text-btn { padding: 8px 16px; border: 1px solid var(--border); background: var(--bg-soft); border-radius: var(--radius); cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--text); transition: all var(--transition-fast); }
.var-text-btn:hover, .var-text-btn.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

/* Mobile Sticky Bottom for Add to Cart */
@media (max-width: 576px) { .sticky-bottom-actions { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); padding: 16px; border-top: 1px solid var(--border); box-shadow: 0 -4px 10px rgba(0,0,0,0.05); z-index: 50; margin: 0 !important; } .product-modal-card { padding-bottom: 100px; } }
