/* ============================================================
   LUXE STORE — Design System
   Premium Minimalist E-Commerce
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --color-bg: #FAFAFA;
  --color-bg-pure: #FFFFFF;
  --color-bg-soft: #F5F5F7;
  --color-bg-card: #FFFFFF;
  --color-text: #1D1D1F;
  --color-text-secondary: #6E6E73;
  --color-text-tertiary: #86868B;
  --color-accent: #C8A96E;
  --color-accent-hover: #B8953E;
  --color-accent-light: rgba(200, 169, 110, 0.10);
  --color-border: #E5E5EA;
  --color-border-light: #F0F0F5;
  --color-success: #30D158;
  --color-danger: #FF3B30;
  --color-badge: #FF3B30;
  --color-overlay: rgba(0, 0, 0, 0.45);
  --color-shadow: rgba(0, 0, 0, 0.06);
  --color-shadow-md: rgba(0, 0, 0, 0.10);
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE57;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1200px;
  --navbar-height: 64px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Animations ── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

@keyframes toastIn {
  from {
    transform: translateY(-100%) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  to {
    transform: translateY(-100%) scale(0.9);
    opacity: 0;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-stagger>* {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.animate-stagger>*:nth-child(1) {
  animation-delay: 0.05s;
}

.animate-stagger>*:nth-child(2) {
  animation-delay: 0.10s;
}

.animate-stagger>*:nth-child(3) {
  animation-delay: 0.15s;
}

.animate-stagger>*:nth-child(4) {
  animation-delay: 0.20s;
}

.animate-stagger>*:nth-child(5) {
  animation-delay: 0.25s;
}

.animate-stagger>*:nth-child(6) {
  animation-delay: 0.30s;
}

.animate-stagger>*:nth-child(7) {
  animation-delay: 0.35s;
}

.animate-stagger>*:nth-child(8) {
  animation-delay: 0.40s;
}

.animate-stagger>*:nth-child(9) {
  animation-delay: 0.45s;
}

.animate-stagger>*:nth-child(10) {
  animation-delay: 0.50s;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: 0 1px 12px var(--color-shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-lg);
}

.navbar-logo {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-text);
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.navbar-logo:hover {
  opacity: 0.7;
}

.navbar-logo span {
  color: var(--color-accent);
}

/* Search Bar */
.search-container {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  color: var(--color-text-tertiary);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 var(--sp-md) 0 42px;
  background: var(--color-bg-soft);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--color-text);
  transition: all var(--transition-base);
  outline: none;
}

.search-input::placeholder {
  color: var(--color-text-tertiary);
}

.search-input:focus {
  background: var(--color-bg-pure);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-bg-pure);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px var(--color-shadow-md), 0 0 0 1px var(--color-border-light);
  max-height: 360px;
  overflow-y: auto;
  z-index: 100;
  animation: scaleIn 0.2s ease;
}

.search-results:empty {
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--color-border-light);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--color-bg-soft);
}

.search-result-item img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  font-size: var(--fs-xs);
  color: var(--color-accent);
  font-weight: 600;
}

.search-no-results {
  padding: var(--sp-xl);
  text-align: center;
  color: var(--color-text-tertiary);
  font-size: var(--fs-sm);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.nav-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background: var(--color-bg-soft);
}

.nav-btn svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-badge);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge.bounce {
  animation: bounce 0.3s ease;
}

/* ── Main Content ── */
main {
  padding-top: var(--navbar-height);
  min-height: 100vh;
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.section-header h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--sp-sm);
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: var(--fs-base);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Hero Banner ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1D1D1F 0%, #2C2C2E 50%, #3A3A3C 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: var(--sp-3xl);
}

.hero-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  padding: var(--sp-3xl) 0;
}

.hero-slide-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.hero-text {
  flex: 1;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  background: var(--color-accent);
  color: white;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-lg);
}

.hero-text h1 {
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: var(--sp-md);
}

.hero-text p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-xl);
  max-width: 420px;
  line-height: 1.5;
}

.hero-image {
  flex: 0 0 340px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: var(--sp-xl);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-dot.active {
  width: 24px;
  background: var(--color-accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text);
  color: white;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-accent {
  background: var(--color-accent);
  color: white;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 169, 110, 0.3);
}

.btn svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-shrink: 0;
}

.product-actions .btn svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text);
  background: var(--color-bg-soft);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: white;
  font-size: var(--fs-md);
  padding: 16px 32px;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 8px 18px;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--fs-md);
}

.btn-full {
  width: 100%;
}

/* ── Category Circles ── */
.categories-section {
  padding: var(--sp-2xl) 0;
}

.categories-grid {
  display: flex;
  justify-content: center;
  gap: var(--sp-2xl);
  flex-wrap: wrap;
}

.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  cursor: pointer;
  transition: transform var(--transition-base);
}

.category-circle:hover {
  transform: translateY(-4px);
}

.category-circle-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-border-light);
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: all var(--transition-base);
}

.category-circle:hover .category-circle-img {
  border-color: var(--color-accent);
  box-shadow: 0 8px 30px var(--color-shadow-md);
}

.category-circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-circle:hover .category-circle-img img {
  transform: scale(1.08);
}

.category-circle-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Product Cards ── */
.products-section {
  padding: var(--sp-xl) 0 var(--sp-3xl);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-lg);
}

.product-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 6px var(--color-shadow);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--color-shadow-md);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-badges {
  position: absolute;
  top: var(--sp-md);
  left: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.badge-new {
  background: var(--color-text);
  color: white;
}

.badge-bestseller {
  background: var(--color-accent);
  color: white;
}

.badge-exclusive {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.badge-popular {
  background: var(--color-success);
  color: white;
}

.badge-out-of-stock {
  background: var(--color-danger);
  color: white;
}

.product-card-body {
  padding: var(--sp-md) var(--sp-md) var(--sp-lg);
}

.product-card-category {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  margin-bottom: var(--sp-xs);
}

.product-card-name {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
}

.product-card-price span {
  font-size: var(--fs-sm);
  color: var(--color-text-tertiary);
  font-weight: 400;
}

/* ── Product Detail ── */
.product-detail {
  padding: var(--sp-xl) 0 var(--sp-3xl);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--navbar-height) + var(--sp-xl));
}

.product-gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-soft);
  margin-bottom: var(--sp-md);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: var(--sp-md) 0;
}

.product-info-category {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  margin-bottom: var(--sp-sm);
}

.product-info h1 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: var(--sp-md);
  line-height: 1.15;
}

.product-info-price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--sp-lg);
}

.product-info-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
  font-size: var(--fs-base);
}

.product-stock {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
  font-size: var(--fs-sm);
}

.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

.stock-dot.low {
  background: #FF9500;
}

.stock-dot.out {
  background: var(--color-danger);
}

/* Variant Selectors */
.variant-selector {
  margin-bottom: var(--sp-xl);
}

.variant-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.variant-label span {
  font-weight: 400;
  color: var(--color-text-secondary);
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.variant-option {
  padding: 10px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--color-bg-pure);
}

.variant-option:hover {
  border-color: var(--color-text);
}

.variant-option.selected {
  border-color: var(--color-text);
  background: var(--color-text);
  color: white;
}

/* Quantity */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-lg);
  font-weight: 600;
  transition: all var(--transition-fast);
  background: var(--color-bg-pure);
}

.quantity-btn:hover {
  border-color: var(--color-text);
  background: var(--color-bg-soft);
}

.quantity-value {
  width: 48px;
  text-align: center;
  font-size: var(--fs-lg);
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: var(--sp-md);
}

.product-actions .btn {
  flex: 1;
}

/* ── Category Page ── */
.category-hero {
  position: relative;
  height: 280px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--sp-2xl);
}

.category-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1D1D1F, #3A3A3C);
}

.category-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.category-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: var(--sp-lg);
}

.category-hero-content h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: var(--sp-sm);
}

.category-hero-content p {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
}

/* ── Cart Drawer ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--color-bg-pure);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg);
  border-bottom: 1px solid var(--color-border-light);
}

.cart-drawer-header h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
}

.cart-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.cart-close-btn:hover {
  background: var(--color-bg-soft);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-md);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-tertiary);
  text-align: center;
  gap: var(--sp-md);
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  opacity: 0.3;
}

.cart-empty p {
  font-size: var(--fs-base);
}

/* Cart Items */
.cart-item {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-md);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  position: relative;
}

.cart-item+.cart-item {
  border-top: 1px solid var(--color-border-light);
}

.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-soft);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--sp-sm);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.cart-item-qty button:hover {
  background: var(--color-bg-soft);
  border-color: var(--color-text);
}

.cart-item-qty span {
  min-width: 24px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.cart-item-price {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.cart-item-remove {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-sm);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-tertiary);
  transition: all var(--transition-fast);
}

.cart-item-remove:hover {
  background: #FFE5E5;
  color: var(--color-danger);
}

.cart-item-remove svg {
  width: 14px;
  height: 14px;
}

/* Cart Footer */
.cart-drawer-footer {
  padding: var(--sp-lg);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-pure);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-lg);
}

.cart-total-label {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
}

.cart-total-value {
  font-size: var(--fs-xl);
  font-weight: 700;
}

/* ── Checkout Page ── */
.checkout-section {
  padding: var(--sp-2xl) 0 var(--sp-3xl);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--sp-2xl);
  align-items: start;
}

.checkout-form {
  background: var(--color-bg-pure);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  box-shadow: 0 1px 6px var(--color-shadow);
}

.checkout-form h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-xl);
}

.form-group {
  margin-bottom: var(--sp-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-sm);
  color: var(--color-text);
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--sp-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg-pure);
  outline: none;
  transition: all var(--transition-base);
}

.form-input::placeholder {
  color: var(--color-text-tertiary);
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-input.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--color-danger);
  margin-top: var(--sp-xs);
}

/* Checkout Summary */
.checkout-summary {
  background: var(--color-bg-pure);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  box-shadow: 0 1px 6px var(--color-shadow);
  position: sticky;
  top: calc(var(--navbar-height) + var(--sp-xl));
}

.checkout-summary h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-lg);
}

.checkout-summary-item {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.checkout-summary-item:last-of-type {
  border-bottom: none;
}

.checkout-summary-item img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.checkout-summary-details {
  flex: 1;
}

.checkout-summary-name {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.checkout-summary-variant {
  font-size: var(--fs-xs);
  color: var(--color-text-tertiary);
}

.checkout-summary-price {
  font-weight: 600;
  font-size: var(--fs-sm);
  text-align: right;
}

.checkout-totals {
  border-top: 2px solid var(--color-border);
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-sm);
  font-size: var(--fs-sm);
}

.checkout-total-row.final {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--color-border-light);
}

/* ── FAQ ── */
.faq-section {
  padding: var(--sp-2xl) 0 var(--sp-3xl);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.faq-item:hover {
  box-shadow: 0 2px 12px var(--color-shadow);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg);
  font-size: var(--fs-base);
  font-weight: 600;
  text-align: left;
  background: var(--color-bg-pure);
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--color-bg-soft);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-text-tertiary);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 var(--sp-lg) var(--sp-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--fs-sm);
}

/* ── Footer ── */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-3xl) 0 var(--sp-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-2xl);
}

.footer-brand h3 {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--sp-md);
}

.footer-brand h3 span {
  color: var(--color-accent);
}

.footer-brand p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--sp-md);
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  padding: var(--sp-xs) 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
}

.footer-social {
  display: flex;
  gap: var(--sp-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: white;
}

/* ── Toast Notification ── */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + var(--sp-md));
  right: var(--sp-lg);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--color-text);
  color: white;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.4s ease forwards;
  max-width: 320px;
}

.toast.exiting {
  animation: toastOut 0.3s ease forwards;
}

.toast svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-success);
}

/* ── Back Button ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--sp-lg);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.back-btn:hover {
  color: var(--color-text);
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Scroll to Top ── */
.scroll-top-btn {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  width: 44px;
  height: 44px;
  background: var(--color-text);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
  z-index: 900;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* ── Skeleton / Loading ── */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-soft) 25%, #e8e8ed 50%, var(--color-bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .product-gallery {
    position: static;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-3xl: 1.75rem;
    --fs-4xl: 2.25rem;
  }

  .hero-slide-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    height: 240px;
  }

  .categories-grid {
    gap: var(--sp-lg);
  }

  .category-circle-img {
    width: 90px;
    height: 90px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--sp-md);
    text-align: center;
  }

  .cart-drawer {
    width: 100vw;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-md);
  }

  .search-container {
    display: none;
  }

  .nav-search-mobile {
    display: flex !important;
  }

  .hero-slide {
    padding: var(--sp-2xl) 0;
  }

  .hero-text h1 {
    font-size: var(--fs-2xl);
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-sm);
  }

  .product-card-body {
    padding: var(--sp-sm) var(--sp-sm) var(--sp-md);
  }

  .product-card-name {
    font-size: var(--fs-sm);
  }

  .product-card-price {
    font-size: var(--fs-base);
  }

  .product-info h1 {
    font-size: var(--fs-2xl);
  }
}

/* ── Mobile Search (shown on small screens) ── */
.nav-search-mobile {
  display: none;
}

.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 1500;
  padding: var(--sp-lg);
  padding-top: calc(var(--navbar-height) + var(--sp-md));
  animation: fadeIn 0.2s ease;
}

.mobile-search-overlay .search-input {
  height: 48px;
  font-size: var(--fs-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
}

.mobile-search-close {
  position: absolute;
  top: var(--sp-lg);
  right: var(--sp-lg);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  z-index: 10;
}

/* ── Page Transition ── */
.page-content {
  animation: fadeInUp 0.4s ease;
}