/* ===== MODERN CART SYSTEM STYLES ===== */

/* Cart Button Animation */
.cart-button.cart-bounce {
    animation: cartBounce 0.6s ease-in-out;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
    75% { transform: scale(1.1); }
}

/* Modern Cart Overlay */
.modern-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modern-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modern Cart Sidebar */
.modern-cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border-left: 3px solid #e11d48;
}

.modern-cart-sidebar.active {
    right: 0;
}

/* Cart Header */
.modern-cart-header {
    padding: 2rem;
    background: linear-gradient(135deg, #e11d48 0%, #be185d 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.3);
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-title i {
    font-size: 1.25rem;
}

.modern-cart-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modern-cart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Cart Content */
.modern-cart-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e11d48 #f1f5f9;
}

.modern-cart-content::-webkit-scrollbar {
    width: 6px;
}

.modern-cart-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.modern-cart-content::-webkit-scrollbar-thumb {
    background: #e11d48;
    border-radius: 3px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-cart-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.empty-cart h3 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #475569;
}

.empty-cart p {
    margin: 0;
    font-size: 1rem;
}

/* Cart Items */
.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #fce7f3;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.cart-item-category {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.cart-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e11d48;
    margin-top: auto;
}

/* Cart Item Controls */
.cart-item-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.25rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    color: #e11d48;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qty-btn:hover {
    background: #e11d48;
    color: white;
    transform: scale(1.1);
}

.quantity {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.remove-btn {
    background: #fee2e2;
    border: none;
    color: #dc2626;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
}

/* Cart Footer */
.modern-cart-footer {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.stat.total {
    border-top: 2px solid #e2e8f0;
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    color: #1e293b;
    font-weight: 600;
}

.stat.total .stat-value {
    color: #e11d48;
    font-size: 1.5rem;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    gap: 1rem;
}

.clear-cart-btn,
.checkout-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-cart-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.clear-cart-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
    transform: translateY(-2px);
}

.checkout-btn {
    background: linear-gradient(135deg, #e11d48 0%, #be185d 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(225, 29, 72, 0.4);
}

/* Notifications */
.modern-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 4px solid #10b981;
    max-width: 350px;
}

.modern-notification.show {
    right: 20px;
}

.modern-notification.success {
    border-left-color: #10b981;
}

.modern-notification.info {
    border-left-color: #3b82f6;
}

.notification-content {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.25rem;
    color: #10b981;
}

.modern-notification.info .notification-content i {
    color: #3b82f6;
}

.notification-content span {
    color: #1e293b;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modern-cart-header {
        padding: 1.5rem;
    }
    
    .cart-title {
        font-size: 1.25rem;
    }
    
    .cart-item {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-name {
        font-size: 1rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .modern-notification {
        right: -100%;
        max-width: calc(100% - 40px);
    }
    
    .modern-notification.show {
        right: 20px;
    }
}
