/* Extracted from shoppingcart.php */
.boxmain-white {
    margin-top: 30px;
}

.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner .spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--brand-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.cart-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
}

.cart-item-image img {
    max-width: 100px;
}

.cart-item-details {
    flex: 1;
    margin-left: 20px;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.original-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discounted-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--brand-gold);
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--grey-400);
    border-radius: 20px;
    padding: 5px 10px;
    width: 100px;
    font-family: Arial, sans-serif;
}

button {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

.quantity {
    font-size: 18px;
    font-weight: bold;
}

.cart-summary {
    border-top: 2px solid var(--grey-300);
    padding-top: 15px;
}

.checkout-btn {
    background-color: #ff5a5f;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
}

.empty-cart {
    text-align: center;
}

.empty-cart h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.continue-shopping {
    padding: 10px 20px;
    background-color: var(--green-alt);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: center;
    }

    .cart-item-details {
        text-align: center;
        margin: 0;
    }

    .price-section {
        font-size: 1.2rem;
    }

    .cart-summary {
        text-align: center;
    }
}
