/* Jeruti - Styles */

:root {
    --primary: #00A650;
    /* Verde */
    --primary-dark: #008540;
    --secondary: #1a1a1a;
    /* Casi negro para textos */
    --bg-color: #f4f4f4;
    /* Gris muy claro para el fondo general */
    --surface: #FFFFFF;
    /* Blanco para tarjetas y paneles */
    --text-muted: #666666;
    --accent-red: #E31E24;
    /* Rojo para ofertas */

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);

    --border-radius: 8px;
    /* Bordes más sutiles estilo */
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html, body {
    background-color: var(--bg-color);
    color: var(--secondary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: visible; /* Changed from hidden to visible to allow sticky header */
    width: 100%;
    position: relative;
    margin: 0;
}

/* Main Header Style */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2000;
    background: var(--header-bg);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 5px;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo span {
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .logo {
        font-size: 22px;
    }

    .logo span {
        font-size: 12px;
    }
}

.search-container {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    background: #f0f2f5;
    border-radius: 50px;
    padding: 2px 2px 2px 15px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.search-form:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 166, 80, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--secondary);
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.admin-link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 14px;
}


.boton-whatsapp {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.boton-whatsapp:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section / Banner */
/* Hero Carousel */
.carousel-container {
    position: relative;
    display: block; /* Removed grid for cleaner proportional height */
    width: 100%;
    overflow: hidden;
    background-color: #000;
    margin-top: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    position: relative; /* Only active slide dictates container height */
    opacity: 1;
    z-index: 2;
}

.carousel-image {
    width: 100%;
    max-width: 100%;
    height: auto !important; /* Forces natural proportion */
    object-fit: contain; /* Shows full image */
    display: block;
}

/* Semi-transparent overlay to ensure text is readable */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3;
}

/* Content over carousel */
.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
}

.carousel-content h1 {
    font-size: clamp(24px, 5vw, 54px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.8s ease-out;
}

.carousel-content p {
    font-size: clamp(14px, 2.5vw, 20px);
    margin-bottom: clamp(15px, 3vw, 30px);
    color: #f1f5f9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    animation: slideUp 1s ease-out both;
}

@media (max-width: 768px) {

    .carousel-content h1 {
        margin-bottom: 5px;
        font-size: clamp(18px, 6vw, 24px);
    }

    .carousel-content p {
        margin-bottom: 10px;
        font-size: clamp(12px, 3.5vw, 14px);
    }

    .carousel-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
}

.carousel-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 35px);
    border-radius: 50px;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: var(--transition);
    animation: slideUp 1.2s ease-out both;
}

.carousel-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Navigation Arrows */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: clamp(20px, 4vw, 30px);
    width: clamp(35px, 6vw, 50px);
    height: clamp(35px, 6vw, 50px);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--secondary);
}

.carousel-prev {
    left: clamp(10px, 3vw, 20px);
}

.carousel-next {
    right: clamp(10px, 3vw, 20px);
}

/* Carousel Dots */
.carousel-indicators {
    position: absolute;
    bottom: clamp(10px, 2.5vw, 20px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: clamp(8px, 1.5vw, 12px);
    height: clamp(8px, 1.5vw, 12px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    width: clamp(20px, 4vw, 30px);
    border-radius: 10px;
}

/* Products Section */
.contenedor {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Layout & Containers */
.container,
.contenedor {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    display: flex;
    align-items: flex-start;
    /* Alinear arriba tanto menú como contenido */
    gap: 20px;
    padding: 0 20px;
    min-height: 80vh;
}

@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
        align-items: stretch;
        margin-top: 20px;
        gap: 15px;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;     /* Impide que hereden anchos mayores al viewport */
        overflow-x: hidden;  /* Corte duro del overflow horizontal */
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {
    .main-wrapper {
        padding: 0 5px;
        margin-top: 5px;
    }
}

/* Sidebar Categories Mobile Drawer */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
    backdrop-filter: blur(2px);
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Categories */
.sidebar-categories {
    width: 260px;
    flex-shrink: 0;
    background: var(--surface);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 80px;
    z-index: 100;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .sidebar-categories {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        flex-direction: column;
        border-radius: 0;
        box-shadow: var(--shadow-lg);
    }

    .sidebar-categories.active {
        transform: translateX(0);
    }

    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--primary);
        color: white;
        padding: 20px;
        font-size: 16px;
    }

    .close-menu {
        background: none;
        border: none;
        color: white;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
        display: block;
    }
}

.close-menu {
    display: none;
}

.sidebar-header {
    background: var(--primary);
    color: white;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 1024px) {
    .categories-list {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 10px 0;
        gap: 0;
        white-space: normal;
    }

    .categories-list li {
        width: 100%;
    }
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
}

@media (max-width: 1024px) {
    .categories-list li a {
        background: transparent;
        padding: 15px 20px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #f5f5f5;
        box-shadow: none;
        font-size: 16px;
        justify-content: flex-start;
        gap: 15px;
    }

    .categories-list li a.active {
        background: #f0fdf4;
        color: var(--primary);
        border-bottom: 1px solid #f0fdf4;
    }

    .icon-arrow {
        display: block;
        margin-left: auto;
        opacity: 0.5;
    }
}

.categories-list li a:hover,
.categories-list li a.active {
    background: #f9fafb;
    color: var(--primary);
}

.sidebar-header .icon-menu {
    display: none;
}

@media (max-width: 1024px) {
    .sidebar-header .icon-menu {
        display: block;
    }
}

.icon-arrow {
    width: 12px;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

/* ----- MEGA MENU STYLES ----- */

/* DESKTOP MEGA MENU */
@media (min-width: 1025px) {
    .categories-list .cat-item {
        position: relative;
    }

    .mega-dropdown {
        display: none;
        position: absolute;
        top: 0;
        left: 100%;
        min-width: 250px;
        background: var(--surface);
        box-shadow: 4px 4px 15px rgba(0,0,0,0.08);
        border: 1px solid #eee;
        border-radius: 0 8px 8px 0;
        padding: 10px 0;
        z-index: 200;
        list-style: none;
    }

    /* Invisible bridge to keep hover active */
    .mega-dropdown::before {
        content: '';
        position: absolute;
        top: 0;
        left: -15px;
        width: 15px;
        height: 100%;
        background: transparent;
    }

    .categories-list .cat-item.has-dropdown:hover .mega-dropdown {
        display: block;
        animation: fadeInMega 0.2s ease-out;
    }

    .categories-list .cat-item.has-dropdown:hover > a {
        background: #f9fafb;
        color: var(--primary);
    }
    
    .categories-list .cat-item.has-dropdown:hover .icon-arrow {
        transform: rotate(-90deg); /* Point right to indicate pop-out, or -90 to point right if it originally points down */
    }

    .mega-dropdown li a {
        display: block;
        padding: 10px 20px;
        color: var(--secondary);
        text-decoration: none;
        font-size: 14px;
        transition: background 0.2s, color 0.2s;
    }

    .mega-dropdown li a:hover, .mega-dropdown li a.active {
        background: #f0fdf4;
        color: var(--primary);
    }

    @keyframes fadeInMega {
        from { opacity: 0; transform: translateX(-10px); }
        to { opacity: 1; transform: translateX(0); }
    }
}

/* MOBILE ACCORDION (Emulated via tap-hover or focus) */
@media (max-width: 1024px) {
    .mega-dropdown {
        max-height: 0;
        overflow: hidden;
        list-style: none;
        background: #fdfdfd;
        border-left: 3px solid var(--primary);
        padding: 0;
        margin: 0;
        transition: max-height 0.3s ease-out;
    }

    .mega-dropdown li a {
        display: block;
        padding: 12px 15px 12px 35px !important;
        font-size: 14.5px !important;
        border-bottom: 1px solid #f9f9f9 !important;
        color: #555 !important;
        text-decoration: none;
    }

    .mega-dropdown li a.active {
        background: #f0fdf4 !important;
        color: var(--primary) !important;
        font-weight: 600;
    }

    /* Volver Arriba Button Refined */
    #btn-top {
        display: none;
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 9999;
        background: var(--primary);
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 166, 80, 0.3);
        transition: all 0.3s ease;
        align-items: center;
        justify-content: center;
        opacity: 0.9;
    }

    #btn-top:hover {
        
        opacity: 1;
        box-shadow: 0 6px 20px rgba(0, 166, 80, 0.4);
    }

    /* Share Button WhatsApp Styles */
    .share-container {
        margin-top: 25px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .btn-share-wa {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #eefdf3;
        color: #25d366;
        padding: 10px 20px;
        border-radius: 50px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 700;
        border: 1.5px solid #25d366;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .btn-share-wa:hover {
        background: #25d366;
        color: white;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }

    @media (max-width: 768px) {
        #btn-top {
            bottom: 20px;
            right: 20px;
            width: 45px;
            height: 45px;
        }
    }

    /* Accordion Trigger Logic via JS class */
    .categories-list .cat-item.has-dropdown.is-open .mega-dropdown {
        max-height: 1000px; /* Safe limit for content */
        transition: max-height 0.5s ease-in;
    }

    .categories-list .cat-item.has-dropdown.is-open .icon-arrow {
        transform: rotate(180deg);
    }
}

/* Main Content Area */
.main-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;   /* Nunca exceder el contenedor padre */
    margin-top: 0;
    padding-top: 0;
    overflow-x: hidden; /* Bloquea overflow horizontal dentro del contenido */
}

.products-section {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    scroll-margin-top: 100px;
    /* Soporte para navegación anclada */
}

@media (max-width: 768px) {
    .products-section {
        padding: 15px;
        /* Menos espacio desperdiciado en móvil */
    }
}

.section-header {
    margin-bottom: 25px;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 15px;
}

.titulo {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.subtitulo {
    color: var(--text-muted);
    font-size: 15px;
}

/* Galería de Productos */
.galeria-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.tarjeta-producto {
    position: relative;
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.tarjeta-producto:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    
}

.label-oferta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-red);
    color: white;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    z-index: 20;
}

.img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
}

.tarjeta-producto img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.4s ease-in-out;
}

.tarjeta-producto:hover img {
    transform: scale(1.05);
}

.producto-info {
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 10px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    line-height: 1.4;
}

.precios-container {
    margin-bottom: 15px;
}

.precio-viejo {
    display: block;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.precio {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.sku {
    font-size: 11px;
    color: #bbb;
    margin-top: auto;
    margin-bottom: 10px;
}

.btn-pedir {
    display: block;
    width: 100%;
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.btn-pedir:hover {
    background: var(--primary);
    color: white;
}

/* Footer style */
footer {
    background: var(--secondary);
    color: white;
    padding: 50px 0;
    text-align: center;
}

footer p {
    opacity: 0.6;
    font-size: 14px;
    margin-top: 15px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--primary);
}

.footer-social svg {
    width: 28px;
    height: 28px;
}

/* Responsive adjustments */
/* Sidebar is now handled above for 1024px */

@media (max-width: 768px) {
    .header-content {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 10px !important;
        padding: 10px 15px !important;
    }

    .search-container {
        order: 3; /* Move to bottom row */
        width: 100%;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .header-actions {
        order: 2; /* Keep next to logo */
        gap: 10px;
    }

    .logo {
        order: 1; /* First row with toggle */
    }

    .menu-toggle {
        order: 0;
    }

    .admin-link {
        display: none !important;
    }

    .boton-whatsapp .btn-text {
        display: none;
    }

    .boton-whatsapp {
        padding: 8px !important;
        border-radius: 50% !important;
    }
    
    .boton-whatsapp svg {
        margin-right: 0 !important;
        width: 20px !important;
        height: 20px !important;
    }

    .logo {
        font-size: 18px !important;
        flex-shrink: 0 !important;
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.1;
    }

    .logo div {
        white-space: nowrap;
        display: flex;
        align-items: baseline;
    }

    .logo div span {
        display: inline-block;
        font-size: 9px !important;
        margin-left: 5px !important;
        color: var(--primary);
    }

    .search-container {
        order: 4 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        margin-top: 5px;
    }

    .search-form {
        padding: 0 0 0 8px !important;
    }

    .search-input {
        font-size: 12px !important;
    }

    .search-btn {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }

    .boton-whatsapp {
        padding: 6px !important;
        flex-shrink: 0 !important;
    }

    .boton-whatsapp .btn-text {
        display: none !important;
    }

    .boton-whatsapp svg {
        margin-right: 0 !important;
        width: 20px !important;
        height: 20px !important;
    }

    .main-wrapper {
        margin-top: 0;
        padding: 0 5px;
    }

    .galeria-productos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tarjeta-producto img {
        padding: 5px;
    }

    .product-title {
        font-size: 11px;
        height: 32px;
    }

    .precio {
        font-size: 14px;
    }

    .btn-pedir {
        font-size: 10px;
        padding: 6px 2px;
    }
}
@media (max-width: 400px) {
    .carousel-content h1 {
        font-size: 18px;
    }
}

/* Estilos para el Carrusel de Categorías */
.cat-carousel-container, .cat-single-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.cat-carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 200px;
}

@media (max-width: 768px) {
    .cat-carousel-wrapper {
        aspect-ratio: 16 / 9;
        min-height: 150px;
    }
    .cat-carousel-container, .cat-single-image {
        margin-bottom: 20px;
    }
}

.cat-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.cat-slide.active {
    opacity: 1;
}

.cat-slide img, .cat-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-single-image {
    aspect-ratio: 21 / 9;
}

@media (max-width: 768px) {
    .cat-single-image {
        aspect-ratio: 16 / 9;
    }
}

.cat-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 18px;
}

.cat-nav-btn:hover { background: #fff; }
.cat-prev { left: 15px; }
.cat-next { right: 15px; }

.cat-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.cat-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}

/* Estilos para el Mini-Carrusel de Tarjetas de Producto */
.prod-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.prod-carousel-link {
    display: block;
    width: 100%;
    height: 100%;
}

.prod-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease;
    background: #fff;
}

.prod-slide-img.active {
    opacity: 1;
    z-index: 2;
}

/* Permitir el mismo zoom que la estática al pasar el mouse por la tarjeta */
.tarjeta-producto:hover .prod-slide-img.active {
    
}

.prod-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    opacity: 0; /* Oculto por defecto, se muestra al hacer hover */
    transition: var(--transition);
}

/* Mostrar botones solo cuando el ratón este encima en PC, siempre visibles en Móvil (sin hover fallback) */
.tarjeta-producto:hover .prod-nav-btn {
    opacity: 1;
}

@media (max-width: 768px) {
    .prod-nav-btn {
        opacity: 0.8;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

.prod-nav-btn:hover {
    background: var(--primary);
    color: white;
}

.prod-prev { left: 5px; }
.prod-next { right: 5px; }

.prod-indicators {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
}

.prod-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.cat-carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 200px;
}

@media (max-width: 768px) {
    .cat-carousel-wrapper {
        aspect-ratio: 16 / 9;
        min-height: 150px;
    }
    .cat-carousel-container, .cat-single-image {
        margin-bottom: 20px;
    }
}

.cat-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.cat-slide.active {
    opacity: 1;
}

.cat-slide img, .cat-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-single-image {
    aspect-ratio: 21 / 9;
}

@media (max-width: 768px) {
    .cat-single-image {
        aspect-ratio: 16 / 9;
    }
}

.cat-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 18px;
}

.cat-nav-btn:hover { background: #fff; }
.cat-prev { left: 15px; }
.cat-next { right: 15px; }

.cat-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.cat-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}

/* Estilos para el Mini-Carrusel de Tarjetas de Producto */
.prod-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.prod-carousel-link {
    display: block;
    width: 100%;
    height: 100%;
}

.prod-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease;
    background: #fff;
}

.prod-slide-img.active {
    opacity: 1;
    z-index: 2;
}

/* Permitir el mismo zoom que la estática al pasar el mouse por la tarjeta */
.tarjeta-producto:hover .prod-slide-img.active {
    transform: scale(1.05);
}

.prod-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    opacity: 0; /* Oculto por defecto, se muestra al hacer hover */
    transition: var(--transition);
}

/* Mostrar botones solo cuando el ratón este encima en PC, siempre visibles en Móvil (sin hover fallback) */
.tarjeta-producto:hover .prod-nav-btn {
    opacity: 1;
}

@media (max-width: 768px) {
    .prod-nav-btn {
        opacity: 0.8;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

.prod-nav-btn:hover {
    background: var(--primary);
    color: white;
}

.prod-prev { left: 5px; }
.prod-next { right: 5px; }

.prod-indicators {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
}

.prod-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none; /* No click on dots in mini cards to avoid misclicks */
}

.prod-dot.active {
    background: var(--primary);
    width: 12px;
    border-radius: 4px;
}

/* --- Product Detail Page Styles --- */
:root { 
    --primary-light: #e8f5e9; 
    --accent-blue: #3498db; 
    --text-dark: #1e293b; 
    --text-gray: #64748b; 
} 

.product-page-container { 
    padding-top: 40px; 
    padding-bottom: 80px; 
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden; /* Evita que hijos con ancho fijo causen scroll horizontal */
} 

.product-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; /* 50% galería / 50% info en desktop */
    gap: 40px;
    width: 100%;
    min-width: 0; /* Previene que el grid se expanda más que su contenedor */
    align-items: start; 
} 

/* TABLET: 768px – 1024px → 40% imagen / 60% texto */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 2fr 3fr; /* ~40% / ~60% */
        gap: 25px;
    }
}

/* MÓVIL: menos de 768px → una sola columna FORZADA */
@media (max-width: 767px) { 
    .product-page-container {
        padding-top: 10px;
        padding-bottom: 40px;
        padding-left: 0;
        padding-right: 0;
    }
    .product-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
    }
} 

/* ── Galería: imagen principal + miniaturas ──────────────── */
.gallery-wrapper {
    display: flex;
    gap: 20px;
    position: sticky;
    top: 100px;
    align-items: flex-start;
}

/* Tablet y móvil: la imagen va arriba, miniaturas debajo */
@media (max-width: 1024px) {
    .gallery-wrapper {
        flex-direction: column;
        position: static;
        gap: 12px;
    }
}

/* ── Columna de miniaturas ───────────────────────────────── */

/* DESKTOP (>1024px): columna vertical izquierda, scroll si hay muchas */
.thumbnails-col {
    display: flex;
    flex-wrap: wrap;          /* En desktop también permite multirow si hay muchas */
    flex-direction: column;
    gap: 8px;
    min-width: 70px;
    max-width: 70px;
    max-height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f5f9;
    padding-right: 2px;
}

.thumbnails-col::-webkit-scrollbar { width: 4px; }
.thumbnails-col::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.thumbnails-col::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* TABLET (768px–1024px): cuadrícula de filas debajo de la imagen */
@media (min-width: 768px) and (max-width: 1024px) {
    .thumbnails-col {
        flex-direction: row;
        flex-wrap: wrap;      /* ← CUADRÍCULA: las miniaturas se organizan en filas */
        justify-content: flex-start;
        align-items: flex-start;
        overflow: visible;    /* Sin scroll — todas visibles en la cuadrícula */
        max-height: none;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        gap: 8px;
        padding: 0;
    }
}

/* MÓVIL (<768px): cuadrícula de 4 por fila, centrada, sin ningún scroll lateral */
@media (max-width: 767px) {
    .thumbnails-col {
        flex-direction: row !important;
        flex-wrap: wrap !important;       /* ← CUADRÍCULA: 4 miniaturas por fila */
        justify-content: center !important;
        align-items: flex-start !important;
        overflow: visible !important;     /* Sin scroll horizontal */
        max-height: none !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
        gap: 6px !important;
        padding: 5px 0 !important;
    }
}

/* ── Ítem de miniatura ───────────────────────────────────── */

/* DESKTOP */
.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #eef0f4;
    transition: var(--transition);
    background: #fff;
    flex-shrink: 0;
}

/* TABLET: miniaturas de 60px (caben ~5-6 por fila) */
@media (min-width: 768px) and (max-width: 1024px) {
    .thumb-item {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
}

/* MÓVIL: ~22% del ancho → 4 miniaturas por fila perfectamente */
@media (max-width: 767px) {
    .thumb-item {
        width: calc(22% - 4px) !important; /* 4 por fila con gap de 6px */
        height: auto !important;
        aspect-ratio: 1 / 1 !important;    /* Cuadradas siempre */
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }
}

/* Miniatura activa: borde verde Jeruti */
.thumb-item.active,
.thumb-item.active-thumb {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 166, 80, 0.18);
}

/* Hover en desktop */
.thumb-item:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-carousel-container { 
    position: relative; 
    background: #fff; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: var(--shadow-md); 
    width: 600px;        /* Tamaño fijo máximo en desktop para consistencia */
    height: 520px;      /* Altura fija para contener la imagen de 500px con margen */
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
} 

.carousel-track { 
    display: flex; 
    height: 100%; 
    width: 100%; 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
} 

.carousel-slide-item { 
    min-width: 100%; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
    background: #fff;
} 

.carousel-slide-item img { 
    max-width: 100%;
    max-height: 500px;  /* Limite estricto solicitado */
    width: auto;
    height: auto;
    object-fit: contain; 
    user-select: none; 
    display: block;
    margin: 0 auto;
} 

.carousel-img-fixed {
    max-height: 500px !important;
    width: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    background: #fff;
}

.carousel-inner {
    background: #fff;
}

.thumb-box {
    border: 2px solid transparent !important;
    transition: all 0.3s ease;
}

.thumb-box.active, .thumb-box:hover {
    border-color: var(--primary) !important;
    opacity: 1;
}

.thumb-box img {
    object-fit: contain !important;
    padding: 2px;
}

/* --- Mejoras de Carrusel (Bootstrap 5 Sync) --- */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100%) brightness(0); /* Iconos negros sobre fondo blanco/traslucido */
    width: 24px;
    height: 24px;
}

.carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid rgba(255, 255, 255, 0.5);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
    background-color: var(--primary);
    border-color: #fff;
}

/* Fix para flechas en moviles */
@media (max-width: 767px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 44px;
        height: 44px;
        margin: 0 8px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}

/* --- Mini-Carruseles de Tarjetas (Index) --- */
.mini-carousel .carousel-inner {
    background: #fff;
    height: 100%;
}

.mini-control {
    width: 32px;
    height: 32px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50%;
    opacity: 0; /* Invisible por defecto */
    transition: all 0.3s ease;
    margin: 0 5px;
}

.tarjeta-producto:hover .mini-control {
    opacity: 1; /* Visible al pasar el mouse por la tarjeta */
}

.mini-control-icon {
    width: 14px;
    height: 14px;
}

.mini-control .carousel-control-prev-icon,
.mini-control .carousel-control-next-icon {
    filter: invert(1) brightness(0);
    width: 16px;
    height: 16px;
}

.mini-indicators {
    bottom: 5px;
    margin-bottom: 0;
}

.mini-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0 3px;
    background-color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.8);
    opacity: 0.4;
}

.mini-indicators .active {
    opacity: 1;
    transform: scale(1.2);
}

/* --- Gallery Count Badge (Index) --- */
.gallery-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    background: rgba(33, 37, 41, 0.75); /* Negro/Gris traslúcido solicitado */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary); /* Verde del precio/marca */
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-count-badge svg {
    color: var(--primary);
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.tarjeta-producto:hover .gallery-count-badge {
    opacity: 0.4; /* Se atenúa suavemente al hacer hover */
    transform: scale(0.95);
}

.nav-arrow:hover { 
    background: white; 
    color: var(--primary); 
    transform: translateY(-50%) scale(1.1); 
} 

.nav-arrow svg { 
    width: 24px; 
    height: 24px; 
} 

.nav-arrow.prev { left: 15px; } 
.nav-arrow.next { right: 15px; } 

.product-info-panel { padding: 10px 0; } 

.availability-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    background: var(--primary-light); 
    color: var(--primary-dark); 
    padding: 6px 14px; 
    border-radius: 50px; 
    font-size: 13px; 
    font-weight: 700; 
    margin-bottom: 20px; 
} 

.product-title-detail { 
    font-size: 42px; 
    font-weight: 800; 
    color: var(--text-dark); 
    line-height: 1.1; 
    margin-bottom: 15px; 
    letter-spacing: -1px; 
} 

.features-summary { 
    background: #f8fafc; 
    padding: 20px; 
    border-radius: 12px; 
    margin-bottom: 30px; 
    border: 1px dashed #cbd5e1; 
    white-space: pre-wrap; 
    font-size: 15px; 
    line-height: 1.6; 
    color: var(--text-dark); 
} 

.price-section { margin-bottom: 35px; } 

.main-price { 
    font-size: 38px; 
    font-weight: 800; 
    color: var(--secondary); 
    display: flex; 
    align-items: center; 
    gap: 15px; 
} 

.old-price { 
    font-size: 20px; 
    color: var(--text-gray); 
    text-decoration: line-through; 
    font-weight: 500; 
} 

.discount-pill { 
    background: var(--accent-red); 
    color: white; 
    padding: 4px 10px; 
    border-radius: 6px; 
    font-size: 14px; 
    font-weight: 700; 
} 

.variants-container { display: grid; gap: 15px; margin-bottom: 40px; } 

.variant-card { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background: #fff; 
    border: 2px solid #f1f5f9; 
    padding: 18px 24px; 
    border-radius: 16px; 
    transition: var(--transition); 
} 

.variant-card:hover { border-color: var(--primary); background: var(--primary-light); } 

.variant-meta h4 { font-size: 16px; font-weight: 700; color: var(--text-dark); } 

.variant-meta span { font-size: 13px; color: var(--text-gray); font-weight: 500; } 

.variant-price-tag { 
    text-align: right; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 8px; 
} 

.variant-price-tag strong { font-size: 20px; color: var(--primary-dark); font-weight: 800; } 

.cta-section { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; } 

.btn-wa-premium { 
    background: var(--primary); 
    color: white; 
    padding: 20px 40px; 
    border-radius: 16px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 18px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    box-shadow: 0 10px 25px rgba(0, 166, 80, 0.25); 
    transition: var(--transition); 
} 

.btn-wa-premium:hover { 
    background: var(--primary-dark); 
    transform: translateY(-3px); 
    box-shadow: 0 15px 35px rgba(0, 166, 80, 0.35); 
} 

.description-block { margin-top: 80px; border-top: 1px solid #e2e8f0; padding-top: 60px; } 

.description-block h2 { font-size: 28px; font-weight: 800; margin-bottom: 25px; color: var(--text-dark); } 

.description-content { 
    font-size: 17px; 
    line-height: 1.8; 
    color: #475569; 
    white-space: pre-wrap; 
    max-width: 800px; 
} 

/* =====================================================
   RESPONSIVE - PRODUCTO.PHP
   Tablet: 768px – 1024px
   Móvil:  < 768px
   ===================================================== */

/* --- TABLET (768px a 1024px) --- */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-page-container {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    /* Galería: miniaturas en fila horizontal debajo de la imagen principal */
    .gallery-wrapper {
        flex-direction: column-reverse;
        position: static;
        gap: 12px;
    }

    .thumbnails-col {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 5px;
        gap: 8px;
        max-height: none;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) #f1f5f9;
    }

    .thumb-item {
        width: 58px;
        height: 58px;
        flex-shrink: 0;
    }

    /* Imagen principal se ajusta a su columna del 40% */
    .main-carousel-container {
        max-width: 100%;
        width: 100%;
        border-radius: 16px;
    }

    .product-title-detail {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .main-price {
        font-size: 30px;
    }

    .variant-card {
        padding: 14px 18px;
    }

    .variant-meta h4 {
        font-size: 14px;
    }

    .variant-price-tag strong {
        font-size: 17px;
    }

    .btn-wa-premium {
        font-size: 16px;
        padding: 16px 24px;
    }
}

/* --- MÓVIL (menos de 768px) --- */
@media (max-width: 767px) {
    /* Galería móvil: imagen arriba (column-reverse porque thumbnails-col viene primero en el DOM) */
    .gallery-wrapper {
        flex-direction: column-reverse !important;
        position: static !important;
        gap: 10px;
    }

    .main-carousel-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    /* Miniaturas: scroll horizontal suave — definido arriba en .thumbnails-col @media 767px */

    /* Flechas del carrusel más pequeñas */
    .nav-arrow {
        width: 34px !important;
        height: 34px !important;
    }

    /* Panel de info centrado */
    .product-page-container {
        padding-top: 10px;
        width: 100%;
    }

    .product-info-panel {
        text-align: center;
        padding: 0 4px;
    }

    .product-title-detail {
        font-size: 24px;
        letter-spacing: -0.5px;
        text-align: center;
        margin: 10px 0 10px 0;
    }

    .product-cat-name {
        text-align: center !important;
    }

    .availability-badge {
        display: inline-flex;
        justify-content: center;
        margin: 0 auto 15px auto;
    }

    .features-summary {
        text-align: left;
        padding: 14px;
        font-size: 14px;
    }

    /* Precio centrado */
    .main-price {
        justify-content: center;
        font-size: 28px;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Variantes: botón Pedir full-width */
    .variant-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .variant-price-tag {
        width: 100%;
        align-items: stretch;
        text-align: left;
    }

    .btn-pedir-variante {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 12px 15px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
    }

    /* Botón WhatsApp full-width */
    .btn-wa-premium {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        padding: 18px 20px;
        border-radius: 12px;
        margin: 0;
    }

    /* Botón compartir */
    .btn-share-wa {
        width: 100%;
        justify-content: center;
    }

    .share-container {
        flex-direction: column;
        align-items: stretch;
    }

    /* Descripción */
    .description-block {
        margin-top: 40px;
        padding-top: 35px;
    }

    .description-content {
        font-size: 15px;
        max-width: 100%;
    }

    /* Volver al catálogo */
    .btn-volver {
        display: block !important;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
} 

/* Fin de estilos Jeruti */

/* Detener shimmer cuando la imagen ya cargo */
.thumb-item:has(.thumb-loaded) {
    background: #fff;
    animation: none;
}

@keyframes thumb-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
