/* Cart Modal Styles */

.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.cart-modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.cart-modal-header h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.cart-close-btn:hover {
    background: #f0f0f0;
    color: #000;
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1.125rem;
}

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

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s;
}

.cart-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 100px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.cart-item-price {
    color: #666;
    font-size: 0.875rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem;
}

.quantity-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
    color: #666;
}

.quantity-btn:hover {
    background: #f0f0f0;
    color: #000;
}

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

.remove-btn {
    background: none;
    border: none;
    color: #e60000;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s;
    text-decoration: underline;
}

.remove-btn:hover {
    color: #cc0000;
    font-weight: 600;
}

.cart-total {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid #e0e0e0;
    display: flex;
    gap: 1rem;
}

.btn-continue-shopping,
.btn-checkout {
    flex: 1;
    padding: 1rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    letter-spacing: 1px;
    border-radius: 4px;
}

.btn-continue-shopping {
    background: #f0f0f0;
    color: #333;
}

.btn-continue-shopping:hover {
    background: #e0e0e0;
}

.btn-checkout {
    background: #000;
    color: white;
}

.btn-checkout:hover {
    background: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 150px;
    }
    
    .cart-modal-footer {
        flex-direction: column;
    }
}