/* ============================================
   KENTHAY - Flores Preservadas
   Premium E-commerce CSS
   Estilo Instagram-like con enfoque móvil
   ============================================ */

/* CSS Variables - Colores Corporativos */
:root {
    /* Colores principales */
    --primary: #D4A5A5;
    --primary-light: #E8C4C4;
    --primary-dark: #B88888;
    --secondary: #C9B1D4;
    --secondary-light: #DFD1E8;
    --accent: #F5E6E8;
    --accent-warm: #F0D9DC;

    /* Neutros */
    --dark: #2D2D2D;
    --dark-soft: #4A4A4A;
    --gray: #8A8A8A;
    --gray-light: #B8B8B8;
    --light: #FAFAFA;
    --white: #FFFFFF;
    --border: #EFEFEF;

    /* Estados */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-soft: linear-gradient(135deg, var(--accent), var(--secondary-light));
    --gradient-hero: linear-gradient(180deg, rgba(212,165,165,0.1) 0%, rgba(201,177,212,0.1) 100%);

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --shadow-glow: 0 0 20px rgba(212,165,165,0.3);

    /* Tipografía */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Espaciado */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;

    /* Layout */
    --header-height: 64px;
    --bottom-nav-height: 64px;
    --container-max: 1200px;
    --grid-gap: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1A1A1A;
        --white: #0D0D0D;
        --dark: #F5F5F5;
        --dark-soft: #E0E0E0;
        --border: #333;
    }
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Ocultar scrollbar en móvil manteniendo funcionalidad */
@media (max-width: 768px) {
    html, body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
    }
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Espaciado para header fijo y navegación móvil */
body.has-header {
    padding-top: var(--header-height);
}

body.has-bottom-nav {
    padding-bottom: var(--bottom-nav-height);
}

@media (min-width: 769px) {
    body.has-bottom-nav {
        padding-bottom: 0;
    }
}

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

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

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Utilidades
   ============================================ */

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

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}

/* ============================================
   Tipografía
   ============================================ */

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

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.display-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    font-weight: 400;
}

.price {
    font-weight: 600;
    color: var(--dark);
}

.price-old {
    color: var(--gray-light);
    text-decoration: line-through;
    font-weight: 400;
    font-size: 0.9em;
}

.price-sale {
    color: var(--primary-dark);
}

/* ============================================
   Botones
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--dark);
}

.btn-ghost:hover {
    background: var(--light);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

.btn-icon.active {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-sticky);
    transition: transform var(--transition-base);
}

.header.hidden-scroll {
    transform: translateY(-100%);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #2D2D2D;
}

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

.header-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--dark);
    transition: all var(--transition-fast);
}

.header-btn:hover {
    background: var(--light);
}

.header-btn svg {
    width: 24px;
    height: 24px;
}

.header-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navegación Desktop */
.nav-desktop {
    display: none;
}

@media (min-width: 769px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: var(--space-xl);
    }

    .nav-link {
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--dark-soft);
        padding: var(--space-sm) 0;
        position: relative;
        transition: color var(--transition-fast);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: width var(--transition-base);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-dark);
    }

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

/* ============================================
   Navegación Móvil (Bottom)
   ============================================ */

.nav-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 var(--space-sm);
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 769px) {
    .nav-mobile {
        display: none;
    }
}

.nav-mobile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-sm);
    color: var(--gray);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-mobile-item svg {
    width: 24px;
    height: 24px;
}

.nav-mobile-item span {
    font-size: 0.625rem;
    font-weight: 500;
}

.nav-mobile-item.active {
    color: var(--primary-dark);
}

.nav-mobile-item .badge {
    position: absolute;
    top: 0;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
    opacity: 0.3;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 30px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

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

/* Hero en móvil - subir contenido */
@media (max-width: 768px) {
    .hero-content {
        transform: translateY(-50px);
    }
}

/* ============================================
   Grid de Productos (Estilo Instagram)
   ============================================ */

.products-section {
    padding: var(--space-xl) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-dark);
}

/* Grid Instagram 3x3 - Móvil */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

/* Scroll oculto en móvil */
@media (max-width: 768px) {
    .products-section {
        padding: 0;
    }

    .products-grid {
        /* Grid pegado sin espacios como Instagram */
        gap: 1px;
    }

    /* Ocultar scrollbar pero mantener funcionalidad */
    .products-grid::-webkit-scrollbar {
        display: none;
    }

    .products-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

@media (min-width: 769px) {
    .products-grid {
        gap: var(--space-md);
        padding: 0 var(--space-md);
        background: transparent;
    }

    .products-grid.large {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card de Producto */
.product-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
}

/* En móvil: cuadrado perfecto sin bordes */
@media (max-width: 768px) {
    .product-card {
        border-radius: 0;
    }
}

@media (min-width: 769px) {
    .product-card {
        border-radius: var(--radius-md);
    }
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Link de imagen - cubrir todo el card */
.product-card > a {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-card > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay con info */
.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    pointer-events: none;
    z-index: 1;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* En desktop, dar espacio al botón de añadir */
@media (min-width: 769px) {
    .product-overlay {
        padding-bottom: 60px;
    }
}

/* En móvil, mostrar siempre info básica - estilo Instagram */
@media (max-width: 768px) {
    .product-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
        padding: var(--space-sm);
    }

    .product-info {
        padding-bottom: 2px;
    }

    .product-name {
        font-size: 0.75rem;
        font-weight: 500;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .product-price-tag {
        font-size: 0.8125rem;
        font-weight: 600;
    }

    /* Botón de favoritos más pequeño en móvil */
    .btn-favorite {
        width: 28px;
        height: 28px;
        top: var(--space-xs);
        right: var(--space-xs);
    }

    .btn-favorite svg {
        width: 16px;
        height: 16px;
    }
}

.product-info {
    color: var(--white);
}

.product-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-tag {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Badges */
.product-badges {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.badge-sale {
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-new {
    background: var(--secondary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Botón de favoritos */
.btn-favorite {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.btn-favorite svg {
    width: 20px;
    height: 20px;
    color: var(--white);
    transition: all var(--transition-fast);
}

.btn-favorite:hover svg,
.btn-favorite.active svg {
    color: var(--primary);
    fill: var(--primary);
}

.btn-favorite.active {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
}

/* Botón de compartir */
.btn-share {
    position: absolute;
    top: calc(var(--space-sm) + 44px);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.btn-share svg {
    width: 18px;
    height: 18px;
    color: var(--gray);
    transition: all var(--transition-fast);
}

.btn-share:hover svg {
    color: var(--primary);
}

/* Share Menu Popup */
.share-menu {
    position: absolute;
    top: calc(var(--space-sm) + 44px + 44px);
    right: var(--space-sm);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--transition-fast);
    z-index: 10;
    min-width: 180px;
}

.share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-size: 14px;
    transition: background var(--transition-fast);
    width: 100%;
    text-align: left;
}

.share-menu-item:hover {
    background: var(--light);
}

.share-menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-menu-item.whatsapp svg { color: #25D366; }
.share-menu-item.facebook svg { color: #1877F2; }
.share-menu-item.twitter svg { color: #000; }
.share-menu-item.pinterest svg { color: #E60023; }
.share-menu-item.copy svg { color: var(--gray); }

.share-menu-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-xs) 0;
}

/* Home page mobile: ocultar favoritos, compartir y overlay */
@media (max-width: 768px) {
    .page-home .product-card .btn-favorite,
    .page-home .product-card .btn-share,
    .page-home .product-card .share-menu,
    .page-home .product-card .product-overlay {
        display: none;
    }

    .page-home .product-card {
        cursor: pointer;
    }

    .page-home .product-card a {
        display: block;
        width: 100%;
        height: 100%;
    }
}

/* Quick Actions */
.product-actions {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    display: flex;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-add {
    flex: 1;
    padding: 10px;
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
    font-size: 0.8125rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-quick-add:hover {
    background: var(--gradient-primary);
    color: var(--white);
}

/* ============================================
   Stories / Categorías (Horizontal Scroll)
   ============================================ */

.stories-section {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border);
}

.stories-scroll {
    display: flex;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-scroll::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    scroll-snap-align: start;
}

.story-ring {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-full);
    padding: 3px;
    background: var(--gradient-primary);
}

.story-ring.no-ring {
    background: var(--border);
}

.story-image {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--white);
}

.story-name {
    font-size: 0.75rem;
    color: var(--dark-soft);
    text-align: center;
    max-width: 72px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   Página de Producto
   ============================================ */

.product-page {
    padding-bottom: 100px;
}

.product-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--light);
}

.product-gallery-slider {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    scrollbar-width: none;
}

.product-gallery-slider::-webkit-scrollbar {
    display: none;
}

.product-gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.product-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-dots {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
}

.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--white);
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.gallery-dot.active {
    opacity: 1;
    width: 20px;
}

.product-details {
    padding: var(--space-lg) var(--space-md);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.product-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.product-category {
    font-size: 0.875rem;
    color: var(--gray);
}

.product-price {
    text-align: right;
}

.product-price .price {
    font-size: 1.5rem;
}

.product-description {
    color: var(--dark-soft);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.product-dimensions {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.dimensions-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

.dimension-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.dimension-label {
    color: var(--gray);
}

.dimension-value {
    font-weight: 500;
}

/* Sticky Add to Cart */
.product-sticky-bar {
    position: fixed;
    bottom: var(--bottom-nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: var(--space-md);
    display: flex;
    gap: var(--space-md);
    align-items: center;
    z-index: var(--z-sticky);
}

@media (min-width: 769px) {
    .product-sticky-bar {
        bottom: 0;
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        box-shadow: var(--shadow-lg);
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--light);
    border-radius: var(--radius-full);
    padding: 4px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--dark);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--primary-light);
}

.qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
}

.btn-add-cart {
    flex: 1;
}

/* ============================================
   Carrito Slide
   ============================================ */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-modal);
}

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

.cart-slide {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--white);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: calc(var(--z-modal) + 1);
    display: flex;
    flex-direction: column;
}

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

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

.cart-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.cart-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.cart-close:hover {
    background: var(--light);
}

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

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--gray);
}

.cart-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.cart-item-price {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

.cart-item-remove {
    color: var(--gray);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--error);
}

.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border);
    background: var(--light);
}

.cart-totals {
    margin-bottom: var(--space-md);
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.cart-row.total {
    font-size: 1.125rem;
    font-weight: 600;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

/* ============================================
   Checkout
   ============================================ */

.checkout-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray);
}

.checkout-step.active {
    color: var(--primary-dark);
}

.checkout-step.completed {
    color: var(--success);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.checkout-step.active .step-number {
    background: var(--gradient-primary);
    color: var(--white);
}

.checkout-step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.checkout-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.checkout-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* ============================================
   Formularios
   ============================================ */

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--dark-soft);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,165,165,0.2);
}

.form-input::placeholder {
    color: var(--gray-light);
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* ============================================
   Stripe Elements
   ============================================ */

.stripe-element {
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: all var(--transition-fast);
}

.stripe-element.StripeElement--focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,165,165,0.2);
}

.stripe-element.StripeElement--invalid {
    border-color: var(--error);
}

.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: var(--space-md);
}

.payment-secure svg {
    color: var(--success);
}

/* ============================================
   Favoritos
   ============================================ */

.favorites-page {
    padding: var(--space-lg) var(--space-md);
}

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

.favorites-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.favorites-empty svg {
    width: 80px;
    height: 80px;
    color: var(--gray-light);
    margin-bottom: var(--space-lg);
}

/* Page Headers */
.main-content {
    min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: calc(var(--bottom-nav-height) + var(--space-xl));
}

.page-header {
    margin-bottom: var(--space-xl);
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--dark);
}

@media (min-width: 769px) {
    .main-content {
        padding-bottom: var(--space-3xl);
    }
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 400px;
    padding: 0 var(--space-md);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    pointer-events: auto;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ============================================
   WhatsApp Button
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--space-md));
    right: var(--space-md);
    z-index: var(--z-dropdown);
}

@media (min-width: 769px) {
    .whatsapp-float {
        bottom: var(--space-lg);
        right: var(--space-lg);
    }
}

.whatsapp-btn {
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

/* ============================================
   Install App Banner (Mobile Only)
   ============================================ */

.install-app-banner {
    display: none;
    position: relative;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    align-items: center;
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .install-app-banner.visible {
        display: flex;
    }
}

.install-app-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}

.install-app-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.install-app-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.install-app-text strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.5px;
}

.install-app-text span {
    font-size: 0.75rem;
    color: var(--dark-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.install-app-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--dark);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.install-app-btn:active {
    transform: scale(0.96);
}

.install-app-btn svg {
    transform: rotate(180deg);
}

.install-app-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--gray);
}

.install-app-close:active {
    transform: scale(0.9);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-3xl) var(--space-md) var(--space-lg);
    margin-bottom: var(--bottom-nav-height);
}

@media (min-width: 769px) {
    .footer {
        margin-bottom: 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    margin-bottom: var(--space-md);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.footer-about {
    color: var(--gray-light);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
    color: var(--gray-light);
}

.footer-links a {
    display: block;
    color: var(--white);
    font-size: 0.9375rem;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.footer-bottom {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

@media (min-width: 769px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.875rem;
}

.lang-switch {
    display: flex;
    gap: var(--space-sm);
}

.lang-btn {
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    line-height: 1;
    transition: all var(--transition-fast);
    opacity: 0.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255,255,255,0.15);
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn svg {
    display: block;
}

/* ============================================
   Loading States
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, var(--light) 25%, var(--border) 50%, var(--light) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

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

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

/* Infinite Scroll Triggers */
.infinite-scroll-trigger,
.infinite-scroll-trigger-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100px;
}

.infinite-scroll-trigger .loading-indicator,
.infinite-scroll-trigger-mobile .loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 0.875rem;
}

.infinite-scroll-trigger.loading .loading-indicator,
.infinite-scroll-trigger-mobile.loading .loading-indicator {
    display: flex;
}

.infinite-scroll-trigger-mobile {
    height: 100vh;
    scroll-snap-align: start;
    background: var(--light);
}

.infinite-scroll-trigger-mobile .loading-indicator {
    display: flex;
}

.infinite-scroll-trigger-mobile .spinner {
    width: 32px;
    height: 32px;
}

/* ============================================
   Instagram Feed (Mobile Only)
   ============================================ */

.feed-container {
    display: none;
}

@media (max-width: 768px) {
    /* Modo inmersivo - header visible, footer oculto completamente */
    body.immersive-mode .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 150;
        background: transparent;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    body.immersive-mode .header-inner {
        background: rgba(0,0,0,0.3);
    }

    body.immersive-mode .logo-text,
    body.immersive-mode .header-actions button,
    body.immersive-mode .header-actions a {
        color: #fff;
    }

    body.immersive-mode .header-actions svg {
        stroke: #fff;
    }

    /* Logo en blanco en modo inmersivo */
    body.immersive-mode .logo img {
        filter: brightness(0) invert(1);
    }

    /* Ocultar footer completamente en modo inmersivo */
    body.immersive-mode .bottom-nav {
        display: none !important;
    }

    body.immersive-mode .footer {
        display: none !important;
    }

    .feed-container {
        display: block;
        height: 100vh;
        height: 100dvh;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        overscroll-behavior-y: contain;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        scroll-behavior: smooth;
        will-change: scroll-position;
    }

    .feed-container::-webkit-scrollbar {
        display: none;
    }

    .feed-item {
        height: 100vh;
        height: 100dvh;
        width: 100%;
        position: relative;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        background: var(--dark);
        overflow: hidden;
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .feed-image-link {
        display: block;
        width: 100%;
        height: 100%;
    }

    .feed-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    /* Sale badge */
    .feed-badge {
        position: absolute;
        top: 70px;
        left: var(--space-md);
        background: var(--primary);
        color: var(--white);
        padding: 6px 12px;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        font-weight: 600;
        z-index: 10;
    }

    /* Favorito arriba a la derecha */
    .feed-favorite-top {
        position: absolute;
        top: 70px;
        right: var(--space-md);
        width: 44px;
        height: 44px;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        border: none;
        cursor: pointer;
        z-index: 10;
        transition: all var(--transition-fast);
    }

    .feed-favorite-top svg {
        width: 22px;
        height: 22px;
    }

    .feed-favorite-top:active {
        transform: scale(0.9);
    }

    .feed-favorite-top.active {
        background: var(--primary);
    }

    .feed-favorite-top.active svg {
        fill: var(--white);
    }

    /* Right sidebar actions */
    .feed-actions {
        position: absolute;
        right: var(--space-md);
        bottom: 230px;
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
        z-index: 10;
    }

    .feed-action-btn {
        width: 48px;
        height: 48px;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: var(--radius-full);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        border: none;
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .feed-action-btn:active {
        transform: scale(0.9);
    }

    .feed-action-btn svg {
        width: 24px;
        height: 24px;
    }

    .feed-action-btn.btn-favorite.active {
        background: var(--primary);
    }

    .feed-action-btn.btn-favorite.active svg {
        fill: var(--white);
    }

    /* Botón de información con "i" visible */
    .feed-info-btn {
        font-family: 'Georgia', serif;
        font-size: 1.5rem;
        font-weight: 600;
        font-style: italic;
        text-decoration: none;
    }

    .feed-info-btn span {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Bottom info panel */
    .feed-info {
        position: absolute;
        bottom: 50px;
        left: 0;
        right: 0;
        padding: var(--space-xl) var(--space-md);
        padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
        color: var(--white);
        z-index: 5;
    }

    .feed-name {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: var(--space-sm);
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 1px 3px rgba(0,0,0,0.9);
    }

    .feed-price {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        margin-bottom: var(--space-md);
    }

    .feed-price-old {
        font-size: 1rem;
        text-decoration: line-through;
        opacity: 0.7;
    }

    .feed-price-current {
        font-size: 1.5rem;
        font-weight: 600;
        color: #ffffff;
        text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    }

    .feed-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 32px;
        background: var(--white);
        color: var(--dark);
        font-weight: 600;
        font-size: 1rem;
        border-radius: var(--radius-full);
        text-decoration: none;
        transition: all var(--transition-fast);
    }

    .feed-cta:active {
        transform: scale(0.95);
        background: var(--light);
    }

    /* Progress indicator */
    .feed-progress {
        position: absolute;
        top: var(--space-md);
        right: var(--space-md);
        z-index: 10;
    }

    .feed-counter {
        background: rgba(0,0,0,0.5);
        color: var(--white);
        padding: 4px 10px;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        font-weight: 500;
    }

    /* Hide page header and filters on mobile when feed is active */
    body.has-feed .stories-section,
    body.has-feed [style*="padding: 24px"],
    body.has-feed [style*="padding: 12px"] {
        display: none;
    }
}

/* ============================================
   Scroll Infinito
   ============================================ */

.infinite-scroll-trigger {
    display: flex;
    justify-content: center;
    padding: var(--space-xl);
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-modal);
}

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

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

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

.modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border);
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

/* ============================================
   Search
   ============================================ */

.search-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: var(--z-modal);
    transform: translateY(-100%);
    transition: transform var(--transition-slow);
}

.search-overlay.active {
    transform: translateY(0);
}

.search-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: none;
    background: var(--light);
    border-radius: var(--radius-full);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-results {
    padding: var(--space-md);
    overflow-y: auto;
    max-height: calc(100vh - 160px);
}

/* Search Categories Filter */
.search-categories {
    display: flex;
    gap: 8px;
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
}

.search-categories::-webkit-scrollbar {
    display: none;
}

.search-category-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--light);
    color: var(--dark);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.search-category-btn:hover {
    background: var(--primary-light);
    color: var(--dark);
}

.search-category-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   Favorites Page - Simplified Cards
   ============================================ */

.favorite-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.favorite-card .favorite-link {
    display: block;
    width: 100%;
    height: 100%;
}

.favorite-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.favorite-card:hover .product-image {
    transform: scale(1.05);
}

.favorite-card .btn-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

/* ============================================
   Promotional Blocks - Zen Style
   ============================================ */

/* Desktop: Grid block */
.promo-block {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    min-height: 280px;
}

/* Style variations */
.promo-zen {
    background: linear-gradient(135deg, #faf8f5 0%, #f5efe8 100%);
    border: 1px solid rgba(212, 165, 165, 0.15);
}

.promo-elegant {
    background: linear-gradient(135deg, #f8f5fa 0%, #f0e8f5 100%);
    border: 1px solid rgba(201, 177, 212, 0.15);
}

.promo-warm {
    background: linear-gradient(135deg, #faf5f0 0%, #f5ebe0 100%);
    border: 1px solid rgba(212, 165, 165, 0.2);
}

.promo-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    opacity: 0.5;
    color: var(--primary-dark);
}

.promo-icon svg {
    width: 100%;
    height: 100%;
}

.promo-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--dark-soft);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.promo-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray);
    max-width: 340px;
    margin: 0 auto 24px;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.promo-btn svg {
    flex-shrink: 0;
}

/* Mobile: Full screen promo in feed */
.feed-promo {
    background: linear-gradient(135deg, #faf8f5 0%, #f5efe8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    max-width: 360px;
}

.feed-promo-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    opacity: 0.45;
    color: var(--primary-dark);
}

.feed-promo-icon svg {
    width: 100%;
    height: 100%;
}

.feed-promo-title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 400;
    color: var(--dark-soft);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.feed-promo-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--gray);
    margin-bottom: 32px;
}

.feed-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.feed-promo-btn:active {
    transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .promo-block {
        display: none; /* Hidden on mobile, use feed-promo instead */
    }
}

@media (min-width: 769px) {
    .feed-promo {
        display: none; /* Hidden on desktop */
    }
}

/* ============================================
   Breadcrumbs (SEO)
   ============================================ */

.breadcrumbs {
    padding: 12px 16px;
    font-size: 0.8125rem;
    color: var(--gray);
    background: var(--light);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--gray);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .breadcrumb-separator {
    margin: 0 8px;
    color: var(--gray-light);
}

.breadcrumbs li:last-child span:not(.breadcrumb-separator) {
    color: var(--dark);
    font-weight: 500;
}

@media (min-width: 769px) {
    .breadcrumbs {
        padding: 16px 24px;
        max-width: var(--max-width);
        margin: 0 auto;
        background: transparent;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .header,
    .nav-mobile,
    .whatsapp-float,
    .cart-slide,
    .breadcrumbs,
    .btn {
        display: none !important;
    }

    body {
        padding: 0 !important;
    }
}
