/* =========================================================================
   NASANI FRAMEWORK - RESPONSIVE STYLESHEET (MEDIA.CSS)
   Reorganized & Grouped by Breakpoint Queries (Largest to Smallest)
   ========================================================================= */

/* =========================================================================
   BREAKPOINT: @media (max-width: 1199px)
   ========================================================================= */
@media (max-width: 1199px) {
  
}

/* =========================================================================
   BREAKPOINT: @media (max-width: 991px)
   ========================================================================= */
@media (max-width: 991px) {

    .grid-project {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 20px;
        align-items: stretch;
    }

    /* Video Grid */
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }


    .newsnb--vertical .splide__track {
        height: var(--home-news-panel-height) !important;
    }

    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-detail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Customer & Contact */
    .home-customer-contact {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .customer-card {
        min-height: 0;
    }

    /* Titles */
    .title-list {
        display: block;
        padding: 14px;
        text-align: center;
    }

    .title-list h2 {
        justify-content: center;
        font-size: 34px;
    }

    .title-list h2:after {
        display: none;
    }

    .title-main h1,
    .title-main h2,
    .title-about h2 {
        font-size: 25px;
    }

    .splide__arrow {
        display: none;
    }

    /* Header & Mobile Navigation */
    .header,
    .menu,
    .header-wrap,
    .menu-main {
        display: none !important;
    }

    .menu_mobi {
        display: block !important;
        background: #fff;
        padding: 8px 15px;
        width: 100%;
        position: sticky;
        top: 0;
        z-index: 990;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .menu_mobi .menu-res {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .logo-mobi {
        display: inline-flex;
        align-items: center;
    }

    .logo-mobi img {
        max-height: 48px;
        width: auto;
        object-fit: contain;
    }

    .icon_menu_mobi {
        color: #2862e3;
        font-size: 24px;
        text-decoration: none;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin: 0;
        border-radius: 6px;
        background: rgba(0, 95, 88, 0.08);
    }

    .menu_mobi_add {
        display: block !important;
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        width: 320px;
        max-width: 85%;
        background: #fff;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
        transition: left .35s ease;
        z-index: 9999999;
    }

    .menu_mobi_add.menu_mobi_active {
        left: 0 !important;
    }

    .menures_inner {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        bottom: 0;
        height: 100%;
        width: 100%;
    }

    .menures_header {
        padding: 12px 15px;
        position: relative;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid #edf2f7;
    }

    .logo-mb {
        display: inline-block;
        max-width: 160px;
    }

    .logo-mb img {
        max-height: 42px;
        width: auto;
        object-fit: contain;
    }

    .close_menu {
        cursor: pointer;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #555;
        transition: background .2s, color .2s;
    }

    .close_menu:hover {
        background: #e5e7eb;
        color: #111;
    }

    .menures_content {
        padding: 8px 12px;
        position: relative;
        overflow-y: auto;
        height: 100%;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .menu_baophu {
        background: rgba(0, 0, 0, 0.65);
        z-index: 999998;
        left: 0;
        top: 0;
        position: fixed;
        width: 100%;
        height: 100%;
        display: none;
    }

    .menu_mobi_add ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .icon_menu_mobi .menu_mobi_add ul>li {
        border-bottom: 1px solid #f1f1f1;
    }

    .menu_mobi_add ul ul>li {
        border-bottom: none;
    }

    .menu_mobi_add ul li.li-tim {
        display: none;
    }

    .menu_mobi_add ul li h2 {
        font-size: 17px;
        margin-bottom: 0;
    }

    .menu_mobi_add ul li b {
        display: inline-block;
        vertical-align: top;
        margin-right: 8px;
    }

    .menu_mobi_add ul li b img {
        display: inline-block;
        vertical-align: top;
    }

    .menu_mobi_add ul li {
        border-bottom: 1px solid #f1f1f1;
    }

    .menu_mobi_add ul li a {
        color: #191919;
        padding: 8px 30px 8px 5px;
        position: relative;
        font-size: 14px;
        transition: .3s !important;
        border-radius: 10px;
        display: flex;
        align-items: center;
        gap: 12px;
        text-transform: uppercase;
    }

    .menu_mobi_add ul li a svg {
        display: none;
    }

    .menu_mobi_add ul li a i {
        position: absolute;
        right: 5px;
        transform: rotate(0);
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: var(--color-main);
        border-radius: 50%;
        top: calc(50% - 25px / 2);
    }

    .menu_mobi_add ul li a.active2 i {
        transform: rotate(90deg);
        color: #fff;
        box-shadow: 0 0 0 25px var(--color-main) inset;
    }

    .menu_mobi_add ul ul {
        display: none;
        padding-left: 15px;
        margin: 5px 0 10px 0;
    }

    .menu_mobi_active .menu_lvl2>ul {
        padding: 0;
    }

    .menu_mobi_add ul li ul li a {
        padding-left: 20px;
        color: #6f6f6f;
    }

    .menu_mobi_add ul li ul li ul li a {
        padding-left: 20px;
    }

    .menu_mobi_add ul li:last-child a {
        margin-bottom: 0;
    }

    .thongtin-mb ul li {
        list-style: none;
        color: #000;
        font-weight: 500;
        margin-bottom: 15px;
    }

    .thongtin-mb ul li:last-child {
        margin-bottom: 0;
    }

    .thongtin-mb ul li i {
        font-size: 19px;
        margin-right: 10px;
        color: var(--color-main);
    }

    .menures_footer {
        padding: 10px;
        margin-top: auto;
        background: #f7f7f7;
        border-top: solid 1px #e4e8ed;
    }

    /* Services */
    .service-item__info h3 {
        font-size: 25px;
    }

    /* Footer Main */
    .footer-main {
        padding-top: 32px;
    }

    .footer-main__left {
        width: 100%;
    }

    .footer-main__map {
        min-height: 420px;
    }

    .wrap-about:after {
        display: none;
    }

    /* Products & Shop Layout */
    .menu-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .prodetail__detail-layout {
        grid-template-columns: 1fr;
    }

    .prodetail__hot {
        padding: 16px;
    }

    .prodetail__header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .prodetail__info {
        padding: 24px;
    }

    .product-layout {
        flex-direction: column;
        gap: 20px;
    }

    .left-product {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0;
        min-height: 100vh;
        width: 300px;
        z-index: 9999;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .left-product.show {
        left: 0;
    }

    .sidebar-filter__mobile-header {
        display: flex;
    }

    .filter-mobile-btn-wrap {
        display: block;
    }

    .right-product__head {
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .right-product__actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* =========================================================================
   BREAKPOINT: @media (max-width: 870px)
   ========================================================================= */
@media (max-width: 870px) {
    .scrollToTop {
        bottom: 140px;
    }
}

/* =========================================================================
   BREAKPOINT: @media (max-width: 768px)
   ========================================================================= */
@media (max-width: 768px) {

    /* Footer Article */
    .footer-article .wrap-content {
        flex-wrap: wrap;
    }

    .footer-statistic,
    .footer-copyright {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        text-align: center;
    }

    .footer-statistic {
        margin-top: 8px;
    }

    .footer-article .footer-news {
        margin-bottom: 25px;
    }

    .footer-article .footer-news:nth-child(1),
    .footer-article .footer-news.col-5 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .footer-article .footer-news:nth-child(2),
    .footer-article .footer-news.col-3 {
        width: 40% !important;
        max-width: 40% !important;
        flex: 0 0 40% !important;
    }

    .footer-article .footer-news:nth-child(3),
    .footer-article .footer-news.col-4 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }

    /* Contact & Widgets */
    .contact-flex {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-widget {
        bottom: 85px;
    }

    /* News */
    .info-news {
        padding: 28px 0;
    }

    .newsnb--vertical .splide__track {
        height: var(--home-news-panel-height) !important;
    }

    .news-item__name {
        min-height: auto;
        font-size: 15px;
        line-height: 1.45;
    }

    .news-item__next {
        margin-top: 16px;
    }

    .news-detail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .f-flipbook button {
        display: none;
    }

    /* Title & Đăng ký nhận tin */
    .title-list h2 {
        font-size: 25px;
    }

    .title-list h2:after {
        left: 0px;
    }

    .title-main-dknt h2,
    .title-main-product h2 {
        font-size: 28px;
    }

    /* Customer Reviews */
    .info-custommer {
        padding: 34px 0;
    }

    .home-customer-contact .splide__pagination {
        justify-content: center;
    }

    .customer-card {
        min-height: 0;
        padding: 22px 18px 20px;
    }

    .customer-card__text {
        -webkit-line-clamp: 3;
        font-size: 14px;
    }

    .customer-card__avatar {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    /* Product Page & Detail */
    .menu-page__head h1 {
        font-size: 34px;
    }

    .menu-page__sort-toggle,
    .menu-page__sort-panel {
        width: 100%;
    }

    .menu-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }

    .prodetail {
        padding-top: 8px;
    }

    .prodetail__info,
    .prodetail__tabs {
        padding: 16px;
    }

    .prodetail__title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .prodetail__option {
        gap: 6px 10px;
    }

    .prodetail__option li.line {
        display: none;
    }

    .prodetail__price-new {
        font-size: 24px;
    }

    .prodetail__specs-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .prodetail__actions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 16px 0;
    }

    .prodetail__btn {
        min-height: 46px;
    }

    .prodetail__qty-group {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin: 16px 0;
    }

    .prodetail__social {
        align-items: flex-start;
        flex-direction: column;
    }

    .prodetail__tab-header {
        gap: 18px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .footer-main__map {
        min-height: 320px;
        border-radius: 16px;
    }
}

/* =========================================================================
   BREAKPOINT: @media (max-width: 600px)
   ========================================================================= */
@media (max-width: 600px) {

    .footer-article .footer-news:nth-child(2),
    .footer-article .footer-news.col-3 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .footer-article .footer-news:nth-child(3),
    .footer-article .footer-news.col-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* =========================================================================
   BREAKPOINT: @media (max-width: 576px)
   ========================================================================= */
@media (max-width: 576px) {

    .title-main h1,
    .title-main h2,
    .title-main p {
        font-size: 26px;
    }
}
