html, body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}
/* =========================================
   CART PAGE – PREMIUM RESPONSIVE DESIGN
========================================= */

@media (max-width: 768px) {

    /* Make cart table scroll smoothly */
    .table-responsive {
        overflow-x: auto;
        border-radius: 12px;
    }

    .tbl-shopping-cart {
        min-width: 650px;
        font-size: 14px;
    }

    /* Product image */
    .tbl-shopping-cart img {
        width: 60px !important;
        border-radius: 8px;
    }

    /* Quantity box */
    .product-quantity input {
        width: 70px !important;
        text-align: center;
        border-radius: 8px;
    }

    /* Coupon section stack nicely */
    .coupon-form {
        flex-direction: column;
        gap: 10px;
    }

    .coupon-form .col-auto {
        width: 100%;
    }

    .coupon-form button {
        width: 100%;
        border-radius: 25px;
    }

    /* Update Cart button */
    .btn-warning {
        width: 100%;
        border-radius: 25px;
        margin-top: 10px;
    }

    /* Shipping + Totals stack */
    .col-md-5,
    .col-md-5.offset-md-2 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-top: 25px;
    }

    /* Cart totals box */
    .cart-total {
        font-size: 14px;
        border-radius: 12px;
        overflow: hidden;
    }

    .cart-total td {
        padding: 10px;
    }

    /* Order total highlight */
    .cart-total tr:last-child td {
        font-weight: 700;
        font-size: 16px;
        color: #0d6efd;
    }

    /* Checkout button premium */
    .btn-success {
        width: 100%;
        height: 50px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 30px;
        margin-top: 15px;
        background: linear-gradient(135deg, #00c853, #00a152);
        border: none;
        transition: 0.3s ease;
    }

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,200,83,0.3);
    }
}
/* =========================================
   CHECKOUT PAGE – PREMIUM RESPONSIVE UI
========================================= */

@media (max-width: 768px) {

    /* Stack billing + shipping properly */
    .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Reduce container padding */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Section headings */
    h3 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    /* Form controls */
    .form-control {
        height: 44px;
        font-size: 14px;
        border-radius: 10px;
    }

    textarea.form-control {
        min-height: 90px;
        resize: none;
    }

    /* Spacing between form rows */
    .mb-3 {
        margin-bottom: 15px !important;
    }

    /* Shipping checkbox */
    #same_as_billing {
        margin-right: 8px;
    }

    /* Order table scroll clean */
    .tbl-shopping-cart {
        min-width: 600px;
        font-size: 14px;
    }

    .table-responsive {
        overflow-x: auto;
        border-radius: 12px;
    }

    .tbl-shopping-cart img {
        width: 60px !important;
        border-radius: 8px;
    }

    /* Order total highlight */
    .tbl-shopping-cart tr:last-child td {
        font-weight: 700;
        font-size: 16px;
        color: #0d6efd;
    }

    /* Payment section */
    .payment-method {
        text-align: center;
    }

    .pay-btn {
        width: 100%;
        height: 52px;
        border-radius: 30px;
        font-size: 16px;
        font-weight: 600;
        margin-top: 20px;
        background: linear-gradient(135deg, #00c853, #00a152);
        border: none;
        transition: all 0.3s ease;
    }

    .pay-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,200,83,0.3);
    }

}
/* =========================================
   PRODUCT DETAILS – PREMIUM MOBILE FIX
========================================= */

@media (max-width: 768px) {

    /* Stack image and content properly */
    .product-details .row {
        flex-direction: column;
    }

    .product-details .col-lg-5,
    .product-details .col-lg-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Center product title */
    .product-details__title {
        text-align: center;
        font-size: 22px;
    }

    .product-details__title span {
        display: block;
        font-size: 20px;
        margin-top: 5px;
        color: #0d6efd;
    }

    /* Review section center */
    .product-details__reveiw {
        text-align: center;
        margin-bottom: 15px;
    }

    /* Product description spacing */
    .product-details__content-text1 {
        font-size: 14px;
        text-align: center;
        padding: 0 10px;
    }

    /* Make buttons FULL WIDTH */
    .product-details__content form button {
        width: 100%;
        height: 50px;
        margin-bottom: 12px;
        border-radius: 30px;
        font-size: 16px;
        font-weight: 600;
    }

    /* Add to cart button gradient */
    button[name="add_to_cart"] {
        background: linear-gradient(135deg, #0d6efd, #004aad);
        border: none;
    }

    /* Buy now button gradient */
    button[name="buy_now"] {
        background: linear-gradient(135deg, #00c853, #00a152);
        border: none;
    }

    /* Fix image slider width */
    .bxslider img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    /* Thumbnail alignment */
    .slider-pager {
        margin-top: 15px;
        text-align: center;
    }

}
/* ==========================================
   HEADER RESPONSIVE FIX (NO HTML CHANGES)
=============================================*/

/* Make header flexible */
.header-lower .main-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Keep logo normal */
.logo-box {
    flex: 0 0 auto;
}

/* Desktop nav spacing */
.nav-outer {
    flex: 1;
    text-align: center;
}

/* ===============================
   MOBILE FIX
===============================*/
@media (max-width: 991px) {

    /* Hide desktop navigation */
    .header-lower .nav-outer {
        display: none;
    }

    /* Reduce header padding */
    .header-lower {
        padding: 10px 15px;
    }

    /* Fix logo size */
    .logo-box img {
        max-width: 130px;
        height: auto;
    }

}

/* Extra small devices */
@media (max-width: 576px) {

    .logo-box img {
        max-width: 110px;
    }

}