/* SANIKA — Premium Design System */
:root {
  --teal-950: #042f2e;
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --teal-300: #5eead4;
  --teal-200: #99f6e4;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;

  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --white: #ffffff;
  --gold: #d4a853;
  --rose: #f43f5e;
  --success: #10b981;

  --gradient-brand: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-500) 50%, var(--teal-400) 100%);
  --gradient-hero: linear-gradient(135deg, var(--teal-950) 0%, var(--teal-900) 40%, var(--teal-800) 100%);
  --gradient-soft: linear-gradient(180deg, var(--teal-50) 0%, var(--white) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(240,253,250,0.6) 100%);
  --gradient-page: linear-gradient(165deg, #f8fafc 0%, #f0fdfa 28%, #fafcfd 52%, #ecfdf5 78%, #f8fafc 100%);

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 24px 64px rgba(13, 148, 136, 0.15);
  --shadow-glow: 0 0 40px rgba(45, 212, 191, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --header-h: 96px;
  --container: 1280px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-800);
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse 90% 55% at 8% -5%, rgba(153, 246, 228, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 15%, rgba(204, 251, 241, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(240, 253, 250, 0.35) 0%, transparent 55%),
    var(--gradient-page);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-header p {
  margin-top: 1rem;
  color: var(--slate-500);
  font-size: 1.0625rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
  background: var(--white);
  color: var(--teal-700);
  border: 1.5px solid var(--teal-200);
}

.btn-secondary:hover {
  border-color: var(--teal-400);
  background: var(--teal-50);
}

.btn-ghost {
  color: var(--slate-700);
  padding: 0.625rem 1rem;
}

.btn-ghost:hover { color: var(--teal-600); background: var(--teal-50); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
  text-decoration: none;
}

.btn-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-icon:hover {
  border-color: var(--teal-400);
  color: var(--teal-600);
  box-shadow: var(--shadow-sm);
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: all 0.35s var(--ease);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-light,
.logo-dark {
  height: 74px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-light { display: none; }

.header:not(.scrolled) .logo-light { display: block; }
.header:not(.scrolled) .logo-dark { display: none; }

.header.scrolled .logo-light { display: none; }
.header.scrolled .logo-dark { display: block; }

.logo-text {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav a {
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: var(--radius-full);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.nav a:hover, .nav a.active {
  color: var(--teal-700);
  background: var(--teal-50);
}

.header-search {
  flex: 1;
  max-width: 320px;
  min-width: 140px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.65rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-full);
  font: inherit;
  font-size: 0.875rem;
  background: var(--slate-50);
  transition: all 0.25s var(--ease);
  outline: none;
}

.header-search input:focus {
  border-color: var(--teal-400);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}

.header-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--slate-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-btn svg {
  margin: 0;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--slate-100);
  border-radius: var(--radius-full);
}

.lang-switch button {
  padding: 0.4rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-500);
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--white);
  color: var(--teal-700);
  box-shadow: var(--shadow-xs);
}

/* Header on dark hero (transparent, not scrolled) */
.header:not(.scrolled) .nav a {
  color: rgba(255, 255, 255, 0.88);
}

.header:not(.scrolled) .nav a:hover,
.header:not(.scrolled) .nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.header:not(.scrolled) .header-search input {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.header:not(.scrolled) .header-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.header:not(.scrolled) .header-search svg {
  color: rgba(255, 255, 255, 0.65);
}

.header:not(.scrolled) .lang-switch {
  background: rgba(255, 255, 255, 0.12);
}

.header:not(.scrolled) .lang-switch button {
  color: rgba(255, 255, 255, 0.72);
}

.header:not(.scrolled) .lang-switch button.active {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  box-shadow: none;
}

.header:not(.scrolled) .btn-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.header:not(.scrolled) .btn-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.menu-toggle { display: none; }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--teal-500);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--teal-400);
  bottom: -100px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 4rem;
}

.hero-text .eyebrow { color: var(--teal-300); }
.hero-text .eyebrow::before { background: var(--teal-400); }

.hero-text h1 {
  color: var(--white);
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-text h1 span { color: var(--teal-300); }

.hero-text p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(45, 212, 191, 0.2);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-700);
}

.hero-float-card {
  position: absolute;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.hero-float-card-1 { bottom: 2rem; left: -2rem; }
.hero-float-card-2 { top: 3rem; right: -1.5rem; animation-delay: -3s; }

.hero-float-card strong {
  display: block;
  font-size: 1.125rem;
  color: var(--slate-900);
}

.hero-float-card span {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* ─── Trust Bar ─── */
.trust-bar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.12);
  padding: 1.25rem 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
}

.trust-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  color: var(--teal-600);
}

/* ─── Sections ─── */
section { padding: 5rem 0; }

.section-categories { background: transparent; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 1rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  group: category;
}

.category-card:first-child {
  grid-row: span 2;
  grid-column: span 2;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.category-card:hover img { transform: scale(1.08); }

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,47,46,0.85) 0%, rgba(4,47,46,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.3s;
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(13,148,136,0.9) 0%, rgba(13,148,136,0.3) 60%, transparent 100%);
}

.category-overlay h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.category-overlay span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}

.category-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: var(--white);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.3s var(--ease);
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ─── Products ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(45, 212, 191, 0.12);
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

.product-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--slate-50);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-image img { transform: scale(1.06); }

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.badge {
  padding: 0.3125rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge-new { background: var(--gradient-brand); color: var(--white); }
.badge-sale { background: var(--rose); color: var(--white); }
.badge-hit { background: var(--gold); color: var(--white); }

.product-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.3s var(--ease);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  color: var(--slate-600);
  transition: all 0.2s;
}

.product-action-btn:hover {
  color: var(--teal-600);
  transform: scale(1.1);
}

.product-action-btn.liked { color: var(--rose); }

.product-quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(255,255,255,0.98), transparent);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card:hover .product-quick-add { transform: translateY(0); }

.product-info { padding: 1.25rem; }

.product-brand {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.375rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.stars { color: var(--gold); font-size: 0.875rem; letter-spacing: -1px; }
.rating-count { font-size: 0.8125rem; color: var(--slate-400); }

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
}

.price-old {
  font-size: 0.9375rem;
  color: var(--slate-400);
  text-decoration: line-through;
}

/* ─── Promo Banner ─── */
.promo-banner {
  background: var(--gradient-hero);
  border-radius: var(--radius-2xl);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.promo-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--teal-500);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  top: -200px;
  right: -100px;
}

.promo-content { position: relative; z-index: 1; }
.promo-content .eyebrow { color: var(--teal-300); }
.promo-content .eyebrow::before { background: var(--teal-400); }

.promo-content h2 {
  color: var(--white);
  margin: 1rem 0;
}

.promo-content p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
}

.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.promo-code code {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal-300);
  letter-spacing: 0.1em;
}

.promo-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.promo-icon {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-300);
}

.auth-header-btn--active {
  color: var(--teal-500);
  background: rgba(13, 148, 136, 0.1);
}

.page-hero-sm {
  padding: 6rem 0 2rem;
}

.auth-page {
  max-width: 480px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: var(--white);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-form input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font: inherit;
}

.auth-form.hidden,
.auth-forms.hidden {
  display: none;
}

.auth-alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.auth-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.auth-user-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.auth-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
}

.auth-muted {
  color: var(--slate-500);
  font-size: 0.875rem;
  margin: 0.15rem 0 0;
}

.auth-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-forgot-link {
  display: inline-block;
  margin-top: -0.25rem;
  font-size: 0.875rem;
  color: var(--teal-600);
  text-decoration: none;
  font-weight: 500;
}

.auth-forgot-link:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

.auth-back-link {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.auth-back-link:hover { color: var(--teal-600); }

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-xl);
  transition: all 0.3s var(--ease);
}

.feature-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  border-radius: var(--radius-lg);
  color: var(--teal-600);
  margin-bottom: 1.25rem;
}

.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9375rem; color: var(--slate-500); }

/* ─── Newsletter ─── */
.newsletter {
  background: var(--teal-50);
  border-radius: var(--radius-2xl);
  padding: 4rem;
  text-align: center;
}

.newsletter h2 { margin-bottom: 0.75rem; }
.newsletter p { color: var(--slate-500); margin-bottom: 2rem; }

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin-inline: auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid var(--teal-200);
  border-radius: var(--radius-full);
  font: inherit;
  outline: none;
  background: var(--white);
}

.newsletter-form input:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}

/* ─── Footer ─── */
.footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--slate-800);
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-800);
  border-radius: var(--radius-full);
  color: var(--slate-400);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--teal-600);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col a {
  font-size: 0.9375rem;
  color: var(--slate-400);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--teal-400); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.payment-methods {
  display: flex;
  gap: 0.75rem;
}

.payment-badge {
  padding: 0.375rem 0.75rem;
  background: var(--slate-800);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
}

/* ─── Catalog Page ─── */
.page-hero {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
  background: transparent;
}

.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--slate-500); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
  padding: 0.5rem 0.85rem;
  width: fit-content;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(45, 212, 191, 0.15);
}

.breadcrumb a:hover { color: var(--teal-600); }
.breadcrumb span { color: var(--slate-300); }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding-bottom: 5rem;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  align-self: start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-xl);
}

.filters h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
}

.filter-group { margin-bottom: 1.5rem; }

.filter-group h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.filter-options { display: flex; flex-direction: column; gap: 0.5rem; }

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate-500);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
  cursor: pointer;
}

.filter-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal-600);
}

.price-range-filter { padding: 0.25rem 0; }
.price-range-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.75rem;
}
.price-range-sliders { display: flex; flex-direction: column; gap: 0.5rem; }
.price-range-sliders input[type="range"] {
  width: 100%;
  accent-color: var(--teal-600);
  cursor: pointer;
}

.products-grid.products-list {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.products-grid.products-list .product-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: stretch;
}

.products-grid.products-list .product-image {
  aspect-ratio: 1;
  min-height: 140px;
}

.products-grid.products-list .product-quick-add,
.products-grid.products-list .product-actions {
  display: none;
}

@media (max-width: 600px) {
  .products-grid.products-list .product-card {
    grid-template-columns: 100px 1fr;
  }
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-count { font-size: 0.9375rem; color: var(--slate-500); }
.catalog-count strong { color: var(--slate-900); }

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.catalog-sort select {
  padding: 0.625rem 2rem 0.625rem 1rem;
  border: 1. solid var(--slate-200);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.875rem;
  background: var(--white);
  cursor: pointer;
  outline: none;
}

.view-toggle {
  display: flex;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-toggle button {
  padding: 0.625rem 0.875rem;
  color: var(--slate-400);
  transition: all 0.2s;
}

.view-toggle button.active {
  background: var(--teal-50);
  color: var(--teal-700);
}

/* ─── Product Page ─── */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-block: 1rem 5rem;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  border: 2px solid rgba(45, 212, 191, 0.35);
  box-shadow: var(--shadow-md), 0 0 0 6px rgba(240, 253, 250, 0.5);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
}

.gallery-thumb.active, .gallery-thumb:hover {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.product-detail .product-brand {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.product-detail .product-code {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin: -0.25rem 0 1rem;
  font-weight: 500;
}

.product-detail .product-category {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1rem;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.product-detail h1 {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  line-height: 1.35;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.product-detail .product-rating { margin-bottom: 1.5rem; }

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.product-detail-price .price-current {
  font-size: 2rem;
  color: var(--white);
}

.product-detail-price .price-old {
  color: rgba(255, 255, 255, 0.72);
}

.product-description {
  color: var(--slate-600);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.product-options { margin-bottom: 2rem; }

.option-group { margin-bottom: 1.25rem; }

.option-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--teal-800);
}

.option-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.option-btn {
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.option-btn:hover { border-color: var(--teal-400); }
.option-btn.active {
  border-color: var(--teal-600);
  background: var(--teal-50);
  color: var(--teal-700);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: fit-content;
}

.quantity-selector button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--slate-600);
  transition: background 0.2s;
}

.quantity-selector button:hover { background: var(--slate-50); }

.quantity-selector span {
  width: 48px;
  text-align: center;
  font-weight: 600;
  border-inline: 1.5px solid var(--slate-200);
  line-height: 44px;
}

.product-actions-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-actions-row .btn-primary { flex: 1; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  border: 1.5px solid #25d366;
  flex: 1;
  text-decoration: none;
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}

.product-actions-row .btn-whatsapp { flex: 1; }

.product-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.95) 0%, rgba(204, 251, 241, 0.35) 100%);
  border: 1.5px solid rgba(45, 212, 191, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.section-related {
  padding-top: 0;
  background: transparent;
}

.meta-item {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--slate-600);
}

.meta-item svg {
  display: block;
  margin: 0 auto 0.5rem;
  color: var(--teal-600);
}

.meta-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-900);
  margin-bottom: 0.125rem;
}

/* ─── Cart Page ─── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding-bottom: 5rem;
}

.cart-items {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cart-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--slate-50);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 1rem;
  padding: 1.5rem;
  align-items: center;
  border-top: 1px solid var(--slate-100);
}

.cart-product {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cart-product img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.cart-product h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.cart-product span { font-size: 0.8125rem; color: var(--slate-500); }

.cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-xl);
  height: fit-content;
}

.cart-summary h3 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--slate-600);
}

.summary-row.total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
}

.cart-summary .btn-primary {
  width: 100%;
  margin-top: 1.5rem;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-cart svg {
  width: 80px;
  height: 80px;
  color: var(--slate-300);
  margin: 0 auto 1.5rem;
}

.empty-cart h2 { margin-bottom: 0.5rem; }
.empty-cart p { color: var(--slate-500); margin-bottom: 1.5rem; }

.remove-btn {
  color: var(--slate-400);
  transition: color 0.2s;
}

.remove-btn:hover { color: var(--rose); }

/* ─── Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--slate-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s var(--ease-bounce);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-600);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.toast-cart {
  flex-wrap: wrap;
  max-width: min(420px, calc(100vw - 2rem));
}

.toast-message { flex: 1; min-width: 0; }

.toast-cart-btn {
  white-space: nowrap;
  padding: 0.5rem 1rem !important;
  font-size: 0.8125rem !important;
}

/* ─── Cookie banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
  padding: 1rem 0;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate-600);
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: var(--teal-600);
  font-weight: 600;
}

body.has-cookie-banner { padding-bottom: 5rem; }

/* ─── Legal pages ─── */
.legal-content {
  max-width: 720px;
  padding-bottom: 4rem;
}

.legal-content section {
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--slate-600);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ─── Mobile Nav ─── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--white);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}

.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-nav-links { display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-nav-links a {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.mobile-nav-links a:hover { background: var(--teal-50); color: var(--teal-700); }

.mobile-lang-switch {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-100);
}

.mobile-lang-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.lang-switch-mobile {
  display: flex !important;
  gap: 0.25rem;
}

.lang-switch-mobile button {
  flex: 1;
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  color: var(--slate-600);
  transition: all 0.2s;
}

.lang-switch-mobile button.active {
  background: var(--teal-600);
  color: var(--white);
}

.cart-cell { display: contents; }

/* ─── Checkout Modal ─── */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.checkout-modal.open { opacity: 1; visibility: visible; }

.checkout-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.checkout-modal-panel {
  position: relative;
  width: min(100%, 440px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.checkout-modal-panel h2 { margin-bottom: 1.25rem; font-size: 1.375rem; }

.checkout-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--slate-500);
  transition: background 0.2s;
}

.checkout-modal-close:hover { background: var(--slate-100); }

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.checkout-form input,
.checkout-form textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .logo-light,
  .logo-dark { height: 64px; }

  .nav a {
    padding: 0.5rem 0.7rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .category-card:first-child { grid-row: span 1; grid-column: span 2; }

  .promo-banner { grid-template-columns: 1fr; text-align: center; }
  .promo-visual { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }

  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 768px) {
  .nav, .header-search, .lang-switch { display: none; }
  .menu-toggle { display: flex; }

  .products-grid:not(.products-list) {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .categories-grid { grid-template-columns: 1fr; }
  .category-card:first-child { grid-column: span 1; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .cart-header { display: none; }
  .cart-item {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    padding: 1rem;
    position: relative;
  }

  .cart-product {
    grid-column: 1 / -1;
  }

  .cart-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.875rem;
  }

  .cart-cell::before {
    content: attr(data-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .cart-cell-qty { grid-column: 1; }
  .cart-cell-sum { grid-column: 1; }
  .cart-item .remove-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .cart-summary {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: 1rem;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .toast-cart {
    flex-direction: column;
    align-items: stretch;
  }

  .toast-cart .toast-icon { align-self: center; }

  .toast-cart-btn {
    width: 100%;
    text-align: center;
  }

  body.has-cookie-banner .toast { bottom: 6rem; }

  .newsletter-form { flex-direction: column; }
  .product-meta { grid-template-columns: 1fr; }
  .product-actions-row { flex-direction: column; }

  .product-card .product-info h3 {
    font-size: 0.8125rem;
  }

  .product-card .price-current {
    font-size: 0.9375rem;
  }

  .page-hero h1 { font-size: 1.75rem; }
}
