/* ============================================
   ShopVerse — Storefront Stylesheet
   Design System: Dark Glassmorphism
   ============================================ */

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Accent */
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #06b6d4;

  /* Semantic */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;

  /* Text */
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.875rem;
  --font-4xl: 2.25rem;
  --font-5xl: 3rem;
  --font-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(99, 102, 241, 0.25);

  /* Layout */
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Animations & Skeletons ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.skeleton {
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background: var(--surface-hover);
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 1em; width: 70%; margin-bottom: 0.5rem; }
.skeleton-title { height: 1.5em; width: 50%; margin-bottom: 1rem; }
.skeleton-img { width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); }
.skeleton-pill { height: 40px; width: 120px; border-radius: var(--radius-full); }
.skeleton-card { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }

/* Glassmorphism utility */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}



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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #07070b;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-base);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(99, 102, 241, 0.22), transparent 28%),
    linear-gradient(240deg, rgba(6, 182, 212, 0.18), transparent 34%),
    linear-gradient(18deg, rgba(245, 158, 11, 0.12), transparent 32%),
    conic-gradient(from 180deg at 70% 30%, rgba(236, 72, 153, 0.16), rgba(16, 185, 129, 0.13), rgba(99, 102, 241, 0.18), rgba(236, 72, 153, 0.16));
  background-size: 140% 140%, 130% 130%, 120% 120%, 180% 180%;
  animation: ambientFlow 22s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 7px);
  background-size: 48px 48px, 48px 48px, 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.24));
  opacity: 0.75;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}


/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}


/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--font-sm);
  line-height: 1;
  white-space: nowrap;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: var(--transition-fast);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.05);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent-gradient);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  animation: gradientDrift 9s ease infinite;
}

.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

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

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-xs);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-lg);
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  font-size: var(--font-lg);
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
  font-size: var(--font-sm);
}


/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-hit {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-new {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-tertiary);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-sale {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}


/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-lg);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header-nav a {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

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

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-user {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.admin-entry {
  width: 36px;
  height: 36px;
  padding: 0;
}

.admin-entry svg {
  width: 18px;
  height: 18px;
}

.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-xl);
  transition: var(--transition);
  cursor: pointer;
}

.cart-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  transform: scale(0);
  transition: var(--transition);
}

.cart-badge.visible {
  transform: scale(1);
}

.cart-badge.bump {
  animation: cartBump 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-8);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb:nth-child(1) {
  width: 300px;
  height: 300px;
  background: rgba(99, 102, 241, 0.15);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.hero-orb:nth-child(2) {
  width: 200px;
  height: 200px;
  background: rgba(139, 92, 246, 0.12);
  top: 60%;
  right: 15%;
  animation-delay: -5s;
  animation-duration: 22s;
}

.hero-orb:nth-child(3) {
  width: 250px;
  height: 250px;
  background: rgba(6, 182, 212, 0.1);
  bottom: 20%;
  left: 30%;
  animation-delay: -10s;
  animation-duration: 25s;
}

.hero-orb:nth-child(4) {
  width: 150px;
  height: 150px;
  background: rgba(99, 102, 241, 0.1);
  top: 30%;
  right: 30%;
  animation-delay: -3s;
  animation-duration: 20s;
}

.hero-orb:nth-child(5) {
  width: 180px;
  height: 180px;
  background: rgba(245, 158, 11, 0.06);
  bottom: 30%;
  right: 10%;
  animation-delay: -7s;
  animation-duration: 24s;
}

.hero-orb:nth-child(6) {
  width: 120px;
  height: 120px;
  background: rgba(16, 185, 129, 0.08);
  top: 15%;
  right: 45%;
  animation-delay: -12s;
  animation-duration: 19s;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: var(--font-6xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero-title .gradient-text {
  display: block;
}

.hero-subtitle {
  font-size: var(--font-xl);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-10);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-16);
  animation: fadeIn 1s ease-out 0.5s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: var(--font-3xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: var(--font-sm);
  color: var(--text-muted);
  margin-top: var(--space-1);
}


/* ── Catalog Section ── */
.catalog {
  padding: var(--space-20) 0;
  position: relative;
}

.store-workspace {
  margin-top: var(--header-height);
  padding-top: var(--space-12);
}

.store-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  text-align: left;
}

.store-eyebrow {
  color: var(--accent-tertiary);
  font-size: var(--font-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.store-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: var(--space-3);
  min-width: 380px;
}

.store-metric {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: var(--transition);
}

.store-metric:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.store-metric strong {
  display: block;
  font-size: var(--font-xl);
  line-height: 1.2;
}

.store-metric span {
  display: block;
  color: var(--text-muted);
  font-size: var(--font-xs);
  margin-top: var(--space-1);
}

.catalog-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.catalog-title {
  font-size: var(--font-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  flex: 1;
  min-width: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

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

.category-pill.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.category-pill-emoji {
  font-size: var(--font-base);
}

.search-box {
  position: relative;
  width: 280px;
  flex-shrink: 0;
}

.search-box-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--font-sm);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--font-sm);
  transition: var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  background: var(--surface-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 30px rgba(6, 182, 212, 0.08);
}

.sort-select {
  padding: var(--space-3) var(--space-5);
  padding-right: var(--space-10);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8'%3E%3Cpath d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.sort-select:hover {
  background-color: var(--surface-hover);
  border-color: var(--border-hover);
}

.sort-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.sort-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}


/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.product-grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-20) var(--space-8);
  color: var(--text-muted);
}

.product-grid-empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.product-grid-empty-text {
  font-size: var(--font-lg);
  margin-bottom: var(--space-2);
}

.product-grid-empty-hint {
  font-size: var(--font-sm);
}


/* ── Product Card ── */
.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  animation: cardReveal 0.55s ease both;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,0.13) 46%, transparent 64%);
  transform: translateX(-120%);
  transition: transform 0.75s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.product-card:hover::after {
  transform: translateX(120%);
}

.product-card:nth-child(2n) { animation-delay: 0.04s; }
.product-card:nth-child(3n) { animation-delay: 0.08s; }
.product-card:nth-child(4n) { animation-delay: 0.12s; }

.product-card-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.product-card-image > span {
  position: relative;
  z-index: 1;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.product-photo,
.modal-photo {
  position: relative;
  z-index: 1;
  width: min(78%, 220px);
  height: min(78%, 220px);
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.modal-photo {
  width: min(72%, 300px);
  height: min(72%, 240px);
}

.cart-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.product-card:hover .product-card-image > span {
  transform: translateY(-4px) scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 12px 24px rgba(255,255,255,0.12));
}

.product-card:hover .product-photo {
  transform: translateY(-4px) scale(1.04);
  filter: saturate(1.1) brightness(1.06);
}

.product-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  transition: var(--transition);
}

.product-card:hover .product-card-image::before {
  opacity: 0.12;
}

/* Category gradient backgrounds */
.product-card-image.cat-electronics::before { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.product-card-image.cat-clothing::before { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.product-card-image.cat-home::before { background: linear-gradient(135deg, #10b981, #06b6d4); }
.product-card-image.cat-sports::before { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.product-card-image.cat-accessories::before { background: linear-gradient(135deg, #ec4899, #f59e0b); }

.product-card-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
}

.favorite-btn {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(10, 10, 15, 0.62);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 20px;
  backdrop-filter: blur(14px);
  transition: var(--transition);
}

.favorite-btn:hover,
.favorite-btn.active {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.16);
  transform: translateY(-2px) scale(1.04);
}

.product-card-body {
  padding: var(--space-5);
}

.product-card-name {
  font-size: var(--font-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: var(--font-sm);
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.product-card-stock {
  color: var(--text-muted);
  font-size: var(--font-xs);
}

.stars {
  display: flex;
  gap: 1px;
  color: var(--warning);
  font-size: var(--font-sm);
}

.star-empty {
  color: var(--text-muted);
  opacity: 0.3;
}

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

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

.product-price {
  display: flex;
  flex-direction: column;
}

.product-price-current {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-primary);
}

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

.product-card-cart-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: var(--font-lg);
  transition: var(--transition);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.product-card-cart-btn:hover {
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transform: scale(1.08);
}

.product-card-cart-btn:active {
  transform: scale(0.95);
}


/* ── Product Modal ── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.98), rgba(10, 10, 15, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(99, 102, 241, 0.12);
}

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

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--font-lg);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
}

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

.modal-image {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  overflow: hidden;
}

.modal-image::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.modal-image.cat-electronics::before { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.modal-image.cat-clothing::before { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.modal-image.cat-home::before { background: linear-gradient(135deg, #10b981, #06b6d4); }
.modal-image.cat-sports::before { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.modal-image.cat-accessories::before { background: linear-gradient(135deg, #ec4899, #f59e0b); }

.modal-body {
  padding: var(--space-8);
}

.modal-product-name {
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.modal-product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.modal-product-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.modal-product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.modal-spec {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.modal-spec-label {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-spec-value {
  font-size: var(--font-sm);
  font-weight: 500;
}

.modal-product-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.modal-price-current {
  font-size: var(--font-3xl);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.modal-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-1);
}

.quantity-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--font-lg);
  transition: var(--transition-fast);
  cursor: pointer;
}

.quantity-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.quantity-value {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: var(--font-base);
}


/* ── Cart Sidebar ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100%;
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.98), rgba(10, 10, 15, 0.98));
  border-left: 1px solid var(--border);
  z-index: 1600;
  transform: translateX(100%);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

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

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-sidebar-title {
  font-size: var(--font-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cart-sidebar-count {
  background: var(--surface);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  color: var(--text-muted);
}

.cart-sidebar-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--font-lg);
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  transition: var(--transition);
  animation: fadeIn 0.3s ease-out;
}

.cart-item:hover {
  background: var(--surface-hover);
}

.cart-item-image {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: 2rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: var(--font-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cart-item-qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cart-item-qty-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.cart-item-qty {
  font-size: var(--font-sm);
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.cart-empty-text {
  font-size: var(--font-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.cart-empty-hint {
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.cart-summary {
  padding: var(--space-6);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.cart-summary-row.total {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.cart-checkout-btn {
  width: 100%;
  padding: var(--space-4);
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cart-checkout-btn:hover {
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

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


/* ── Checkout Modal ── */
.checkout-form {
  padding: var(--space-8);
}

.checkout-title {
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-base);
  transition: var(--transition);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  background: var(--surface-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.05);
}

.form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  font-size: var(--font-xs);
  color: var(--danger);
  margin-top: var(--space-1);
}

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

.checkout-submit {
  width: 100%;
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
}

.checkout-totals {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.checkout-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.checkout-totals strong {
  color: var(--text-primary);
}

.checkout-totals .checkout-total {
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
  font-size: var(--font-base);
}

.form-error.success {
  color: var(--success);
}

.reviews-panel {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.reviews-header,
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.reviews-header {
  margin-bottom: var(--space-4);
}

.reviews-header h3 {
  font-size: var(--font-lg);
}

.reviews-header span {
  color: var(--text-muted);
  font-size: var(--font-sm);
}

.reviews-list {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.review-item {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.review-item p,
.reviews-empty {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  margin-top: var(--space-2);
}

.review-form {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.order-success {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-success-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  animation: pulse 2s ease-in-out infinite;
}

.order-success-title {
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.order-success-text {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.order-success-id {
  font-family: monospace;
  font-size: var(--font-sm);
  color: var(--accent-primary);
  background: var(--surface);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}


/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 3000;
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 300px;
  max-width: 420px;
  pointer-events: all;
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.removing {
  animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-icon {
  font-size: var(--font-xl);
  flex-shrink: 0;
}

.toast-message {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  flex: 1;
}

.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.3);
}

.toast.toast-success .toast-icon {
  color: var(--success);
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
}

.toast.toast-error .toast-icon {
  color: var(--danger);
}

.toast.toast-info {
  border-color: rgba(6, 182, 212, 0.3);
}

.toast.toast-info .toast-icon {
  color: var(--info);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: toastProgress 3s linear forwards;
}

.toast-success .toast-progress { background: var(--success); }
.toast-error .toast-progress { background: var(--danger); }
.toast-info .toast-progress { background: var(--info); }


/* ── Footer ── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand-name {
  font-size: var(--font-xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-brand-desc {
  font-size: var(--font-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: var(--transition);
  font-size: var(--font-lg);
}

.footer-social a:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.footer-column-title {
  font-size: var(--font-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--font-sm);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: var(--space-2);
}

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

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

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

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

.footer-bottom-links a:hover {
  color: var(--text-primary);
}


/* ── Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-10px, -50px) rotate(-3deg); }
  75% { transform: translate(-30px, -20px) rotate(3deg); }
}

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

@keyframes cartBump {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

@keyframes ambientFlow {
  0% {
    background-position: 0% 20%, 100% 0%, 20% 100%, 0% 50%;
    filter: saturate(1) brightness(0.95);
  }
  100% {
    background-position: 100% 0%, 0% 85%, 85% 15%, 100% 50%;
    filter: saturate(1.18) brightness(1.05);
  }
}

@keyframes gradientDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── Responsive ── */

/* Tablet */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .hero-title {
    font-size: var(--font-5xl);
  }

  .hero-stats {
    gap: var(--space-8);
  }

  .header-nav {
    display: none;
  }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .hero-title {
    font-size: var(--font-4xl);
  }

  .hero-subtitle {
    font-size: var(--font-base);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .store-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-metrics {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .header-auth .btn-primary,
  .header-user {
    display: none;
  }

  .search-box {
    width: 100%;
  }

  .sort-select {
    width: 100%;
  }

  .cart-sidebar {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .modal-image {
    height: 200px;
  }

  .modal-product-specs {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .toast {
    min-width: unset;
    width: 100%;
  }

  .catalog {
    padding: var(--space-12) 0;
  }

  .catalog-title {
    font-size: var(--font-2xl);
  }
}

/* Auth */
.auth-page {
  min-height: 100vh;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-6);
}

.auth-panel {
  width: min(100%, 460px);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.auth-tab {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
}

.auth-tab.active {
  background: var(--accent-gradient);
  color: #fff;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.auth-title {
  font-size: var(--font-2xl);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  margin-bottom: var(--space-6);
}

.auth-submit {
  width: 100%;
  margin-top: var(--space-2);
}

.auth-message {
  min-height: 22px;
  margin-top: var(--space-4);
  font-size: var(--font-sm);
}

.auth-message.error {
  color: var(--danger);
}

.auth-message.info {
  color: var(--info);
}

/* Account */
.account-shell {
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-16);
}

.account-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: var(--space-6);
}

.account-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.022));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055);
}

.account-card h2 {
  font-size: var(--font-xl);
  margin-bottom: var(--space-5);
}

.account-form {
  display: grid;
  gap: var(--space-4);
}

.avatar-upload {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.avatar-placeholder {
  font-size: 32px;
  opacity: 0.5;
}

.address-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
  transition: var(--transition);
}

.address-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glow);
}

.address-card h3 {
  font-size: var(--font-base);
  margin-bottom: var(--space-1);
}

.address-card p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  margin: 0;
  line-height: 1.5;
}

.address-actions {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.account-list {
  display: grid;
  gap: var(--space-3);
}

.account-item,
.account-order {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.account-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: var(--space-4);
}

.account-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-hover);
}

.account-thumb.emoji {
  display: grid;
  place-items: center;
  font-size: 30px;
}

.account-item strong,
.account-item span {
  display: block;
}

.account-item span,
.account-order-meta,
.account-order li {
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.account-actions {
  display: flex;
  gap: var(--space-2);
}

.account-orders-card {
  margin-top: var(--space-6);
}

.account-orders-card .account-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.order-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: var(--transition);
}

.order-card:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: var(--space-4);
}

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

.order-card-actions {
  margin-top: auto;
}

.account-order {
  display: grid;
  gap: var(--space-4);
}

.account-order-head,
.account-order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.account-order-head span {
  color: var(--accent-tertiary);
}

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.delivery-steps span {
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  font-size: var(--font-xs);
}

.delivery-steps span.active {
  color: #fff;
  background: var(--accent-gradient);
  border-color: transparent;
}

/* Mobile */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--space-4);
  }

  .hero-title {
    font-size: var(--font-3xl);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .category-pills {
    flex-wrap: nowrap;
  }

  .product-card-image {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .account-header,
  .account-order-head,
  .account-order-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-item {
    grid-template-columns: 48px 1fr;
  }

  .account-actions {
    grid-column: 1 / -1;
  }

  .delivery-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Payment Step ── */
.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.payment-timer {
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-right: 36px; /* Avoid close button overlap */
}

.payment-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-lg);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.payment-amount strong {
  font-size: var(--font-2xl);
  color: var(--primary-light);
}

.payment-methods-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.payment-method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.payment-method-card:hover {
  background: var(--surface-hover);
}

.payment-method-card.selected {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.payment-method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.payment-method-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.payment-method-info {
  display: flex;
  flex-direction: column;
}

.payment-method-name {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--text-primary);
}

.payment-method-desc {
  font-size: var(--font-sm);
  color: var(--text-muted);
}

.payment-details-view {
  margin-bottom: var(--space-6);
  animation: fadeIn 0.3s ease forwards;
}

.payment-details-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.payment-hint {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.payment-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  font-size: var(--font-base);
}

.payment-detail-row span {
  color: var(--text-muted);
}

.payment-detail-row strong {
  color: var(--text-primary);
}

.payment-submit {
  width: auto;
  min-width: 200px;
  margin-top: var(--space-4);
  padding: 12px 24px;
}

@media (max-width: 600px) {
  .payment-methods-list {
    grid-template-columns: 1fr;
  }
}

/* --- Redesign Styles (Dark Theme Structure Update) --- */
.header-top-nav a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.header-top-nav a:hover { color: var(--text-primary); }
.header-account-link { background: var(--primary); color: #fff !important; padding: 5px 14px; border-radius: 20px; font-weight: 600; transition: background 0.2s, transform 0.2s; }
.header-account-link:hover { background: var(--primary-hover); transform: scale(1.05); }

.search-and-actions-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.header-search { flex: 1; margin: 0; max-width: none; }
.header-search .search-box { 
  display: flex;
  width: 100%; 
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  align-items: center;
}
.header-search .search-input { 
  flex: 1; 
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  outline: none;
}
.search-submit-btn {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 0 24px;
  height: 100%;
  align-self: stretch;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s;
}
.search-submit-btn:hover { opacity: 0.9; }
.search-box-icon { padding-left: 16px; color: var(--text-muted); }

.catalog-btn {
  background: var(--accent-gradient) !important;
  color: white !important;
  border: none !important;
  padding: 16px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px !important;
}

.main-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-6); align-items: start; }
.sidebar-container { position: sticky; top: 90px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.category-list { display: flex; flex-direction: column; gap: 4px; }
.category-list .category-pill { 
  width: 100%; 
  justify-content: flex-start; 
  border: none; 
  background: transparent; 
  padding: 12px 16px; 
  border-radius: 8px; 
  transition: all 0.2s ease; 
  display: flex;
  align-items: center;
  color: var(--text-primary);
}
.category-list .category-pill span:last-child {
  margin-left: auto; /* Push the chevron to the right */
  color: var(--text-muted);
}
.category-list .category-pill:hover, .category-list .category-pill.active { background: var(--surface); box-shadow: var(--shadow-sm); }

.main-content { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }

/* Banner Multi-Item Carousel */
.banner-carousel { position: relative; width: 100%; display: block; overflow: hidden; }
.banner-track { display: flex; gap: 16px; transition: transform 0.5s ease; width: max-content; }
.banner-slide { 
  flex: 0 0 287.75px; 
  height: 540px; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: var(--shadow-md); 
}
.banner-slide a { display: block; width: 100%; height: 100%; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }

.banner-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; z-index: 2; transition: background 0.2s; }
.banner-btn:hover { background: rgba(0,0,0,0.8); }
.banner-btn.prev { left: 10px; }
.banner-btn.next { right: 10px; }
.banner-dots { position: absolute; bottom: 15px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.banner-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.2s; display: none; } /* Hide dots for multi-carousel to simplify */
.banner-dot.active { background: white; }

@media (max-width: 992px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar-container { position: static; max-height: none; overflow: visible; }
  .search-and-actions-row { flex-direction: column; align-items: stretch; }
  .header-top-nav { display: none !important; }
  #mobile-categories-btn { display: flex !important; }
  .category-list { display: none; }
  .category-list.show { display: flex; }
}

/* --- Premium Storefront Theme --- */
:root {
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display-family: 'Cormorant Garamond', Georgia, serif;
}

body:not(.auth-page) {
  --bg-primary: #f3f6f1;
  --bg-secondary: #ffffff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-hover: #ffffff;
  --surface-active: #eef4ed;
  --border: rgba(30, 42, 36, 0.12);
  --border-hover: rgba(30, 42, 36, 0.22);
  --accent-gradient: linear-gradient(135deg, #1f5b49, #c5a15a);
  --accent-primary: #1f5b49;
  --accent-secondary: #b88a3d;
  --accent-tertiary: #7a3e4c;
  --success: #1f7a56;
  --danger: #b23945;
  --warning: #b88a3d;
  --info: #356d80;
  --text-primary: #17201c;
  --text-secondary: #53625a;
  --text-muted: #7a867f;
  --shadow-sm: 0 1px 2px rgba(23, 32, 28, 0.06);
  --shadow-md: 0 10px 24px rgba(23, 32, 28, 0.08);
  --shadow-lg: 0 18px 44px rgba(23, 32, 28, 0.12);
  --shadow-xl: 0 24px 64px rgba(23, 32, 28, 0.16);
  --shadow-glow: 0 18px 42px rgba(31, 91, 73, 0.14);
  --shadow-glow-strong: 0 22px 58px rgba(31, 91, 73, 0.18);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  background: #f3f6f1;
  color: var(--text-primary);
}

body:not(.auth-page),
body:not(.auth-page) * {
  letter-spacing: 0;
}

body:not(.auth-page)::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 241, 0.96)),
    linear-gradient(120deg, rgba(31, 91, 73, 0.08), transparent 48%),
    linear-gradient(300deg, rgba(197, 161, 90, 0.11), transparent 54%);
  background-size: auto;
  animation: none;
  filter: none;
}

body:not(.auth-page)::after {
  background:
    linear-gradient(rgba(23, 32, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 28, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
  opacity: 0.7;
}

body:not(.auth-page).store-has-background {
  background-color: transparent;
}

body:not(.auth-page).store-has-background::before,
body:not(.auth-page).store-has-background::after {
  display: none;
}

body:not(.auth-page) .container {
  max-width: 1378px;
  padding-inline: var(--space-8);
}

body:not(.auth-page) .glass {
  background: var(--surface);
  border-color: var(--border);
  backdrop-filter: blur(18px);
}

body:not(.auth-page) .header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(30, 42, 36, 0.1);
  box-shadow: 0 10px 28px rgba(23, 32, 28, 0.04);
}

body:not(.auth-page) .header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(23, 32, 28, 0.1);
}

body:not(.auth-page) .header-inner {
  max-width: 1320px;
  padding-inline: 12px;
}

body:not(.auth-page) .header-logo {
  color: var(--text-primary);
  font-size: var(--font-xl);
  font-weight: 800;
}

body:not(.auth-page) .header-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: #17201c;
  color: #f5efe3;
  box-shadow: inset 0 0 0 1px rgba(197, 161, 90, 0.32), 0 10px 22px rgba(23, 32, 28, 0.15);
}

body:not(.auth-page) .header-top-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex: 1;
  margin-left: var(--space-10);
  font-size: var(--font-sm);
  font-weight: 600;
}

body:not(.auth-page) .header-top-nav a {
  color: var(--text-secondary);
}

body:not(.auth-page) .header-top-nav a:hover {
  color: var(--accent-primary);
}

body:not(.auth-page) .header-account-link {
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--text-secondary) !important;
  font-weight: 600;
}

body:not(.auth-page) .header-account-link:hover {
  background: transparent;
  color: var(--accent-primary) !important;
  transform: none;
}

body:not(.auth-page) .header-lang {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  font-weight: 700;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not(.auth-page) .catalog {
  padding: var(--space-12) 0 var(--space-20);
}

body:not(.auth-page) .store-workspace {
  padding-top: 10px;
}

body:not(.auth-page) .store-heading {
  align-items: center;
  margin-bottom: 0;
}

body:not(.auth-page) .store-metrics {
  display: none;
}

body:not(.auth-page) .catalog-header {
  text-align: left;
}

body:not(.auth-page) .hero-banner {
  display: block;
  width: 100%;
  aspect-ratio: 1314 / 298;
  min-height: 220px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
  background: #e7eee7;
}

body:not(.auth-page).store-loading .main-layout {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
}

body:not(.auth-page) .main-layout {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body:not(.auth-page) .hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}

body:not(.auth-page) .hero-banner:hover .hero-banner-img {
  transform: scale(1.01);
}

body:not(.auth-page) .hero-banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

body:not(.auth-page) .catalog-title {
  font-family: var(--display-family);
  font-size: var(--font-5xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-3);
  color: #111814;
}

body:not(.auth-page) .catalog-subtitle {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.7;
}

body:not(.auth-page) .main-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--space-5);
}

body:not(.auth-page) .sidebar-container {
  top: 96px;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

body:not(.auth-page) .catalog-btn {
  width: 100%;
  min-height: 50px;
  margin-bottom: var(--space-3);
  background: #17201c !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 12px 24px rgba(23, 32, 28, 0.16);
}

body:not(.auth-page) .catalog-btn-icon {
  margin-right: var(--space-2);
  color: #d9bd78;
}

body:not(.auth-page) .category-list {
  gap: var(--space-1);
}

body:not(.auth-page) .category-list .category-pill {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 12px;
  align-items: center;
  column-gap: var(--space-2);
  min-height: 44px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-weight: 700;
  padding: 0 var(--space-4);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

body:not(.auth-page) .category-list .category-pill .category-pill-emoji {
  display: inline-flex;
  justify-content: center;
  width: 22px;
  min-width: 0;
}

body:not(.auth-page) .category-list .category-pill .category-pill-text {
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.auth-page) .category-list .category-pill .category-pill-arrow {
  color: var(--text-muted);
  justify-self: end;
}

body:not(.auth-page) .category-list .category-pill[data-category-id="all"] {
  grid-template-columns: minmax(0, 1fr) 12px;
}

body:not(.auth-page) .category-list .category-pill:hover,
body:not(.auth-page) .category-list .category-pill.active {
  background: #eef4ed;
  color: var(--accent-primary);
  box-shadow: none;
}

body:not(.auth-page) .category-list .category-pill.active {
  box-shadow: inset 3px 0 0 var(--accent-primary);
}

body:not(.auth-page) .main-content {
  gap: var(--space-5);
}

body:not(.auth-page) .search-and-actions-row {
  gap: var(--space-4);
  margin-bottom: 0;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

body:not(.auth-page) .header-search .search-box {
  height: 52px;
  background: #fff;
  border-color: var(--border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(23, 32, 28, 0.03);
}

body:not(.auth-page) .header-search .search-box-icon {
  position: static;
  transform: none;
  padding-left: var(--space-4);
  color: var(--accent-primary);
  font-size: var(--font-lg);
}

body:not(.auth-page) .header-search .search-input {
  color: var(--text-primary);
  font-weight: 600;
}

body:not(.auth-page) .header-search .search-input::placeholder {
  color: var(--text-muted);
}

body:not(.auth-page) .search-input:focus {
  background: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(31, 91, 73, 0.12);
}

body:not(.auth-page) .search-submit-btn {
  align-items: center;
  align-self: stretch;
  display: inline-flex;
  justify-content: center;
  min-width: 112px;
  height: 100%;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 800;
}

body:not(.auth-page) .search-submit-btn:hover {
  background: #17483a;
  opacity: 1;
}

body:not(.auth-page) .btn-primary,
body:not(.auth-page) .product-card-cart-btn,
body:not(.auth-page) .cart-checkout-btn {
  background: var(--accent-primary);
  animation: none;
  box-shadow: 0 12px 24px rgba(31, 91, 73, 0.2);
}

body:not(.auth-page) .btn-primary:hover,
body:not(.auth-page) .product-card-cart-btn:hover,
body:not(.auth-page) .cart-checkout-btn:hover {
  background: #17483a;
  box-shadow: 0 16px 32px rgba(31, 91, 73, 0.24);
}

body:not(.auth-page) .btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  color: var(--text-primary);
}

body:not(.auth-page) .btn-secondary:hover {
  background: #fff;
  border-color: var(--border-hover);
}

body:not(.auth-page) .cart-btn {
  width: auto;
  height: 52px;
  min-width: 126px;
  gap: var(--space-2);
  padding: 0 var(--space-5);
  background: #17201c;
  border-color: #17201c;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: var(--font-sm);
  font-weight: 800;
}

body:not(.auth-page) .cart-btn:hover {
  background: #26332d;
  border-color: #26332d;
}

body:not(.auth-page) .cart-btn-icon {
  font-size: var(--font-lg);
}

body:not(.auth-page) .cart-badge {
  background: var(--accent-secondary);
  color: #17201c;
}

body:not(.auth-page) .banner-carousel {
  display: none;
  width: 100%;
  margin: 0;
  border-radius: var(--radius-lg);
}

body:not(.auth-page) .banner-track {
  gap: var(--space-4);
  width: 100%;
}

body:not(.auth-page) .banner-slide {
  flex: 0 0 calc((100% - 48px) / 4);
  height: 382px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

body:not(.auth-page) .banner-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(23, 32, 28, 0.78);
}

body:not(.auth-page) .catalog-controls {
  justify-content: flex-end;
  margin-bottom: 0;
}

body:not(.auth-page) .sort-select {
  min-height: 44px;
  min-width: 220px;
  padding: 0 var(--space-10) 0 var(--space-4);
  background-color: rgba(255, 255, 255, 0.76);
  border-color: var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2353625a'%3E%3Cpath d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
}

body:not(.auth-page) .sort-select:hover,
body:not(.auth-page) .sort-select:focus {
  background-color: #fff;
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(31, 91, 73, 0.12);
}

body:not(.auth-page) .sort-select option {
  background: #fff;
  color: var(--text-primary);
}

body:not(.auth-page) .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

body:not(.auth-page) .product-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  background: #fff;
  border-color: rgba(30, 42, 36, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(23, 32, 28, 0.08);
}

body:not(.auth-page) .product-card::after {
  background: linear-gradient(115deg, transparent 20%, rgba(197, 161, 90, 0.14) 50%, transparent 70%);
}

body:not(.auth-page) .product-card:hover {
  transform: translateY(-6px);
  background: #fff;
  border-color: rgba(31, 91, 73, 0.24);
  box-shadow: var(--shadow-xl);
}

body:not(.auth-page) .product-card-image {
  height: 218px;
  background: #eef4ed;
}

body:not(.auth-page) .product-card-image::before {
  opacity: 0.18;
}

body:not(.auth-page) .product-card-image.cat-electronics::before { background: linear-gradient(135deg, #dce9ee, #edf4f6); }
body:not(.auth-page) .product-card-image.cat-clothing::before { background: linear-gradient(135deg, #f3e4e7, #f8f0ec); }
body:not(.auth-page) .product-card-image.cat-home::before { background: linear-gradient(135deg, #dcebe1, #f0f5ed); }
body:not(.auth-page) .product-card-image.cat-sports::before { background: linear-gradient(135deg, #f3ead8, #e7efe2); }
body:not(.auth-page) .product-card-image.cat-accessories::before { background: linear-gradient(135deg, #ece5f0, #edf4ed); }

body:not(.auth-page) .product-card-image > span {
  font-size: 4.6rem;
  filter: drop-shadow(0 14px 18px rgba(23, 32, 28, 0.12));
}

body:not(.auth-page) .product-photo {
  width: min(82%, 230px);
  height: min(82%, 230px);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 36px rgba(23, 32, 28, 0.16);
}

body:not(.auth-page) .favorite-btn {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(30, 42, 36, 0.12);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
}

body:not(.auth-page) .favorite-btn:hover,
body:not(.auth-page) .favorite-btn.active {
  background: #fff0f2;
  color: var(--danger);
  border-color: rgba(178, 57, 69, 0.2);
}

body:not(.auth-page) .badge {
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-transform: none;
}

body:not(.auth-page) .badge-hit {
  background: #17201c;
  color: #f5efe3;
  border-color: #17201c;
}

body:not(.auth-page) .badge-new {
  background: #eef4ed;
  color: var(--accent-primary);
  border-color: rgba(31, 91, 73, 0.14);
}

body:not(.auth-page) .badge-sale {
  background: #fff0f2;
  color: var(--danger);
  border-color: rgba(178, 57, 69, 0.18);
}

body:not(.auth-page) .product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-5);
}

body:not(.auth-page) .product-card-name {
  color: var(--text-primary);
  font-size: var(--font-base);
  font-weight: 800;
  min-height: 44px;
  -webkit-line-clamp: 2;
}

body:not(.auth-page) .product-card-desc {
  color: var(--text-secondary);
}

body:not(.auth-page) .stars {
  color: var(--accent-secondary);
}

body:not(.auth-page) .rating-value,
body:not(.auth-page) .product-card-stock {
  color: var(--text-muted);
  font-weight: 700;
}

body:not(.auth-page) .product-card-footer {
  margin-top: auto;
  border-top-color: rgba(30, 42, 36, 0.1);
}

body:not(.auth-page) .product-price-current {
  color: var(--accent-primary);
  font-weight: 800;
}

body:not(.auth-page) .product-card-cart-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
}

body:not(.auth-page) .modal {
  background: rgba(23, 32, 28, 0.48);
}

body:not(.auth-page) .modal-content,
body:not(.auth-page) .cart-sidebar {
  background: #fff;
  border-color: rgba(30, 42, 36, 0.12);
  color: var(--text-primary);
  box-shadow: var(--shadow-xl);
}

body:not(.auth-page) .modal-image {
  background: #eef4ed;
}

body:not(.auth-page) .modal-image.cat-electronics::before { background: linear-gradient(135deg, #dce9ee, #edf4f6); }
body:not(.auth-page) .modal-image.cat-clothing::before { background: linear-gradient(135deg, #f3e4e7, #f8f0ec); }
body:not(.auth-page) .modal-image.cat-home::before { background: linear-gradient(135deg, #dcebe1, #f0f5ed); }
body:not(.auth-page) .modal-image.cat-sports::before { background: linear-gradient(135deg, #f3ead8, #e7efe2); }
body:not(.auth-page) .modal-image.cat-accessories::before { background: linear-gradient(135deg, #ece5f0, #edf4ed); }

body:not(.auth-page) .modal-price-current {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--accent-primary);
}

body:not(.auth-page) .modal-product-specs,
body:not(.auth-page) .quantity-selector,
body:not(.auth-page) .cart-item,
body:not(.auth-page) .cart-summary {
  background: #f7f9f5;
  border-color: rgba(30, 42, 36, 0.1);
}

body:not(.auth-page) .modal-content.product-detail-content {
  width: min(96vw, 1180px);
  max-width: 1180px;
  max-height: 92vh;
  padding: 0;
  border-radius: 8px;
  overflow: auto;
  background: #fff;
  color: #17201c;
}

body:not(.auth-page) .product-detail-modal {
  padding: 26px 32px 30px;
}

body:not(.auth-page) .product-detail-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 42px 22px 0;
  color: #66746d;
  font-size: 12px;
  line-height: 1.4;
}

body:not(.auth-page) .product-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  gap: 42px;
  align-items: start;
}

body:not(.auth-page) .product-detail-gallery {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

body:not(.auth-page) .product-detail-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body:not(.auth-page) .product-detail-thumb {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  overflow: hidden;
  border: 1px solid rgba(30, 42, 36, 0.16);
  border-radius: 7px;
  background: #fff;
  color: #17201c;
  font-size: 22px;
  cursor: pointer;
  transition: var(--transition-fast);
}

body:not(.auth-page) .product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:not(.auth-page) .product-detail-thumb.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(17, 119, 87, 0.16);
}

body:not(.auth-page) .product-detail-favorite-thumb,
body:not(.auth-page) .product-detail-favorite-btn {
  font-size: 22px;
  color: #17201c;
}

body:not(.auth-page) .product-detail-favorite-thumb.active,
body:not(.auth-page) .product-detail-favorite-btn.active {
  color: #d92642;
}

body:not(.auth-page) .product-detail-visual {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(30, 42, 36, 0.12);
  border-radius: 8px;
  background: #f8faf7;
}

body:not(.auth-page) .product-detail-image {
  width: auto;
  max-width: 86%;
  max-height: 382px;
  object-fit: contain;
}

body:not(.auth-page) .product-detail-placeholder {
  font-size: 7rem;
  line-height: 1;
}

body:not(.auth-page) .product-detail-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

body:not(.auth-page) .product-detail-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

body:not(.auth-page) .product-detail-badge.badge-soft {
  background: #dff3d2;
  color: #28621d;
}

body:not(.auth-page) .product-detail-badge.badge-sale {
  background: #d91f36;
  color: #fff;
}

body:not(.auth-page) .product-detail-summary {
  min-width: 0;
  padding-top: 8px;
}

body:not(.auth-page) .product-detail-title {
  margin: 0 0 14px;
  color: #17201c;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
}

body:not(.auth-page) .product-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 20px;
  color: #66746d;
  font-size: 13px;
}

body:not(.auth-page) .product-detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4d5f57;
  white-space: nowrap;
}

body:not(.auth-page) .product-detail-rating .stars {
  display: inline-flex;
  gap: 1px;
  color: #f2a000;
  font-size: 12px;
}

body:not(.auth-page) .product-detail-stock {
  margin-left: auto;
  font-weight: 800;
}

body:not(.auth-page) .product-detail-stock.in-stock {
  color: var(--accent-primary);
}

body:not(.auth-page) .product-detail-stock.out-stock {
  color: #d92642;
}

body:not(.auth-page) .product-detail-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

body:not(.auth-page) .product-detail-price {
  color: #e1192f;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

body:not(.auth-page) .product-detail-old-price {
  color: #8d9892;
  font-size: 16px;
  font-weight: 700;
  text-decoration: line-through;
}

body:not(.auth-page) .product-detail-economy {
  margin-bottom: 22px;
  color: #e1192f;
  font-size: 13px;
  font-weight: 700;
}

body:not(.auth-page) .product-detail-option-block {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

body:not(.auth-page) .product-detail-option-label {
  color: #17201c;
  font-size: 13px;
  font-weight: 700;
}

body:not(.auth-page) .product-detail-chip-list,
body:not(.auth-page) .product-detail-color-list,
body:not(.auth-page) .product-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body:not(.auth-page) .product-detail-chip {
  min-width: 82px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(30, 42, 36, 0.12);
  border-radius: 7px;
  background: #f6f8f5;
  color: #17201c;
  font-size: 13px;
  font-weight: 800;
}

body:not(.auth-page) .product-detail-chip.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

body:not(.auth-page) .product-detail-color {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(30, 42, 36, 0.12);
  border-radius: 50%;
  background: var(--detail-color, #d9d9d9);
  box-shadow: inset 0 0 0 3px #fff;
}

body:not(.auth-page) .product-detail-color.active {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

body:not(.auth-page) .product-detail-actions {
  margin: 18px 0 26px;
}

body:not(.auth-page) .product-detail-quantity {
  height: 48px;
  background: #fff;
}

body:not(.auth-page) .product-detail-cart-btn {
  min-width: 190px;
  height: 48px;
  border-radius: 7px;
  background: var(--accent-primary);
  font-weight: 900;
}

body:not(.auth-page) .product-detail-favorite-btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 42, 36, 0.14);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

body:not(.auth-page) .product-detail-benefits,
body:not(.auth-page) .product-detail-delivery-grid {
  display: grid;
  gap: 14px;
}

body:not(.auth-page) .product-detail-benefit {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #52625b;
}

body:not(.auth-page) .product-detail-benefit strong {
  display: block;
  color: #17201c;
  font-size: 14px;
  line-height: 1.2;
}

body:not(.auth-page) .product-detail-benefit span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
}

body:not(.auth-page) .product-detail-benefit-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
}

body:not(.auth-page) .product-detail-tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 30px;
  border-bottom: 1px solid rgba(30, 42, 36, 0.14);
}

body:not(.auth-page) .product-detail-tab {
  min-height: 42px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #17201c;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

body:not(.auth-page) .product-detail-tab.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

body:not(.auth-page) .product-detail-panel {
  display: none;
  padding-top: 22px;
  color: #4d5f57;
  font-size: 14px;
  line-height: 1.6;
}

body:not(.auth-page) .product-detail-panel.active {
  display: block;
}

body:not(.auth-page) .product-detail-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

body:not(.auth-page) .product-detail-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 42, 36, 0.08);
  color: #66746d;
}

body:not(.auth-page) .product-detail-spec-row strong {
  color: #17201c;
  text-align: right;
}

body:not(.auth-page) .product-detail-panel .reviews-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body:not(.auth-page) .product-detail-panel .review-item {
  background: #f7f9f5;
  border-color: rgba(30, 42, 36, 0.1);
}

@media (max-width: 1180px) {
  body:not(.auth-page) .store-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  body:not(.auth-page) .main-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--space-5);
  }

  body:not(.auth-page) .product-detail-main {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.9fr);
  }

  body:not(.auth-page) .product-detail-visual {
    min-height: 360px;
  }
}

@media (max-width: 992px) {
  body:not(.auth-page) .container,
  body:not(.auth-page) .header-inner {
    padding-inline: var(--space-4);
  }

  body:not(.auth-page) .header-top-nav,
  body:not(.auth-page) .header-lang {
    display: none;
  }

  body:not(.auth-page) .main-layout {
    grid-template-columns: 1fr;
  }

  body:not(.auth-page) .modal-content.product-detail-content {
    width: 96vw;
  }

  body:not(.auth-page) .product-detail-modal {
    padding: 22px;
  }

  body:not(.auth-page) .product-detail-main {
    grid-template-columns: 1fr;
  }

  body:not(.auth-page) .product-detail-stock {
    margin-left: 0;
  }

  body:not(.auth-page) .sidebar-container {
    position: static;
  }

  body:not(.auth-page) .category-list {
    display: none;
  }

  body:not(.auth-page) .category-list.show {
    display: flex;
  }

  body:not(.auth-page) .search-and-actions-row {
    align-items: stretch;
    flex-direction: column;
  }

  body:not(.auth-page) .header-actions,
  body:not(.auth-page) .header-auth {
    width: 100%;
  }

  body:not(.auth-page) .header-auth .btn,
  body:not(.auth-page) .cart-btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  body:not(.auth-page) .catalog-title {
    font-size: var(--font-4xl);
  }

  body:not(.auth-page) .hero-banner {
    aspect-ratio: 16 / 7;
    min-height: 140px;
  }

  body:not(.auth-page) .product-detail-gallery {
    grid-template-columns: 1fr;
  }

  body:not(.auth-page) .product-detail-thumbs {
    order: 2;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body:not(.auth-page) .product-detail-visual {
    min-height: 300px;
  }

  body:not(.auth-page) .product-detail-image {
    max-height: 260px;
  }

  body:not(.auth-page) .product-detail-title {
    font-size: 24px;
  }

  body:not(.auth-page) .product-detail-tabs {
    gap: 20px;
    overflow-x: auto;
  }

  body:not(.auth-page) .product-detail-spec-list {
    grid-template-columns: 1fr;
  }

  body:not(.auth-page) .header-auth .btn-primary,
  body:not(.auth-page) .header-user {
    display: inline-flex;
  }

  body:not(.auth-page) .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-3);
  }

  body:not(.auth-page) .product-card {
    min-height: 380px;
  }

  body:not(.auth-page) .product-card-image {
    height: 172px;
  }

  body:not(.auth-page) .product-card-body {
    padding: var(--space-4);
  }

  body:not(.auth-page) .search-submit-btn {
    min-width: 88px;
    padding-inline: var(--space-4);
  }
}

@media (max-width: 520px) {
  body:not(.auth-page) .catalog {
    padding-top: var(--space-8);
  }

  body:not(.auth-page) .catalog-title {
    font-size: var(--font-3xl);
  }

  body:not(.auth-page) .search-submit-btn {
    display: none;
  }

  body:not(.auth-page) .header-actions {
    flex-direction: column;
  }

  body:not(.auth-page) .modal-content.product-detail-content {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  body:not(.auth-page) .product-detail-modal {
    padding: 18px;
  }

  body:not(.auth-page) .product-detail-breadcrumbs {
    margin-right: 40px;
  }

  body:not(.auth-page) .product-detail-actions {
    display: grid;
    grid-template-columns: 1fr 48px;
  }

  body:not(.auth-page) .product-detail-quantity,
  body:not(.auth-page) .product-detail-cart-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  body:not(.auth-page) .header-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body:not(.auth-page) .header-actions .cart-btn {
    width: 100%;
  }
}

/* Account dashboard redesign */
body.account-page {
  color: #17201c;
  background-color: #f7faf7;
}

body.account-page .header {
  height: 78px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(30, 42, 36, 0.1);
  box-shadow: 0 8px 28px rgba(30, 42, 36, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.account-page .header-inner {
  max-width: 1320px;
  min-height: 78px;
}

body.account-page .header-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: auto;
}

body.account-page .header-nav a {
  position: relative;
  color: #17201c;
  font-weight: 700;
}

body.account-page .header-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: #0f6b4f;
}

body.account-page .account-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.account-page .account-nav-cart,
body.account-page .account-nav-icon,
body.account-page .account-home-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #17201c;
  text-decoration: none;
  font-weight: 800;
}

body.account-page .account-nav-cart {
  position: relative;
}

body.account-page .account-nav-icon {
  width: 40px;
  font-size: 26px;
}

body.account-page .account-nav-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #6d5b21;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

body.account-page .account-nav-badge[hidden] {
  display: none;
}

body.account-page .account-home-btn {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(30, 42, 36, 0.12);
  color: #17201c;
  border-radius: 8px;
}

body.account-page .account-shell {
  padding: 122px 0 70px;
}

body.account-page .account-dashboard {
  max-width: 1320px;
}

body.account-page .account-header {
  max-width: 1180px;
  margin: 0 auto 30px;
}

body.account-page .store-eyebrow {
  color: #8a1f2d;
  letter-spacing: 0.08em;
}

body.account-page .catalog-title {
  color: #121a16;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: 0;
}

body.account-page .account-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  gap: 0;
  align-items: start;
}

body.account-page .account-grid {
  display: grid;
  grid-template-columns: minmax(380px, 430px) minmax(0, 1fr);
  gap: 28px;
  width: 100%;
}

body.account-page .account-column {
  display: grid;
  gap: 22px;
  align-content: start;
}

body.account-page .account-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(30, 42, 36, 0.13);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(30, 42, 36, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #17201c;
  padding: 26px;
}

body.account-page .account-card h2 {
  margin: 0 0 20px;
  color: #17201c;
  font-size: 20px;
  font-weight: 900;
}

body.account-page .account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.account-page .account-card-head h2 {
  margin: 0;
}

body.account-page .account-card-head a,
body.account-page .account-link-btn {
  border: 0;
  background: transparent;
  color: #0f6b4f;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

body.account-page .account-form {
  gap: 16px;
}

body.account-page .avatar-upload {
  gap: 18px;
  margin-bottom: 12px;
}

body.account-page .avatar-preview {
  width: 88px;
  height: 88px;
  background: #f6f8f5;
  border-color: rgba(30, 42, 36, 0.12);
  border-radius: 8px;
}

body.account-page .form-label {
  color: #17201c;
  font-size: 13px;
  font-weight: 700;
}

body.account-page .form-input,
body.account-page .form-select,
body.account-page .form-textarea {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(30, 42, 36, 0.14);
  border-radius: 7px;
  color: #17201c;
}

body.account-page .form-input:focus,
body.account-page .form-textarea:focus {
  background: #fff;
  border-color: #0f6b4f;
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.12);
}

body.account-page .btn-primary {
  background: #0f6b4f;
  border-color: #0f6b4f;
  border-radius: 7px;
  font-weight: 900;
}

body.account-page .btn-secondary,
body.account-page .btn-outline {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(30, 42, 36, 0.14);
  color: #17201c;
  border-radius: 7px;
}

body.account-page .account-security-list {
  display: grid;
  gap: 8px;
}

body.account-page .account-security-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #17201c;
  text-align: left;
}

body.account-page .account-security-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf4ee;
  color: #0f6b4f;
}

body.account-page .account-security-row strong,
body.account-page .account-payment-row strong,
body.account-page .address-card h3,
body.account-page .account-favorite-card strong {
  color: #17201c;
  font-weight: 900;
}

body.account-page .account-security-row small,
body.account-page .account-payment-row span,
body.account-page .address-card p,
body.account-page .account-orders-mini-card p,
body.account-page .account-perks-card small {
  display: block;
  margin-top: 3px;
  color: #4d5f57;
  font-size: 13px;
  line-height: 1.35;
}

body.account-page .account-security-row em {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff0f0;
  color: #c73946;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

body.account-page .account-security-row b {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf4ee;
  color: #0f6b4f;
  font-size: 12px;
}

body.account-page .account-password-panel {
  padding: 12px;
  border-radius: 8px;
  background: rgba(234, 244, 238, 0.52);
}

body.account-page .account-orders-mini-card p {
  margin: -10px 0 14px;
}

body.account-page .account-favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body.account-page .account-favorite-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  min-height: 226px;
  padding: 12px;
  border-color: rgba(30, 42, 36, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

body.account-page .account-favorite-image {
  width: 100%;
  height: 142px;
  object-fit: contain;
  border-radius: 8px;
  background: #f6f8f5;
}

body.account-page .account-favorite-image.emoji {
  display: grid;
  place-items: center;
  font-size: 44px;
}

body.account-page .account-favorite-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 42, 36, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #6d5b21;
  font-size: 22px;
  cursor: pointer;
}

body.account-page .account-favorite-card strong {
  min-height: 34px;
  font-size: 13px;
  line-height: 1.25;
}

body.account-page .account-favorite-card span {
  color: #0f6b4f;
  font-size: 16px;
  font-weight: 900;
}

body.account-page .address-card.account-address-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-color: rgba(30, 42, 36, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

body.account-page .account-address-pin {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #0f6b4f;
  border-radius: 50%;
  color: #0f6b4f;
  font-size: 30px;
}

body.account-page .account-address-body strong {
  display: block;
  margin-top: 6px;
  color: #17201c;
  font-size: 14px;
}

body.account-page .address-card em,
body.account-page .account-payment-row em {
  padding: 6px 11px;
  border-radius: 6px;
  background: #dcefe5;
  color: #0f6b4f;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

body.account-page .address-actions {
  position: static;
  display: flex;
  gap: 8px;
}

body.account-page .account-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 42, 36, 0.13);
  border-radius: 50%;
  background: #fff;
  color: #17201c;
  cursor: pointer;
}

body.account-page .account-payment-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto 32px 32px;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(30, 42, 36, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

body.account-page .account-card-brand {
  color: #2451b2;
  font-size: 23px;
  font-style: italic;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: #f5b51f;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

body.account-page .account-perks-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.account-page .account-perks-card article {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

body.account-page .account-perks-card article > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf4ee;
  color: #0f6b4f;
  font-size: 24px;
}

body.account-page .account-perks-card strong {
  color: #17201c;
  font-size: 13px;
  font-weight: 900;
}

body.account-page .account-empty {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px dashed rgba(30, 42, 36, 0.16);
  border-radius: 8px;
  color: #4d5f57;
  text-align: center;
}

body.account-page .account-empty svg {
  width: 42px;
  height: 42px;
  color: #0f6b4f;
}

body.account-page .account-orders-card {
  max-width: 1180px;
  margin: 28px auto 0;
}

body.account-page .account-orders-card .account-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

body.account-page .order-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(30, 42, 36, 0.12);
  border-radius: 8px;
  color: #17201c;
}

body.account-page .order-card-header {
  border-bottom-color: rgba(30, 42, 36, 0.1);
}

body.account-page .account-rail {
  display: none;
}

body.account-page .account-note {
  position: absolute;
  max-width: 220px;
  color: #17201c;
}

body.account-page .account-note strong {
  display: block;
  margin-bottom: 9px;
  color: #0f6b4f;
  font-size: 18px;
  font-weight: 900;
}

body.account-page .account-note span {
  display: block;
  color: #24342e;
  font-size: 15px;
  line-height: 1.42;
}

body.account-page .account-note::after {
  content: '';
  position: absolute;
  width: 76px;
  height: 28px;
  border-bottom: 2px dashed #0f6b4f;
  opacity: 0.9;
}

body.account-page .account-rail-left .account-note::after {
  right: -86px;
  top: 42px;
  border-right: 2px dashed #0f6b4f;
  border-radius: 0 0 22px 0;
}

body.account-page .account-rail-right .account-note::after {
  left: -92px;
  top: 42px;
  border-left: 2px dashed #0f6b4f;
  border-radius: 0 0 0 22px;
}

body.account-page .account-note-avatar { top: 110px; left: 0; }
body.account-page .account-note-security { top: 420px; left: 0; }
body.account-page .account-note-orders { top: 642px; left: 0; }
body.account-page .account-note-favorites { top: 160px; right: 0; }
body.account-page .account-note-addresses { top: 390px; right: 0; }
body.account-page .account-note-payments { top: 560px; right: 0; }
body.account-page .account-note-perks { top: 720px; right: 30px; max-width: 300px; text-align: center; }

@media (max-width: 1240px) {
  body.account-page .account-showcase {
    grid-template-columns: 1fr;
  }

  body.account-page .account-rail {
    display: none;
  }

  body.account-page .account-header,
  body.account-page .account-orders-card {
    max-width: none;
  }
}

@media (max-width: 900px) {
  body.account-page .header-nav {
    display: none;
  }

  body.account-page .account-grid {
    grid-template-columns: 1fr;
  }

  body.account-page .account-favorites-grid,
  body.account-page .account-perks-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.account-page .address-card.account-address-row,
  body.account-page .account-payment-row {
    grid-template-columns: 1fr;
  }

  body.account-page .address-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  body.account-page .account-shell {
    padding-top: 100px;
  }

  body.account-page .account-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.account-page .catalog-title {
    font-size: 34px;
  }

  body.account-page .account-top-actions {
    gap: 8px;
  }

  body.account-page .account-nav-cart span:nth-child(2),
  body.account-page .account-home-btn {
    display: none;
  }

  body.account-page .account-favorites-grid,
  body.account-page .account-perks-card {
    grid-template-columns: 1fr;
  }
}
