/* Shopping Cart Styles */

/* Header Cart Button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-toggle {
    position: relative;
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-toggle:hover {
    background: rgba(200, 168, 130, 0.1);
    color: #c8a882;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #c8a882;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-badge.show {
    display: flex;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.cart-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cart-modal-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-close:hover {
    background: #e0e0e0;
    color: #1a1a1a;
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-items {
    padding: 20px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.cart-item:hover {
    background: #f8f8f8;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background: #f0f0f0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.cart-item-collection {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: #c8a882;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: #ffe5e5;
    color: #f44336;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: #999;
}

.cart-empty svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-empty h3 {
    font-size: 1.25rem;
    color: #666;
    margin: 0 0 10px 0;
}

.cart-empty p {
    margin: 0;
    color: #999;
}

.cart-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.125rem;
}

.total-label {
    font-weight: 500;
    color: #666;
}

.total-amount {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.25rem;
}

.checkout-btn {
    width: 100%;
    background: #c8a882;
    color: white;
    border: none;
    padding: 15px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover:not(:disabled) {
    background: #a08660;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 168, 130, 0.3);
}

.checkout-btn:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

/* Modal Animation */
.cart-modal {
    animation: fadeIn 0.3s ease;
}

.cart-modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-modal {
        padding: 10px;
    }
    
    .cart-modal-content {
        max-height: 90vh;
        border-radius: 8px;
    }
    
    .cart-modal-header,
    .cart-modal-footer {
        padding: 15px 20px;
    }
    
    .cart-item {
        padding: 12px 20px;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 45px;
    }
    
    .cart-item-title {
        font-size: 0.9rem;
    }
    
    .checkout-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .cart-modal {
        display: none !important;
    }
}