/*
Theme Name:   Flatsome Child
Theme URI:    https://tamhien.vn
Description:  Child theme for Flatsome
Author:       MrSeadev
Author URI:   https://tamhien.vn
Template:     flatsome
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  flatsome-child
*/

@font-face {
    font-family: 'Avo';
    src: url('./fonts/UTM-Avo.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Avo';
    src: url('./fonts/UTM-AvoItalic.ttf') format('truetype');
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Avo';
    src: url('./fonts/UTM-AvoBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Avo';
    src: url('./fonts/UTM-AvoBold_Italic.ttf') format('truetype');
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

body,
button,
input,
select,
textarea {
    font-family: 'Avo', sans-serif;
}

.is-divider {
    background-color: transparent !important;
}

.wc-block-cart__submit-container {
    background-color: #ececec !important;
}

@media (max-width: 768px) {

    .container .section,
    .row .section {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
}

.mrs-ads-top {
    text-align: center;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 9;
}

.menu-main-menu-container img {
    width: 25px;
    height: auto;
}


#wide-nav .flex-row.container .flex-col.flex-center {
    margin-left: 0;
}

.page-wrapper {
    padding-top: 20px !important;
}

section.section {
    border-radius: 10px;
}

.container .section,
.row .section {
    padding-left: 20px;
    padding-right: 20px;
}

.mrs-main-slider img {
    border-radius: 10px;
}

/* ==========================================================================
   Bộ lọc điều hòa — [dieu_hoa_filter]
   ========================================================================== */
.mrs-dh-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mrs-dh-filter-bar::-webkit-scrollbar {
    display: none;
}

.mrs-dh-btn-boloc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1.5px solid #e22;
    color: #e22;
    background: #fff;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
}

.mrs-dh-btn-boloc:hover {
    background: #fff5f5;
}

.mrs-dh-btn-boloc .mrs-dh-arrow {
    font-size: 9px;
}

.mrs-dh-sep {
    width: 1px;
    min-width: 1px;
    height: 22px;
    background: #ddd;
    flex-shrink: 0;
}

.mrs-dh-filter-brands,
.mrs-dh-filter-sizes {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.mrs-dh-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid #ddd;
    color: #333;
    background: #fff;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, color .15s;
}

.mrs-dh-chip:hover {
    border-color: #0a7abf;
    color: #0a7abf;
    text-decoration: none;
}

.mrs-dh-chip.active {
    border-color: #0a7abf;
    color: #0a7abf;
    background: #eef6fc;
}


body.home #main {
    background: url(./images/bg-main.jpg) no-repeat top center !important;
    background-size: cover !important;
}

/* blog */
.box.box-blog-post .box-image img {
    border-radius: 8px;
}

.mrs-footer-address h5 {
    font-size: 1.1em;
    font-weight: bold;
    color: #3b3a3a;
    margin-bottom: 12px !important;
}

.mrs-footer-address p {
    text-align: left;
    display: flex;
    align-items: center;
    row-gap: 10px;
    column-gap: 20px;
    margin-bottom: 12px !important;
}

.mrs-footer-address p img {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

/* ==========================================================================
   Related Posts Shortcode
   ========================================================================== */
.related-posts-shortcode {
    margin: 30px 0;
    padding: 20px 20px 10px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: #aaa 1px solid;
}

.related-posts-title {
    margin: 0 0 20px 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
}

.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts-list li {
    margin-bottom: 10px;
}

.related-posts-list li a {
    color: #0066cc;
    text-decoration: none;
    font-size: 1em;
    line-height: 1.6;
}

.related-posts-list li a:hover {
    color: #000;
}

@media (max-width: 768px) {
    .related-posts-list li {
        margin-left: 0 !important;
    }
}

/* 
Single product
*/
.mrseadev-product-info-box {
    background: #fff;
    padding-bottom: 20px;
}

.mrseadev-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.mrseadev-info-label {
    font-weight: 700;
    color: #222;
    min-width: 180px;
}

.mrseadev-info-value {
    color: #444;
}

.mrseadev-price {
    color: #e84040;
    font-size: 1.2em;
    font-weight: 700;
}

.mrseadev-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 10px 0;
}

.mrseadev-tom-tat-row {
    flex-direction: column;
}

.mrseadev-contact-btn {
    display: inline-block;
    background: #e84040;
    color: #fff !important;
    text-align: center;
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.mrseadev-contact-btn:hover {
    background: #c0392b;
    color: #fff !important;
}

.product-info.product-summary .is-divider {
    display: none;
}

/* Flash Sale Shortcode */
.mrs-flash-sale-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.mrs-flash-sale-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.mrs-flash-sale-text {
    order: 2;
    display: flex;
    flex-direction: column;
}

.mrs-flash-sale-title {
    display: block;
    color: #e84040;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease-in;
}

.mrs-flash-sale-sub {
    display: block;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease-in;
}

.flash-sale-title:hover,
.flash-sale-sub:hover {
    color: #0066cc;
}

/* flash sale  */
.product-small.box {
    background-color: #fff;
}

/* list product */
.product-small.box {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px;

}

/* Vertical menu fly-out: ẩn mặc định, hiện khi hover vào "Danh mục" */
.header-vertical-menu__opener {
    background-color: #2a83e9;
    border: #fff 1px solid;
    border-radius: 10px;
    max-width: 150px;
}

.header-vertical-menu .header-vertical-menu__fly-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.header-vertical-menu:hover .header-vertical-menu__fly-out {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* Search Form */
.searchform-wrapper .search-field {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    height: 36px;
}

.searchform-wrapper .searchform .button.icon {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-left: 15px;
    padding-right: 15px;
    height: 36px;
}

@media (min-width: 768px) {
    .searchform-wrapper {
        width: 300px;
    }

    .searchform-wrapper .search-field {
        height: 50px;
    }

    .searchform-wrapper .searchform .button.icon {
        padding-left: 15px;
        padding-right: 15px;
        height: 50px;
    }

}

/* Special Category – 16 chuyên mục sản phẩm, 2 hàng x 8 cột */
.mrs-special-category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 16px;
    padding: 16px 0;
}

.mrs-cat-item {
    text-align: center;
}

.mrs-cat-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.mrs-cat-item a:hover {
    color: #414242;
}

.mrs-cat-thumb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: border-color 0.2s;
}

.mrs-cat-item a:hover .mrs-cat-thumb {
    border-color: #cac6c6;
}

.mrs-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mrs-cat-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .mrs-special-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .mrs-special-category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .mrs-cat-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .mrs-cat-name {
        font-size: 0.65rem;
    }
}

/* ==========================================================================
   Tab Chuyên Mục + Sản Phẩm — [mrs_tab_products]
   ========================================================================== */
.mrs-tab-products__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.mrs-tp-tabs-outer {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
}

.mrs-tp-tabs-arrow {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #999;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
    visibility: hidden;
}

.mrs-tp-tabs-arrow:hover {
    color: #3f3e3e;
}

@media (max-width: 768px) {
    .mrs-tp-tabs-arrow {
        display: flex;
    }
}

.mrs-tp-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    flex: 1;
    min-width: 0;
}

.mrs-tp-tabs::-webkit-scrollbar {
    display: none;
}

.mrs-tp-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    flex-shrink: 0;
    transition: filter .15s, box-shadow .15s;
    outline: none;
}

.mrs-tp-tab img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.mrs-tp-tab:has(img) {
    padding: 0;
    overflow: hidden;
}

/* Color palette – 6 màu xoay vòng */
.mrs-tp-color-1 {
    background: #1565c0;
    color: #fff;
}

.mrs-tp-color-2 {
    background: #e65100;
    color: #fff;
}

.mrs-tp-color-3 {
    background: #212121;
    color: #fff;
}

.mrs-tp-color-4 {
    background: #f9a825;
    color: #111;
}

.mrs-tp-color-5 {
    background: #4e342e;
    color: #fff;
}

.mrs-tp-color-6 {
    background: #bf360c;
    color: #fff;
}

.mrs-tp-tab:hover,
.mrs-tp-tab.active {
    filter: brightness(1.12);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}

.mrs-tp-tab.active {
    box-shadow: 0 3px 12px rgba(0, 0, 0, .3), inset 0 -3px 0 rgba(255, 255, 255, .35);
}

/* Panels */
.mrs-tp-panel {
    display: none;
}

.mrs-tp-panel.active {
    display: block;
}

/* Product grid */
.mrs-tp-grid {
    display: grid;
    gap: 12px;
}

.mrs-tp-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.mrs-tp-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.mrs-tp-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.mrs-tp-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mrs-tp-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Product card */
.mrs-tp-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.mrs-tp-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.mrs-tp-card__thumb {
    display: block;
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #fafafa;
}

.mrs-tp-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.mrs-tp-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e22;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.4;
}

.mrs-tp-card__info {
    padding: 8px 10px 12px;
}

.mrs-tp-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.45;
    color: #333;
    text-decoration: none;
    min-height: 2.9em;
}

.mrs-tp-card__name:hover {
    color: #e22;
}

.mrs-tp-card__pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.mrs-tp-price-old {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.mrs-tp-price-old .woocommerce-Price-amount {
    color: #999;
}

.mrs-tp-pct {
    font-size: 11px;
    color: #e22;
    font-weight: 600;
}

.mrs-tp-price {
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    color: #e22;
}

.mrs-tp-price .woocommerce-Price-amount {
    color: #e22;
}

.mrs-tp-card__meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}

.mrs-tp-stars {
    color: #f5a623;
}

@media (max-width: 1024px) {
    .mrs-tp-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .mrs-tp-cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {

    .mrs-tp-cols-6,
    .mrs-tp-cols-5,
    .mrs-tp-cols-4,
    .mrs-tp-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mrs-tp-more-wrap {
    text-align: center;
    margin-top: 14px;
    margin-bottom: 4px;
}

.mrs-tp-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #b20000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
}

.mrs-tp-more-link:hover {
    color: #e22;
    text-decoration: none;
}

.mrs-tp-more-link svg {
    transition: transform .15s;
}

.mrs-tp-more-link:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   Hot Keywords — [mrs_hot_keywords]
   ========================================================================== */
.mrs-hot-keywords-wrap {
    padding: 12px 0;
}

.mrs-hot-keywords-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.mrs-hot-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mrs-hot-kw-chip {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}

.mrs-hot-kw-chip:hover {
    border-color: #e22;
    background: #e22;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Category Tabs — [mrs_cat_tabs]
   ========================================================================== */
.mrs-cat-tabs-outer {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.mrs-cat-tabs-arrow {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #999;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
    visibility: hidden;
}

.mrs-cat-tabs-arrow:hover {
    color: #292828;
}

@media (max-width: 768px) {
    .mrs-cat-tabs-arrow {
        display: flex;
    }
}

.mrs-cat-tabs-wrap {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
}

.mrs-cat-tabs-wrap::-webkit-scrollbar {
    display: none;
}

.mrs-cat-tab {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
    flex-shrink: 0;
}

.mrs-cat-tab:hover {
    border-color: #e22;
    background: #e22;
    color: #fff;
    text-decoration: none;
}

.mrs-cat-tab.active {
    background: #e22;
    border-color: #e22;
    color: #fff;
}

/* ==========================================================================
   Countdown Timer — [mrs_countdown]
   ========================================================================== */
.mrs-section-flash-sale {
    padding-top: 150px !important;
    border-radius: 10px;
}

.mrs-section-flash-sale .bg.section-bg.fill.bg-fill.bg-loaded {
    border-radius: 10px;
}

@media (min-width: 768px) {
    .mrs-section-flash-sale {
        padding-top: 190px !important;
    }
}

.mrs-countdown-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-family: inherit;
}

@media (min-width: 768px) {
    .mrs-countdown-wrap {
        flex-direction: row;
    }
}



.mrs-countdown-timer {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #222;
    border-radius: 10px;
    padding: 7px 18px 8px;
    min-width: 140px;
    line-height: 1.2;
}

.mrs-countdown-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    opacity: .92;
}

.mrs-countdown-digits {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.mrs-cd-sep {
    margin: 0 2px;
    font-weight: 400;
    opacity: .8;
}

.mrs-countdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background-color: #fff;
    color: #222;
    padding: 6px 12px;
    border-radius: 10px;
}

.mrs-countdown-datetime {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.5px;
}

.mrs-countdown-status {
    font-size: 12px;
    color: #666;
}