/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 10px;
    color: #333;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cart-icon:hover {
    color: #D4AF37;
}

.cart-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #D4AF37;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.cart-modal.active .cart-content {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.cart-header h3 {
    margin: 0;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.close-btn:hover {
    color: #D4AF37;
}

/* Cart Items */
.cart-items {
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.item-color {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.item-price {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: #D4AF37;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.qty-btn:hover {
    background: #f8f9fa;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    margin-left: 15px;
}

.remove-btn:hover {
    color: #c82333;
}

/* Cart Footer */
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: var(--cart-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.total-amount {
    color: #D4AF37;
    font-size: 20px;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-actions .btn {
    flex: 1;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-cart p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Add to Cart Button States */
.add-to-cart {
    position: relative;
    transition: all 0.3s ease;
}

.add-to-cart.in-cart {
    background: #28a745 !important;
    color: white !important;
}

.add-to-cart.in-cart:hover {
    background: #218838 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-content {
        width: 100%;
    }
}
