/* --- 1. VARIABLES Y CONFIGURACIÓN RAÍZ --- */
    :root {
        --primary: #334155; 
        --dark: #0f172a; 
        --bg: #f8fafc; 
        --white: #ffffff;
        --blueiron: #1E82A8;
        --grey: #808080;
        --orange-brand: #ff6900; 
        --amarillo: #D4B62C;
        --success-green: #309656; 
        --text-main: #334155; 
        --radius: 12px;
    }

    /* --- 2. RESET Y ESTILOS GENERALES --- */
    * { box-sizing: border-box; transition: all 0.2s ease-in-out; -webkit-tap-highlight-color: transparent; }
    img { -webkit-user-drag: none; user-drag: none; }
    body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
    body { font-family: 'Plus Jakarta Sans', sans-serif; background-color: #f1f3f6; color: var(--text-main); margin: 0; overflow-x: hidden; }

    /* --- 3. SKELETON LOADING (PRECARGA EN GRIS DEGRADÉ) --- */
    @keyframes shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    .sk-shimmer {
        background: linear-gradient(90deg, #e2e8f0 25%, #f4f7fa 50%, #e2e8f0 75%);
        background-size: 200% 100%;
        animation: shimmer 1.4s ease-in-out infinite;
    }
    .skeleton-card {
        background: var(--white);
        border: 1px solid #edf2f7;
        border-radius: var(--radius);
        overflow: hidden;
        position: relative;
        min-height: 200px;
    }
    .sk-add {
        position: absolute; top: 12px; right: 12px;
        width: 40px; height: 40px; border-radius: 50%;
    }
    .sk-img { height: 120px; margin: 8px 8px 0; border-radius: 8px; }
    .sk-content { padding: 10px; }
    .sk-badge { width: 82px; height: 13px; border-radius: 4px; margin-bottom: 8px; }
    .sk-line { height: 12px; border-radius: 6px; margin-bottom: 6px; }
    .sk-price { width: 55%; height: 16px; border-radius: 6px; margin-top: 8px; }

    /* --- 4. HEADER Y NAVEGACIÓN --- */
    header {
        background: #000000;
        backdrop-filter: blur(10px);
        position: sticky;
        top: 0;
        z-index: 1100;
        border-bottom: 1px solid #222222;
        padding: 12px 5%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
    .logo img { height: 42px; width: 42px; object-fit: contain; }

    .header-top {
        display: flex;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .header-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex: 1;
    }
    .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    /* Botón hamburguesa (visible solo en móvil) */
    .hamburger {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 42px;
        height: 42px;
        background: var(--dark);
        border: none;
        border-radius: 21px;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
    }
    .hamburger span {
        display: block;
        height: 3px;
        width: 20px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    }
    .hamburger span:nth-child(2) { width: 16px; }
    .hamburger.active { background: var(--orange-brand); }
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Menú móvil desplegable debajo del header */
    .mobile-menu {
        display: none;
        flex-direction: column;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 0 0 16px 16px;
        overflow: hidden;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    }
    .mobile-menu.active { display: flex; animation: fadeIn 0.25s ease; }
    .mobile-menu-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        padding: 16px 18px;
        background: none;
        border: none;
        border-bottom: 1px solid #f1f5f9;
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        color: var(--text-main);
        text-decoration: none;
        text-align: center;
    }
    .mobile-menu-item:last-child { border-bottom: none; }
    .mobile-menu-item:hover { background: #fff7ed; color: var(--orange-brand); }
    .mobile-menu-item .mm-ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; flex-shrink: 0; }

    .menu-trigger {
        background: var(--dark);
        border: none;
        padding: 10px 18px;
        border-radius: 25px;
        font-size: 0.85rem;
        white-space: nowrap;
        cursor: pointer;
        color: var(--white);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .menu-trigger:hover { background: var(--orange-brand); }

    .menu-trigger.wa-trigger { background: #25d366; }
    .menu-trigger.wa-trigger:hover { background: #1fb958; }

    .wa-float {
        position: fixed; bottom: 20px; right: 20px; z-index: 4000;
        width: 60px; height: 60px; border-radius: 50%; background: #25d366;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
        text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .wa-float:hover { transform: scale(1.08); background: #1fb958; box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55); }
    .wa-float svg { display: block; }

    .cart-trigger { 
        background: var(--dark); 
        color: white; 
        height: 42px; 
        min-width: 42px; 
        padding: 0 15px; 
        border-radius: 20px; 
        cursor: pointer; 
        border: none; 
        font-weight: 600; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        gap: 8px; 
    }
    .cart-icon-svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; }

    /* --- 5. BUSCADOR Y SUGERENCIAS --- */
    .search-container { position: relative; width: 100%; }
    .search-input { 
        width: 100%; 
        padding: 12px 15px; 
        border-radius: 20px; 
        border: 2px solid var(--orange-brand); 
        background: #ffffff; 
        outline: none; 
        font-size: 0.9rem; 
    }
    #search-suggestions { 
        position: absolute; top: 110%; left: 0; right: 0; 
        background: white; border-radius: 12px; 
        box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
        display: none; max-height: 450px; overflow-y: auto; 
        z-index: 2000; border: 1px solid #eee;
    }
    .suggestion-item { display: flex; align-items: center; gap: 12px; padding: 10px 15px; cursor: pointer; border-bottom: 1px solid #f8fafc; }
    .suggestion-item img { width: 40px; height: 40px; border-radius: 4px; object-fit: contain; }
    .suggestion-title { font-size: 0.85rem; line-height: 1.3; max-height: 2.6em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .suggestion-more { padding: 15px; text-align: center; color: white; font-size: 0.85rem; cursor: pointer; background: var(--orange-brand); border-top: 1px solid #eee; }

    .header-quick-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 5px;
        flex-grow: 1;
    }
    .header-quick-nav::-webkit-scrollbar { display: none; }
    .btn-quick { background: var(--orange-brand); border: none; padding: 10px 18px; border-radius: 25px; font-size: 0.85rem; white-space: nowrap; cursor: pointer; color: var(--white); letter-spacing: 0.5px; }

    /* --- 6. SIDEBAR (MENÚ LATERAL) --- */
    .sidebar-menu {
        position: fixed;
        top: 0;
        left: -400px;
        width: 380px;
        height: 100%;
        background: var(--white);
        z-index: 6000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
    }
    .sidebar-menu.active { left: 0; }
    .sidebar-header {
        background: white;
        color: var(--dark);
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid var(--orange-brand);
    }
    .sidebar-content { flex-grow: 1; overflow-y: auto; padding: 10px 0; }
    .cat-item-vertical {
        display: flex;
        align-items: center;
        padding: 18px 20px;
        color: var(--text-main);
        text-decoration: none;
        border-bottom: 1px solid #f1f5f9;
        cursor: pointer;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.2s;
    }
    .cat-item-vertical:hover { background: linear-gradient(90deg, #fff5eb 0%, white 100%); color: var(--orange-brand); padding-left: 25px; }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 5999;
        display: none;
    }
    .sidebar-overlay.active { display: block; }

    /* --- 7. GRID DE PRODUCTOS Y TARJETAS --- */
    .container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
    .grid { display: grid !important; grid-template-columns: repeat(6, 1fr) !important; gap: 10px; padding-bottom: 10px; width: 100%; }
    .grid#bestSellersGrid, .grid#recommendedGrid, .grid#enredaderasGrid, .grid#sogasGrid, .grid#tirasLedGrid, .grid[id^="grid-promo-"] { display: grid !important; grid-template-columns: repeat(6, 1fr) !important; }
    .card { background: var(--white); border-radius: var(--radius); border: 1px solid #edf2f7; display: flex; flex-direction: column; overflow: hidden; height: 100%; }
    .card-img-wrapper { height: 120px; padding: 8px; display: flex; align-items: center; justify-content: flex-start; cursor: pointer; }
    .card img { max-width: 100%; max-height: 100%; object-fit: contain; }
    .card-content { padding: 10px; flex-grow: 1; display: flex; flex-direction: column; }
    .pickit-badge { background: #fff5eb; color: var(--orange-brand); padding: 3px 6px; border-radius: 4px; font-weight: 800; font-size: 0.6rem; width: fit-content; }
    .btn-add { background: var(--dark); color: white; border: none; padding: 12px; border-radius: 25px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
    .btn-add:active, .btn-add:focus, .btn-add:focus-visible, .btn-add:hover, .btn-add:visited, .btn-add:link, .btn-add:checked { background: var(--dark) !important; outline: none; }
    
    .btn-add-cart { background: var(--orange-brand) !important; color: white; border: none; padding: 0; border-radius: 50%; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
    .btn-add-cart:active, .btn-add-cart:focus, .btn-add-cart:focus-visible, .btn-add-cart:hover, .btn-add-cart:visited, .btn-add-cart:link, .btn-add-cart:checked { background: var(--orange-brand) !important; outline: none; }
    .texttitle {
        font-size: 0.75rem;
        font-weight: 300;
        margin-bottom: 3px;
        height: 2.5em;
        overflow: hidden;
        cursor: pointer;
        position: relative;
        line-height: 1.3;
    }
    .texttitle::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40%;
        height: 1.3em;
        background: linear-gradient(to right, transparent, #ffffff 80%);
        pointer-events: none;
    }
    .texttitle:hover::after {
        background: linear-gradient(to right, transparent, #f8fafc 80%);
    }

    .product-price-container { display: flex; flex-direction: column; justify-content: flex-end; min-height: 8px; margin-bottom: 3px; }
    .price { font-size: 16px; font-weight: 600; color: #000000 !important; letter-spacing: -0.5px; }
    .old-price { height: 1em; font-size: 0.6rem; color: #999; text-decoration: line-through; }
    .iva-text { font-size: 0.65rem; color: #64748b; font-weight: 600; margin-left: 3px; }

    /* --- 8. VISTA DE PRODUCTO A PÁGINA --- */
    #productView { display: none; }
    #productView .product-page-content {
        display: flex; flex-direction: column; max-width: 100%; margin: 0 auto;
        background: var(--white); border-radius: var(--radius); margin-top: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    }
    #productView .modal-image-section { border-radius: var(--radius) var(--radius) 0 0; }
    #productView .modal-info-section { border-radius: 0 0 var(--radius) var(--radius); }
    #productView .main-img-container { height: 400px; }
    .modal-content { display: flex; flex-direction: column; }

    /* --- 8A. PÁGINAS DE INFORMACIÓN (Rediseño elegante para las info-cards) --- */
    .info-page-title {
        font-size: 1.5rem; font-weight: 800; color: var(--dark);
        margin: 0 0 18px; padding-left: 15px; border-left: 4px solid var(--orange-brand);
        display: flex; align-items: center; gap: 10px;
    }
    .info-hero {
        background: linear-gradient(135deg, var(--orange-brand) 0%, #ff8c33 100%);
        border-radius: 12px; padding: 28px 30px; margin-bottom: 25px;
        color: #fff; display: flex; flex-direction: column; gap: 6px;
    }
    .info-hero h2 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.3px; }
    .info-hero p { margin: 0; font-size: 0.9rem; opacity: 0.92; font-weight: 500; }
    
    .info-grid {
        display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px; 
        margin-bottom: 25px;
    }
    
    .info-card {
        background: #ffffff;
        border: 1px solid rgba(226, 232, 240, 0.8);
        border-radius: 16px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .info-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.08);
        border-color: rgba(255, 105, 0, 0.3);
    }
    
    /* Línea lateral elegante de acento */
    .info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--orange-brand);
        transition: width 0.2s ease;
    }
    
    .info-card:hover::before {
        width: 6px;
    }
    
    .info-card.accent-pie::before { background: var(--orange-brand); }
    .info-card.accent-verde::before { background: var(--success-green); }
    .info-card.accent-azul::before { background: #0284c7; }
    .info-card.accent-amarillo::before { background: #d97706; }
    
    .info-icon {
        width: 44px; 
        height: 44px; 
        border-radius: 12px; 
        background: #fff5eb;
        color: var(--orange-brand); 
        display: flex; 
        align-items: center; 
        justify-content: center;
        font-size: 1.2rem; 
        flex-shrink: 0;
    }
    .info-icon.verde { background: #f0fdf4; color: #16a34a; }
    .info-icon.azul { background: #f0f9ff; color: #0284c7; }
    .info-icon.amarillo { background: #fffbeb; color: #b45309; }
    .info-icon.gris { background: #f1f5f9; color: #475569; }
    
    .info-card h3 { 
        margin: 0; 
        font-size: 1.02rem; 
        font-weight: 700; 
        color: var(--dark);
        display: flex;
        align-items: center;
        letter-spacing: -0.2px;
    }
    
    .info-card p { 
        margin: 0; 
        font-size: 0.87rem; 
        line-height: 1.6; 
        color: #64748b; 
    }
    
    .info-card .info-btn { align-self: center; margin-top: auto; }
    
    .info-num {
        display: inline-flex; 
        align-items: center; 
        justify-content: center;
        width: 22px; 
        height: 22px; 
        border-radius: 50%; 
        background: rgba(255, 105, 0, 0.1);
        color: var(--orange-brand); 
        font-size: 0.75rem; 
        font-weight: 700; 
        margin-right: 8px; 
        flex-shrink: 0;
    }
    .info-num.verde { 
        background: rgba(22, 163, 74, 0.1);
        color: var(--success-green); 
    }
    
    .info-btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        background: var(--dark); color: #fff; text-decoration: none; padding: 12px 22px;
        border-radius: 25px; font-weight: 700; font-size: 0.85rem; border: none; cursor: pointer;
        width: fit-content; margin-top: 4px;
    }
    .info-btn:hover { background: var(--orange-brand); }
    .info-btn.wa { background: #25d366; }
    .info-btn.wa:hover { background: #1fb958; }
    .info-btn.ml { background: #EBD00E; color: #333; }
    .info-btn.ml:hover { background: #d9c200; color: #333; }
    
    .info-note {
        background: #f8fafc; border: 1px solid #edf2f7; border-radius: 12px;
        padding: 18px 20px; font-size: 0.88rem; line-height: 1.7; color: var(--text-main);
        display: block;
    }
    .info-note a { color: var(--orange-brand); font-weight: 700; }
    .info-list { display: flex; flex-direction: column; gap: 12px; margin: 0 0 25px; }
    .info-list-item {
        display: flex; gap: 14px; background: #f8fafc; border: 1px solid #edf2f7;
        border-radius: 12px; padding: 18px 20px; align-items: flex-start;
    }
    .info-list-item b { color: var(--dark); display: block; margin-bottom: 4px; }
    .info-list-item span { font-size: 0.85rem; line-height: 1.6; color: #64748b; }
    
    #infoView .product-page-content { padding: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); margin-top: 15px; }
    #infoView #infoText { padding: 0 25px 25px; }
    #infoView .info-hero {
        border-radius: 12px 12px 0 0;
        margin: 0 -25px 22px;
        padding: 26px 30px;
    }
    @media (max-width: 520px) {
        #infoView #infoText { padding: 0 16px 16px; }
        #infoView .info-hero { margin: 0 -16px 16px; }
        .info-hero { padding: 22px 20px; }
        .info-hero h2 { font-size: 1.15rem; }
    }
    @media (min-width: 700px) {
        .info-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    }
    
    .modal-image-section { padding: 20px; display: flex; flex-direction: column; align-items: center; background: #fff; }
    .main-img-container { width: 100%; height: 350px; display: flex; align-items: center; justify-content: center; border: 1px solid #f1f5f9; border-radius: var(--radius); background: #fff; }
    .main-img-container img { max-width: 100%; max-height: 100%; object-fit: contain; }
    .thumb-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 15px; width: 100%; }
    .thumb { width: 100%; aspect-ratio: 1/1; border: 2px solid #eee; border-radius: 8px; cursor: pointer; object-fit: contain; opacity: 0.6; }
    .thumb.active { border-color: var(--orange-brand); opacity: 1; }

    .modal-info-section { padding: 12px 15px 30px; background: var(--white); flex-grow: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .product-warning-box {
        background: #fff5eb;
        border: 2px solid var(--orange-brand);
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 8px;
    }
    .product-warning-header {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--orange-brand);
        font-weight: 800;
        font-size: 0.8rem;
    }
    .product-warning-content {
        margin-top: 6px;
    }
    .product-warning-item {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 4px;
        font-size: 0.8rem;
        line-height: 1.3;
        text-transform: lowercase;
    }
    #mTitle { font-size: 1.25rem; color: var(--dark); font-weight: 800; line-height: 1.25; margin: 5px 0; }
    #mCategory { margin-bottom: 8px; }
    #mDesc { color: #64748b; font-size: 0.9rem; line-height: 1.4; margin-bottom: 0; text-transform: lowercase; }
    #mPrice { border-top: 1px solid #f1f5f9; padding-top: 12px; margin-bottom: 15px; }

    /* --- 9. MODAL DE INFORMACIÓN CUSTOM --- */
    .modal-info-custom {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.8); 
        z-index: 6000; 
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    .modal-info-container {
        background: var(--white);
        width: 100%;
        max-width: 450px;
        border-radius: 20px;
        position: relative;
        animation: slideUp 0.3s ease-out;
        overflow: hidden;
    }
    .info-content-wrapper { padding: 30px; text-align: center; }
    #infoTitle { color: var(--dark); font-size: 1.5rem; margin-bottom: 15px; text-transform: uppercase; }
    #infoText { color: #64748b; line-height: 1.6; font-size: 1rem; margin-bottom: 25px; white-space: pre-line; }
    .close-info { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #94a3b8; cursor: pointer; font-weight: 300; }
    .btn-info-entendido { background: var(--orange-brand); color: white; border: none; padding: 12px 30px; border-radius: 50px; cursor: pointer; width: 100%; }
    
    .btn-link-modal {
        display: inline-block;
        background: var(--orange-brand);
        color: white !important;
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 500; 
        margin-top: 10px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    .btn-link-modal:hover { filter: brightness(1.1); }

    @keyframes slideUp {
        from { transform: translateY(20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    /* --- 10. TEXTO EXPANDIBLE --- */
    .desc-text-container {
        overflow: hidden;
        white-space: pre-wrap; 
        line-height: 1.4;
        position: relative;
        padding: 8px 10px 25px 10px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #f8fafc;
        font-size: 0.8rem;
        max-height: 120px;
    }
    .desc-text-container::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 10px;
        right: 10px;
        height: 25px;
        background: linear-gradient(transparent, #f8fafc);
        pointer-events: none;
    }
    .desc-text-container.expanded { 
        max-height: none;
        min-height: auto;
        height: auto;
        padding: 5px 10px 10px 10px;
        overflow: visible;
    }
    .desc-text-container.expanded::after {
        display: none;
    }
    .desc-text-container .list-item {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
        padding-left: 8px;
    }
    .desc-text-container .list-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 2px;
    }
    .desc-text-container .list-icon-simple {
        width: 6px;
        height: 6px;
        min-width: 6px;
        border-radius: 50%;
        background: #64748b;
        margin-top: 7px;
    }
    .desc-text-container .list-icon svg {
        width: 10px;
        height: 10px;
        stroke: white;
        stroke-width: 3;
    }
    .desc-text-container .list-item.orange .list-icon svg {
        stroke: white;
    }
    .desc-text-container .list-item.lightgrey .list-icon.house-icon svg {
        stroke-width: 2;
    }
    .desc-text-container .list-content {
        flex: 1;
    }
    .desc-text-container .list-item.orange .list-icon { background: var(--orange-brand); }
    .desc-text-container .list-item.lightgrey .list-icon { 
        background: transparent; 
        border: 2px solid #cbd5e1;
        width: 8px;
        height: 8px;
        min-width: 8px;
        margin-top: 6px;
    }
    .desc-text-container .list-item.lightgrey .list-icon svg {
        display: none;
    }
    .desc-text-container .warning-box {
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        padding: 10px 12px;
        margin: 8px 0;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    .desc-text-container .warning-box svg {
        width: 20px;
        height: 20px;
        min-width: 20px;
        stroke: #64748b;
    }
    .desc-text-container .warning-text {
        color: #334155;
        font-weight: 600;
    }
    .expand-center-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 2px;
    }
    .expand-line {
        flex: 1;
        height: 2px;
        background: var(--orange-brand);
        min-width: 50px;
    }
    .expand-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--orange-brand);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(255, 107, 0, 0.4);
        transition: transform 0.2s, background 0.2s;
    }
    .expand-btn:hover {
        transform: scale(1.15);
        background: #e65a00;
    }
    .expand-btn svg {
        width: 18px;
        height: 18px;
        stroke: white;
        stroke-width: 3;
    }

    /* --- 11. SELECTOR DE CANTIDAD --- */
    .qty-selector { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; width: fit-content; padding: 5px; }
    .qty-btn { background: #f1f5f9; border: none; width: 30px; height: 30px; border-radius: 6px; cursor: pointer; font-weight: 800; }

    /* --- 12. CARRITO (SIDEBAR DERECHO) --- */
    .cart-drawer { 
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 100%; 
        max-width: 480px;
        height: auto;
        max-height: 85vh;
        background: white; 
        z-index: 5000; 
        transition: right 0.3s ease; 
        display: flex; 
        flex-direction: column;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        border-radius: 0 0 0 16px;
    }
    .cart-drawer.active { right: 0; }
    .cart-header { flex-shrink: 0; }
    .cart-items { flex-grow: 1; overflow-y: auto; max-height: 60vh; }
    .cart-footer { flex-shrink: 0; }
    
    @media (max-width: 500px) {
        .cart-drawer { max-width: 100%; }
    }
    button.btn-checkout { background-color: var(--dark); color: #ffffff !important; border: none; padding: 10px 18px; border-radius: 25px; font-size: 0.85rem; white-space: nowrap; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-bottom: 10px; }
    button.btn-checkout:hover { background-color: #ff6900 !important; }
    button.btn-checkout.vaciar { background-color: #ef4444; }
    button.btn-checkout.vaciar:hover { background-color: #dc2626 !important; }

    /* --- 13. TOASTS Y CARITA FELIZ --- */
    #toast-container { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; pointer-events: none; }
    .toast { background: var(--success-green); color: white; padding: 16px 28px; border-radius: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.2); pointer-events: auto; max-width: 85%; text-align: center; animation: fadeIn 0.3s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
    .jumping-face { font-size: 1.6rem; animation: jump 0.6s ease-in-out infinite alternate; }
    @keyframes jump { from { transform: translateY(0); } to { transform: translateY(-8px); } }

    /* --- 14. MEDIA QUERIES (RESPONSIVE) --- */
    #homeView .grid, #bestSellersGrid, #recommendedGrid, [id^="grid-promo-"] {
        grid-template-columns: repeat(6, 1fr) !important;
    }
    @media (max-width: 1400px) {
        .grid { grid-template-columns: repeat(5, 1fr) !important; gap: 12px; }
        #homeView .grid, #bestSellersGrid, #recommendedGrid, [id^="grid-promo-"] { grid-template-columns: repeat(5, 1fr) !important; }
    }
    @media (max-width: 1100px) {
        .grid { grid-template-columns: repeat(4, 1fr) !important; gap: 12px; }
    }
    @media (max-width: 768px) {
        .grid, #homeView .grid, #bestSellersGrid, #recommendedGrid, [id^="grid-promo-"] { 
            grid-template-columns: repeat(2, 1fr) !important; gap: 8px; 
        }
        header { padding: 10px 4%; }
        .header-top { gap: 10px; position: relative; }
        .header-nav { display: none; }
        .hamburger {
            display: flex;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 50%;
            margin-top: -21px;
            z-index: 5;
        }
        .logo { flex: 0 0 auto; }
        .header-actions { margin-left: auto; }
        .main-img-container { height: 280px; }
        #productView .main-img-container { height: 280px; }
        .thumb-bar { grid-template-columns: repeat(4, 1fr); }
    }
    @media (max-width: 1100px) and (min-width: 769px) {
        .header-nav .menu-trigger { padding: 10px 12px; font-size: 0.75rem; }
        .header-top { gap: 10px; }
    }
    @media (max-width: 600px) {
        .grid, #homeView .grid, #bestSellersGrid, #recommendedGrid, [id^="grid-promo-"] { 
            grid-template-columns: repeat(2, 1fr) !important; gap: 6px; 
        }
        .container[style*="margin-top: 20px"] .grid { grid-template-columns: 1fr !important; }
        .info-grid { grid-template-columns: 1fr !important; }
        .container > div:first-child > div { grid-template-columns: 1fr !important; }
    }
    
    /* --- SPIN --- */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes floatUp {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -150%) scale(1.5); }
}
@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spinning-gear {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin 2s linear infinite;
    width: 24px;
    height: 24px;
}
/* --- DESCUENTOS SALTAN --- */
@keyframes pulse-discount {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes pulse-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes cart-add {
    0% { transform: scale(0.8); opacity: 0; }
    20% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
    80% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes ball-drop {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    70% { opacity: 1; transform: translateX(-50%) translateY(25px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(30px); }
}

@keyframes cart-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.iva-text[style*="color: var(--success-green)"], 
.iva-text[style*="color:var(--success-green)"],
span[style*="background: var(--success-green)"] {
    display: inline-block;
    animation: pulse-discount 2s infinite ease-in-out;
}

/* --- HERO SLIDER --- */
    .hero-slider {
        position: relative;
        width: 100%;
        height: 380px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 20px;
    }
    .hero-slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.6s ease-in-out;
        cursor: pointer;
    }
    .hero-slide.active { 
        opacity: 1; 
        pointer-events: auto;
    }
    .hero-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .hero-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 40px 25px 20px;
        background: linear-gradient(transparent, rgba(0,0,0,0.85));
    }
    .hero-title {
        color: white;
        font-size: 1.8rem;
        font-weight: 800;
        margin: 0;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    .hero-subtitle {
        color: rgba(255,255,255,0.85);
        font-size: 0.9rem;
        margin: 5px 0 0;
    }
    .hero-dots {
        position: absolute;
        bottom: 15px;
        right: 20px;
        display: flex;
        gap: 8px;
    }
    .hero-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255,255,255,0.5);
        cursor: pointer;
        transition: all 0.3s;
    }
    .hero-dot.active { background: white; transform: scale(1.2); }
    .hero-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.9);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: var(--dark);
        transition: all 0.3s;
        z-index: 10;
    }
    .hero-arrow:hover { background: white; transform: translateY(-50%) scale(1.1); }
    .hero-arrow.prev { left: 15px; }
    .hero-arrow.next { right: 15px; }
    
    @media (max-width: 768px) {
        .hero-slider { height: 280px; }
        .hero-title { font-size: 1.3rem; }
        .hero-arrow { width: 36px; height: 36px; font-size: 1rem; }
    }

@keyframes modalSlideIn {
    from { transform:translateY(20px); opacity:0; }
    to { transform:translateY(0); opacity:1; }
}