/*
Theme Name: Taieryi
Theme URI: https://example.com/
Author: Taieryi
Author URI: https://example.com/
Description: Theme WordPress tuy chinh (header/footer theo web mau), tich hop Elementor custom widgets va WooCommerce.
Version: 1.8.9
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sao-thuy
Tags: e-commerce, custom-menu, featured-images, translation-ready
*/

/*
 * Font toan site. Doi font: sua --site-font + link Google Fonts trong inc/enqueue.php.
 * !important de thang font cung trong CSS goc va typography Elementor; bo qua font icon.
 */
:root {
    --site-font: "Montserrat", sans-serif;
}
body,
body *:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not([class*="eicon"]):not(.glyphicon):not([class*="dashicons"]):not(.ab-icon) {
    font-family: var(--site-font) !important;
}

/* Base resets */
html {
    overflow-x: hidden;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
    overflow-x: hidden !important;
    max-width: 100%;
    position: relative;
}

body.header-overlay #primary.site-main {
    padding-top: 0;
    margin-top: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.sao-thuy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

body.nav-open {
    overflow: hidden;
}

/*
 * Anti horizontal scroll / khoang trang trang khi keo trai tren mobile.
 * Ghi de min-width PC-only tu common(1).css + assets/css/style.css.
 */
@media (max-width: 1199px) {
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body,
    .widpub,
    .header_main,
    .footer,
    #banner,
    #banner_main,
    .w1200,
    .st-widget,
    .row_mod,
    .elementor,
    .elementor-section,
    .elementor-container,
    .elementor-widget-wrap,
    .site-main,
    #primary {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .w1200 {
        width: 100% !important;
    }

    .widpub {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 100% !important;
    }
}

@media (max-width: 991px) {
    .swiper-container,
    .swiper,
    [data-st-swiper] {
        overflow: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .row_mod_02 .swiper-slide {
        width: 70% !important;
        max-width: 280px;
    }

    .row_mod_01_ctn_bj {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        background: none !important;
    }

    .row_mod_01_l {
        display: contents !important;
        width: 100% !important;
    }

    .row_mod_01_r {
        width: 100% !important;
        order: 3;
    }

    .row_mod_01_title_img {
        width: 100% !important;
        max-width: 100% !important;
        order: 1;
    }

    .row_mod_01_title {
        order: 2;
    }

    .row_mod_01_desc,
    .row_mod_01_desc_en {
        order: 4;
    }

    .row_mod_01_l a.readMore {
        width: 100% !important;
        max-width: none !important;
        order: 5;
    }

    .rightFix {
        display: none !important;
    }
}

/*
 * Khung noi dung chung toan site: --site-width o giua, nen van tran man hinh.
 * Chi ap dung desktop (>=1201px); tablet/mobile giu cac moc 40/20/16px cu.
 * Khung cua container Elementor chinh o: Elementor > Site Settings > Layout > Content Width (dat cung gia tri).
 */
:root {
    --site-width: 1240px;
    --site-gutter: 20px;
}
@media (min-width: 1201px) {
    .header_main,
    .footer .widpub,
    .widpub,
    .st-hero-banner__caption {
        padding-left: max(var(--site-gutter), calc((100% - var(--site-width)) / 2));
        padding-right: max(var(--site-gutter), calc((100% - var(--site-width)) / 2));
    }
    .widpub,
    .st-single-page .widpub {
        min-width: 0;
        max-width: none;
    }
    .elementor-widget-taieryi-tabs {
        --st-tabs-pad-x: max(var(--site-gutter), calc((100% - var(--site-width)) / 2));
    }
    /* Khoi gioi thieu thuong hieu: chu canh mep khung, anh tran phai (ghi de padding trai dat cung trong Elementor) */
    .elementor-widget-sao-thuy-brand-intro > .elementor-widget-container {
        padding-left: max(var(--site-gutter), calc((100% - var(--site-width)) / 2)) !important;
    }
    /* Container con khong duoc rong hon container cha */
    .e-con .e-con {
        max-width: 100%;
    }
}

/* An breadcrumb Taieryi Tabs tren mobile */
@media (max-width: 767px) {
    .elementor-widget-taieryi-tabs .st-tabs__breadcrumb {
        display: none !important;
    }
}

/* ==========================================================================
 * Giao dien danh sach: khong bo goc, danh sach san pham / tin tuc co khung
 * ========================================================================== */
*:not(.tn-cats__btn),
*::before,
*::after {
    border-radius: 0 !important;
}

/* ---- Taieryi Tabs: danh sach san pham ---- */
.elementor-widget-taieryi-tabs .products_qt {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    overflow: visible !important;

}
/* clearfix (::before/::after) la grid item rong -> mat 1 o dau luoi */
.elementor-widget-taieryi-tabs .products_qt::before,
.elementor-widget-taieryi-tabs .products_qt::after,
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4::before,
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4::after { display: none !important; content: none !important; }
.elementor-widget-taieryi-tabs .products_qt li,
.elementor-widget-taieryi-tabs .products_qt li:nth-child(n) {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
.elementor-widget-taieryi-tabs .products_qt li a {
    height: 100%;
    background: #fff;
    overflow: hidden;
    border: 1px solid #cfcfc8;
    transition: border-color .25s;
}
.elementor-widget-taieryi-tabs .products_qt li a:hover { border-color: #5E6258; }
.elementor-widget-taieryi-tabs .products_qt li img {
    height: auto !important;
    aspect-ratio: 3 / 4;
    border: 0 !important;
    border-bottom: 1px solid #cfcfc8 !important;
}
.elementor-widget-taieryi-tabs .products_qt .cpmc {
    margin: 0 !important;
    background: #fff !important;
    padding: 14px 16px 16px !important;
    line-height: 1.4 !important;
    font-size: 15px !important;
    font-weight: 500;
    color: #43463E !important;
}

/* ---- Taieryi Tabs: danh sach tin tuc (anh tren, tieu de 1 dong, noi dung 5 dong) ---- */
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;

}
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item_box,
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item_box:nth-child(n) {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item {
    position: relative;
    height: 100%;
    min-height: 0 !important;
    background: #fff !important;
    border: 1px solid #cfcfc8;
    overflow: hidden;
    transition: border-color .25s;
}
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item::before,
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item::after { display: none !important; }
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item:hover { border-color: #5E6258; }
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item a {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 0 !important;
    color: inherit;
    overflow: hidden;
}
.elementor-widget-taieryi-tabs .st-tabs-auto--news .st-news-card__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: 1px solid #cfcfc8;
    transition: transform .5s;
}
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item:hover .st-news-card__img { transform: scale(1.04); }
body .elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item a .row_mod_4_item_hover {
    position: static !important;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 14px 16px 18px !important;
    background: transparent !important;
    transform: none !important;
    opacity: 1 !important;
}
.elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item_hover span {
    display: block;
    color: #888 !important;
    font-size: 12.5px;
    margin-bottom: 4px;
}
body .elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item a .row_mod_4_item_hover em {
    display: block !important;
    font-style: normal;
    color: #43463E !important;
    font-size: 16px !important;
    font-weight: 600;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    margin: 0 0 6px !important;
}
body .elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4_item a .row_mod_4_item_hover i {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 5 !important;
    line-clamp: 5 !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    max-height: none !important;
    height: auto !important;
    font-style: normal;
    color: #666 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    opacity: 1 !important;
}

/* ---- Danh sach san pham (widget ST: Danh sach san pham) ---- */
.tn-card { border: 1px solid #cfcfc8; box-shadow: none !important; }
.tn-products .tn-grid { padding: 22px; }

/* ---- Chi tiet: khoi lien quan ---- */
.elementor-widget-taieryi-tabs .st-related { margin-top: 48px; }
.elementor-widget-taieryi-tabs .st-related .cpdt { margin-bottom: 24px; }
.elementor-widget-taieryi-tabs .st-related .st-tabs-auto--news .row_mod_4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
    .elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .elementor-widget-taieryi-tabs .products_qt,
    .elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4,
    .elementor-widget-taieryi-tabs .st-related .st-tabs-auto--news .row_mod_4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 12px !important;
    }
    .elementor-widget-taieryi-tabs .products_qt .cpmc { font-size: 13px !important; padding: 10px !important; }
}
@media (max-width: 480px) {
    .elementor-widget-taieryi-tabs .st-tabs-auto--news .row_mod_4,
    .elementor-widget-taieryi-tabs .st-related .st-tabs-auto--news .row_mod_4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
 * Tieu de cac widget: dung chung dinh dang "Tieu de chu" cua widget
 * "Thuong hieu truc thuoc" (36px / 400 / letter-spacing 4px; mobile 24px, 20px)
 * ========================================================================== */
.st-section-title,
.news-section-header h2,
.st-tn .tn-t,
.st-mj__title,
.st-cta-section__title,
.st-value-grid__title,
.st-brand-matrix__title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 4px;
    line-height: 1.3;
}
@media (max-width: 767px) {
    .st-section-title,
    .news-section-header h2,
    .st-tn .tn-t,
    .st-mj__title,
    .st-cta-section__title,
    .st-value-grid__title,
    .st-brand-matrix__title {
        font-size: 24px;
        letter-spacing: 1px;
    }
}
@media (max-width: 575px) {
    .st-section-title,
    .news-section-header h2,
    .st-tn .tn-t,
    .st-mj__title,
    .st-cta-section__title,
    .st-value-grid__title,
    .st-brand-matrix__title {
        font-size: 20px;
    }
}

/* ==========================================================================
 * ST: Luoi danh muc — thanh tieu de, anh danh muc ben trai, san pham ben phai
 * ========================================================================== */
.st-cat-showcase__grid { display: flex; flex-direction: column; gap: 40px; }
.st-cat-card { width: 100%; }
.st-cat-card__bar {
    margin-bottom: 20px;
    padding: 12px 20px;
    background: #ececec;
    border-left: 5px solid #1E3F7D;
}
.st-cat-card__title {
    display: block;
    color: #1E3F7D;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}
.st-cat-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 3.6fr);
    column-gap: 24px;
    align-items: stretch;
}
.st-cat-card--solo { grid-template-columns: 1fr; }
.st-cat-card__bar { grid-column: 1 / -1; }
.st-cat-card__cover {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    min-height: 400px;
    padding: 24px 16px;
    background-color: #cfcfc8;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
}
.st-cat-card__cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(60, 45, 20, .75));
}
.st-cat-card__cover > * { position: relative; z-index: 1; }
.st-cat-card__cover-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.st-cat-card__more {
    display: inline-block;
    padding: 9px 26px;
    border: 1px solid #fff;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color .2s, border-color .2s;
}
.st-cat-card__more:hover { background: #1E3F7D; border-color: #1E3F7D; }
.st-cat-card__products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.st-cat-card__products li { list-style: none; margin: 0; }
.st-cat-card__products li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    height: 100%;
    padding: 32px 16px 24px;
    border: 1px solid #e1e1da;
    color: #333;
    text-decoration: none;
    transition: background-color .25s, box-shadow .25s;
}
.st-cat-card__products li a:hover { background: #ececec; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.st-cat-card__pname {
    max-width: 100%;
    color: #1E3F7D;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-cat-card__products img {
    width: 100%;
    max-height: 360px;
    margin-top: auto;
    object-fit: contain;
}
@media (max-width: 991px) {
    .st-cat-card { grid-template-columns: 1fr; row-gap: 24px; }
    .st-cat-card__cover { min-height: 260px; }
}
@media (max-width: 767px) {
    .st-cat-card__title { font-size: 18px; }
    .st-cat-card__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .st-cat-card__products li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .st-cat-card__products li a { padding: 18px 10px 14px; gap: 12px; }
    .st-cat-card__pname { font-size: 13px; }
}

/* ---- Taieryi Tabs: o chon san pham theo danh muc con (thay products_npx) ---- */
.elementor-widget-taieryi-tabs .st-subcat-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 24px;
    padding: 14px 20px;
    background: #ececec;
    border-left: 5px solid #5E6258;
    text-align: left;
}
.elementor-widget-taieryi-tabs .st-subcat-filter__label {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #43463E;
}
.elementor-widget-taieryi-tabs .st-subcat-filter__select {
    min-width: 240px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #cfcfc8;
    background: #fff;
    color: #333;
    font-size: 15px;
    cursor: pointer;
}
.elementor-widget-taieryi-tabs .st-subcat-filter__select:focus { outline: 2px solid #5E6258; outline-offset: 0; }
@media (max-width: 767px) {
    .elementor-widget-taieryi-tabs .st-subcat-filter { padding: 12px 14px; }
    .elementor-widget-taieryi-tabs .st-subcat-filter__select { width: 100%; }
}

/* ==========================================================================
 * ST: Goi y — the danh muc (toi da 4 the, nhieu hon thi co nut truoc / sau)
 * ========================================================================== */
.tn-cats .tn-head { align-items: center; text-align: center; }
.tn-cats__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.tn-cats__viewport::-webkit-scrollbar { display: none; }
.tn-cats__track {
    --tn-cats-gap: 24px;
    display: flex;
    justify-content: safe center;
    gap: var(--tn-cats-gap);
    padding: 4px;
}
.tn-cats__card {
    flex: 0 0 calc((100% - 3 * var(--tn-cats-gap)) / 4);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 22px;
    text-align: center;
    text-decoration: none !important;
    color: #2F332B;
    scroll-snap-align: start;
    transition: transform .25s;
}
.tn-cats__card:hover { transform: translateY(-4px); }
.tn-cats__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 14px;
}
.tn-cats__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.tn-cats__card:hover .tn-cats__media img { transform: scale(1.05); }
.tn-cats__name {
    padding: 0 16px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #0f1020;
}
.tn-cats__desc {
    padding: 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #4a4d44;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tn-cats__nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}
.tn-cats__btn {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #d5d5cf;
    border-radius: 50% !important;
    background: #fff;
    color: #222;
    cursor: pointer;
    transition: background-color .2s, color .2s, opacity .2s;
}
.tn-cats__btn--next { background: #111; border-color: #111; color: #fff; }
.tn-cats__btn:hover:not(:disabled) { opacity: .85; }
.tn-cats__btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 991px) {
    .tn-cats__card { flex-basis: calc((100% - var(--tn-cats-gap)) / 2); }
}
@media (max-width: 575px) {
    .tn-cats__card { flex-basis: 100%; }
    .tn-cats__name { font-size: 18px; }
}

/* ==========================================================================
 * ST: Trai nghiem — dai dang ky: tieu de | form CF7 1 hang | anh trang tri
 * ========================================================================== */
.tn-nl {
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: 32px 48px;
    background: #ece9e4;
    overflow: hidden;
}
.tn-nl--decor { grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) minmax(120px, .9fr); }
.tn-nl .tn-head { align-items: flex-start; text-align: left; margin: 0; }
.st-tn .tn-nl .tn-eyebrow { color: #7FA52B; }
.st-tn .tn-nl .tn-t {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #2F332B;
}
.st-tn .tn-nl .tn-lead {
    max-width: 320px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #3d4038;
}
.tn-nl__form { width: 100%; min-width: 0; }
.tn-nl__form .wpcf7,
.tn-nl__form .wpcf7 form { width: 100%; margin: 0; }
.tn-nl__form .wpcf7-form {
    display: flex;
    align-items: stretch;
    gap: 12px;
}
.tn-nl__form .wpcf7-form > p { display: contents; margin: 0; }
.tn-nl__form .wpcf7-form br { display: none; }
.tn-nl__form .wpcf7-form-control-wrap { display: block; flex: 1 1 auto; min-width: 0; }
.tn-nl__form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    height: 100%;
    min-height: 52px;
    padding: 0 22px;
    border: 0;
    background: #f8f7f5;
    color: #2F332B;
    font-size: 16px;
    box-sizing: border-box;
}
.tn-nl__form input::placeholder { color: #6b6d66; opacity: 1; }
.tn-nl__form input:focus { outline: 2px solid #5E6258; outline-offset: 0; }
.tn-nl__form .wpcf7-submit,
.tn-nl__form button[type="submit"] {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 38px;
    border: 0;
    background: #5C6140;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s;
}
.tn-nl__form .wpcf7-submit:hover { background: #474b30; }
.tn-nl__form .wpcf7-spinner { position: absolute; margin: 0; }
.tn-nl__form .wpcf7-not-valid-tip { position: absolute; margin-top: 4px; font-size: 12.5px; }
.tn-nl__form .wpcf7-response-output {
    position: absolute;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 13px;
}
.tn-nl__decor {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin: -28px -56px -28px 0;
}
.tn-nl__decor img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
}
@media (max-width: 991px) {
    .tn-nl, .tn-nl--decor { grid-template-columns: 1fr; padding: 28px 24px; }
    .tn-nl__decor { margin: 0; justify-content: center; }
    .tn-nl__decor img { max-height: 160px; }
    .tn-nl--decor-desktop .tn-nl__decor { display: none; }
}
@media (max-width: 575px) {
    .tn-nl__form .wpcf7-form { flex-direction: column; }
    .tn-nl__form .wpcf7-submit, .tn-nl__form button[type="submit"] { width: 100%; }
}



/* ST: Trai nghiem — ep form CF7 nam ngang 1 hang, can giua theo chieu doc */
.tn-nl { align-items: center; }
.tn-nl__form { align-self: center; display: flex; align-items: center; }
.tn-nl__form .wpcf7 { width: 100%; }
.tn-nl__form .wpcf7-form { display: block !important; }
.tn-nl__form .wpcf7-form > p {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    margin: 0 !important;
}
.tn-nl__form .wpcf7-form > p > .wpcf7-form-control-wrap,
.tn-nl__form .wpcf7-form > p > span:first-child { flex: 1 1 auto; min-width: 0; }
.tn-nl__form .wpcf7-form > p > input[type="submit"],
.tn-nl__form .wpcf7-form > p > button { flex: 0 0 auto; width: auto; }
.tn-nl__form .wpcf7-form > p br { display: none; }
.tn-nl__form .wpcf7-form-control-wrap input { height: 52px; min-height: 52px; }
.tn-nl__form .wpcf7-form .wpcf7-spinner { position: absolute; }
.tn-nl__form .wpcf7-response-output { position: static; margin: 8px 0 0 !important; }
@media (max-width: 575px) {
    .tn-nl__form .wpcf7-form > p { flex-direction: column; }
    .tn-nl__form .wpcf7-form > p > input[type="submit"] { width: 100%; }
}

/* ST: Trai nghiem — form CF7 co hoac khong co the <p>: luon 1 hang ngang (ghi de cac khoi truoc) */
.tn-nl__form .wpcf7-form {
    position: relative;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
}
.tn-nl__form .wpcf7-form > p {
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    margin: 0 !important;
}
.tn-nl__form .wpcf7-form > fieldset,
.tn-nl__form .wpcf7-form .hidden-fields-container { display: none; }
.tn-nl__form .wpcf7-form > .wpcf7-form-control-wrap { flex: 1 1 auto; min-width: 0; }
.tn-nl__form .wpcf7-form > input[type="submit"],
.tn-nl__form .wpcf7-form > p > input[type="submit"] { flex: 0 0 auto; width: auto; height: 52px; min-height: 52px; }
.tn-nl__form .wpcf7-form > .wpcf7-spinner { position: absolute; right: 8px; top: 50%; }
.tn-nl__form .wpcf7-form > .wpcf7-response-output {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
.tn-nl__form .wpcf7-not-valid-tip { position: absolute; top: 100%; left: 0; }
@media (max-width: 575px) {
    .tn-nl__form .wpcf7-form,
    .tn-nl__form .wpcf7-form > p { flex-direction: column; }
    .tn-nl__form .wpcf7-form > input[type="submit"],
    .tn-nl__form .wpcf7-form > p > input[type="submit"] { width: 100%; }
}

/* ST: Trai nghiem — form mau (div.web366-subscribe-form > [email] + [submit]) */
.tn-nl__form .wpcf7-form > .web366-subscribe-form {
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
}
.tn-nl__form .web366-subscribe-form > p { display: contents !important; margin: 0 !important; }
.tn-nl__form .web366-subscribe-form br { display: none !important; }
.tn-nl__form .web366-subscribe-form .wpcf7-form-control-wrap { flex: 1 1 auto; min-width: 0; display: block; }
.tn-nl__form .web366-subscribe-input { width: 100%; height: 52px; min-height: 52px; }
.tn-nl__form .web366-subscribe-button { flex: 0 0 auto; width: auto; height: 52px; min-height: 52px; }
.tn-nl__form .web366-subscribe-form .wpcf7-spinner { position: absolute; }
@media (max-width: 575px) {
    .tn-nl__form .wpcf7-form > .web366-subscribe-form { flex-direction: column; }
    .tn-nl__form .web366-subscribe-button { width: 100%; }
}

/* ST: Goi y — anh co chieu cao co dinh, cat vua khung (khong phu thuoc anh goc) */
.tn-cats__media {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: 240px;
    aspect-ratio: auto;
    overflow: hidden;
}
.tn-cats__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
@media (max-width: 991px) { .tn-cats__media { height: 220px; } }
@media (max-width: 575px) { .tn-cats__media { height: 200px; } }

/* ==========================================================================
 * Danh sach san pham dang luoi anh co bong, ten ben duoi (khong vien / khung)
 * ========================================================================== */
/* ---- Taieryi Tabs ---- */
.elementor-widget-taieryi-tabs .products_qt {
    gap: 48px 40px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
.elementor-widget-taieryi-tabs .products_qt li a {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}
.elementor-widget-taieryi-tabs .products_qt li a:hover { border: 0 !important; transform: none; }
.elementor-widget-taieryi-tabs .products_qt li img {
    border: 0 !important;
    box-shadow: 0 6px 22px rgba(60, 65, 55, .14);
    transition: box-shadow .3s;
}
.elementor-widget-taieryi-tabs .products_qt li a:hover img { box-shadow: 0 10px 30px rgba(60, 65, 55, .22); }
.elementor-widget-taieryi-tabs .products_qt .cpmc {
    padding: 22px 8px 0 !important;
    background: transparent !important;
    text-align: center;
    font-size: 20px !important;
    font-weight: 500;
    color: #222 !important;
}
/* Phan trang JS (moi man hinh) */
.elementor-widget-taieryi-tabs .st-tabs-auto__pager--mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 36px 0 28px;
}
@media (max-width: 767px) {
    .elementor-widget-taieryi-tabs .products_qt { gap: 28px 16px; }
    .elementor-widget-taieryi-tabs .products_qt .cpmc { font-size: 15px !important; padding-top: 14px !important; }
}

/* ---- ST: Luoi danh muc ---- */
.st-cat-card__products { gap: 40px 32px; }
.st-cat-card__products li a {
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.st-cat-card__products li a:hover { background: transparent; box-shadow: none; }
.st-cat-card__products img {
    order: 1;
    margin-top: 0;
    box-shadow: 0 6px 22px rgba(60, 65, 55, .14);
    transition: box-shadow .3s;
}
.st-cat-card__products li a:hover img { box-shadow: 0 10px 30px rgba(60, 65, 55, .22); }
.st-cat-card__pname {
    order: 2;
    margin-top: 20px;
    color: #222;
    font-size: 20px;
    font-weight: 500;
    text-transform: none;
}
@media (max-width: 767px) {
    .st-cat-card__products { gap: 28px 14px; }
    .st-cat-card__pname { font-size: 15px; margin-top: 12px; }
}

/* ==========================================================================
 * Hover: anh phong to; thanh tieu de Luoi danh muc = dinh dang st-subcat-filter; o chon dep hon
 * ========================================================================== */
.elementor-widget-taieryi-tabs .products_qt li img,
.st-cat-card__products img {
    transition: transform .4s ease, box-shadow .3s;
}
.elementor-widget-taieryi-tabs .products_qt li a:hover img,
.st-cat-card__products li a:hover img {
    transform: scale(1.06);
}

/* Thanh tieu de danh muc (giong .st-subcat-filter) */
.st-cat-card__bar {
    margin-bottom: 24px;
    padding: 14px 20px;
    background: #ececec;
    border-left: 5px solid #5E6258;
    text-align: left;
}
.st-cat-card__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #43463E;
}
@media (max-width: 767px) {
    .st-cat-card__bar { padding: 12px 14px; }
    .st-cat-card__title { font-size: 16px; }
}

/* O chon danh muc con */
.elementor-widget-taieryi-tabs .st-subcat-filter__select {
    min-width: 260px;
    padding: 11px 44px 11px 16px;
    border: 1px solid #cfcfc8;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2343463E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #2F332B;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(60, 65, 55, .08);
    transition: border-color .2s, box-shadow .2s;
}
.elementor-widget-taieryi-tabs .st-subcat-filter__select:hover {
    border-color: #5E6258;
    box-shadow: 0 4px 14px rgba(60, 65, 55, .14);
}
.elementor-widget-taieryi-tabs .st-subcat-filter__select:focus {
    outline: 0;
    border-color: #5E6258;
    box-shadow: 0 0 0 3px rgba(94, 98, 88, .22);
}

/* ST: Luoi danh muc — hover anh danh muc: nut doi sang #5e7928 (khong den) */
.st-cat-card__more:hover,
.st-cat-card__cover:hover .st-cat-card__more { background: #5e7928; border-color: #5e7928; }

/* O chon danh muc con dung rieng (khong con khung bao) */
.elementor-widget-taieryi-tabs .st-subcat-filter__select {
    display: block;
    margin: 0 0 28px;
}

/* Anh trong Elementor */
.elementor img {
    border: none;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}
