/* Estilos para notificaciones modernas */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #00C896 0%, #4dc5be 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 200, 150, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateX(420px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 380px;
    min-width: 320px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification.warning {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    box-shadow: 0 8px 32px rgba(255, 167, 38, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification .notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.notification .notification-content {
    flex: 1;
    margin-top: 4px;
}

.notification .notification-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
}

.notification .notification-message {
    font-size: 0.9rem;
    opacity: 0.92;
    line-height: 1.4;
    font-weight: 500;
}

.notification .close-notification {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    opacity: 0.8;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    margin-top: 2px;
    flex-shrink: 0;
}

.notification .close-notification:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.notification .close-notification:active {
    transform: scale(0.95);
}

/* Loading state para productos */
.products-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mensaje cuando no hay productos */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 1.2rem;
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: var(--text-light);
}


@media (max-width: 768px) {
    .notification {
        right: 16px;
        left: 16px;
        transform: translateY(-120px);
        max-width: none;
        min-width: auto;
        border-radius: 12px;
    }

    .notification.show {
        transform: translateY(0);
    }


    .filters-wrapper {
        width: 100%;
        order: -1;
        margin-bottom: 24px;
    }

    .filters-toggle {
        display: flex;
    }

    .filters-sidebar {
        display: none;
        position: static;
        top: auto;
        width: 100%;
        margin-top: 0;
        padding: 20px;
        transition: all 0.3s ease;
        border-radius: 16px;
    }

    .filters-sidebar.mobile-open {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .add-to-cart {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .add-to-cart {
        padding: 12px 14px;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    .discount-badge {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .notification .notification-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .notification .notification-title {
        font-size: 1rem;
    }

    .notification .notification-message {
        font-size: 0.85rem;
    }
}