/* ==========================================================================
   Tarot & Vida - Option 2 Floating Cart Drawer Styling
   ========================================================================== */

/* Floating Button */
.cart-float-btn {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(175, 82, 237, 0.35), 0 0 0 0 rgba(175, 82, 237, 0.4);
    border: none;
    outline: none;
    cursor: pointer;
    z-index: 998;
    transition: var(--transition-smooth);
    animation: pulseGlow 2.5s infinite;
}

.cart-float-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 30px rgba(175, 82, 237, 0.5), 0 0 15px rgba(175, 82, 237, 0.3);
}

.cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 10px 25px rgba(175, 82, 237, 0.3), 0 0 0 0 rgba(175, 82, 237, 0.3);
    }
    70% {
        box-shadow: 0 10px 25px rgba(175, 82, 237, 0.3), 0 0 0 12px rgba(175, 82, 237, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(175, 82, 237, 0.3), 0 0 0 0 rgba(175, 82, 237, 0);
    }
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 5, 29, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Cart Drawer (Light Theme esmerilado V2) */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.08);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.cart-drawer.open {
    right: 0;
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }
}

/* Drawer Header */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    border-bottom: 1px solid rgba(226, 232, 240, 1);
}

.cart-header h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.cart-header h3 i {
    color: var(--accent-purple);
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-cart:hover {
    color: var(--accent-purple);
    transform: rotate(90deg);
}

/* Drawer Body */
.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-body::-webkit-scrollbar {
    width: 5px;
}

.cart-body::-webkit-scrollbar-track {
    background: transparent;
}

.cart-body::-webkit-scrollbar-thumb {
    background: rgba(226, 232, 240, 1);
    border-radius: 10px;
}

.cart-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Empty State */
.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: auto 0;
}

.cart-empty i {
    font-size: 2.8rem;
    color: rgba(175, 82, 237, 0.15);
}

/* Item Card */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    padding: 12px;
    transition: var(--transition-smooth);
}

.cart-item:hover {
    border-color: rgba(175, 82, 237, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.cart-item-img {
    width: 50px;
    height: 50px;
    background: rgba(175, 82, 237, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(175, 82, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-purple-dark);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-primary);
    line-height: 1.3;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--accent-purple-dark);
    font-weight: 500;
}

.remove-cart-item {
    background: none;
    border: none;
    color: rgba(231, 76, 60, 0.5);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    padding: 4px;
}

.remove-cart-item:hover {
    color: rgba(231, 76, 60, 1);
    transform: scale(1.1);
}

/* Drawer Footer */
.cart-footer {
    padding: 25px;
    border-top: 1px solid rgba(226, 232, 240, 1);
    background: #f8fafc;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.total-row span:last-child {
    color: var(--accent-purple-dark);
    font-family: var(--font-heading);
    font-weight: 700;
}

.btn-checkout {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    transition: var(--transition-smooth);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
