/* cart.css */

.cart-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: var(--dark-gray);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--light-gray);
}

.cart-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 2rem;
}

.cart-header h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cart-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-info {
    padding-right: 1rem;
}

.product-info h2 {
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-info img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background-color: var(--medium-gray);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.options-and-total {
    background-color: var(--medium-gray);
    border-radius: 12px;
    padding: 1rem;
}

.options h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.options label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.total {
    border-top: 1px solid var(--dark-gray);
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: right;
}

.total h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-align: right;
}

.total p {
    font-size: 1.8rem;
    color: var(--accent-blue);
}

#checkout-button {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-details {
        grid-template-columns: 1fr;
    }

    .product-info {
        padding-right: 0;
    }

    .options-and-total {
        margin-top: 2rem;
    }
}