/* ============================================
   ABPack.vn — Responsive Breakpoints
   Mobile-first progressive enhancement
   ============================================ */

/* --- Extra Large (≤1400px) --- */
@media (max-width: 1400px) {
    .sec_media .section-content {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    .sec_04 .img-inner .caption {
        font-size: 17px;
    }
    .sec_04 .row-2 .title_hd h2 {
        font-size: var(--text-3xl);
    }
}

/* --- Large Desktop (≤1366px) --- */
@media only screen and (max-width: 1366px) {
    .container-width,
    .full-width .ubermenu-nav,
    .container,
    .row {
        max-width: 1100px !important;
    }
}

/* --- Desktop (≤1200px) --- */
@media (max-width: 1200px) {
    ul.header-nav.nav-uppercase > li.menu-item {
        margin: 0 16px;
    }
    ul.header-nav.nav-uppercase > li.menu-item > a {
        font-size: 14px;
    }
    .tits h3 span {
        font-size: var(--text-lg);
    }
    .product-small.box .box-image {
        padding: var(--space-3);
    }
    .product-small.box .box-text {
        padding: 0 var(--space-4) var(--space-4);
    }
    .sec_03 .product-category .box-text {
        width: calc(100% - 30px);
        left: 10px;
    }
    .sec_03 .product-category .box-text .box-text-inner h5 {
        font-size: var(--text-sm);
        line-height: 1.4;
    }
    .title_hd h2 {
        font-size: var(--text-xl);
        line-height: 1.4;
        margin-bottom: var(--space-5);
    }
    .sec_04 .img-inner .caption {
        top: -13%;
    }
    .sec_06 .blog-right .post-item {
        padding-bottom: var(--space-4);
    }
    .sec_06 .blog-right .post-item > .col-inner {
        height: unset;
    }
    .product-info h1.product-title {
        font-size: var(--text-xl);
        line-height: 1.4;
    }
    .full-row .term-tax {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }
    .term-tax .list-term-tax h3 {
        font-size: var(--text-sm);
    }
}

/* --- Tablet (≤849px) --- */
@media (max-width: 849px) {
    .title_hd h2 {
        font-size: var(--text-xl) !important;
        line-height: 1.4 !important;
    }
    .product-info {
        padding-top: var(--space-6) !important;
    }
    .full-row .tabbed-content {
        padding: 0 var(--space-4);
    }
    .woocommerce-description .large-4 {
        text-align: center !important;
    }
    .sec_05 .title_hd h2,
    .sec_06 .title_hd h2,
    .sec_07 .title_hd h2 {
        font-size: var(--text-2xl);
    }
}

/* --- Mobile (≤767px) --- */
@media (max-width: 767px) {
    :root {
        --text-4xl: 1.875rem;
        --text-5xl: 2.25rem;
    }

    #logo img {
        max-height: 50px !important;
    }
    .woocommerce-description h2 {
        font-size: var(--text-xl);
    }

    /* Search */
    .sec_01 .searchform-wrapper form {
        margin-bottom: var(--space-5);
    }
    .sec_01 .searchform-wrapper form button::after {
        font-size: var(--text-sm);
    }
    .sec_01 .searchform-wrapper form button {
        padding: var(--space-1) var(--space-4);
    }
    .sec_01 .searchform-wrapper form input {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-sm);
    }

    /* Section title */
    .tits {
        margin-bottom: var(--space-5);
    }
    .tits h3 span {
        font-size: var(--text-base);
        border-left: 4px solid var(--color-primary-light);
        padding: var(--space-3) var(--space-4) var(--space-2) var(--space-3);
    }
    .tits h3 span::after {
        border-width: 20px 0 20px 16px;
        right: -16px;
    }

    /* Product cards mobile */
    .product-small.box .box-image img,
    .product-small.box .box-image {
        height: 160px;
    }

    /* sec_04 */
    .sec_04 .row_our {
        padding: var(--space-5) var(--space-4) var(--space-3) var(--space-4) !important;
        border-radius: var(--radius-lg);
    }
    .sec_04 .img-inner img {
        padding-left: 0px;
    }
    .sec_04 .img-inner .caption {
        position: unset;
        transform: rotate(0deg) !important;
        justify-content: center;
        margin-top: var(--space-3);
    }
    .sec_04 .row_our .title_hd {
        margin-top: 0;
    }
    .sec_04 .row-2 .title_hd::after {
        display: none;
    }
    .sec_04 .box .box-image .image-zoom {
        padding-top: 468px !important;
    }

    /* sec_06 blog */
    .sec_06 .blog-right .box .box-image {
        width: 40% !important;
    }
    .sec_06 .blog-right .box .box-text {
        width: 60%;
        padding: var(--space-3);
    }

    .title-home h3 {
        font-size: var(--text-xl);
        margin-top: var(--space-5);
    }

    /* Term tax grid */
    .full-row .term-tax {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    .term-tax .list-term-tax img {
        height: 150px;
        padding: var(--space-3);
    }
    .full-row .tabbed-content {
        margin-top: 0px;
    }
    .full-row .tabbed-content .nav > li > a {
        font-size: var(--text-sm);
    }

    /* Footer mobile */
    .footer-top .widget .widget-title {
        font-size: var(--text-base);
        line-height: 1.5;
    }
    .footer-top .menu li {
        margin-bottom: var(--space-2);
    }
    .footer-top .menu li a {
        font-size: var(--text-sm);
    }
    .footer-top p {
        font-size: var(--text-sm);
        line-height: 1.5;
        margin-bottom: var(--space-2);
    }

    /* Single product mobile */
    .product-main .product-gallery .woocommerce-product-gallery {
        height: 300px;
    }
    .product-main .product-gallery .woocommerce-product-gallery img {
        height: 280px;
    }
    .product-info h1.product-title {
        font-size: var(--text-lg);
    }
}

/* --- Small Mobile (≤480px) --- */
@media (max-width: 480px) {
    .full-row .term-tax {
        grid-template-columns: 1fr;
    }
    .sec_06 .blog-right .box .box-image {
        width: 35% !important;
    }
    .sec_06 .blog-right .box .box-text {
        width: 65%;
    }
    .sec_06 .post-item .box .box-text {
        padding: var(--space-4);
    }
}