/* Estilos para filtros sidebar en mobile */
#filtros-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

#filtros-sidebar.show {
    transform: translateX(0);
}

/* Estilos para menú móvil */
#mobile-menu-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.show {
    transform: translateX(0);
}

/* Ajustes responsive para grid de productos */
@media (max-width: 1023px) {
    /* En mobile/tablet, forzar vista horizontal */
    #productos-grid .producto-card {
        flex-direction: row !important;
    }
    
    #productos-grid .producto-card .relative.overflow-hidden {
        width: 33.333333% !important;
        flex-shrink: 0 !important;
        aspect-ratio: 1 / 1 !important;
    }
    
    #productos-grid .producto-card .relative.overflow-hidden.w-full {
        width: 33.333333% !important;
    }
    
    #productos-grid .producto-card .p-4,
    #productos-grid .producto-card .p-6 {
        flex: 1 1 0% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    #productos-grid .producto-card .producto-descripcion {
        display: block !important;
    }
}

@media (max-width: 640px) {
    #productos-grid {
        gap: 1rem;
    }
    
    .producto-card {
        border-radius: 1rem;
    }
    
    .producto-card .p-4,
    .producto-card .p-6 {
        padding: 1rem;
    }
}

/* Mejoras para controles en mobile */
@media (max-width: 640px) {
    .producto-card h3 {
        font-size: 1rem;
    }
    
    .producto-card .text-xl {
        font-size: 1.125rem;
    }
}

/* Botón flotante de WhatsApp */
#whatsapp-float-btn {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

/* Ajustar posición en mobile */
@media (max-width: 640px) {
    #whatsapp-float-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
    
    #whatsapp-float-btn svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* ============================================
   Banner inferior del carrito
   ============================================ */
.cart-bottom-banner {
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
}.cart-bottom-banner.pointer-events-auto {
    transform: translateY(0);
}

.cart-bottom-banner__inner {
    position: relative;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.25rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #fff 0%, #fffaf9 100%);
    border-top: 3px solid #FA7268;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12), 0 -2px 8px rgba(250, 114, 104, 0.12);
}

.dark .cart-bottom-banner__inner {
    background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
    border-top-color: #FA7268;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), 0 -2px 8px rgba(250, 114, 104, 0.2);
}

.cart-bottom-banner__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-bottom-banner__message {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
}

.cart-bottom-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(250, 114, 104, 0.15);
    color: #FA7268;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.dark .cart-bottom-banner__icon {
    background: rgba(250, 114, 104, 0.25);
    color: #FA7268;
}

.cart-bottom-banner__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: -0.01em;
}

.dark .cart-bottom-banner__label {
    color: #e4e4e7;
}

.cart-bottom-banner__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #FA7268 0%, #e85a50 100%);
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(250, 114, 104, 0.4);
}

.dark .cart-bottom-banner__count {
    background: linear-gradient(135deg, #FA7268 0%, #e85a50 100%);
    box-shadow: 0 2px 8px rgba(250, 114, 104, 0.45);
}

.cart-bottom-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cart-bottom-banner__minimize {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: rgba(250, 114, 104, 0.12);
    color: #FA7268;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}.cart-bottom-banner__minimize:hover {
    background: rgba(250, 114, 104, 0.25);
}

.cart-bottom-banner__minimize .material-symbols-outlined {
    font-size: 1.5rem;
}

.dark .cart-bottom-banner__minimize {
    background: rgba(250, 114, 104, 0.2);
    color: #FA7268;
}

.dark .cart-bottom-banner__minimize:hover {
    background: rgba(250, 114, 104, 0.35);
}

.cart-bottom-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cart-bottom-banner__btn:active {
    transform: scale(0.98);
}

.cart-bottom-banner__btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.cart-bottom-banner__btn--secondary {
    color: #FA7268;
    background: #fff;
    border: 2px solid #FA7268;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cart-bottom-banner__btn--secondary:hover {
    background: #FA7268;
    color: #fff;
    box-shadow: 0 4px 14px rgba(250, 114, 104, 0.35);
}

.dark .cart-bottom-banner__btn--secondary {
    color: #FA7268;
    background: transparent;
    border-color: #FA7268;
}

.dark .cart-bottom-banner__btn--secondary:hover {
    background: #FA7268;
    color: #fff;
}

.cart-bottom-banner__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #FA7268 0%, #e85a50 100%);
    box-shadow: 0 4px 14px rgba(250, 114, 104, 0.4);
}

.cart-bottom-banner__btn--primary:hover {
    background: linear-gradient(135deg, #fb8578 0%, #FA7268 100%);
    box-shadow: 0 6px 20px rgba(250, 114, 104, 0.5);
}

.dark .cart-bottom-banner__btn--primary {
    background: linear-gradient(135deg, #FA7268 0%, #e85a50 100%);
    box-shadow: 0 4px 14px rgba(250, 114, 104, 0.35);
}

.dark .cart-bottom-banner__btn--primary:hover {
    background: linear-gradient(135deg, #fb8578 0%, #FA7268 100%);
    box-shadow: 0 6px 20px rgba(250, 114, 104, 0.45);
}

@media (max-width: 640px) {
    .cart-bottom-banner__inner {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        padding: 0.875rem 1rem;
        padding-bottom: max(0.875rem, env(safe-area-inset-bottom));
        border-radius: 1rem 1rem 0 0;
    }
    
    .cart-bottom-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .cart-bottom-banner__message {
        justify-content: center;
    }
    
    .cart-bottom-banner__actions {
        justify-content: stretch;
        flex-wrap: wrap;
    }
    
    .cart-bottom-banner__actions .cart-bottom-banner__minimize {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .cart-bottom-banner__btn {
        flex: 1;
        padding: 0.75rem 1rem;
    }
}

/* Pestaña para volver a mostrar el banner del carrito */
.cart-banner-tab {
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.cart-banner-tab.pointer-events-auto {
    transform: translateY(0);
}

.cart-banner-tab__inner {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.cart-banner-tab__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #FA7268 0%, #e85a50 100%);
    border: none;
    border-radius: 0.75rem 0.75rem 0 0;
    box-shadow: 0 -4px 16px rgba(250, 114, 104, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.cart-banner-tab__btn:hover {
    background: linear-gradient(135deg, #fb8578 0%, #FA7268 100%);
    box-shadow: 0 -4px 20px rgba(250, 114, 104, 0.45);
}

.cart-banner-tab__btn:active {
    transform: scale(0.99);
}

.cart-banner-tab__btn .material-symbols-outlined:first-of-type {
    font-size: 1.25rem;
}

.cart-banner-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
}

.cart-banner-tab__label {
    letter-spacing: -0.01em;
}

.cart-banner-tab__chevron {
    font-size: 1.25rem;
    opacity: 0.9;
}
