/* ========================================
   CANELANDIA v2 - PERFUMERÍA DE AUTOR
   Design System: Premium Noir & Gold
   Tipografía: Playfair Display + Inter
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    /* Tema Claro (Por defecto) */
    --bg-primary: #FDF8F3;
    --bg-secondary: #F5EDE4;
    --bg-tertiary: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-primary: #1A1A1A;
    --text-secondary: #4A4540;
    --text-muted: #8B847C;
    
    --gold: #e5c20a; /* Darker gold for light bg */
    --gold-light: #D4A574;
    --gold-dark: #8B6508;
    
    --cinnamon: #C17B3A;
    --whatsapp: #09b56d;
    --stock-bajo: #8e11b7;
    
    --border-color: rgba(184, 134, 11, 0.2);
    --border-glass: rgba(255, 255, 255, 0.4);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 4px 20px rgba(184, 134, 11, 0.15);
    
    /* Tipografía */
    --font-display: 'Playfair Display', serif;
    --font-ui: 'Inter', sans-serif;

    /* Espaciado */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Z-Index */
    --z-header: 100;
    --z-toast: 300;
}

[data-theme="dark"] {
    /* Tema Oscuro */
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-tertiary: #1E1E1E;
    --bg-glass: rgba(10, 10, 10, 0.75);
    
    --text-primary: #F5F0E8;
    --text-secondary: #A09688;
    --text-muted: #6B6560;
    
    --gold: #e5c20a;
    --gold-light: #DFC192;
    --gold-dark: #9A7B4F;
    
    --border-color: rgba(201, 169, 110, 0.15);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 4px 24px rgba(201, 169, 110, 0.15);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Glassmorphism Utility */
.glass-panel {
    /*background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);*/
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--gold);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.theme-toggle:hover {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-glow);
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: var(--z-header);
    transition: all 0.3s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gold);
}
.brand-logo {
    width: 40px;
    height: 40px;
}
.brand-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.brand-text span {
    color: var(--text-primary);
}

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

.cart-btn {
    position: relative;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.cart-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.cart-btn svg {
    width: 20px;
    height: 20px;
}
.cart-count {
    background: var(--gold);
    color: var(--bg-primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gold);
    color: var(--bg-primary);
    border: 1px solid var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
/* Shimmer effect for primary button */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    100% { left: 200%; }
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #FFF;
    border: 1px solid var(--whatsapp);
}
.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-icon {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s;
}
.btn-icon:hover {
    color: var(--error);
    border-color: var(--error);
}

/* Form Elements */
input, select, textarea {
    width: 100%;
    padding: 0.83rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    /*border-radius: var(--radius-sm);*/
    border-radius: 16px;
    transition: border-color 0.3s;
    font-family: 'Inter';
}
input:focus, select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Typography elements */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: var(--space-xs);
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-2xl) 0;
}
.divider::before, .divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background: var(--gold);
    opacity: 0.3;
}
.divider svg {
    color: var(--gold);
    width: 20px;
    height: 20px;
    margin: 0 var(--space-md);
}

/* -------------------------------------
   PÁGINAS Y SECCIONES
--------------------------------------- */

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    background-color: var(--bg-primary); /* fallback */
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
}
.hero-bg {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 10s ease-out;
}
.hero-slide.active .hero-bg {
    transform: scale(1);
}
.hero-dots {
    position: absolute;
    bottom: var(--space-4xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: var(--space-sm);
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}
.hero-dot:hover {
    background: rgba(201, 169, 110, 0.5);
}
.hero-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.2) 50%, var(--bg-primary));
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: #FFFFFF; /* Siempre blanco en el hero por la imagen */
}
.hero-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border: 1px solid var(--gold);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}
.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #FFF 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.hero-tagline {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
    font-weight: 300;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    color: var(--gold);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* SECCIONES MAIN */
.section {
    padding: var(--space-2xl) 0;
}

/* PROMOS CAROUSEL */
.promo-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    scrollbar-width: none; /* Firefox */
}
.promo-carousel::-webkit-scrollbar { display: none; }
.promo-carousel .product-card {
    min-width: 220px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* CATALOG GRID */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    /*margin-bottom: var(--space-2xl);
    padding: var(--space-md);
    border-radius: var(--radius-md);*/
}

/* Collapsible Filters */
.filters-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filters-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.filters-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
.filters-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.filters-panel {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    width: 100%;
}
.filters-panel.collapsed {
    display: none;
}

/* Desktop Filters Bar */
.desktop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    width: 100%;
margin: 0 2em;
}

/* Mobile Filters Toggle Button */
.mobile-filters-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mobile-filters-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.mobile-filters-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile Fixed Search Bar (Bottom) */
.mobile-search-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: linear-gradient(to top, var(--bg-primary) 80%, transparent);
    padding: var(--space-md) var(--space-lg);
    padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.mobile-search-inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 600px;
    margin: 0 auto;
}
.mobile-search-bar .search-input-wrap {
    flex: 1;
    min-width: 0;
}
.mobile-search-bar .search-input-wrap input {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 1rem;
    border-radius: var(--radius-full);
}
.mobile-search-bar .search-input-wrap svg {
    left: 1rem;
    color: var(--gold);
}
.mobile-search-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}
.mobile-search-filter-btn:hover,
.mobile-search-filter-btn:focus {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--bg-tertiary);
}
.mobile-search-filter-btn[aria-expanded="true"] {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--bg-tertiary);
}
.filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--error);
    color: var(--bg-primary);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Mobile Bottom Sheet */
.mobile-filters-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}
.mobile-filters-sheet.open {
    display: block;
    pointer-events: auto;
}
.mobile-filters-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-filters-sheet.open .mobile-filters-backdrop {
    opacity: 1;
}
.mobile-filters-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-filters-sheet.open .mobile-filters-content {
    transform: translateY(0);
}
.mobile-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.mobile-filters-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.mobile-filters-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.mobile-filters-close:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--bg-secondary);
}
.mobile-filters-body {
    padding: var(--space-xl);
    overflow-y: auto;
    flex: 1;
}
.mobile-filters-body .search-input-wrap {
    width: 100%;
    margin-bottom: var(--space-lg);
}
.mobile-filters-body .filter-selects {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.mobile-filters-body .filter-selects select {
    width: 100%;
}
.mobile-filters-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}
.mobile-filters-actions .btn {
    flex: 1;
}

/* Handle bar for bottom sheet */
.mobile-filters-content::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-full);
}

@media (max-width: 768px) {
    .desktop-filters {
        display: none;
    }
    .mobile-filters-toggle {
        display: inline-flex;
        width: 100%;
    }
    .filters-bar {
        padding: 0;
        background: transparent;
    }
    .mobile-search-bar {
        display: block;
    }
    main {
        padding-bottom: 90px; /* Space for fixed search bar */
    }
}

@media (min-width: 769px) {
    .mobile-filters-sheet {
        display: none !important;
    }
}

.search-input-wrap {
    flex: 1;
    min-width: 250px;
    position: relative;
}
.search-input-wrap svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
}
.search-input-wrap input {
    padding-left: 2.5rem;
}
.filter-selects {
    display: flex;
    gap: var(--space-sm);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

/* PRODUCT CARD */
.product-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
box-shadow: 2px 2px 6px rgb(63 63 58 / 48%);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}
.product-card-img {
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-card-img img {
    transform: scale(1.05);
}
.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}
.badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}
.badge-promo {
    background: var(--gold);
    color: var(--bg-primary);
margin-right : 1rem;
}
.badge-soldout {
    background: #3d3434;
    color: #f5ecec;
}

.product-card-info {
    padding: var(--space-lg);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.25rem;
}
.product-name {
    font-family: var(--font-ui);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    flex: 1;
}
.product-price {
    font-family: var(--font-ui);
    font-size: 1.2rem;
    /*color: var(--text-primary);*/
    color: #21c128;
    font-weight: 600;
}

/* Scroll Animation classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* BENEFICIOS */
.benefits-section {
    background-color: var(--bg-secondary);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-2xl);
    text-align: center;
}
.benefit-item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    color: var(--gold);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.benefit-item .icon svg { width: 30px; height: 30px; }
.benefit-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.benefit-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* NEWSLETTER */
.newsletter-section {
    position: relative;
    padding: var(--space-4xl) 0;
    text-align: center;
    overflow: hidden;
}
.newsletter-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; height: 100%;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 70%);
    z-index: -1;
}
.newsletter-card {
    max-width: 600px;
    margin: 0 auto;
}
.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}
@media (max-width: 600px) {
    .newsletter-form { flex-direction: column; }
}

/* FOOTER */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-4xl) 0 var(--space-lg);
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}
.footer-brand .brand-logo { margin-bottom: var(--space-md); }
.footer-brand p { color: var(--text-secondary); max-width: 300px; margin-bottom: var(--space-md); }
.social-links { display: flex; gap: var(--space-sm); }
.social-links a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.social-links a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.footer-nav h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 0.5rem; }
.footer-nav ul li a { color: var(--text-secondary); }
.footer-nav ul li a:hover { color: var(--gold); }

.footer-contact p { color: var(--text-secondary); margin-bottom: 0.5rem; }

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}
.heart { color: var(--gold); display: inline-block; animation: heartbeat 2s infinite; }
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .footer-brand p { margin: 0 auto var(--space-md); }
}

/* -------------------------------------
   SECCIONES GENERALES
-------------------------------------- */
.section {
    padding: var(--space-2xl) 0;
}

.catalog-section {
    min-height: 500px; /* altura mínima mientras carga el catálogo */
    background-color: var(--bg-secondary) !important;
}

/* -------------------------------------
   PÁGINA: DETALLE (PDP)
--------------------------------------- */
.pdp-section {
    padding-top: calc(80px + var(--space-2xl));
}
.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}
@media (max-width: 900px) {
    .pdp-grid { grid-template-columns: 1fr; gap: 1em}
}

.pdp-gallery {
    /*position: sticky;*/
    top: 100px;
}
.pdp-main-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 4/5;
    background: var(--bg-secondary);
}
.pdp-main-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.pdp-info {
    display: flex;
    flex-direction: column;
}
.breadcrumb {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.5rem; }

.pdp-meta-tags {
    display: flex;
    gap: var(--space-sm);
    margin 0.5em 0;
    flex-wrap: wrap;
}
.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.pdp-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.olfactory-pyramid {
    margin-bottom: var(--space-xl);
}
.olfactory-pyramid h3 {
    font-family: var(--font-ui);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}
.pyramid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}
.pyramid-card {
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
}
.pyramid-card h4 {
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: var(--font-ui);
}
.pyramid-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}
@media (max-width: 600px) {
    .pyramid-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .pdp-actions form { flex-direction: column; }
}

.pdp-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 48px; /* match btn height roughly */
}
.qty-btn {
    width: 40px;
    height: 100%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: background 0.2s;
}
.qty-btn:hover { background: var(--bg-tertiary); color: var(--gold); }
.qty-input {
    width: 50px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.share-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}
.share-section span {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.share-links {
    display: flex;
    gap: var(--space-sm);
}
.share-links a, .share-links button {
    color: var(--text-secondary);
}
.share-links a:hover, .share-links button:hover {
    color: var(--gold);
}

/* -------------------------------------
   PÁGINA: CARRITO
--------------------------------------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-2xl);
}
@media (max-width: 1024px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary-wrapper { position: static !important; }
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 80px 1fr auto;
        grid-template-areas: 
            "img info delete"
            "img qty  sub";
    }
    .cart-item-img { grid-area: img; }
    .cart-item-info { grid-area: info; }
    .cart-item-qty { grid-area: qty; }
    .cart-item-sub { grid-area: sub; }
    .cart-item-del { grid-area: delete; }
}

.cart-item-img {
    aspect-ratio: 4/5;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { font-family: var(--font-ui); font-size: 1rem; font-weight: 500; }
.cart-item-info p { color: var(--gold); font-size: 0.875rem; }
.cart-item-sub { font-family: var(--font-display); font-size: 1.25rem; }

.cart-summary-wrapper {
    position: sticky;
    top: 100px;
}
.cart-summary {
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.empty-cart {
    text-align: center;
    padding: var(--space-4xl) 0;
}
.empty-cart svg { width: 64px; height: 64px; color: var(--border-color); margin-bottom: var(--space-md); }

/* TOASTS */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.toast {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }

/* ========================================
   CONVERSIÓN: quick-add, precios promo,
   prueba social, envío gratis, WA flotante
   ======================================== */

/* Product card: link interno ocupa toda la tarjeta */
.product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

/* Precio original tachado */
.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85em;
    margin-right: 1rem;
}

/* Prueba social */
.social-proof {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--gold);
}

/* Quick-add en tarjetas del catálogo */
.quick-add {
    margin: 0 var(--space-lg) var(--space-lg);
    padding: 0.65rem 1rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s ease;
}
.quick-add:hover:not(:disabled) {
    background: var(--gold);
    color: var(--bg-primary);
}
.quick-add:disabled {
    opacity: 0.6;
    cursor: wait;
}
.quick-add-disabled {
    display: block;
    text-align: center;
    color: var(--text-muted);
    border-color: var(--border-color);
    cursor: not-allowed;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #FFF;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 96px; /* por encima de la barra de búsqueda móvil */
        right: var(--space-md);
        width: 50px;
        height: 50px;
    }
}

/* Barra de progreso: envío gratis */
.fs-progress {
    margin: var(--space-md) 0;
}
.fs-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}
.fs-message strong { color: var(--gold); }
.fs-progress-track {
    height: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.fs-progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}
.fs-progress-fill.fs-complete {
    background: var(--success);
}

/* Métodos de pago en el carrito */
.payment-methods {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Controles de cantidad en el carrito */
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cart-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    line-height: 1;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.cart-qty-btn:hover {
    background: var(--bg-tertiary);
    color: var(--gold);
    border-color: var(--gold);
}

/* Páginas legales */
.legal-content {
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    max-width: 800px;
}
.legal-content h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--gold);
    margin-bottom: var(--space-xl);
}
.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: var(--space-xl) 0 var(--space-sm);
}
.legal-content h3:first-of-type { margin-top: 0; }
.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}
.legal-content strong { color: var(--text-primary); }

/* Badge de bajo stock */
.badge-lowstock {
    background: var(--stock-bajo);
    color: #FFF;
}
