/* cart.css */

/* Floating Button */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.7);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    /* Rojo */
    color: white;
    font-size: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: bold;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 6px;
    border: 2px solid #050507;
}

/* Sidebar Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
}

.cart-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* Sidebar Container */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: #1a1a24;
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}

@media (max-width: 450px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

.cart-sidebar.open {
    right: 0;
}

/* Sidebar Header */
.cart-header {
    background-color: #3b82f6;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sidebar Body */
.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-body::-webkit-scrollbar {
    width: 6px;
}

.cart-body::-webkit-scrollbar-track {
    background: transparent;
}

.cart-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Empty State */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9496a1;
    text-align: center;
}

.cart-empty i {
    font-size: 4rem;
    color: #4b4b5c;
    margin-bottom: 20px;
}

.cart-empty h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.cart-empty p {
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.btn-explore {
    background-color: #3b82f6;
    color: white;
    padding: 0;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    width: 280px;
    height: 65px;
    margin-top: 25px;
}

.btn-explore:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Cart Items */
.cart-item {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    gap: 15px;
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.95rem;
    color: #10b981;
    font-weight: bold;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: 0.2s;
}

.cart-item-remove:hover {
    color: #dc2626;
    transform: scale(1.1);
}

/* Footer (Total and Pay) */
.cart-footer {
    background: #1a1a24;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-total-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total-label {
    font-size: 1.1rem;
    color: #9496a1;
}

.cart-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.btn-pay {
    background: #3b82f6;
    /* Color azul solicitado */
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cart-paypal-container {
    margin-top: 10px;
    display: none;
}

.cart-paypal-container.active {
    display: block;
}
.cart-payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-stripe {
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4) !important;
}

.btn-stripe:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6) !important;
}

.btn-paypal {
    background: #0070ba !important;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.3) !important;
}

.btn-paypal:hover {
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.5) !important;
}