/*************** RESPONSIVE OPTIMIZATION (LAPTOP, TABLET & MOBILE) ***************/

/* 1. Laptop 13-15" & Small Desktop (850px - 1100px) */
@media only screen and (min-width: 850px) and (max-width: 1100px) {
    #logo {
        width: 155px !important;
        max-width: 155px !important;
    }
    .header-nav-main.nav > li > a {
        font-size: 13.5px !important;
        padding: 8px 10px !important;
    }
}

/* 2. Tablet & Mobile Header (< 850px) */
@media only screen and (max-width: 849px) {
    #top-bar .container {
        padding: 0 10px;
    }
    #top-bar li.html.custom.html_topbar_left {
        font-size: 11.5px !important;
        letter-spacing: 0.2px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 94vw;
    }
    .header-main {
        height: 74px !important;
    }
    #logo {
        width: auto !important;
        max-width: 155px !important;
        margin: 0 auto;
    }
    #logo img {
        max-height: 62px !important;
        padding: 6px 0 !important;
        width: auto !important;
    }
    .mh-block-text-introduce-3 {
        right: 0 !important;
    }
}

/* 3. Tablet Viewport (550px - 849px) */
@media only screen and (min-width: 550px) and (max-width: 849px) {
    .mh-slider .banner {
        height: 340px !important;
    }
    /* Celebrity banners 3-col on tablet: proportional height */
    .page-id-36 .col_inner > .banner,
    .page-id-36 .row > .col > .col-inner > .banner {
        height: 360px !important;
    }
    .page-id-36 .slider .banner {
        height: 440px !important;
    }
    .mh-title-background h3.mh-title {
        font-size: 15px;
    }
    .mh-content-introduce {
        font-size: 14px;
    }
}

/* 4. Mobile Viewport (<= 549px) */
@media only screen and (max-width: 549px) {
    /* Hero Banner on Mobile */
    .mh-slider .banner {
        height: 210px !important;
    }
    .mh-slider .text-box {
        width: 70% !important;
    }
    .mh-slider .text-box .button {
        font-size: 11.5px !important;
        padding: 5px 18px !important;
    }

    /* Brand Introduce Section on Mobile */
    .mh-col-introduce {
        text-align: left !important;
        padding-top: 10px !important;
    }
    .mh-title-background {
        padding-left: 42px;
        min-height: 32px;
    }
    .mh-title-background h3.mh-title {
        font-size: 15.5px;
    }
    .mh-content-introduce {
        font-size: 14.5px;
        line-height: 1.6;
        text-align: left;
    }

    /* Celebrity Banners on Mobile */
    .page-id-36 .banner {
        height: 380px !important;
        margin-bottom: 14px;
    }
    .mh-slider .banner {
        height: 210px !important;
        margin-bottom: 0;
    }

    /* Product Feature Slider on Mobile */
    .page-id-36 .slider .banner:not(.mh-slider .banner) {
        height: 370px !important;
    }
    .page-id-36 .slider .banner .text-box {
        width: 92% !important;
    }
    .page-id-36 .slider .banner .text-box h1 {
        font-size: 24px !important;
    }
    .page-id-36 .slider .banner .text-box h3 {
        font-size: 18px !important;
    }
    .page-id-36 .slider .banner .text-box h4 {
        font-size: 14px !important;
    }
    .page-id-36 .slider .banner .text-box .button {
        font-size: 11px !important;
        padding: 4px 12px !important;
        margin: 3px 3px !important;
    }

    /* Blog Posts Grid on Mobile: Clean Fit Without Overlapping Packery */
    .page-id-36 .row-grid .grid-col-1-2 .from_the_blog_excerpt {
        display: none !important;
    }
    .page-id-36 .row-grid .grid-col-1-2 .post-title {
        font-size: 14.5px !important;
        margin-bottom: 4px !important;
    }
    .page-id-36 .row-grid .grid-col-1 .post-title {
        font-size: 16px !important;
    }
    .page-id-36 .row-grid .grid-col-1 .from_the_blog_excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-clamp: 3;
        overflow: clip;
        font-size: 13px;
    }
    .page-id-36 .box-overlay .box-image,
    .page-id-36 .has-equal-box-heights .box-image {
        padding-top: 62% !important;
    }

    /* Contact / Registration Form Radio Options on Mobile */
    .mh-radius {
        flex-wrap: wrap;
        gap: 6px 14px;
    }

    /* Single Product Page on Mobile */
    body.single-product .product-info h1.product-title {
        font-size: 20px;
    }
    body.single-product .product-info form.cart {
        flex-direction: row;
        width: 100%;
    }
    body.single-product .product-info form.cart button.single_add_to_cart_button {
        flex: 1;
        padding: 0 16px;
        text-align: center;
    }
    .mh-ingredients-table tr {
        display: flex;
        flex-direction: column;
    }
    .mh-ingredients-table td {
        width: 100% !important;
        border-bottom: none !important;
    }
    .mh-ingredients-table td:empty {
        display: none;
    }

    /* Footer on Mobile */
    .footer-wrapper .col {
        padding-bottom: 16px !important;
    }
    .footer-wrapper .img {
        margin: 0 auto 10px !important;
    }
    #toc_container {
        padding: 14px 16px;
    }
}

/* 5. Store Locator Responsive Layout (Tablet & Mobile <= 767px) */
@media only screen and (max-width: 767px) {
    .dvls_maps_header {
        padding: 14px !important;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .dvls_maps_header_left {
        line-height: 1.3 !important;
        font-size: 16.5px !important;
    }
    .dvls_maps_header_right {
        flex: 1 1 auto;
        width: 100%;
    }
    .dvls_maps_3col {
        flex-direction: column;
        gap: 8px;
    }
    .dvls_maps_3col .dvls_maps_col,
    .dvls_maps_3col .dvls_maps_col:last-child {
        flex: 1 1 auto;
        width: 100% !important;
        margin: 0 !important;
    }
    .dvls_maps_wrap input.dvls-submit {
        width: 100% !important;
    }
    .dvls_maps_sidebar {
        border-right: 0 !important;
        border-bottom: 1px solid #e5d8b8;
        max-height: 240px !important;
    }
    div#dvls_maps {
        height: 340px !important;
    }
}
