/* ============================================================
    SHOPPING CART - 100% ALL DEVICE FRIENDLY (MOBILE FIX)
   ============================================================
*/

/* 1. Mool Container Fix */
.shopping-cart-container {
    width: 100% !important;
    padding: 10px !important;
    overflow-x: hidden !important; /* Mobile scroll fix */
}

/* 2. Cart Item Responsive Layout (Image 4 er somoshya fix) */
.cart_information .cart_item {
    display: flex;
    flex-wrap: wrap; /* Mobile e jate niche neme jay */
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(192, 36, 37, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* 3. Media Header (Product Image Section) */
.media-header {
    flex: 0 0 100px; /* Image size fixed */
    max-width: 100px;
    margin-right: 15px;
}

.media-header img {
    width: 100%;
    border-radius: 8px;
    object-fit: contain;
}

/* 4. Media Body (Details & Quantity Section) */
.media-body {
    flex: 1;
    min-width: 200px; /* Jate bhenge na jay */
}

/* Quantity Controls - Plus/Minus Fix */
.quantity-box-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty_input {
    width: 60px !important;
    height: 40px !important;
    text-align: center;
    font-size: 18px !important;
    font-weight: 700 !important;
    border: 1px solid #ddd !important;
    border-radius: 5px;
}

.plus-minus-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 20px !important;
    color: #C02425;
    cursor: pointer;
}

/* 5. Font Size Updates (For Readability) */
.cart_product .product-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 5px;
}

.cart_product .text-accent {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #C02425 !important;
}

/* 6. Mobile Specific Fixes (Max-width: 768px) */
@media (max-width: 768px) {
    /* Cart item ke row theke column kora holo */
    .cart_information .cart_item {
        flex-direction: column; 
        align-items: flex-start;
    }

    .media-header {
        margin-bottom: 10px;
        max-width: 80px;
    }

    /* Mobile e Plus/Minus button arektu boro kora */
    .quantity-box-wrapper {
        width: 100%;
        justify-content: space-between;
        background: #fdfdfd;
        padding: 8px;
        border-radius: 8px;
        margin-top: 15px;
    }

    /* Sub-total area fix */
    .cart_total {
        margin-top: 20px;
        padding: 15px !important;
    }
    
    .view_border {
        margin: 15px 0;
    }
}

/* 7. All Forms & Select Box Fix */
select, .form-control {
    width: 100% !important;
    height: auto !important;
    padding: 10px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
}