@media screen and (max-width: 1500px){
    .hero-thumb{
        width: 100%;
        margin-top: 230px;
    }
}

@media screen and (max-width: 1440px){
    .container-lg{ width: 1200px; }
    .slick-prev{ left: 20px; }
    .slick-next{ right: 20px; }
    .kol-item-thumb{
        height: 480px;
    }
}

@media screen and (max-width: 1230px){
    .header-fixed{
        width: 96%;
        left: 2%;
    }
    /**/
    .hero-title{ font-size: 46px; }
    .hero-price-new{ font-size: 44px; }
    .product-gallery-main-link img{ height: 520px; }
    .deal-banner-title{ font-size: 22px; }
    /* Block Hero */
    .hero-left{
        width: 590px;
    }
    .hero-right{
        width: calc(100% - 590px);
    }
    /* Block Product  */
    .product-flash{
        min-width: 266px;
    }
}
@media screen and (max-width: 1130px){
    .header{ padding: 0px 20px; }

    /* NAV → hamburger dropdown. */
    .header-right{ display: flex; align-items: center; }
    .header-hotline{ margin-right: 14px; }
    .nav-toggle{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 34px;
        height: 34px;
        margin-left: 14px;
        padding: 0px;
        padding-left: 12px;
        border: 0px;
        border-left: 1px dashed #e8e8e8;
        background: none;
        cursor: pointer;
    }
    .nav-toggle span{
        display: block;
        width: 18px;
        height: 2px;
        background: var(--th-color-navy);
        border-radius: 2px;
        transition: all ease .25s;
    }
    .nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-active span:nth-child(2){ opacity: 0; }
    .nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
    .header-nav{
        display: block;
        position: absolute;
        top: calc(100% + 10px);
        left: 15px;
        right: 15px;
        margin-left: 0px;
        line-height: 1.4;
        background: #FFFFFF;
        border-radius: 16px;
        box-shadow: 0px 16px 34px rgba(20,34,97,.16);
        max-height: 0px;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height ease .3s, opacity ease .25s, visibility ease .3s;
        z-index: 60;
    }
    .header-nav.is-open{
        max-height: 400px;
        opacity: 1;
        visibility: visible;
    }
    .header-nav ul{ padding: 10px 6px; }
    .header-nav ul li{ float: none; margin-right: 0px; }
    .header-nav ul li a{
        display: block;
        padding: 12px 14px;
        font-size: 14px;
        border-bottom: 1px solid var(--th-color-line);
    }
    .header-nav ul li:last-child a{ border-bottom: 0px; }
    .hot-badge{ top: 10px; right: 14px; }
    /* Block Product  */
    .product-price-box{
        display: block;
        overflow: hidden;
    }
    .product-price-box:before{display: none;}
    .product-price{
        width: 100%;
    }
    .product-flash{
        width: 100%;
        min-width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        border-radius: 0px;
        clip-path: unset;
        padding: 14px 26px;
    }
    .flash-title{
        padding-left: 0px;
    }

}

/*
* ≤1024px: tablet. Header nav no longer fits the pill (switches to a hamburger
* dropdown), main 2-column sections stack to 1 column, and the deal banner
* swaps its fixed 762px decorative artwork for a fluid bar (the artwork
* overflows the viewport and causes horizontal scroll below ~792px otherwise).
*/
@media screen and (max-width: 1024px){
    
    /* HERO. */
    .hero-content{
        padding-top: 60px;
    }
    .hero-left{ width: 100%; padding-right: 0px; float: none; text-align: center; margin-top: 20px;  }
    .hero-right{ width: 100%; float: none; text-align: center; margin-top: 0px; }
    .hero-card{ margin: 0px auto; text-align: left; }
    .hero-card-gift{
        width: 250px;
    }
    .hero-card-price{
        width: calc(100% - 250px);
    }
    .hero-actions,
    .hero-rating{ text-align: center; }
    .hero-thumb{ width: 100%; max-width: 460px; margin: 0px auto; }
    .hero-seal{ left: 14%; }

    /* PRODUCT. */
    .product-gallery{ width: 100%; padding-right: 0px; float: none; margin-bottom: 34px; }
    .product-info{ width: 100%; float: none; }
    .product-gallery-main-link img{
        height: 600px;
    }
    .product-gallery-thumb{
        height: 180px;
    }
    /* TRUST + BADGES. */
    .trust-item{ width: 50%; margin-bottom: 28px; }
    .badge-item{ width: 50%; margin-bottom: 30px; }
    .block-badges{ padding-bottom: 60px; }

    /* DEAL: swap the fixed-width banner artwork for a fluid bar. */
    .block-deal{ padding: 40px 0px 80px; }
    .deal-frame{
        background: var(--th-color-cream);
        border-radius: 20px;
        padding: 16px;
    }
    .deal-head{
        position: static;
        width: 100%;
        height: auto;
        box-sizing: border-box;
        background: linear-gradient(90deg, var(--th-color-red2), #ff7a45);
        border-radius: 16px;
        margin-bottom: 16px;
        padding: 14px;
        display: flex;
        justify-content: center;
    }
    .deal-head:before{
        display: none;
    }
    .deal-banner{
        height: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }
    .deal-banner-title{ margin-left: 0px; margin-right: 0px; font-size: 20px; }
    .deal-content{ padding: 16px; }

    /* KOL / CERT. */
    .kol-item-thumb{ height: 480px; }
    /*.cert-item-thumb{ height: 400px; }*/

    /* FOOTER. */
    .footer-about,
    .footer-contact,
    .footer-fanpage{ width: 100%; padding-right: 0px; float: none; margin-bottom: 30px; }
}

@media screen and (max-width: 768px){
    .cart-checkout-header{
        padding: 20px 0px;
        padding-bottom: 10px;
    }
    .cart-checkout-logo img{
        height: 80px;
    }
    .announce-bar{ font-size: 12px; }
    .section-title{ font-size: 28px; }
    .hero-title{ font-size: 38px; white-space: normal; }
    /* PRODUCT. */
    .product-price-box{ flex-direction: column; }
    .product-price{ width: 100%; }
    .product-flash{ width: 100%; clip-path: none; padding-left: 22px; }
    .flash-bolt{ display: none; }
    .product-title{ font-size: 24px; }
    .spec-label{ width: 130px; }
    /* KOL / CERT. */
    .kol-item-thumb{ height: 360px; }
    .cert-item-thumb{ height: 300px; }
    /* POPUP ORDER. */
    .popup-order-body{ flex-direction: column; }
    .popup-order-left{ width: 100%; box-sizing: border-box; border-right: 0px; border-bottom: 1px solid var(--th-color-cream-border); }
    /* Checkout  */
    .woocommerce ul.order_details li{
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 590px){
    .section-title{ font-size: 24px; }
    .hero-title{ font-size: 30px; }
    .hero-card-price{ width: 100%; float: none; padding-right: 0px; border-bottom: 1.5px dashed #E5C994;padding-bottom: 25px;margin-bottom: 20px;}
    .hero-card-gift{ float: none !important; border-left: 0px;  padding-left: 0px;margin:0 auto;width: 100}
    .hero-card-gift-inner img{
        width: 300px;
        left: -27px;
        top: -35px;
    }
    .hero-price-new{ font-size: 38px; }
    .hero-actions .btn{ display: block; width: 100%; box-sizing: border-box; margin: 0px 0px 10px; }
    .hero-seal{ width: 84px; left: auto; right: 6%; top: 10px; }
    .header-hotline{ display: none; }
    /* PRODUCT. */
    .product-gallery-main-link img{ height: auto; }
    .product-gallery-thumb{ height: 80px; }
    .product-color{ flex-wrap: wrap; }
    .product-color-label{ width: 100%; margin-bottom: 10px; }
    /* TRUST + BADGES. */
    .trust-item{ width: 100%; }
    .badge-item{ width: 100%; }
    .block-badges{ padding-bottom: 40px; }
    /* DEAL. */
    .deal-head{ padding: 12px 14px 12px 14px; }
    .deal-banner-title{ font-size: 15px; }
    .deal-item-title{ min-height: 0px; }
    .deal-item-desc{ min-height: 0px; }
    /* KOL / CERT. */
    .kol-item-thumb{ height: 400px; }
    .cert-item-thumb{ height: 350px; }
    /* FIXED WIDGETS. */
    .fixed-contact-item{ width: 40px; height: 40px; font-size: 17px; margin-bottom: 12px; }
    .back-to-top{ width: 40px; height: 40px; font-size: 16px; }
    /* POPUP ORDER. */
    .popup-order-head{ padding: 18px; }
    .popup-order-head h3{ font-size: 19px; }
    .popup-order-left{ padding: 20px 18px; }
    .popup-order-product-img{ width: 84px; height: 84px; }
    .popup-order-form{ padding: 20px 18px 22px; }
}

/*
* ≤480px: small phones. Final pass — tighten type scale, stack spec rows,
* shrink the fixed corner widgets so they stop crowding such a narrow viewport.
*/
@media screen and (max-width: 480px){
    .container,
    .container-lg{ padding: 0px 12px; }
    .header-nav{ left: 12px; right: 12px; }

    /* HERO. */
    .hero-content{ padding-top: 70px; }
    .hero-title{ font-size: 25px; letter-spacing: -.5px; }
    .hero-sub{ font-size: 15px; }
    .hero-card-body{ padding: 22px 14px 16px; }
    .hero-price-new{ font-size: 32px; }
    .ribbon-tag{ font-size: 11px; padding: 6px 10px; }
    .ribbon-note{ font-size: 12px; }
    .fc-box{ min-width: 36px; font-size: 17px; padding: 6px 3px; }
    .gift-value strong{ font-size: 18px; }

    /* PRODUCT. */
    .product-title{ font-size: 20px; }
    .product-spec-row{ flex-direction: column; }
    .spec-label{ width: 100%; margin-bottom: 4px; }
    .product-price-new{ font-size: 28px; }

    /* DEAL. */
    .deal-price-new{ font-size: 24px; }

    /* KOL / CERT. */
    .kol-item-thumb{ height: 430px; }
    .cert-item-thumb{ height: 350px; }

    /* FIXED WIDGETS. */
    .fixed-contact{ right: 12px; }
    .back-to-top{ right: 12px; }

    /* FOOTER. */
    .footer-logo{ height: 56px; }
    .fanpage-name strong{ font-size: 16px; }
}
