/* ============================================
   COMERZIOFY - PUBLIC STORE THEME
   Plantilla por defecto para tiendas públicas
   ============================================ */

:root {
    --store-primary: #6366f1;
    --store-primary-dark: #4f46e5;
    --store-text: #1f2937;
    --store-text-light: #6b7280;
    --store-bg: #ffffff;
    --store-bg-alt: #f9fafb;
    --store-border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.store-page {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--store-text);
    background: var(--store-bg);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: var(--store-primary);
    text-decoration: none;
}

/* Announcement Bar */
.store-announcement {
    background: var(--store-primary);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    overflow: hidden;
    position: relative;
}

/* Announcement Carousel - Fade animation */
.store-announcement-carousel .announcement-carousel {
    position: relative;
    height: 1.5em;
}

.store-announcement-carousel .announcement-slide {
    position: absolute;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.store-announcement-carousel .announcement-slide.active {
    opacity: 1;
    transform: translateY(0);
}

/* Announcement Marquee - Continuous slide */
.store-announcement-slide {
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.store-announcement-slide .announcement-marquee {
    display: block;
    width: 100%;
    overflow: hidden;
}

.store-announcement-slide .announcement-marquee-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    /* La animación se aplica dinámicamente con JavaScript */
}

.store-announcement-slide .announcement-marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 25px;
    flex-shrink: 0;
}

.store-announcement-slide .announcement-marquee-item::after {
    content: "✦";
    margin-left: 25px;
    opacity: 0.7;
    font-size: 8px;
}

/* Keyframes placeholder - se sobrescribe con JS para valores dinámicos */
@keyframes marquee-slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}

/* Header */
/* Wrapper sticky for header section */
.store-section-wrapper:has(.store-header.sticky) {
    position: sticky;
    top: 0;
    z-index: 100;
}

.store-header {
    background: white;
}

.store-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--store-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.store-nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

.store-nav a {
    color: var(--store-text);
    font-weight: 500;
    transition: color 0.2s;
}

.store-nav a:hover {
    color: var(--store-primary);
}

.store-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.store-header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--store-text);
    transition: all 0.2s;
}

.store-header-btn:hover {
    background: var(--store-bg-alt);
}

/* Search Bar Style */
.store-search-bar {
    display: flex;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.store-search-input {
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    width: 180px;
    outline: none;
    color: #374151;
}

.store-search-input::placeholder {
    color: #9ca3af;
}

.store-search-btn {
    width: 44px;
    height: 44px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    margin: 3px;
    transition: all 0.2s;
}

.store-search-btn i {
    font-size: 16px;
}

.store-search-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Barra de búsqueda grande (reemplaza el menú) */
.store-search-bar-large {
    flex: 1;
    border: 1px solid #e5e7eb;
    min-width: 200px;
}

.store-search-bar-large .store-search-input {
    width: 100%;
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
}

/* Header Layout Variations */
/* Base: siempre usa grid de 3 columnas */
.store-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "left center right";
    align-items: center;
    gap: 24px;
    min-height: 70px;
}

/* Elementos base */
.store-header-inner .store-logo {
    white-space: nowrap;
    min-width: fit-content;
    flex-shrink: 0;
}

.store-header-inner .store-nav {
    display: flex;
    gap: 24px;
    white-space: nowrap;
}

.store-header-inner .store-search-bar-large {
    min-width: 200px;
    flex-shrink: 1;
}

.store-header-inner .store-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: fit-content;
    flex-shrink: 0;
}

/* ============================================ */
/* LOGO IZQUIERDA */
/* ============================================ */

/* Logo izquierda, Menu centro */
.store-header-inner.header-layout-logo-left-menu-center .store-logo {
    grid-area: left;
    justify-self: start;
}

.store-header-inner.header-layout-logo-left-menu-center .store-nav,
.store-header-inner.header-layout-logo-left-menu-center .store-search-bar-large {
    grid-area: center;
    justify-self: center;
}

.store-header-inner.header-layout-logo-left-menu-center .store-header-actions {
    grid-area: right;
    justify-self: end;
}

/* Logo izquierda, Menu derecha */
.store-header-inner.header-layout-logo-left-menu-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    gap: 12px;
}

.store-header-inner.header-layout-logo-left-menu-right .store-logo {
    flex-shrink: 0;
}

.store-header-inner.header-layout-logo-left-menu-right .store-nav,
.store-header-inner.header-layout-logo-left-menu-right .store-search-bar-large {
    margin-left: auto;
    margin-right: 0;
}

.store-header-inner.header-layout-logo-left-menu-right .store-header-actions {
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    background: inherit;
}

/* Logo izquierda, Menu izquierda */
.store-header-inner.header-layout-logo-left-menu-left {
    grid-template-columns: auto auto 1fr;
}

.store-header-inner.header-layout-logo-left-menu-left .store-logo {
    grid-area: left;
    justify-self: start;
}

.store-header-inner.header-layout-logo-left-menu-left .store-nav,
.store-header-inner.header-layout-logo-left-menu-left .store-search-bar-large {
    grid-area: center;
    justify-self: start;
}

.store-header-inner.header-layout-logo-left-menu-left .store-header-actions {
    grid-area: right;
    justify-self: end;
}

/* ============================================ */
/* LOGO CENTRO */
/* ============================================ */

/* Logo centro, Menu izquierda */
.store-header-inner.header-layout-logo-center-menu-left .store-nav,
.store-header-inner.header-layout-logo-center-menu-left .store-search-bar-large {
    grid-area: left;
    justify-self: start;
}

.store-header-inner.header-layout-logo-center-menu-left .store-logo {
    grid-area: center;
    justify-self: center;
}

.store-header-inner.header-layout-logo-center-menu-left .store-header-actions {
    grid-area: right;
    justify-self: end;
}

/* Logo centro, Menu centro - el menú se oculta, logo domina */
.store-header-inner.header-layout-logo-center-menu-center .store-logo {
    grid-area: center;
    justify-self: center;
}

.store-header-inner.header-layout-logo-center-menu-center .store-nav {
    display: none;
}

.store-header-inner.header-layout-logo-center-menu-center .store-search-bar-large {
    grid-area: left;
    justify-self: start;
}

.store-header-inner.header-layout-logo-center-menu-center .store-header-actions {
    grid-area: right;
    justify-self: end;
}

/* Logo centro, Menu derecha */
.store-header-inner.header-layout-logo-center-menu-right .store-header-actions {
    grid-area: left;
    justify-self: start;
}

.store-header-inner.header-layout-logo-center-menu-right .store-logo {
    grid-area: center;
    justify-self: center;
}

.store-header-inner.header-layout-logo-center-menu-right .store-nav,
.store-header-inner.header-layout-logo-center-menu-right .store-search-bar-large {
    grid-area: right;
    justify-self: end;
}

/* ============================================ */
/* LOGO DERECHA */
/* ============================================ */

/* Logo derecha, Menu centro */
.store-header-inner.header-layout-logo-right-menu-center .store-header-actions {
    grid-area: left;
    justify-self: start;
}

.store-header-inner.header-layout-logo-right-menu-center .store-nav,
.store-header-inner.header-layout-logo-right-menu-center .store-search-bar-large {
    grid-area: center;
    justify-self: center;
}

.store-header-inner.header-layout-logo-right-menu-center .store-logo {
    grid-area: right;
    justify-self: end;
}

/* Logo derecha, Menu izquierda */
.store-header-inner.header-layout-logo-right-menu-left .store-nav,
.store-header-inner.header-layout-logo-right-menu-left .store-search-bar-large {
    grid-area: left;
    justify-self: start;
}

.store-header-inner.header-layout-logo-right-menu-left .store-header-actions {
    grid-area: center;
    justify-self: center;
}

.store-header-inner.header-layout-logo-right-menu-left .store-logo {
    grid-area: right;
    justify-self: end;
}

/* Logo derecha, Menu derecha */
.store-header-inner.header-layout-logo-right-menu-right {
    grid-template-columns: 1fr auto auto;
}

.store-header-inner.header-layout-logo-right-menu-right .store-header-actions {
    grid-area: left;
    justify-self: start;
}

.store-header-inner.header-layout-logo-right-menu-right .store-nav,
.store-header-inner.header-layout-logo-right-menu-right .store-search-bar-large {
    grid-area: center;
    justify-self: end;
}

.store-header-inner.header-layout-logo-right-menu-right .store-logo {
    grid-area: right;
    justify-self: end;
}

/* Hero Section */
.store-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.store-hero.with-image {
    background-size: cover;
    background-position: center;
}

.store-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.store-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.store-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.store-hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.store-hero-btn {
    display: inline-block;
    background: white;
    color: var(--store-primary);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   HERO CAROUSEL
   ============================================ */

.store-hero.has-carousel {
    position: relative;
    background: transparent !important;
}

.store-hero.has-carousel::before {
    display: none;
}

.hero-carousel-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel-slide.active {
    opacity: 1;
}

.store-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.store-hero.has-carousel .store-hero-content {
    position: relative;
    z-index: 2;
}

/* Indicadores del carrusel */
.hero-carousel-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.hero-carousel-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive: ocultar indicadores en móviles pequeños */
@media (max-width: 480px) {
    .hero-carousel-indicators {
        bottom: 16px;
        gap: 8px;
    }

    .hero-carousel-dot {
        width: 10px;
        height: 10px;
    }
}

/* Products Section */
.store-section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.store-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.store-section-title {
    font-size: 28px;
    font-weight: 700;
}

.store-section-link {
    color: var(--store-primary);
    font-weight: 500;
}

/* Product Grid */
.store-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.store-product {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

/* Only apply default hover if no specific hover class is set */
.store-product:not([class*="hover-"]):hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.store-product-image {
    background: var(--store-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Discount badge */
.store-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
    letter-spacing: 0.5px;
}

.store-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.store-product-image i {
    font-size: 48px;
    color: var(--store-border);
}

.store-product-info {
    padding: 16px;
}

.store-product-name {
    font-weight: 600;
    color: var(--store-text);
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--store-primary);
    margin-bottom: 12px;
}

.store-product-price .compare {
    color: var(--store-text-light);
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 400;
    margin-left: 8px;
}

.store-product-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--store-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.store-product-btn:hover {
    background: var(--store-primary-dark);
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */

/* Default hover (lift) */
.store-product.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-product.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Glow effect */
.store-product.hover-glow {
    transition: all 0.3s ease;
}

.store-product.hover-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25) !important;
}

/* Scale effect */
.store-product.hover-scale {
    transition: all 0.3s ease;
}

.store-product.hover-scale:hover {
    transform: scale(1.03);
}

/* Border highlight effect */
.store-product.hover-border {
    transition: all 0.3s ease;
}

.store-product.hover-border:hover {
    border-color: var(--store-primary) !important;
    box-shadow: 0 0 0 2px var(--store-primary) !important;
}

/* No hover effect */
.store-product.hover-none {
    transition: none;
}

.store-product.hover-none:hover {
    transform: none;
    box-shadow: inherit;
}

/* ============================================
   QUICK ADD TO CART BUTTON
   ============================================ */

.store-product-quick-add {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.store-product:hover .store-product-quick-add {
    opacity: 1;
    transform: scale(1);
}

.store-product-quick-add:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.store-product-quick-add:active {
    transform: scale(0.95) !important;
}

/* Mobile: always show quick add button */
@media (max-width: 768px) {
    .store-product-quick-add {
        opacity: 1;
        transform: scale(1);
        width: 36px;
        height: 36px;
        font-size: 14px;
        bottom: 8px;
        right: 8px;
    }
}

/* ============================================
   PRODUCTS SECTION - LAYOUTS & MOBILE CAROUSEL
   ============================================ */

/* Column Layout Variations */
.store-products.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.store-products.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.store-products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Card Style Variations */
.store-products.card-style-portrait .store-product-image {
    aspect-ratio: 3/4;
}

.store-products.card-style-landscape .store-product-image {
    aspect-ratio: 4/3;
}

.store-products.card-style-wide .store-product-image {
    aspect-ratio: 16/9;
}

/* Products Carousel Container */
.store-products-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.store-products.carousel-mode {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding: 4px 0 16px;
}

.store-products.carousel-mode::-webkit-scrollbar {
    display: none;
}

.store-products.carousel-mode .store-product {
    flex: 0 0 280px;
    scroll-snap-align: start;
    min-width: 0;
}

.store-products.carousel-mode .store-product-link {
    display: block;
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* Carousel Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--store-primary);
    transform: scale(1.25);
}

/* Carousel Navigation Arrows */
.carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 8px;
    z-index: 10;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    transition: all 0.2s;
}

.carousel-arrow:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Swipe Indicator for Mobile */
.carousel-swipe-hint {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 12px;
    margin-top: 8px;
    animation: swipeHint 2s ease-in-out infinite;
}

.carousel-swipe-hint i {
    font-size: 14px;
}

@keyframes swipeHint {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.6;
    }

    50% {
        transform: translateX(8px);
        opacity: 1;
    }
}

/* Mobile Responsive - Products Section */
@media (max-width: 992px) {
    .store-products.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .store-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .store-products.columns-2,
    .store-products.columns-3,
    .store-products.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Grid mode on mobile - 2 columns with horizontal scroll support */
    .store-products.mobile-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .store-products.mobile-grid::-webkit-scrollbar {
        display: none;
    }

    .store-products.mobile-grid .store-product-link {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .store-products.mobile-grid .store-product {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Mobile image sizing - use aspect ratio for better proportions */
    .store-products.mobile-grid .store-product-image {
        width: 100%;
        height: auto !important;
        aspect-ratio: 1 / 1;
        min-height: 120px;
        max-height: 180px;
    }

    .store-products.mobile-grid .store-product-image img {
        width: 100%;
        height: 100%;
    }

    /* Fix button distortion on mobile grid */
    .store-products.mobile-grid .store-product-info {
        display: flex;
        flex-direction: column;
        padding: 10px;
        flex: 1;
    }

    .store-products.mobile-grid .store-product-name {
        font-size: 15px;
        line-height: 1.4;
        min-height: 40px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }

    .store-products.mobile-grid .store-product-price {
        font-size: 20px !important;
        font-weight: 700;
        margin-bottom: 10px;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 8px;
    }

    .store-products.mobile-grid .store-product-price .compare {
        font-size: 14px;
        font-weight: 400;
    }

    .store-products.mobile-grid .store-product-btn {
        width: 100%;
        padding: 8px 10px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-top: auto;
        flex-shrink: 0;
    }

    .store-products.mobile-grid .store-product-btn i {
        font-size: 11px;
        flex-shrink: 0;
    }

    /* Carousel mode on mobile */
    .store-products.mobile-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding: 4px 0 12px;
    }

    .store-products.mobile-carousel::-webkit-scrollbar {
        display: none;
    }

    .store-products.mobile-carousel .store-product-link {
        flex: 0 0 75vw;
        max-width: 280px;
        scroll-snap-align: center;
    }

    .store-products.mobile-carousel .store-product {
        width: 100%;
    }

    /* Mobile carousel text sizes - match grid sizes */
    .store-products.mobile-carousel .store-product-name {
        font-size: 15px;
        min-height: 40px;
        line-height: 1.4;
    }

    .store-products.mobile-carousel .store-product-price {
        font-size: 20px !important;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .store-products.mobile-carousel .store-product-price .compare {
        font-size: 14px;
        font-weight: 400;
    }

    .carousel-swipe-hint {
        display: flex;
    }

    .carousel-arrows {
        display: none;
    }

    .store-product-info {
        padding: 12px;
    }

    .store-product-name {
        font-size: 15px;
        min-height: 40px;
        line-height: 1.4;
    }

    .store-product-price {
        font-size: 20px !important;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .store-product-price .compare {
        font-size: 14px;
        font-weight: 400;
    }

    .store-product-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .store-section {
        padding: 40px 16px;
    }

    .store-section-title {
        font-size: 22px;
    }

    .store-products {
        gap: 8px;
    }

    /* Mobile grid adjustments for small screens */
    .store-products.mobile-grid {
        gap: 8px;
    }

    .store-products.mobile-grid .store-product-image {
        min-height: 100px;
        max-height: 150px;
    }

    .store-products.mobile-grid .store-product-info {
        padding: 8px;
    }

    .store-products.mobile-grid .store-product-name {
        font-size: 14px;
        min-height: 36px;
        line-height: 1.4;
    }

    .store-products.mobile-grid .store-product-price {
        font-size: 18px !important;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .store-products.mobile-grid .store-product-price .compare {
        font-size: 13px;
    }

    .store-products.mobile-grid .store-product-btn {
        padding: 7px 8px;
        font-size: 10px;
        min-height: 32px;
    }

    .store-products.mobile-carousel .store-product-link {
        flex: 0 0 85vw;
        max-width: 300px;
    }

    .store-product-info {
        padding: 10px;
    }

    .store-product-name {
        font-size: 13px;
        min-height: 34px;
    }

    .store-product-price {
        font-size: 15px !important;
        margin-bottom: 8px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }
}

/* Empty State */
.store-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--store-text-light);
}

.store-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.store-empty h3 {
    font-size: 20px;
    color: var(--store-text);
    margin-bottom: 8px;
}

/* Footer */
.store-footer {
    background: var(--store-text);
    color: white;
    padding: 48px 24px;
}

.store-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

/* Columnas dinámicas del footer */
.store-footer-inner.columns-1 {
    grid-template-columns: 1fr;
    max-width: 500px;
    text-align: center;
}

.store-footer-inner.columns-1 .store-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-footer-inner.columns-1 .store-footer-social {
    justify-content: center;
}

.store-footer-inner.columns-2 {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    text-align: center;
}

.store-footer-inner.columns-2 .store-footer-brand,
.store-footer-inner.columns-2 .store-footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-footer-inner.columns-2 .store-footer-social {
    justify-content: center;
}

.store-footer-inner.columns-3 {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1000px;
    text-align: center;
}

.store-footer-inner.columns-3 .store-footer-brand,
.store-footer-inner.columns-3 .store-footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-footer-inner.columns-3 .store-footer-social {
    justify-content: center;
}

.store-footer-inner.columns-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    max-width: 1200px;
    text-align: center;
}

.store-footer-inner.columns-4 .store-footer-brand,
.store-footer-inner.columns-4 .store-footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-footer-inner.columns-4 .store-footer-social {
    justify-content: center;
}

.store-footer-logo {
    max-width: 150px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 16px;
}

.store-footer-brand h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.store-footer-brand p {
    color: inherit;
    opacity: var(--footer-text-opacity, 1);
    font-size: 14px;
    line-height: 1.8;
}

.store-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.store-footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: var(--footer-text-opacity, 1);
    transition: background 0.2s, opacity 0.2s;
}

.store-footer-social a:hover {
    background: var(--store-primary);
    opacity: 1;
}

.store-footer h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: inherit;
    opacity: var(--footer-text-opacity, 1);
}

.store-footer-column {
    min-width: 0;
}

.store-footer-links {
    list-style: none;
}

.store-footer-links a {
    color: inherit;
    opacity: var(--footer-text-opacity, 1);
    display: block;
    padding: 6px 0;
    transition: opacity 0.2s;
}

.store-footer-links a:hover {
    opacity: 1;
}

.store-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: inherit;
    opacity: calc(var(--footer-text-opacity, 1) * 0.8);
    font-size: 14px;
}

/* Payment Methods Bar */
.store-footer-payments {
    padding: 16px 24px;
    margin-top: 24px;
    border-radius: 8px 8px 0 0;
}

.footer-payments-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-payments-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
}

.footer-payments-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-icon {
    width: 42px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.payment-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.payment-icon svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .footer-payments-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-payments-icons {
        justify-content: center;
    }
}

/* Footer Newsletter */
.footer-newsletter {
    padding: 40px 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-newsletter-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: inherit;
}

.footer-newsletter-content p {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 20px;
    color: inherit;
}

.footer-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.footer-newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    outline: none;
    transition: background 0.2s;
}

.footer-newsletter-input::placeholder {
    color: inherit;
    opacity: 0.6;
}

.footer-newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.footer-newsletter-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Footer Column Image */
.store-footer-column-image {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
    object-fit: contain;
}

/* Footer Column Text */
.footer-column-text {
    color: inherit;
    opacity: var(--footer-text-opacity, 1);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
    word-wrap: break-word;
}

/* Footer Column Newsletter Form (inline) */
.footer-column-newsletter {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 12px;
    max-width: 100%;
    width: 100%;
}

.footer-column-newsletter .footer-newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 13px;
    outline: none;
}

.footer-column-newsletter .footer-newsletter-input::placeholder {
    color: inherit;
    opacity: 0.6;
}

.footer-newsletter-submit-btn {
    width: 44px;
    min-width: 44px;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.footer-newsletter-submit-btn:hover {
    opacity: 0.9;
}

/* Evitar desbordamiento de columnas del footer */
.store-footer-column {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Responsive Newsletter */
@media (max-width: 480px) {
    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-newsletter-btn {
        width: 100%;
    }

    .footer-newsletter-content h3 {
        font-size: 20px;
    }
}

/* Not Found */
.store-not-found {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.store-not-found i {
    font-size: 80px;
    color: var(--store-border);
    margin-bottom: 24px;
}

.store-not-found h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.store-not-found p {
    color: var(--store-text-light);
    margin-bottom: 24px;
}

.store-not-found a {
    background: var(--store-primary);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .store-header-inner {
        padding: 12px 16px;
    }

    .store-nav {
        display: none;
    }

    .store-hero h1 {
        font-size: 32px;
    }

    .store-hero p {
        font-size: 16px;
    }

    /* Footer móvil */
    .store-footer-inner,
    .store-footer-inner.columns-1,
    .store-footer-inner.columns-2,
    .store-footer-inner.columns-3,
    .store-footer-inner.columns-4 {
        grid-template-columns: 1fr !important;
        gap: 32px;
        text-align: center;
        max-width: 100%;
    }

    .store-footer-brand,
    .store-footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .store-footer-social {
        justify-content: center;
    }

    .store-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-newsletter-form {
        flex-direction: column;
    }
}

/* ============================================
   ESTILOS ADICIONALES PARA SECCIONES DINÁMICAS
   ============================================ */

/* Hero Heights */
.store-hero.height-small {
    padding: 60px 24px;
}

.store-hero.height-medium {
    padding: 100px 24px;
}

.store-hero.height-large {
    padding: 160px 24px;
}

.store-hero.height-full {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* Hero Overlay */
.store-hero-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    pointer-events: none;
}

.store-hero.with-image::before {
    display: none;
    /* Usar overlay dinámico en su lugar */
}

/* Product Grid Columns */
.store-products.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.store-products.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.store-products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .store-products.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .store-products.columns-3,
    .store-products.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .store-products.columns-2,
    .store-products.columns-3,
    .store-products.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Newsletter Section */
.store-newsletter {
    padding: 80px 24px;
    text-align: center;
}

.store-newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.store-newsletter h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--store-text);
}

.store-newsletter p {
    font-size: 16px;
    color: var(--store-text-light);
    margin-bottom: 24px;
}

.store-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.store-newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--store-border);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.store-newsletter-form input:focus {
    border-color: var(--store-primary);
}

.store-newsletter-form button {
    padding: 14px 32px;
    background: var(--store-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.store-newsletter-form button:hover {
    background: var(--store-primary-dark);
}

/* Header Sticky */
.store-header.sticky {
    position: sticky;
    top: 0;
}

/* Image with Text Section */
.store-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.store-image-text.image-right {
    direction: rtl;
}

.store-image-text.image-right>* {
    direction: ltr;
}

.store-image-text-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.store-image-text-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--store-text);
}

.store-image-text-content p {
    font-size: 18px;
    color: var(--store-text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.store-image-text-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--store-primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.store-image-text-btn:hover {
    background: var(--store-primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .store-image-text {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 24px;
    }

    .store-image-text.image-right {
        direction: ltr;
    }
}

/* Mobile menu button */
.store-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    color: var(--store-text);
}

@media (max-width: 768px) {
    .store-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mejoras visuales generales */
.store-product {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-product:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.store-product-image img {
    transition: transform 0.5s ease;
}

.store-product:hover .store-product-image img {
    transform: scale(1.05);
}

/* Animación suave para la barra de anuncios */
.store-announcement {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Efectos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejora de accesibilidad - focus visible */
.store-header-btn:focus-visible,
.store-hero-btn:focus-visible,
.store-product-btn:focus-visible {
    outline: 2px solid var(--store-primary);
    outline-offset: 2px;
}

/* Placeholder products (estilo Shopify) */
.store-product-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.store-product-placeholder svg {
    width: 60%;
    height: 60%;
}

.store-product.placeholder {
    opacity: 0.9;
}

.store-product.placeholder .store-product-btn {
    background: #e5e7eb;
    cursor: default;
    pointer-events: none;
}

.store-product-no-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 12px;
    color: #9ca3af;
    font-size: 48px;
}

/* ============================================
   TRUST BADGES SECTION
   ============================================ */

.store-trust-badges {
    padding: 40px 24px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-badges-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.trust-badge-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--store-primary, #10b981);
    font-size: 24px;
}

.trust-badge-content {
    flex: 1;
}

.trust-badge-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.trust-badge-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 500px) {
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-badge {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

/* Product Link Wrapper */
.store-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Breadcrumb */
.product-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--store-text-light);
}

.product-breadcrumb a {
    color: var(--store-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb a:hover {
    color: var(--store-primary);
}

.product-breadcrumb i {
    font-size: 10px;
    opacity: 0.5;
}

.product-breadcrumb span {
    color: var(--store-text);
    font-weight: 500;
}

/* Product Detail Container */
.product-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
    max-width: 100%;
    overflow: hidden;
}

.product-gallery-main {
    aspect-ratio: 1;
    background: var(--store-bg-alt);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    margin-bottom: 16px;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-gallery-main:hover img {
    transform: scale(1.02);
}

.product-gallery-zoom {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--store-text);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.product-gallery-main:hover .product-gallery-zoom {
    opacity: 1;
}

.product-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-placeholder i {
    font-size: 80px;
    color: var(--store-border);
}

/* Thumbnails */
.product-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0;
    max-width: 100%;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.product-gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.product-gallery-thumb:hover {
    border-color: var(--store-border);
}

.product-gallery-thumb.active {
    border-color: var(--store-primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    padding: 16px 0;
}

.product-category-badge {
    display: inline-block;
    background: var(--store-bg-alt);
    color: var(--store-text-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--store-text);
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Price Box */
.product-price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.product-current-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--store-primary);
}

.product-compare-price {
    font-size: 20px;
    color: var(--store-text-light);
    text-decoration: line-through;
}

.product-discount-badge {
    background: #dc2626;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.product-short-desc {
    color: var(--store-text-light);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Stock Status */
.product-stock {
    margin-bottom: 24px;
}

.product-stock span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.stock-available {
    color: #059669;
}

.stock-low {
    color: #d97706;
}

.stock-out {
    color: #dc2626;
}

/* Quantity & Actions */
.product-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.product-quantity {
    display: flex;
    align-items: center;
    background: var(--store-bg-alt);
    border-radius: 12px;
    overflow: hidden;
}

.product-quantity button {
    width: 48px;
    height: 52px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: var(--store-text);
    transition: background 0.2s;
}

.product-quantity button:hover {
    background: var(--store-border);
}

.product-quantity input {
    width: 50px;
    height: 52px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--store-text);
}

.product-quantity input::-webkit-inner-spin-button,
.product-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.btn-add-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--store-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart:hover:not(:disabled) {
    background: var(--store-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-add-cart:disabled,
.btn-buy-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-buy-now {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.btn-buy-now:hover:not(:disabled) {
    background: #111827;
    transform: translateY(-2px);
}

/* Trust Badges on Product Page */
.product-trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.product-trust .trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.product-trust .trust-item i {
    flex-shrink: 0;
    margin-top: 2px;
}

.product-trust .trust-item-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

.product-trust .trust-primary {
    font-weight: 600;
}

.product-trust .trust-separator {
    color: #9ca3af;
    font-weight: 400;
}

.product-trust .trust-secondary {
    color: #6b7280;
    font-weight: 400;
}

/* Product Description Section */
.product-description-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    border-top: 1px solid var(--store-border);
}

.product-description-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--store-text);
}

.product-description-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--store-text);
}

/* Quill Editor Content Styles */
.product-description-content.ql-editor {
    padding: 0;
}

.product-description-content h2,
.product-description-content h3,
.product-description-content h4 {
    margin: 24px 0 16px;
    font-weight: 700;
    color: var(--store-text);
    line-height: 1.4;
}

.product-description-content h2 {
    font-size: 24px;
}

.product-description-content h3 {
    font-size: 20px;
}

.product-description-content p {
    margin: 16px 0;
}

.product-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
}

.product-description-content .ql-align-center {
    text-align: center;
}

.product-description-content .ql-align-right {
    text-align: right;
}

.product-description-content ul,
.product-description-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.product-description-content li {
    margin: 8px 0;
}

.product-description-content strong {
    font-weight: 600;
}

.product-description-content em {
    font-style: italic;
}

/* Simple Footer */
.store-footer-simple {
    width: 100%;
    background: #1f2937;
    padding: 32px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 40px;
}

.store-footer-simple p {
    margin: 0;
}

.store-footer-simple a {
    color: var(--store-primary);
    transition: color 0.2s;
}

.store-footer-simple a:hover {
    color: white;
}

/* Product Lightbox */
.product-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.product-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.product-lightbox .lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.product-lightbox .lightbox-close:hover {
    background: var(--store-primary);
    color: white;
    transform: scale(1.1);
}

/* Responsive Product Detail */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery {
        position: static;
    }

    .product-title {
        font-size: 26px;
    }

    .product-current-price {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 0 16px 40px;
        overflow-x: hidden;
    }

    .product-breadcrumb {
        padding: 12px 16px;
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }

    /* Contener la galería para evitar overflow */
    .product-gallery {
        max-width: 100%;
        overflow: hidden;
        width: 100%;
    }

    /* Miniaturas en móvil - scroll horizontal contenido */
    .product-gallery-thumbs {
        justify-content: flex-start;
        max-width: 100%;
        padding: 8px 4px;
        gap: 8px;
    }

    .product-gallery-thumb {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }

    /* Centrar todo el contenido del product-info */
    .product-info {
        text-align: center;
    }

    .product-category-badge {
        display: inline-block;
    }

    .product-title {
        text-align: center;
    }

    .product-reviews {
        justify-content: center;
    }

    .product-price-box {
        justify-content: center;
        flex-wrap: wrap;
    }

    .product-short-desc {
        text-align: center;
    }

    .product-stock {
        text-align: center;
    }

    .stock-urgency-indicator {
        text-align: center;
    }

    .product-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .product-actions .product-quantity {
        width: 100%;
        justify-content: center;
    }

    .product-actions .btn-add-cart {
        width: 100%;
    }

    .countdown-urgency {
        display: flex;
        justify-content: center;
    }

    .countdown-timer {
        justify-content: center;
    }

    .urgency-message {
        text-align: center;
    }

    .product-trust {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .product-trust .trust-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }

    .product-trust .trust-item-text {
        justify-content: flex-start;
        text-align: left;
        flex-wrap: wrap;
    }
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

/* Botón hamburguesa */
.store-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.store-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile search bar */
.store-mobile-search {
    display: none;
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.store-search-bar-mobile {
    width: 100%;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.store-search-bar-mobile .store-search-input {
    flex: 1;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
}

/* Secondary navigation bar - HIDDEN (use hamburger instead) */
.store-secondary-nav {
    display: none;
}

/* Desktop layout when search bar mode is active */
.store-header.has-search-bar .store-header-inner {
    display: flex !important;
    align-items: center;
    gap: 16px;
}

.store-header.has-search-bar .store-menu-toggle {
    display: flex;
    order: 2;
    flex-shrink: 0;
}

/* Hamburger before logo */
.store-header.has-search-bar.hamburger-before .store-menu-toggle {
    order: 0;
}

.store-header.has-search-bar.hamburger-before .store-logo {
    order: 1;
}

.store-header.has-search-bar .store-logo {
    order: 1;
    flex-shrink: 0;
}

.store-header.has-search-bar .store-search-bar-large {
    order: 3;
    flex: 0 0 auto;
    margin-left: auto;
    max-width: calc(100% - 300px);
}

.store-header.has-search-bar .store-header-actions {
    order: 4;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Mobile menu overlay */
.store-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.store-mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu drawer */
.store-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.store-mobile-menu.open {
    transform: translateX(0);
}

.store-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.store-mobile-menu-header span {
    font-size: 18px;
}

.store-mobile-menu-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.store-mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.store-mobile-menu-items {
    padding: 16px 0;
}

.store-mobile-menu-items a {
    display: block;
    padding: 16px 24px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}

.store-mobile-menu-items a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Body lock when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Desktop only class */
.store-desktop-only {
    display: flex;
}

/* ============================================
   MOBILE RESPONSIVE HEADER
   ============================================ */

@media (max-width: 768px) {

    /* Show hamburger, hide desktop nav */
    .store-menu-toggle {
        display: flex;
    }

    .store-nav,
    .store-search-bar-large {
        display: none !important;
    }

    .store-desktop-only {
        display: none !important;
    }

    /* Show mobile search */
    .store-mobile-search {
        display: block;
    }

    /* Simplify header layout for mobile */
    .store-header-inner {
        display: flex !important;
        grid-template-columns: none !important;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .store-header-inner .store-menu-toggle {
        order: 1;
    }

    .store-header-inner .store-logo {
        order: 2;
        flex: 1;
        text-align: left;
        justify-self: flex-start !important;
    }

    .store-header-inner .store-header-actions {
        order: 3;
        justify-self: flex-end !important;
    }

    /* Logo size on mobile */
    .store-logo img {
        max-height: 32px;
    }

    .store-logo {
        font-size: 18px;
    }

    /* Header padding */
    .store-header-inner {
        padding: 12px 16px;
    }

    /* Hide secondary nav on mobile */
    .store-secondary-nav {
        display: none;
    }
}

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */

/* Scale Animation */
.btn-animation-scale {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-animation-scale:hover:not(:disabled) {
    transform: scale(1.05);
}

/* Lift Animation */
.btn-animation-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-animation-lift:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Glow Animation */
.btn-animation-glow {
    transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-animation-glow:hover:not(:disabled) {
    filter: brightness(1.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* No Animation */
.btn-animation-none {
    transition: none;
}

/* Product Actions Layout Adjustments */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* When both buttons are visible, buy-now takes full row below */
.product-actions .btn-buy-now:not(.btn-full-width) {
    width: 100%;
    flex: none;
    margin-top: 4px;
}

/* Single Button Layout - when only buy-now is visible */
.product-actions.single-button {
    align-items: center;
}

.product-actions.single-button .btn-buy-now.btn-full-width {
    flex: 1;
    width: auto;
    margin-top: 0;
    margin-bottom: 0;
    height: 52px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-actions.single-button .product-quantity {
    flex-shrink: 0;
}

/* Mobile: Full width button when single-button mode */
@media (max-width: 768px) {
    .product-actions.single-button {
        flex-direction: column;
        gap: 12px;
    }

    .product-actions.single-button .product-quantity {
        width: 100%;
        justify-content: center;
    }

    .product-actions.single-button .btn-buy-now.btn-full-width {
        width: 100%;
        height: auto;
        padding: 16px;
    }
}

/* ============================================
   BUTTON AUTO ANIMATIONS (No hover required)
   ============================================ */

/* Pulse Animation */
@keyframes btn-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.btn-auto-pulse {
    animation: btn-pulse 2s ease-in-out infinite;
}

/* Bounce Animation */
@keyframes btn-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-2px);
    }
}

.btn-auto-bounce {
    animation: btn-bounce 2s ease-in-out infinite;
}

/* Shake Animation */
@keyframes btn-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px);
    }
}

.btn-auto-shake {
    animation: btn-shake 3s ease-in-out infinite;
}

/* Glow Animation */
@keyframes btn-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 40px rgba(99, 102, 241, 0.3);
    }
}

.btn-auto-glow {
    animation: btn-glow 2s ease-in-out infinite;
}

/* Float Animation */
@keyframes btn-float {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    }
}

.btn-auto-float {
    animation: btn-float 3s ease-in-out infinite;
}

/* Wiggle Animation */
@keyframes btn-wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-1deg);
    }

    75% {
        transform: rotate(1deg);
    }
}

.btn-auto-wiggle {
    animation: btn-wiggle 0.5s ease-in-out infinite;
}

/* ============================================
   HERO SECTION - ADVANCED STYLES
   ============================================ */

/* Hero Content Alignment */
.store-hero.align-left .store-hero-content {
    text-align: left;
    align-items: flex-start;
}

.store-hero.align-center .store-hero-content {
    text-align: center;
    align-items: center;
}

.store-hero.align-right .store-hero-content {
    text-align: right;
    align-items: flex-end;
}

/* Hero Title Animations */
@keyframes heroFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroBounce {

    0%,
    20%,
    53%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    70% {
        transform: translateY(-7px);
    }
}

.hero-anim-fadeIn {
    animation: heroFadeIn 1s ease-out forwards;
}

.hero-anim-slideUp {
    animation: heroSlideUp 0.8s ease-out forwards;
}

.hero-anim-slideDown {
    animation: heroSlideDown 0.8s ease-out forwards;
}

.hero-anim-zoomIn {
    animation: heroZoomIn 0.8s ease-out forwards;
}

.hero-anim-bounce {
    animation: heroBounce 1s ease-out;
}

/* Hero Button Styles */
.store-hero-btn.hero-btn-solid {
    border-radius: 6px;
}

.store-hero-btn.hero-btn-outline {
    background: transparent !important;
    border: 2px solid currentColor;
}

.store-hero-btn.hero-btn-rounded {
    border-radius: 12px;
}

.store-hero-btn.hero-btn-pill {
    border-radius: 50px;
    padding-left: 30px;
    padding-right: 30px;
}

/* ============================================
   SHOPPING CART DRAWER
   Premium slide-out cart sidebar
   ============================================ */

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}

.cart-drawer.active {
    transform: translateX(0);
}

/* Cart Header */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.cart-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
}

.cart-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.2s;
}

.cart-close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Cart Body / Items Container */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: #9ca3af;
}

.cart-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-empty-text {
    font-size: 16px;
    color: #6b7280;
}

.cart-empty-subtext {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Cart Items */
.cart-items {
    padding: 0;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #f5f5f5;
    animation: cartItemFadeIn 0.3s ease;
}

@keyframes cartItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item.removing {
    animation: cartItemFadeOut 0.3s ease forwards;
}

@keyframes cartItemFadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
        height: 0;
        padding: 0;
        margin: 0;
    }
}

.cart-item-image {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9fafb;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 24px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

.cart-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cart-item-unit-price {
    font-size: 13px;
    color: #6b7280;
}

.cart-item-compare-price {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Quantity Selector */
.cart-qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
    transition: all 0.15s;
}

.cart-qty-btn:hover {
    background: #f9fafb;
    color: #1f2937;
}

.cart-qty-btn:active {
    background: #f3f4f6;
}

.cart-qty-value {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    border: none;
    background: transparent;
    -moz-appearance: textfield;
}

.cart-qty-value::-webkit-outer-spin-button,
.cart-qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Button */
.cart-item-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 6px;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Cart Footer */
.cart-footer {
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

/* Discount Section */
.cart-discount {
    border-bottom: 1px solid #f0f0f0;
}

.cart-discount-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: background 0.2s;
}

.cart-discount-toggle:hover {
    background: #fafafa;
}

.cart-discount-toggle i {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.cart-discount-toggle.active i {
    transform: rotate(180deg);
}

.cart-discount-form {
    display: none;
    padding: 0 24px 16px;
    gap: 8px;
}

.cart-discount-form.active {
    display: flex;
}

.cart-discount-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.cart-discount-input:focus {
    border-color: var(--store-primary);
}

.cart-discount-apply {
    padding: 10px 18px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-discount-apply:hover {
    background: #e5e7eb;
}

/* Cart Summary */
.cart-summary {
    padding: 20px 24px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cart-summary-label {
    font-size: 15px;
    color: #374151;
}

.cart-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.cart-summary-note {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 8px;
    line-height: 1.4;
}

/* Checkout Button */
.cart-checkout-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    padding: 16px 24px;
    background: #1f2937;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-checkout-btn:hover {
    background: #111827;
}

.cart-checkout-btn:active {
    transform: scale(0.99);
}

.cart-checkout-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* Header Cart Badge */
.cart-header-badge {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--store-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.cart-badge.bounce {
    animation: cartBadgeBounce 0.5s ease;
}

@keyframes cartBadgeBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Add to Cart Success Animation */
.btn-add-cart.adding {
    pointer-events: none;
}

.btn-add-cart.added {
    background: #22c55e !important;
}

.btn-add-cart.added::after {
    content: '✓';
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
    }

    .cart-item {
        padding: 16px 20px;
    }

    .cart-item-image {
        width: 64px;
        height: 64px;
    }

    .cart-summary {
        padding: 16px 20px;
    }
}

/* Body scroll lock when cart is open */
body.cart-open {
    overflow: hidden;
}

/* ============================================
   PRODUCT URGENCY ELEMENTS
   Stock indicator, countdown timer, urgency message
   ============================================ */

/* Stock Urgency Indicator */
.stock-urgency-indicator {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 16px;
}

.stock-urgency-text {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.stock-urgency-text strong {
    font-weight: 700;
}

.stock-urgency-bar {
    width: 100%;
    height: 8px;
    background: #fee2e2;
    border-radius: 4px;
    overflow: hidden;
}

.stock-urgency-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    animation: pulse-bar 2s ease-in-out infinite;
}

@keyframes pulse-bar {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Countdown Timer */
.countdown-urgency {
    margin: 20px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    text-align: center;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 4px;
    color: #6b7280;
}

.countdown-separator {
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 14px;
}

/* Urgency Message */
.urgency-message {
    text-align: center;
    margin: 12px 0 20px;
    padding: 0 16px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .countdown-value {
        font-size: 24px;
    }

    .countdown-item {
        min-width: 48px;
    }

    .countdown-separator {
        font-size: 22px;
    }

    .stock-urgency-indicator {
        padding: 10px 12px;
    }

    .stock-urgency-text {
        font-size: 13px;
    }
}

/* ============================================
   PRODUCT REVIEWS/STARS
   ============================================ */

.product-reviews {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 16px;
}

.product-reviews-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-reviews-stars i {
    font-size: 16px;
}

.product-reviews-text {
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 480px) {
    .product-reviews-stars i {
        font-size: 14px;
    }

    .product-reviews-text {
        font-size: 13px;
    }
}

/* ============================================
   DROPCOD COD BUTTON
   ============================================ */

.btn-dropcod-cod {
    width: 100%;
    padding: 18px 24px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    background: #000000;
    color: #ffffff;
}

.btn-dropcod-cod:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-dropcod-cod:active {
    transform: translateY(0);
}

.btn-dropcod-cod:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-dropcod-cod i {
    margin-right: 6px;
    flex-shrink: 0;
}

.btn-dropcod-text {
    display: inline;
}

.btn-dropcod-subtitle {
    flex-basis: 100%;
    width: 100%;
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
    margin-top: 2px;
}

/* Dropcod button animations */
.btn-dropcod-cod.btn-auto-pulse {
    animation: dropcod-pulse 2s ease-in-out infinite;
}

.btn-dropcod-cod.btn-auto-bounce {
    animation: dropcod-bounce 1s ease infinite;
}

.btn-dropcod-cod.btn-auto-shake {
    animation: dropcod-shake 0.5s ease-in-out infinite;
}

.btn-dropcod-cod.btn-auto-glow {
    animation: dropcod-glow 2s ease-in-out infinite;
}

@keyframes dropcod-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes dropcod-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes dropcod-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

@keyframes dropcod-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

/* Mobile responsive for Dropcod button */
@media (max-width: 768px) {
    .btn-dropcod-cod {
        padding: 16px 20px;
    }
}