/* File: assets/css/cart-responsive.css */

/*--------------------------------------------------------------
# Cart Page Responsive Styles
--------------------------------------------------------------*/

/* Desktop styles (default) */
.content-wrapper {
    padding: 2rem 0;
}

.cart-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.cart-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-light);
}

.empty-cart-message {
    text-align: center;
    padding: 3rem 0;
    font-size: 1.1rem;
}

.continue-shopping {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart-table th {
    background-color: var(--bg-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
    display: inline-block;
    vertical-align: middle;
}

.product-name {
    display: inline-block;
    vertical-align: middle;
    font-weight: 500;
}

.quantity-input {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-benefits {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .cart-product-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 0.75rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    /* Adjust table for smaller screens */
    .cart-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .cart-product-image {
        width: 60px;
        height: 60px;
        margin-right: 0.5rem;
    }
    
    .quantity-input {
        width: 60px;
    }
    
    /* Stack buttons on smaller screens */
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cart-actions button,
    .cart-actions a {
        width: 100%;
        text-align: center;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .cart-title {
        font-size: 1.5rem;
    }
    
    .cart-intro {
        font-size: 0.9rem;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .cart-product-image {
        width: 50px;
        height: 50px;
    }
    
    .product-name {
        font-size: 0.9rem;
        max-width: 100px;
        white-space: normal;
        display: block;
        margin-top: 0.5rem;
    }
    
    .quantity-input {
        width: 50px;
        padding: 0.25rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .cart-benefits {
        padding: 1.5rem 1rem;
    }
    
    .cart-benefits h2 {
        font-size: 1.3rem !important;
    }
    
    .cart-benefits ul li {
        font-size: 0.9rem !important;
    }
}