/**
 * Ama Estetique - Main Stylesheet
 * ================================
 * Single source of truth for all site styles
 * Version: 3.0 - Unified E-commerce System
 */

/* ============================================================================
   1. CSS VARIABLES & DARK MODE
   ============================================================================ */

:root {
  --font-primary: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Brand */
  --color-brand: #d81b60;
  --color-brand-dark: #ad1457;
  --color-accent: #ff4081;
  --color-brand-10: rgba(216, 27, 96, 0.10);

  /* Neutrals - Light Mode (Default) */
  --color-white: #ffffff;
  --color-black: #111111;
  --color-text: #333333;
  --color-text-light: #777777;
  --color-text-muted: #999999;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-elevated: #ffffff;
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;
  --color-shadow: rgba(0, 0, 0, 0.06);

  /* Header */
  --header-height: 80px;
  --header-bg: #ffffff;
  --header-text: #111111;
  --header-border: #e5e5e5;
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Breakpoints */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;

  /* Typography Scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.75;

  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-base: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 var(--color-shadow);
  --shadow-md: 0 4px 6px -1px var(--color-shadow);
  --shadow-lg: 0 10px 15px -3px var(--color-shadow);
  --shadow-xl: 0 20px 25px -5px var(--color-shadow);
  --shadow-2xl: 0 25px 50px -12px var(--color-shadow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* Semantic Colors */
  --color-surface: #ffffff;
  --color-on-surface: #111111;
  --color-success: #2e7d32;
  --color-success-bg: #e8f5e9;
  --color-error: #c62828;
  --color-error-bg: #ffebee;
  --color-info: #1976d2;
  --color-info-bg: #e3f2fd;
  --color-warning: #f9a825;
  --color-topbar-bg: #fce4ec;
  --color-topbar-text: #880e4f;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #128c7e;
}

/* Dark Mode — MANUAL ONLY (no system preference to avoid conflicts with html.light/html.dark toggle) */
/* System dark mode removed — controlled exclusively by html.dark class */

/* Dark Mode - Manual Toggle */
html.dark {
  --color-white: #0a0a0a;
  --color-black: #f5f5f5;
  --color-text: #e0e0e0;
  --color-text-light: #a0a0a0;
  --color-text-muted: #707070;
  --color-bg: #0a0a0a;
  --color-bg-alt: #141414;
  --color-bg-elevated: #1a1a1a;
  --color-border: #2a2a2a;
  --color-border-light: #1f1f1f;
  --color-shadow: rgba(0, 0, 0, 0.3);
  --header-bg: #0a0a0a;
  --header-text: #f5f5f5;
  --header-border: #2a2a2a;
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

  /* Semantic - Dark */
  --color-surface: #1a1a1a;
  --color-on-surface: #f5f5f5;
  --color-success: #4caf50;
  --color-success-bg: #1b5e20;
  --color-error: #ef5350;
  --color-error-bg: #b71c1c;
  --color-info: #42a5f5;
  --color-info-bg: #0d47a1;
  --color-warning: #fdd835;
  --color-topbar-bg: #1a1a1a;
  --color-topbar-text: #f8bbd0;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #128c7e;
}

/* Light Mode - Manual Toggle */
html.light {
  --color-white: #ffffff;
  --color-black: #111111;
  --color-text: #333333;
  --color-text-light: #777777;
  --color-text-muted: #999999;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-elevated: #ffffff;
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;
  --color-shadow: rgba(0, 0, 0, 0.06);
  --header-bg: #ffffff;
  --header-text: #111111;
  --header-border: #e5e5e5;
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* ============================================================================
   2. RESET & BASE
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* font-size: 16px; -- disabled: let Tailwind v4 control base typography */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

body {
  font-family: var(--font-body);
  /* font-size, font-weight, line-height disabled: Tailwind v4 is source of truth */
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

/* Mobile typography - prevent iOS zoom, ensure readability */
@media (max-width: 768px) {
  .promo-hero {
    padding: 60px 0;
  }

  .promo-hero h1 {
    font-size: 2rem;
  }

  .promo-hero p {
    font-size: 1rem;
  }

  .shop-hero {
    padding: 60px 0;
  }

  .shop-hero h1 {
    font-size: 2rem;
  }

  .shop-hero p {
    font-size: 1rem;
  }

  .logo img {
    height: 50px;
    transform: scale(1);
    max-width: 200px;
  }

  input, textarea, select, button {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  h1 { font-size: var(--font-size-3xl); }
  h2 { font-size: var(--font-size-2xl); }
  h3 { font-size: var(--font-size-xl); }
  h4 { font-size: var(--font-size-lg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  /* font-size disabled per heading: Tailwind v4 utilities and component classes rule */
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-black);
  margin-top: 0;
  margin-bottom: var(--space-md);
}

/* Heading sizes disabled — legacy overrides caused disproportionate typography vs Tailwind v4 */
/* h1 { font-size: var(--font-size-5xl); } */
/* h2 { font-size: var(--font-size-4xl); } */
/* h3 { font-size: var(--font-size-3xl); } */
/* h4 { font-size: var(--font-size-2xl); } */
/* h5 { font-size: var(--font-size-xl); } */
/* h6 { font-size: var(--font-size-lg); } */

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-top: 0;
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

/* ============================================================================
   2.5. CONTAINER & LAYOUT
   ============================================================================ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1200px) {
  .container {
    padding: 0 32px;
  }
}

/* ============================================================================
   3. HEADER & NAVIGATION
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-xl);
  height: var(--header-height);
  position: relative;
}

.logo {
  justify-self: start;
  padding-left: var(--space-md);
  overflow: visible;
}

.logo img {
  display: block;
  height: 80px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  transform: scale(1.5);
  transform-origin: left center;
}

.main-nav {
  justify-self: center;
}

.main-nav {
  justify-self: center;
}

/* Submenu hover styles */
.has-submenu {
  position: relative;
}

.submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sub-arrow {
  font-size: 0.6rem;
  opacity: 0.5;
  transition: opacity .2s;
}

.has-submenu:hover .sub-arrow {
  opacity: 1;
}

.sub-menu {
  position: absolute;
  left: 100%;
  top: -10px;
  background: var(--color-bg-elevated);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 12px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s;
  transform: translateX(-10px);
  z-index: 200;
  border: 1px solid var(--color-border);
}

.has-submenu:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sub-menu a {
  display: block;
  padding: 6px 16px;
  font-size: 0.75rem;
  color: var(--color-text);
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.sub-menu a:hover {
  background: var(--color-brand-10);
  color: var(--color-brand);
}

/* Mobile: hide submenus */
@media (max-width: 991px) {
  .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  
  .has-submenu.open .sub-menu {
    display: block;
  }
  
  .sub-arrow {
    transform: rotate(90deg);
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  padding-right: var(--space-xl);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-list a {
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-black);
  padding: 8px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  transition: width .3s;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* Mega Menu */
.has-mega {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: -200px;
  width: 800px;
  background: var(--color-bg-elevated);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border-radius: 0 0 8px 8px;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s;
  transform: translateY(10px);
  z-index: 100;
}

.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.mega-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  color: var(--color-brand);
}

.mega-col a {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-light);
  padding: 4px 0;
  text-transform: none;
  font-weight: 400;
}

.mega-col a:hover {
  color: var(--color-brand);
}

/* Header Actions - base styles (grid positioning handled in .header-inner) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-right: var(--space-xl);
}

.action-btn {
  position: relative;
  font-size: 1.15rem;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-black);
  transition: color .2s;
  background: none;
  border: none;
  cursor: pointer;
}

.action-btn:hover {
  color: var(--color-brand);
}

/* Search Overlay */
.search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-bg-elevated);
  padding: var(--space-lg) 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

/* Mobile search - full screen overlay */
@media (max-width: 768px) {
  .search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: var(--z-modal);
    padding: var(--space-xl);
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .search-overlay .container {
    flex-direction: column;
    width: 100%;
    padding-top: calc(var(--header-height) + var(--space-lg));
  }

  .search-overlay input {
    height: 56px;
    font-size: 1.1rem;
    padding: var(--space-md) var(--space-lg);
  }

  .search-overlay #searchClose {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
  }
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-overlay .container {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.search-overlay input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 12px var(--space-md);
  font-size: 1rem;
  min-height: 48px;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--color-black);
  transition: transform .3s, opacity .3s;
  width: 22px;
}

/* Mobile menu - no overlay needed, handled by JS click-outside */

/* Hamburger to X animation */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: min(320px, 85vw);
    height: calc(100dvh - var(--header-height));
    background: var(--header-bg);
    border-right: 1px solid var(--color-border);
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
    z-index: 1010;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.active {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  }

  .nav-list {
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
  }

  .nav-list a {
    font-size: 1rem;
    padding: var(--space-sm) 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mega-menu {
    padding: var(--space-md) 0;
  }

  .mega-col a {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .mega-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: var(--space-md);
    display: none;
  }

  .has-mega.open .mega-menu {
    display: block;
  }

  .has-submenu.open .sub-menu {
    display: block;
  }

  .mega-inner {
    grid-template-columns: 1fr;
  }

  .mega-col h4 {
    margin-top: var(--space-md);
  }
}

/* ============================================================================
   5. SECTIONS & LAYOUT
   ============================================================================ */



/* Product Sections */
.products-new {
  background: var(--color-bg-alt);
}

.featured-products {
  background: var(--color-bg-alt);
}

.product-carousel {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-md);
  scrollbar-width: none;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}






@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================================
   6. PRODUCT GRID & CARDS
   ============================================================================ */

/* Restored from BACKUP-2026-06-12-v1.css: ProductCard.tsx depends on these legacy styles */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    font-size: 0.85rem;
  }

  .product-info {
    padding: var(--space-sm);
  }

  .product-name {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .product-price {
    font-size: 0.9rem;
  }

  .product-cat {
    font-size: 0.65rem;
  }

  .product-img {
    aspect-ratio: 1;
  }

  .product-actions button {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .product-card .product-actions {
    bottom: 60px;
    gap: 6px;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .product-card {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--color-bg-elevated);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform .3s, box-shadow .3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  background: var(--color-bg-alt);
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-actions-mobile {
  display: none;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.product-actions-mobile .add-to-cart-btn,
.product-actions-mobile button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  border: none;
  cursor: pointer;
  padding: 0;
}

.product-actions-mobile .add-to-cart-btn svg,
.product-actions-mobile button svg {
  width: 16px;
  height: 16px;
}

.product-img img[src=""], .product-img img:not([src]) {
  background: var(--color-bg-alt);
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.product-badges .badge-tag {
  background: var(--color-brand);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}

/* Product card actions - hover overlay for catalog grid only */
.product-card .product-actions {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 2;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-actions button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 1rem;
  transition: background .2s, color .2s;
}

.product-actions button:hover {
  background: var(--color-brand);
  color: var(--color-white);
}

/* Mobile: dense compact cards */
@media (max-width: 768px) {
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .product-card .product-img {
    aspect-ratio: auto;
    height: 150px;
    min-height: 150px;
    max-height: 150px;
  }

  .product-card .product-img img {
    object-fit: contain;
    padding: 4px;
  }

  .product-card .product-info {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .product-card .product-name {
    font-size: 0.78rem;
    line-height: 1.25;
    text-transform: none !important;
    -webkit-line-clamp: 2;
    margin-bottom: 2px;
  }

  .product-card .product-cat {
    font-size: 0.6rem;
    margin-bottom: 4px;
  }

  .product-card .product-price-row {
    margin-top: auto;
  }

  .product-card .product-price {
    font-size: 0.85rem;
  }

  .product-card .product-actions {
    display: none !important;
  }

  .product-card .product-actions-mobile {
    display: flex;
  }

  .product-card .product-badges .badge-tag {
    font-size: 0.55rem;
    padding: 2px 5px;
  }

  .product-card:hover {
    transform: none;
  }
}

@media (max-width: 576px) {
  .product-grid {
    gap: 8px !important;
  }

  .product-card .product-img {
    height: 140px;
    min-height: 140px;
    max-height: 140px;
  }

  .product-card .product-info {
    padding: 6px;
  }

  .product-card .product-name {
    font-size: 0.72rem;
  }

  .product-card .product-cat {
    font-size: 0.55rem;
  }

  .product-card .product-price {
    font-size: 0.8rem;
  }

  .product-actions-mobile .add-to-cart-btn,
  .product-actions-mobile button {
    width: 28px;
    height: 28px;
  }

  .product-actions-mobile .add-to-cart-btn svg,
  .product-actions-mobile button svg {
    width: 14px;
    height: 14px;
  }
}

.product-info {
  padding: var(--space-md);
}

.product-info .product-name {
  order: 1;
}

.product-info .product-cat {
  order: 2;
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.product-info .product-price {
  order: 3;
}

.product-price .whatsapp-price {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-success, #2e7d32);
  background: rgba(46, 125, 50, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(46, 125, 50, 0.25);
}

html.dark .product-price .whatsapp-price {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.3);
}

.product-card {
  cursor: pointer;
}

.product-name {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.product-card {
  cursor: pointer;
}

.product-name:hover {
  color: var(--color-brand);
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-brand);
}

.product-price .old-price {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-weight: 400;
  margin-left: var(--space-xs);
  font-size: 0.8rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.carousel-controls {
  gap: var(--space-lg);
}

.carousel-controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .carousel-controls button {
    width: 44px;
    height: 44px;
  }
}

.carousel-controls button:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-white);
}

/* ============================================================================
   7. SHOP PAGE STYLES
   ============================================================================ */

/* Shop Hero */
.shop-hero {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
}

.shop-hero h1 {
  color: var(--color-white);
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.shop-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin: 0;
}

/* Shop Controls */
.shop-controls {
  background-color: var(--color-bg);
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-lg);
}

.controls-inner {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 100%;
}

/* Search box - not full width, balanced spacing */
.search-box {
  flex: 1;
  max-width: 480px;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
}

/* Sort box - margin, not flush to edges */
.sort-box {
  min-width: 180px;
}

.sort-box select {
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  background: var(--color-bg);
  cursor: pointer;
}

/* Filters Toggle Button (Mobile) */
.filters-toggle {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  min-height: 44px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filters-toggle:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.filters-toggle i::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Shop Layout with Sidebar - ALWAYS VISIBLE on desktop (ÔëÑ993px) */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  position: relative;
}

/* Sidebar Filters - visible card on desktop, NOT a hidden drawer */
.sidebar-filters {
  position: static;
  top: auto;
  align-self: start;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-right: 2px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-lg);
  height: fit-content;
  max-height: none;
  overflow-y: visible;
  z-index: 1;
}

/* Hide sidebar header on desktop (only visible on mobile drawer) */
.sidebar-filters .sidebar-header {
  display: none;
}

/* Hide overlay on desktop */
.sidebar-overlay {
  display: none !important;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-header h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: var(--space-sm);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.sidebar-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-black);
}

.sidebar-close:hover {
  color: var(--color-black);
}

/* Filter Sections */
.filter-section {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.filter-section:last-of-type {
  border-bottom: none;
}

.filter-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

/* Accordion toggle button for filter sections */
.filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  padding: var(--space-sm) 0;
}

.filter-toggle-btn .filter-toggle-icon {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.filter-toggle-btn.active .filter-toggle-icon {
  transform: rotate(180deg);
}

.filter-content.collapsed {
  display: none;
}

.filter-content.open {
  display: block;
  margin-top: var(--space-sm);
}

/* Category Tree */
.category-tree {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: var(--font-size-sm);
}

.category-item:hover {
  background: var(--color-bg-alt);
}

.category-item.active {
  background: var(--color-brand-10);
  color: var(--color-brand);
  font-weight: var(--font-weight-semibold);
}

.category-count {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  margin-left: var(--space-sm);
}

/* Hierarchical Category Tree Styles */
.category-parent {
  display: flex;
  flex-direction: column;
}

.category-item-parent {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.category-item-parent:hover {
  background: var(--color-bg-alt);
}

.category-item-parent.active {
  background: var(--color-brand-10);
  color: var(--color-brand);
  font-weight: var(--font-weight-semibold);
}

.category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.category-parent.expanded .category-toggle {
  transform: rotate(0deg);
}

.category-parent.collapsed .category-toggle {
  transform: rotate(-90deg);
}

.category-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-children {
  display: flex;
  flex-direction: column;
  margin-left: var(--space-md);
  padding-left: var(--space-sm);
  border-left: 1px solid var(--color-border-light);
}

.category-item-child {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.category-item-child:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.category-item-child.active {
  background: var(--color-brand-10);
  color: var(--color-brand);
  font-weight: var(--font-weight-semibold);
}

.category-prefix {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* Active Filter Header Display */
.active-filter-display {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-brand-10);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.active-filter-display .filter-path {
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand);
  font-size: var(--font-size-sm);
}

.active-filter-display .filter-count {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* Brand Checkboxes */
.brand-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 200px;
  overflow-y: auto;
}

.brand-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: var(--font-size-sm);
}

.brand-item:hover {
  background: var(--color-bg-alt);
}

.brand-item input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.brand-item label {
  flex: 1;
  margin: 0;
  cursor: pointer;
  color: var(--color-text);
}

.brand-count {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* Price Inputs */
.price-inputs {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.price-input-group {
  flex: 1;
}

.price-input-group label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.price-input-group input {
  width: 100%;
  padding: var(--space-sm);
  font-size: var(--font-size-sm);
}

#applyPriceFilter {
  margin-top: var(--space-sm);
}

/* Active Filters Pills */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  min-height: 32px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-brand-10);
  color: var(--color-brand);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.filter-pill button {
  background: none;
  border: none;
  color: var(--color-brand);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.filter-pill button:hover {
  opacity: 1;
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;  /* Just below sidebar (1000) */
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  pointer-events: none;  /* Don't block clicks when hidden */
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;  /* Block clicks when visible */
}

/* Clear Filters Button */
#clearFilters {
  margin-top: var(--space-md);
}

.search-box {
  flex: 1;
  min-width: 250px;
}

.search-box input {
  width: 100%;
}

.sort-box select {
  min-width: 180px;
  cursor: pointer;
}

/* Category Filter Pills */
.category-filter {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-lg);
}

.cat-btn {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cat-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.cat-btn.active {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-white);
}

.no-products {
  text-align: center;
  padding: var(--space-3xl) 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
}

.product-count {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

/* ============================================================================
   8. PRODUCT SINGLE PAGE
   ============================================================================ */

.product-single {
  padding: var(--space-3xl) 0;
}

.product-single-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 992px) {
  .product-single-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.product-single-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-bg-alt);
  aspect-ratio: 1;
  min-height: 300px;
  z-index: 1;
}

/* Support legacy .product-image class used in generated product pages */
.product-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-bg-alt);
  min-height: 300px;
  z-index: 1;
  margin-bottom: var(--space-md);
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .product-single-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
  }

  .product-image {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    z-index: 1;
    margin-bottom: var(--space-xl);
    flex-shrink: 0;
  }

  .product-image img {
    max-height: 50vh;
    object-fit: contain;
  }

  .product-info-block {
    width: 100%;
    z-index: 10;
    margin-top: 0;
    padding-top: var(--space-xl);
    background: var(--color-bg);
    border-top: 3px solid var(--color-brand);
    position: relative;
  }

  .product-actions {
    margin-top: var(--space-lg);
    position: relative;
    z-index: 10;
    background: var(--color-bg);
    padding: var(--space-md) 0;
  }

  /* Prevent whatsapp float from covering product image on mobile */
  .whatsapp-float {
    z-index: 50 !important;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
}

.product-single-image img,
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.product-single-image:hover img,
.product-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .product-info-block {
    position: relative;
    z-index: 2;
    margin-top: var(--space-xl);
  }

  .product-actions {
    margin-top: var(--space-lg);
    position: relative;
    z-index: 2;
  }
}

.product-info-block {
  padding: var(--space-md);
}

.product-info-block .sku {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--space-sm);
}

.product-info-block h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  color: var(--color-black);
}

.product-info-block .price {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand);
  margin-bottom: var(--space-xl);
}

.product-info-block .description {
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-base);
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
}

.product-meta-label {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.product-meta-value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
  font-size: var(--font-size-sm);
}

/* Override hardcoded inline colors in product pages */
.product-meta-value[style*="color"] {
  color: var(--color-success) !important;
}

.product-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 576px) {
  .product-actions {
    flex-direction: column;
  }

  .quantity-selector button {
    width: 44px;
    height: 44px;
  }

  .quantity-selector input {
    width: 50px;
    font-size: 1rem;
  }
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity-selector button {
  width: 48px;
  height: 48px;
  background-color: var(--color-bg-alt);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  color: var(--color-text);
}

.quantity-selector button:hover {
  background-color: var(--color-border);
}

.quantity-selector input {
  width: 60px;
  text-align: center;
  border: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

/* Breadcrumb */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:not(:first-child)::before,
.breadcrumb span::before {
  content: "›";
  margin: 0 var(--space-sm);
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-brand);
}

.breadcrumb span {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

/* Related Products */
.related-products {
  margin-top: var(--space-3xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-border);
}

/* ============================================================================
   9. CART DRAWER
   ============================================================================ */

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-bg-elevated);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* Mobile cart drawer - full width on small screens */
@media (max-width: 576px) {
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
  }

  .cart-header {
    padding: var(--space-md) var(--space-lg);
  }

  .cart-body {
    padding: var(--space-sm);
  }

  .cart-footer {
    padding: var(--space-lg);
  }
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.cart-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-black);
}

.cart-close {
  font-size: 1.5rem;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.cart-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-black);
}

.cart-close:hover {
  color: var(--color-black);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.cart-empty {
  text-align: center;
  color: var(--color-text-light);
  padding: var(--space-2xl) 0;
}

.cart-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--color-bg-alt);
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .cart-item img {
    width: 60px;
    height: 60px;
  }

  .cart-item-info h4 {
    font-size: 0.9rem;
  }

  .cart-item-remove {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-item-info .price {
  font-size: 0.8rem;
  color: var(--color-brand);
  font-weight: 700;
}

.cart-item-remove {
  font-size: 0.85rem;
  color: var(--color-text-light);
  cursor: pointer;
}

.cart-item-remove:hover {
  color: var(--color-error);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
  pointer-events: none;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* ============================================================================
    10. FOOTER
    ============================================================================ */

.site-footer {
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  padding-top: var(--space-3xl);
}

.footer-top {
  padding-bottom: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-col {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
  padding-right: var(--space-md);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: color .2s;
}

.footer-col ul li a:hover {
  color: var(--color-brand);
}

/* Footer Social - not cramped against left edge */
.footer-social {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-left: var(--space-xs);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
}

.social-link:hover {
  background: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Pagination */
.pagination-container {
  margin-top: 48px;
  margin-bottom: 64px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background: var(--color-brand-10);
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.pagination-btn.active {
  background: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: var(--color-text-light);
  padding: 0 var(--space-sm);
}

/* Footer Bottom - more breathing room */
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-bottom img {
  height: auto;
  max-width: 280px;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-col {
    padding-bottom: var(--space-md);
  }

  .footer-col:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
  }

  .footer-col h4 {
    margin-bottom: var(--space-md);
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .footer-bottom img {
    margin-top: var(--space-md);
    max-width: 100%;
    height: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .site-footer {
    padding-top: var(--space-2xl);
  }
}

/* ============================================================================
   11. BUTTONS & FORMS
   ============================================================================ */


.btn-block {
  width: 100%;
}

/* Add to cart button - brand color for Amaestetique */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  background-color: var(--color-brand);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 48px;
  white-space: nowrap;
}

.btn-add-cart:hover {
  background-color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* WhatsApp button - general style */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  background-color: var(--color-whatsapp);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 48px;
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
}

.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-xs);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

/* Ensure adequate touch targets for form controls */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  textarea,
  select {
    min-height: 48px;
    font-size: 16px;
  }
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-10);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

/* ============================================================================
   12. MODALS & OVERLAYS
   ============================================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  padding: var(--space-md);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--font-size-xl);
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* Quick View Modal */
.quickview-modal .modal-content {
  max-width: 900px;
}

.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .quickview-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .quickview-details h2 {
    font-size: var(--font-size-xl);
  }

  .quickview-price {
    font-size: var(--font-size-xl);
  }
}

.quickview-image {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

.quickview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quickview-details h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.quickview-price {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand);
  margin-bottom: var(--space-lg);
}

.quickview-description {
  color: var(--color-text);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-lg);
}

/* ============================================================================
    13. BLOG PAGE STYLES
    ============================================================================ */

.blog-hero {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
}

.blog-hero h1 {
  color: var(--color-white);
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}

.blog-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin: 0;
}

.blog-grid-page {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-3xl);
  margin-top: var(--space-2xl);
}

@media (max-width: 992px) {
  .blog-grid-page {
    grid-template-columns: 1fr;
  }
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .blog-list {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .blog-post h2 {
    font-size: var(--font-size-lg);
  }

  .blog-post-content {
    padding: var(--space-lg);
  }

  .blog-post-meta {
    font-size: 0.75rem;
  }
}

.blog-post {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.blog-post:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.blog-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.blog-post:hover .blog-img img {
  transform: scale(1.05);
}

.blog-post-content {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-post-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.blog-post-meta .cat {
  color: var(--color-brand);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}

.blog-post h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  color: var(--color-black);
  line-height: 1.3;
}

.blog-post p {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.read-more-link {
  color: var(--color-brand);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.read-more-link:hover {
  text-decoration: underline;
}

/* Blog Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
  height: fit-content;
}

@media (max-width: 992px) {
  .sidebar {
    position: static;
  }
}

.sidebar-widget {
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.sidebar-widget h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--color-black);
}

.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-list li {
  margin-bottom: var(--space-sm);
}

.cat-list a {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  display: flex;
  justify-content: space-between;
}

.cat-list a:hover {
  color: var(--color-brand);
}

.cat-list span {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* ============================================================================
   14. CONTACT PAGE STYLES
   ============================================================================ */

.contact-hero {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.contact-form-section {
  background: var(--color-bg-alt);
  padding: 64px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-black);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--color-bg-elevated);
  color: var(--color-text);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  border: 2px dashed var(--color-border);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
    min-height: 48px;
  }
}

/* ============================================================================
   15. SKELETON LOADING
   ============================================================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-alt) 25%,
    var(--color-border) 50%,
    var(--color-bg-alt) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-title {
  height: 24px;
  width: 80%;
  margin-bottom: var(--space-sm);
}

.skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: var(--space-xs);
}

.skeleton-image {
  height: 200px;
  width: 100%;
  margin-bottom: var(--space-md);
}

/* ============================================================================
   16. PAGINATION
   ============================================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.pagination-btn.active {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-white);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================================
   17. DARK MODE OVERRIDES
   ============================================================================ */

html.dark .product-card,
html.dark .blog-post,
html.dark .card {
  border-color: var(--color-border);
}

html.dark .modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

html.dark .cart-drawer {
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

html.dark .product-actions {
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

html.dark input,
html.dark textarea,
html.dark select {
  background-color: var(--color-bg-alt);
}

html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
  background-color: var(--color-bg-alt);
}

/* ============================================================================
   18. UTILITIES & ANIMATIONS
   ============================================================================ */

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display */
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

/* Flex Utilities */
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fade-in {
  animation: fadeIn var(--transition-base);
}

.slide-up {
  animation: slideUp var(--transition-slow);
}

.slide-down {
  animation: slideDown var(--transition-slow);
}

.pulse {
  animation: pulse 2s infinite;
}

/* ============================================================================
    19. WHATSAPP FLOATING BUTTON
    ============================================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  text-decoration: none;
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  background-color: var(--color-whatsapp-hover);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ============================================================================
    20. CART DRAWER ENHANCEMENTS
    ============================================================================ */

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-10);
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================================================================
    21. CHECKOUT MODAL
    ============================================================================ */

.checkout-modal {
  max-width: 900px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .checkout-form input,
  .checkout-form textarea {
    font-size: 16px;
    min-height: 48px;
  }

  .checkout-summary {
    padding: var(--space-md);
  }

  .payment-option {
    min-height: 48px;
    align-items: center;
  }
}

.checkout-form .form-group {
  margin-bottom: var(--space-md);
}

.checkout-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--color-brand);
}

.checkout-form textarea {
  resize: vertical;
  min-height: 80px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-10);
}

.payment-option input[type="radio"] {
  width: auto;
  margin: 0;
}

.payment-option span {
  font-size: 0.9rem;
  font-weight: 500;
}

.payment-option input[type="radio"]:checked + span {
  font-weight: 600;
  color: var(--color-brand);
}

.checkout-summary {
  background: var(--color-bg-alt);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.checkout-summary h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-black);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.summary-item-name {
  flex: 1;
  color: var(--color-text);
  font-weight: 500;
}

.summary-item-qty {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0 var(--space-sm);
}

.summary-item-price {
  font-weight: 600;
  color: var(--color-brand);
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-black);
  padding-top: var(--space-sm);
  border-top: 2px solid var(--color-border);
  margin-top: var(--space-sm);
}

.modal-footer {
  display: flex;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 576px) {
  .modal-footer {
    flex-direction: column-reverse;
  }
  
  .modal-footer .btn {
    width: 100%;
    min-height: 48px;
  }

  .modal-content {
    width: 95vw;
    max-height: 85vh;
  }

  .modal-header {
    padding: var(--space-md);
  }

  .modal-body {
    padding: var(--space-md);
  }

  .modal-header h3 {
    font-size: 1.25rem;
  }
}

/* Dark mode support for checkout */
html.dark .checkout-summary {
  background: var(--color-bg-elevated);
}

html.dark .payment-option:hover {
  background: rgba(216, 27, 96, 0.15);
}

/* SVG Icons in header */
.action-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

#themeToggle svg {
  width: 18px;
  height: 18px;
}

/* Cart badge */
.action-btn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #d32f2f;
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Hide search and favorites buttons on mobile for cleaner UI */
@media (max-width: 576px) {
  #searchToggle,
  .header-actions a[aria-label="Favoritos"] {
    display: none;
  }
  
  .header-inner {
    padding: 0 var(--space-md);
  }

  .logo img {
    height: 40px;
  }

  .action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
  }
}

/* Mobile header - logo centered or with padding */
@media (max-width: 991px) {
  .header-inner {
    padding: 0 var(--space-md);
  }
  
  .logo {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 576px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }

  /* Ensure cart badge is visible on mobile */
  .action-btn .badge {
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
  }
}

/* ============================================================================
   20. LOADING STATES & TOASTS
   ============================================================================ */

.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toasts */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  color: var(--color-on-surface);
  font-weight: var(--font-weight-medium);
  z-index: var(--z-toast);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.toast.success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-left: 4px solid var(--color-success);
}

.toast.error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-left: 4px solid var(--color-error);
}

.toast.info {
  background: var(--color-info-bg);
  color: var(--color-info);
  border-left: 4px solid var(--color-info);
}

.toast.show {
  transform: translateX(0);
}

.toast.active {
  transform: translateX(0);
}

.toast-success {
  border-left-color: var(--color-success);
}

.toast-error {
  border-left-color: var(--color-error);
}

.toast-info {
  border-left-color: var(--color-info);
}

/* ============================================================================
   21. PRINT STYLES
   ============================================================================ */

@media print {
  body {
    background: white;
    color: black;
  }

  .no-print,
  .cart-drawer,
  .search-overlay,
  .whatsapp-float,
  .mobile-menu-toggle {
    display: none !important;
  }

  a {
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ============================================================================
   22. TOP BAR
   ============================================================================ */

.top-bar {
  background: linear-gradient(90deg, #fce4ec 0%, #f8bbd0 100%);
  border-bottom: 1px solid var(--color-brand);
  padding: var(--space-xs) 0;
  font-size: var(--font-size-xs);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.top-item {
  color: var(--color-brand);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.top-item i {
  color: var(--color-brand-dark);
}

.top-link {
  color: var(--color-brand-dark);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.top-link:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .site-header {
    top: 0;
  }

  .main-nav {
    top: var(--header-height);
  }
}

@media (max-width: 576px) {
  .top-bar-left {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }

  .top-bar-right {
    display: none;
  }

  .site-header {
    top: 0;
  }

  .main-nav {
    top: var(--header-height);
  }
}


/* ============================================================================
   24. BACK TO TOP
   ============================================================================ */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 100px;
  width: 50px;
  height: 50px;
  background: var(--color-brand);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-brand-dark);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 30px;
    bottom: 80px;
  }
}

@media (max-width: 576px) {
  .back-to-top {
    right: 20px;
    bottom: 70px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

/* ============================================================================
   25. PROMO PAGE STYLES
   ============================================================================ */

.promo-hero {
  background: linear-gradient(135deg, #ff4081 0%, var(--color-brand) 50%, var(--color-brand-dark) 100%);
  color: var(--color-white);
  padding: 80px 0;
  text-align: center;
}

.promo-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.promo-hero p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.promo-banner {
  background: var(--color-brand);
  color: var(--color-white);
  padding: 20px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 40px;
  border-radius: 8px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.promo-card {
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-brand);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: var(--color-brand);
  border-radius: 50%;
  opacity: 0.1;
}

.promo-badge {
  display: inline-block;
  background: var(--color-brand);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.promo-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-black);
}

.promo-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brand);
}

.promo-card .old-price {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-left: 8px;
}

.promo-card p {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin: 12px 0;
}

.promo-timer {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}

.timer-unit {
  text-align: center;
}

.timer-unit .number {
  display: block;
  width: 60px;
  height: 60px;
  background: var(--color-bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 4px;
}

.timer-unit .label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.cta-section {
  background: var(--color-bg-alt);
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 24px;
}

@media (max-width: 768px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .promo-hero h1 {
    font-size: 2rem;
  }

  .shop-hero h1 {
    font-size: 2rem;
  }

  .shop-hero p {
    font-size: 1rem;
  }

  /* Mobile Sidebar - Slide-in Drawer */
  .filters-toggle {
    display: flex;
    min-height: 44px;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-filters {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--color-bg-elevated);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: block;
    margin-bottom: 0;
    overflow-y: auto;
    border-radius: 0;
    border: none;
  }

  .sidebar-filters.open {
    transform: translateX(0);
  }

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-bg-elevated);
    z-index: 2;
    padding-top: var(--space-md);
    margin-top: calc(-1 * var(--space-md));
  }

  .sidebar-close {
    display: flex;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: var(--space-sm);
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    z-index: 1001;
    position: relative;
  }

  .sidebar-close:hover {
    background: var(--color-bg-alt);
    color: var(--color-black);
  }

  .sidebar-overlay {
    display: block !important;
  }

  .active-filters {
    margin-bottom: var(--space-md);
  }

  .controls-inner {
    gap: var(--space-md);
  }

  .search-box input {
    min-height: 44px;
    font-size: 16px;
  }

  .sort-box select {
    min-height: 44px;
    font-size: 16px;
  }

  /* Mobile close button at bottom of sidebar */
  .sidebar-mobile-close {
    display: none;
  }
}

@media (max-width: 576px) {
  .sidebar-filters {
    width: min(320px, 85vw);
  }
  
  .sidebar-mobile-close {
    display: flex;
    margin-top: var(--space-xl);
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    position: sticky;
    bottom: 0;
    z-index: 2;
  }
  
  .sidebar-mobile-close button {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-brand);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
  }
}

  .sidebar-filters.open {
    transform: translateX(0);
  }

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
  }

  .sidebar-close {
    display: flex;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: var(--space-sm);
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    z-index: 1001;  /* Above sidebar content */
    position: relative;  /* Needed for z-index */
  }

  .sidebar-close:hover {
    background: var(--color-bg-alt);
    color: var(--color-black);
  }

  .sidebar-overlay {
    display: block !important;
  }

  .active-filters {
    margin-bottom: var(--space-md);
  }

  .controls-inner {
    gap: var(--space-md);
  }

  .search-box input {
    min-height: 44px;
    font-size: 16px;
  }

  .sort-box select {
    min-height: 44px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .sidebar-filters {
    width: 100vw;
    max-width: 100vw;
  }

  .shop-hero {
    padding: 60px 0;
  }

  .shop-controls {
    padding: var(--space-md) 0;
  }

  .controls-inner {
    gap: var(--space-sm);
  }

  .filters-toggle {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================================
    MOBILE SHOP FIXES ÔÇö OVERRIDE BROKEN STYLES
    ============================================================================ */

@media (max-width: 768px) {
  /* Shop Controls ÔÇö Vertical stack */
  .shop-controls {
    padding: var(--space-md) 0;
    margin-bottom: var(--space-md);
  }

  .controls-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    justify-content: flex-start;
  }

  .controls-inner .filters-toggle,
  .controls-inner .search-box,
  .controls-inner .sort-box {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .filters-toggle {
    order: -1;
    justify-content: center;
    min-height: 44px;
  }

  .search-box input,
  .sort-box select {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }

  /* Product Grid ÔÇö 2 columns on mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  .product-grid .product-card {
    min-width: 0;
  }

  .product-img {
    aspect-ratio: 1;
  }

  .product-name {
    font-size: 0.85rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .product-price {
    font-size: 0.95rem;
  }

  /* Hero smaller */
  .shop-hero {
    padding: 40px 0;
  }

  .shop-hero h1 {
    font-size: 1.75rem;
  }

  /* Pagination */
  .pagination-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pagination-container button {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .product-name {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    font-size: 0.9rem;
  }

  .product-info {
    padding: var(--space-sm);
  }

  .product-card .product-actions {
    position: static;
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    opacity: 1;
    visibility: visible;
  }

  .product-card .product-img {
    overflow: visible;
  }
}

@media (max-width: 576px) {
  .whatsapp-float {
    bottom: 80px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 1.1rem !important;
  }
}

/* ============================================================================
   26. PRODUCT STICKY BAR
   ============================================================================ */

.product-sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
  pointer-events: none;
}

.product-sticky-bar.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.sticky-product-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
}

.sticky-name {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  color: var(--color-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-price {
  font-weight: var(--font-weight-bold);
  color: var(--color-brand);
  font-size: var(--font-size-base);
  white-space: nowrap;
}

.sticky-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.product-sticky-bar .btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  min-height: 44px;
  background-color: #d81b60;
  color: var(--color-white);
}

.product-sticky-bar .btn-add-cart:hover {
  background-color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-sticky-bar .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 20px;
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  min-height: 44px;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
}

.product-sticky-bar .btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile: bottom fixed bar */
@media (max-width: 768px) {
  .product-sticky-bar {
    top: auto;
    bottom: 0;
    border-top: 1px solid var(--color-border);
    border-bottom: none;
    transform: translateY(100%);
    padding: var(--space-md) 0;
    z-index: 100;
  }

  .product-sticky-bar.active {
    transform: translateY(0);
  }

  .sticky-inner {
    flex-direction: row;
    gap: var(--space-sm);
  }

  .sticky-product-info {
    display: none; /* Ocultar nombre/precio en mobile, solo botones */
  }

  .sticky-actions {
    width: 100%;
    gap: var(--space-sm);
    display: flex;
  }

  .product-sticky-bar .btn-add-cart,
  .product-sticky-bar .btn-whatsapp {
    flex: 1;
    min-height: 52px;
    font-size: var(--font-size-xs);
    padding: var(--space-sm) var(--space-md);
  }

  /* Ajustar whatsapp float para que no se pise con sticky bar */
  .whatsapp-float {
    bottom: 90px !important;
  }
}

/* Desktop: top fixed below header */
@media (min-width: 769px) {
  .product-sticky-bar {
    top: var(--header-height);
  }
}

/* ============================================================================
   27. RELATED PRODUCTS SECTION
   ============================================================================ */

.related-products-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-alt);
}

.related-products-section .section-title {
  margin-bottom: var(--space-xl);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
}

.related-grid .product-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.related-grid .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.related-grid .product-info {
  padding: var(--space-sm);
}

.related-grid .product-name {
  font-size: 0.85rem;
  -webkit-line-clamp: 2;
}

.related-grid .product-price {
  font-size: 0.85rem;
}

/* Tablet: 3 columns */
@media (min-width: 577px) and (max-width: 991px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: 2 columns */
@media (max-width: 576px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .related-grid .product-name {
    font-size: 0.8rem;
  }

  .related-grid .product-price {
    font-size: 0.85rem;
  }

  .related-grid .product-actions button {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   END OF FILE
   ========================================================================== */

