/**
 * CHOLLII Luxury Saree Blouses - Master Responsive Stylesheet
 * File: public/assets/css/responsive.css
 */

/* Prevent horizontal overflow globally */
html,
body {
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
}

/* =========================================================
   1. DESKTOP SCREENS (min-width: 992px)
   ========================================================= */
@media (min-width: 992px) {
    .product-main-row {
        align-items: stretch !important;
    }

    .product-image-section {
        position: relative !important;
        align-self: stretch !important;
    }

    .product-image-sticky {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 95px !important;
        z-index: 10 !important;
    }
}

/* =========================================================
   2. TABLETS & MEDIUM SCREENS (max-width: 991.98px)
   ========================================================= */
@media (max-width: 991.98px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    /* Hero Section */
    .hero-slide .hero-image {
        /* min-height: 360px !important;
        max-height: 460px !important; */
        min-height: 100% !important;
    }

    .hero-section .display-3 {
        font-size: 2.2rem !important;
        line-height: 1.25;
    }

    /* Product Page layout */
    .product-main-row {
        gap: 1.5rem !important;
    }

    .product-image-sticky {
        position: relative !important;
        top: 0 !important;
    }

    /* Offcanvas Mini Cart */
    #cholliiCartDrawer {
        width: 380px !important;
    }
}

/* =========================================================
   3. MOBILE PHONES & SMALL TABLETS (max-width: 767.98px)
   ========================================================= */
@media (max-width: 767.98px) {

    /* Compact Container & Spacings */
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .product-main-row {
        --bs-gutter-y: 0.85rem !important;
        --bs-gutter-x: 0.85rem !important;
    }

    .product-details-section {
        padding-top: 0 !important;
    }

    /* Typography Scaling */
    h1,
    .display-3 {
        /* font-size: 1.65rem !important; */
        font-size: 1.25rem !important;
    }

    h2,
    .display-4,
    .display-5,
    .display-6 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    /* Header & Navigation */
    .navbar-brand img {
        /* max-height: 32px !important; */
    }

    .nav-icon-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }

    .nav-icon-btn .badge-count {
        top: -4px !important;
        right: -4px !important;
        min-width: 17px !important;
        height: 17px !important;
        font-size: 0.6rem !important;
    }

    /* Product Cards in Grid (2 Columns on Mobile) */
    .product-card-chollii {
        border-radius: 12px !important;
    }

    .product-card-chollii .product-img-wrap {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        height: auto !important;
    }

    .product-card-chollii .card-body {
        padding: 8px 10px !important;
    }

    .product-card-chollii .product-title-link {
        font-size: 0.82rem !important;
    }

    /* Product Details Action Buttons on Mobile */
    .product-action-btn {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
        font-size: 0.85rem !important;
    }

    .size-btn {
        min-width: 68px !important;
        padding: 6px 8px !important;
    }

    .color-swatch-btn {
        width: 32px !important;
        height: 32px !important;
    }

    /* Cart & Checkout Page */
    .cart-table thead {
        display: none;
    }

    .cart-table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 12px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    /* Footer Mobile */
    .footer {
        text-align: left;
    }

    .footer .col-6 {
        margin-bottom: 1.5rem;
    }

    .footer-bottom .container {
        flex-direction: column !important;
        text-align: center;
        gap: 8px !important;
    }
}

/* =========================================================
   4. EXTRA SMALL MOBILE PHONES (max-width: 575.98px)
   ========================================================= */
@media (max-width: 575.98px) {

    /* Full-Width Slide-Out Mini Cart Drawer */
    #cholliiCartDrawer {
        width: 100% !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }

    #cholliiCartDrawer .offcanvas-body {
        padding: 0 !important;
    }

    /* Floating Offer Bar */
    .floating-offer-bar {
        bottom: 12px !important;
        width: calc(100% - 20px) !important;
        padding: 8px 12px !important;
    }

    /* Auth Pages */
    .auth-card {
        padding: 1.25rem !important;
        border-radius: 16px !important;
        margin: 10px !important;
    }

    /* Modals Mobile Fit */
    .modal-dialog {
        margin: 12px !important;
    }
}