/* Normal desktop :992px. */

@media (max-width: 1399px) {
    .product-single-area-v2 .product-single-left .product-slier-big-image .single-slide {
        height: 500px;
    }
    .product-single-area-v2 .product-single-left .product-thumbnail-image .single-item {
        height: 184px;
    }
}
@media (min-width: 992px) and (max-width: 1200px) {
	
}

@media (max-width: 1199px) {
    .contact-us-area.section-bottom > .row {
        padding: 0 30px;
    }
    /* Home 2 product details */
    .product-single-area-v2 .product-single-left .product-slier-big-image .single-slide {
        height: 400px;
    }
    .product-single-area-v2 .product-single-left .product-thumbnail-image .single-item {
        height: 149px;
    }
}

/* Tablet desktop :768px. */

@media (min-width: 768px) and (max-width: 991px) {
	
/* Checkout Page New Login Box Start */
.checkout-discount-box .input-group {
    flex-direction: column;
}
.checkout-discount-box .form-control {
    width: 100%;
}
.checkout-discount-box button {
    padding: 7px;
    margin-top: 10px;
}
/* Checkout Page New Login Box End */

}
@media (max-width: 991px) {
	.blog-details-content-wrap, .our-features-area-wrap {
        margin: 0 1.5rem;
    }
    .thankyou-content h2 {
        font-size: 28px;
        line-height: 37px;
        margin: 18px 0;
    }
    .thankyou-content p {
        margin-bottom: 18px;
    }
    .thankyou-content img {
        height: 166px;
    }
    .checkout-page-login-box {
        flex-direction: column;
        align-items: flex-start!important;
    }
    .checkout-page-login-box h2 {
        margin-bottom: 10px!important;
    }
    /* Home 2 version product */
    .product-single-area-v2 .product-single-left .product-thumbnail-image .single-item {
        height: 100px;
    }
    /* Home 2 version product */
}

@media (max-width: 767px) {
    /* Home 2 Product details */
    .product-single-area-v2 .product-single-left .product-slier-big-image .single-slide {
        height: auto;
        max-height: 800px;
    }
    .product-single-area-v2 .product-single-left .product-thumbnail-image .single-item {
        height: 170px;
    }
    .product-single-area-v2 .product-single-left .product-thumbnail-image .single-item .single-item-image {
        height: 100%;
        width: 100%;
    }
    .direction-rtl .product-single-area-v2 .product-single-left {
        margin-right: 0;
        margin-left: 0;
    }
    /* Home 2 Product details */

    /* Hero Slider Mobile Height Fix */
    .hero-section .hero-slider .signle-slide {
        min-height: 200px !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}

/*  Small mobile :320px. */

@media (min-width: 320px) and (max-width: 767px) {
	.contact-us-area.section-bottom .row {
        padding: 0 15px;
    }
}

@media (max-width: 450px) {
	/* Checkout Page New Login Box Start */
    .checkout-discount-box .input-group {
        flex-direction: column;
    }
    .checkout-discount-box .form-control {
        width: 100%;
    }
    .checkout-discount-box button {
        padding: 7px;
        margin-top: 10px;
    }
    /* Checkout Page New Login Box End */
    /* Home 2 Product */
    .product-single-area-v2 .product-single-left .product-thumbnail-image .single-item {
        height: 130px;
    }
    /* Home 2 Product */
}

/* =========================================
   Mobile Layout & Alignment Fixes
   ========================================= */

/* 1. Global Width & Overflow Reset */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding-right: 0 !important;
}

/* 2. Global Text Justification */
body, p, .note-text, .product-description {
    text-align: justify;
}

/* 3. Mobile Header & Offcanvas Z-Index Fix */
.offcanvas, #offcanvasMobileMenu {
    z-index: 100000 !important;
}
#offcanvasMobileMenu .mobile-menu-area {
    background-color: #fff !important;
    position: relative; 
    z-index: 100001; 
}
.offcanvas-backdrop {
    z-index: 99999 !important;
}
.mobile-fixed-header-wrapper {
    background: #fff;
    /* Ensure it stays below offcanvas which is 1045+ */
    z-index: 1040; 
}

/* 4. Mobile Product Page Alignment adjustments */
@media (max-width: 991px) {
    /* Ensure Header doesn't cover content */
    body {
        padding-top: 150px; /* Backup padding if JS fails */
    }

    /* Fix Product Details Alignment & Width */
    .product-single-area-v2 .product-single-right {
        /* text-align: center; */
        padding: 0 15px;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    /* Reset margins for rows/containers to prevent side scrolling */
    .product-single-area-v2 .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    .container {
        padding-right: 15px;
        padding-left: 15px;
        /* overflow-x: hidden; */
        max-width: 100% !important;
    }

    /* Center Align Specific Elements */
    .product-single-area-v2 .product-single-right .product-name {
        /* text-align: center; */
        width: 100%;
    }

    .product-single-area-v2 .product-single-right .product-info .product-price {
        /* justify-content: center; */
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .product-single-area-v2 .product-single-right .product-info .product-catagory {
        /* margin: auto; */
        display: block;
        text-align: center;
    }

    .product-single-area-v2 .product-single-right .product-info .product-review {
        justify-content: center;
        display: flex;
        /* margin-bottom: 15px; */
    }

    .product-single-area-v2 .product-single-right .product-info .prdouct-btn-wrapper,
    .product-single-area-v2 .product-single-right .product-info .product-bottom-button,
    .product-single-area-v2 .product-single-right .product-right-bottom .share-area {
        /* justify-content: center; */
        display: flex;
        flex-wrap: wrap;
    }

    /* Center Add to Cart Quantity Box */
    /* .product-single-area-v2 .product-single-right .product-info .cart-plus-minus {
        margin: 0 auto 15px;
    } */

    /* Keep Note Text Justified */
    .product-single-area-v2 .product-single-right .product-info .note-text {
        text-align: justify;
    }
}