/* File: assets/css/cart-responsive.css — AMRIC (mobile-first) */

/*--------------------------------------------------------------
# Cart Page Responsive Styles
--------------------------------------------------------------*/

/* Mobile styles (default/base) */
.content-wrapper {
    padding: 1.25rem 0;
}

.cart-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.cart-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.25rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.empty-cart-message {
    text-align: center;
    padding: 2rem 0;
    font-size: 1rem;
}

.continue-shopping {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.cart-table th {
    background-color: var(--bg-light);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

.product-name {
    display: inline-block;
    vertical-align: middle;
    font-weight: 500;
}

.quantity-input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cart-actions button,
.cart-actions a {
    width: 100%;
    text-align: center;
}

.cart-benefits {
    background-color: var(--bg-light);
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/*--------------------------------------------------------------
# Responsive scale-up — small devices and above
--------------------------------------------------------------*/
@media (min-width: 576px) {
    .cart-title {
        font-size: 1.75rem;
    }

    .cart-intro {
        font-size: 1rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 0.85rem;
    }

    .cart-product-image {
        width: 70px;
        height: 70px;
        margin-right: 1rem;
    }

    .quantity-input {
        width: 65px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .content-wrapper {
        padding: 2rem 0;
    }

    .cart-table {
        display: table;
        white-space: normal;
        overflow-x: visible;
    }

    .cart-table th,
    .cart-table td {
        padding: 1rem;
    }

    .cart-product-image {
        width: 80px;
        height: 80px;
    }

    .cart-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .cart-actions button,
    .cart-actions a {
        width: auto;
    }

    .cart-benefits {
        padding: 2rem;
        margin-top: 3rem;
    }
}