/*
Theme Name: Flatsome Child
Description: Child theme for Mona Boutique - Fashion Boutique
Author: Mona Boutique Team
Template: flatsome
Version: 1.0.5
*/

/* ===== 1. RESET & FONTS ===== */
:root {
    --tm-terracotta: #b87352;
    --tm-terracotta-hover: #a26142;
    --tm-olive: #5a6e50;
    --tm-olive-dark: #47583f;
    --tm-bg-topbar: #ebd5c7;
    --tm-bg-cream: #f6f0ea;
    --tm-bg-light: #fdfbf9;
    --tm-text-dark: #2c2522;
    --tm-text-muted: #726660;
    --tm-border: #e2d9cf;
    --tm-font-serif: 'Playfair Display', Georgia, serif;
    --tm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --tm-font-cursive: 'Dancing Script', cursive;
}

body {
    font-family: var(--tm-font-sans);
    color: var(--tm-text-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif-heading {
    font-family: var(--tm-font-serif);
}

/* ===== 2. TOPBAR ANNOUNCEMENT (COMPACT 28px) ===== */
#top-bar {
    background-color: var(--tm-bg-topbar) !important;
    border-bottom: none !important;
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}
#top-bar .flex-row {
    min-height: 28px !important;
    height: 28px !important;
}
#top-bar .flex-center,
#top-bar .thao-mon-announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.thao-mon-announcement {
    font-size: 12px;
    font-weight: 500;
    color: #4a3832;
    letter-spacing: 0.2px;
    line-height: 28px;
}

/* ===== 3. MAIN HEADER & MENU (CLEAN, NO EXTRA BUTTONS) ===== */
#masthead.header-main {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f0e9e2 !important;
    box-shadow: none !important;
    min-height: 58px !important;
    height: 58px !important;
    position: relative;
    z-index: 100;
}
.header-inner.container {
    max-width: 1220px !important;
    width: 100% !important;
    min-height: 58px !important;
    height: 58px !important;
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
}

/* 3.1. Left: Logo */
.header-col-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.thao-mon-logo-link {
    text-decoration: none !important;
    display: inline-block;
}
.thao-mon-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.logo-bow-icon {
    line-height: 1;
    margin-bottom: 1px;
}
.logo-bow-icon svg {
    display: block;
    margin: 0 auto;
}
.logo-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.logo-brand-name {
    font-family: var(--tm-font-cursive);
    font-size: 20px;
    font-weight: 700;
    color: #221e1d;
    letter-spacing: 0.3px;
    line-height: 1;
}
.logo-brand-sub {
    font-family: var(--tm-font-sans);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6e6460;
    margin-top: 1px;
    line-height: 1;
}

/* 3.2. Center: Desktop Menu (Strict 1 Line, underline active) */
.header-col-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin: 0 25px;
}
.thao-mon-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}
.thao-mon-main-menu > li {
    margin: 0;
    padding: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.thao-mon-main-menu > li > a {
    font-family: var(--tm-font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #332d2a;
    text-decoration: none !important;
    padding: 6px 0;
    display: inline-block;
    transition: color 0.2s ease;
    border: none;
}
.thao-mon-main-menu > li > a:hover {
    color: var(--tm-terracotta);
}

/* Menu Active: Gạch chân thanh lịch cho mục đang truy cập */
.thao-mon-main-menu > li.active > a {
    border-bottom: 2px solid #332d2a !important;
    color: #221e1d !important;
}

/* 3.3. Right: Exactly 4 Clean Icons (Search, Cart, Wishlist, Account) */
.header-col-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
}
.header-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #332d2a;
    text-decoration: none !important;
    padding: 4px;
    transition: color 0.2s ease;
    border: none !important;
    background: transparent !important;
}
.header-btn-icon:hover {
    color: var(--tm-terracotta);
}
.header-btn-account {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #332d2a;
    text-decoration: none !important;
    padding: 4px;
    white-space: nowrap !important;
    transition: color 0.2s ease;
    border: none !important;
    background: transparent !important;
}
.header-btn-account:hover {
    color: var(--tm-terracotta);
}
.account-label-text {
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap !important;
    display: inline-block;
}

/* Mobile Toggle - ẩn hoàn toàn trên desktop */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #332d2a;
    padding: 4px;
    cursor: pointer;
}

/* ===== 3.4. SEARCH MODAL OVERLAY ===== */
.tm-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}
.tm-search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tm-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}
.tm-search-modal-inner {
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    max-width: 540px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.tm-search-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #777;
    cursor: pointer;
    line-height: 1;
}
.tm-search-heading {
    font-family: var(--tm-font-serif);
    font-size: 20px;
    color: #2b2320;
    margin: 0 0 16px 0;
    text-align: center;
}
.tm-search-form {
    display: flex;
    gap: 8px;
}
.tm-search-input {
    flex-grow: 1;
    border: 1px solid #dcd1c7;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}
.tm-search-input:focus {
    border-color: var(--tm-terracotta);
}
.tm-search-btn {
    background: var(--tm-terracotta);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.tm-search-btn:hover {
    background: var(--tm-terracotta-hover);
}

/* ===== 4. HERO BANNER / SLIDER ===== */
.thao-mon-hero-banner {
    position: relative;
    width: 100%;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
    overflow: hidden;
}
.thao-mon-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 15, 12, 0.22) 0%, rgba(20, 15, 12, 0.38) 100%);
}
.thao-mon-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 40px 20px;
}
.thao-mon-hero-title {
    font-family: var(--tm-font-serif);
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    line-height: 1.15;
}
.thao-mon-hero-subtitle {
    font-family: var(--tm-font-sans);
    font-size: 18px;
    font-weight: 400;
    color: #f5f2ee;
    margin: 0 0 26px 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}
.thao-mon-btn-primary {
    display: inline-block;
    background-color: var(--tm-terracotta);
    color: #ffffff !important;
    font-family: var(--tm-font-sans);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 13px 40px;
    border-radius: 30px;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(184, 115, 82, 0.45);
    transition: all 0.3s ease;
}
.thao-mon-btn-primary:hover {
    background-color: var(--tm-terracotta-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(184, 115, 82, 0.55);
}

/* Hero Nav Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b2320;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
    text-decoration: none !important;
}
.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev {
    left: 20px;
}
.hero-arrow-next {
    right: 20px;
}

/* ===== 5. SECTION BỘ SƯU TẬP HOT TREND ===== */
.hot-trend-section {
    padding: 45px 0 60px 0;
    background-color: #ffffff;
}
.hot-trend-title {
    font-family: var(--tm-font-serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--tm-olive);
    margin: 0 0 28px 0;
    text-align: left;
    letter-spacing: 0.3px;
}
.hot-trend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.hot-trend-card {
    text-align: center;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}
.hot-trend-card:hover .hot-trend-thumb img {
    transform: scale(1.05);
}
.hot-trend-card:hover .hot-trend-btn {
    background-color: var(--tm-terracotta);
    color: #ffffff;
    border-color: var(--tm-terracotta);
}
.hot-trend-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 3px;
    overflow: hidden;
    background-color: #f7f4f0;
}
.hot-trend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.hot-trend-name {
    font-family: var(--tm-font-sans);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #2b2320;
    margin: 14px 0 8px 0;
}
.hot-trend-btn {
    font-family: var(--tm-font-sans);
    font-size: 12px;
    font-weight: 500;
    color: #635750;
    background: #fdfbf9;
    border: 1px solid #dfd6cc;
    padding: 4px 18px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.25s ease;
}

/* ===== 6. SECTION HÀNG MỚI VỀ (PRODUCTS) ===== */
.products-section {
    padding: 50px 0 70px 0;
    background-color: #faf7f4;
}
.section-header-center {
    text-align: center;
    margin-bottom: 35px;
}
.section-header-center .section-title {
    font-family: var(--tm-font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--tm-olive);
    margin: 0 0 8px 0;
}
.section-header-center .section-subtitle {
    font-size: 15px;
    color: var(--tm-text-muted);
    margin: 0;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.product-card-tm {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.product-card-tm:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.product-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f7f3ee;
}
.product-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card-tm:hover .product-thumb-wrap img {
    transform: scale(1.05);
}
.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tm-terracotta);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}
.product-info-wrap {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-title-tm {
    font-size: 14px;
    font-weight: 600;
    color: var(--tm-text-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}
.price-regular {
    font-size: 13px;
    color: #9c8e87;
    text-decoration: line-through;
}
.price-sale {
    font-size: 16px;
    font-weight: 700;
    color: var(--tm-terracotta);
}
.btn-quick-buy {
    background: #f6efe8;
    color: #4a3e37;
    border: 1px solid #e2d7cc;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 0;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: auto;
}
.btn-quick-buy:hover {
    background: var(--tm-terracotta);
    color: #ffffff;
    border-color: var(--tm-terracotta);
}

/* ===== 7. PROMO BANNER SECTION ===== */
.promo-lookbook-section {
    padding: 60px 0;
    background: #fcf9f5;
}
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.promo-text-wrap {
    padding: 20px;
}
.promo-badge {
    color: var(--tm-terracotta);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.promo-title {
    font-family: var(--tm-font-serif);
    font-size: 38px;
    font-weight: 700;
    color: var(--tm-olive);
    line-height: 1.2;
    margin: 0 0 16px 0;
}
.promo-desc {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--tm-text-muted);
    margin: 0 0 24px 0;
}
.promo-image-wrap {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.promo-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 8. SECTION TIN TỨC & LOOKBOOK ===== */
.news-section {
    padding: 55px 0 75px 0;
    background: #ffffff;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news-card-tm {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.news-card-tm:hover {
    transform: translateY(-4px);
}
.news-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card-tm:hover .news-thumb img {
    transform: scale(1.05);
}
.news-content {
    padding: 20px;
}
.news-date {
    font-size: 12px;
    color: #9e918a;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-title-link {
    font-family: var(--tm-font-serif);
    font-size: 17px;
    font-weight: 700;
    color: #2b2320;
    text-decoration: none !important;
    line-height: 1.4;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}
.news-title-link:hover {
    color: var(--tm-terracotta);
}
.news-excerpt {
    font-size: 13.5px;
    color: var(--tm-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ===== 9. FOOTER CHUẨN THẢO MON ===== */
.thao-mon-footer {
    background: #25201e;
    color: #c9c0b8;
    padding: 60px 0 30px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 35px;
    margin-bottom: 45px;
}
.footer-col h4 {
    font-family: var(--tm-font-serif);
    font-size: 18px;
    color: #ffffff;
    margin: 0 0 18px 0;
    letter-spacing: 0.5px;
}
.footer-desc {
    font-size: 13.5px;
    line-height: 1.7;
    color: #b5aba3;
    margin-bottom: 20px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #b5aba3;
    text-decoration: none !important;
    font-size: 13.5px;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #ffffff;
}
.footer-contact-item {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #b5aba3;
}
.footer-contact-item strong {
    color: #ffffff;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #8c827a;
}

/* ===== 10. RESPONSIVE ===== */
@media (max-width: 1100px) {
    .thao-mon-main-menu {
        gap: 14px;
    }
    .thao-mon-main-menu > li > a {
        font-size: 12px;
    }
    .header-col-right {
        gap: 12px;
    }
}
@media (max-width: 849px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .header-col-center {
        display: none;
    }
    .hot-trend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .promo-grid {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .thao-mon-hero-title {
        font-size: 32px;
    }
}
@media (max-width: 600px) {
    .thao-mon-hero-banner {
        min-height: 420px;
    }
    .thao-mon-hero-title {
        font-size: 24px;
        letter-spacing: 1.5px;
    }
    .thao-mon-hero-subtitle {
        font-size: 14px;
    }
    .thao-mon-btn-primary {
        padding: 10px 28px;
        font-size: 12.5px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-arrow {
        width: 34px;
        height: 34px;
    }
    .hero-arrow-prev { left: 10px; }
    .hero-arrow-next { right: 10px; }
}

/* ===== 11. SUBPAGE STYLING ===== */
.page-banner-thao-mon {
    background-color: #faf5f0;
    border-bottom: 1px solid #eee4db;
    padding: 36px 0 30px 0;
    text-align: center;
    margin-bottom: 35px;
}
.page-banner-title {
    font-family: var(--tm-font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--tm-olive);
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}
.page-breadcrumbs {
    font-size: 13px;
    color: var(--tm-text-muted);
}
.page-breadcrumbs a {
    color: var(--tm-text-dark);
    text-decoration: none !important;
}
.page-breadcrumbs a:hover {
    color: var(--tm-terracotta);
}
.page-breadcrumbs span {
    margin: 0 6px;
}

.catalog-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 35px;
}
.filter-tab {
    background: #fbf8f5;
    border: 1px solid #e5dcd3;
    color: #4a3f3a;
    font-family: var(--tm-font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.filter-tab:hover,
.filter-tab.active {
    background: var(--tm-terracotta);
    color: #ffffff;
    border-color: var(--tm-terracotta);
}

.store-features-strip {
    background: #faf7f4;
    border-top: 1px solid #eee5dc;
    border-bottom: 1px solid #eee5dc;
    padding: 30px 0;
    margin-top: 50px;
}
.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.feature-icon {
    font-size: 26px;
    line-height: 1;
}
.feature-text {
    display: flex;
    flex-direction: column;
}
.feature-text strong {
    font-size: 14px;
    color: #2b2320;
    margin-bottom: 2px;
}
.feature-text span {
    font-size: 12px;
    color: #7d6f68;
}

.collection-intro-section {
    padding: 10px 0 40px 0;
}
.sub-badge-rose {
    display: inline-block;
    color: var(--tm-terracotta);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-title-serif {
    font-family: var(--tm-font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--tm-olive);
    margin: 0 0 12px 0;
}
.section-desc-clean {
    font-size: 15.5px;
    color: var(--tm-text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}
.collections-detail-section {
    padding: 20px 0 60px 0;
}
.collection-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}
.collection-row.reverse {
    direction: rtl;
}
.collection-row.reverse > * {
    direction: ltr;
}
.collection-img-box {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.collection-img-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.collection-img-box:hover img {
    transform: scale(1.03);
}
.collection-info-box {
    padding: 10px;
}
.col-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--tm-terracotta);
    display: inline-block;
    margin-bottom: 8px;
}
.col-heading {
    font-family: var(--tm-font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--tm-olive);
    margin: 0 0 14px 0;
}
.col-paragraph {
    font-size: 15px;
    line-height: 1.7;
    color: #554a44;
    margin-bottom: 18px;
}
.col-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}
.col-highlights li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: #4a3e38;
    margin-bottom: 8px;
    line-height: 1.5;
}
.col-highlights li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: var(--tm-terracotta);
    font-weight: 700;
}

.new-arrivals-hero-strip {
    background: #fdf8f4;
    border: 1px solid #eee2d7;
    border-radius: 6px;
    padding: 30px 20px;
    margin: 0 auto 40px auto;
    max-width: 1180px;
}
.badge-hot-tag {
    display: inline-block;
    background: #ffebe3;
    color: #c94f27;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.hero-strip-title {
    font-family: var(--tm-font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--tm-olive);
    margin: 0 0 8px 0;
}
.hero-strip-desc {
    font-size: 14.5px;
    color: var(--tm-text-muted);
    max-width: 600px;
    margin: 0 auto;
}
.badge-new-arrival {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #2b7a4b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.news-grid-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}
.news-meta {
    font-size: 12px;
    color: #8c7e77;
    margin-bottom: 8px;
}
.news-readmore {
    display: inline-block;
    color: var(--tm-terracotta);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    margin-top: 10px;
}
.news-readmore:hover {
    text-decoration: underline !important;
}

.contact-section-page {
    padding: 10px 0 60px 0;
}
.contact-grid-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info-card,
.contact-form-card {
    background: #ffffff;
    border: 1px solid #ede4dc;
    border-radius: 6px;
    padding: 35px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.contact-card-title {
    font-family: var(--tm-font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--tm-olive);
    margin: 0 0 10px 0;
}
.contact-card-sub {
    font-size: 14px;
    color: var(--tm-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}
.contact-detail-list {
    margin-bottom: 25px;
}
.contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.detail-icon {
    font-size: 20px;
    line-height: 1.3;
}
.detail-body strong {
    display: block;
    font-size: 14px;
    color: #2b2320;
    margin-bottom: 2px;
}
.detail-body span,
.detail-body a {
    font-size: 14px;
    color: #554943;
    text-decoration: none;
}
.highlight-link {
    color: var(--tm-terracotta) !important;
    font-weight: 700;
    font-size: 16px !important;
}
.contact-map-box {
    margin-top: 20px;
}
.form-group-tm {
    margin-bottom: 16px;
}
.form-group-tm label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #332b27;
    margin-bottom: 6px;
}
.form-group-tm input,
.form-group-tm textarea {
    width: 100%;
    border: 1px solid #dcd1c7;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--tm-font-sans);
    outline: none;
    transition: border-color 0.2s ease;
}
.form-group-tm input:focus,
.form-group-tm textarea:focus {
    border-color: var(--tm-terracotta);
    box-shadow: 0 0 0 2px rgba(184, 115, 82, 0.15);
}

@media (max-width: 991px) {
    .features-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .collection-row,
    .collection-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr !important;
        gap: 25px;
    }
    .news-grid-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .contact-grid-wrap {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
@media (max-width: 600px) {
    .features-row {
        grid-template-columns: 1fr;
    }
    .news-grid-page {
        grid-template-columns: 1fr;
    }
    .contact-info-card,
    .contact-form-card {
        padding: 24px 18px;
    }
}


/* ==========================================================================
   THẢO MON CLOTHING - SINGLE PRODUCT PAGE REDESIGN
   ========================================================================== */

/* 1. Main Container & Spacing */
.single-product .shop-container {
    padding-top: 24px;
    padding-bottom: 60px;
    background-color: #ffffff;
}

.single-product .product-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 15px;
}

.single-product .product-main {
    margin-bottom: 48px;
}

.single-product .product-main > .row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

/* 2. Product Gallery (Left) */
.single-product .product-gallery {
    flex: 1 1 50%;
    max-width: calc(52% - 20px) !important;
}

.single-product .product-images {
    border-radius: 18px;
    overflow: hidden;
    background: #fdfbf9;
    border: 1px solid #f0e9e2;
    box-shadow: 0 8px 30px rgba(74, 56, 50, 0.05);
    position: relative;
}

.single-product .product-gallery-slider img {
    border-radius: 16px;
    object-fit: cover;
    width: 100%;
}

/* Luxury Sale Pill Badge Override */
.single-product .badge-container {
    top: 18px !important;
    left: 18px !important;
    z-index: 9;
}

.single-product .badge-circle {
    display: inline-block !important;
    height: auto !important;
    width: auto !important;
    border-radius: 30px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.single-product .badge-inner.on-sale {
    background: linear-gradient(135deg, #b87352 0%, #a26142 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 14px rgba(184, 115, 82, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Gallery Thumbnails */
.single-product .product-thumbnails {
    margin-top: 14px;
}

.single-product .product-thumbnails .col {
    padding: 4px;
}

.single-product .product-thumbnails img {
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
}

.single-product .product-thumbnails .is-selected img,
.single-product .product-thumbnails img:hover {
    border-color: var(--tm-terracotta);
    box-shadow: 0 4px 12px rgba(184, 115, 82, 0.2);
}

/* 3. Product Summary / Info (Right) */
.single-product .product-info.summary {
    flex: 1 1 45%;
    max-width: calc(48% - 20px) !important;
    padding-left: 10px;
}

/* Breadcrumbs */
.single-product .woocommerce-breadcrumb {
    font-size: 12px;
    color: #8c7e77;
    margin-bottom: 12px;
    text-transform: none !important;
    letter-spacing: 0.2px;
}

.single-product .woocommerce-breadcrumb a {
    color: #63554e;
    text-decoration: none;
    transition: color 0.2s;
}

.single-product .woocommerce-breadcrumb a:hover {
    color: var(--tm-terracotta);
}

.single-product .woocommerce-breadcrumb .divider {
    color: #c7bbb3;
    margin: 0 6px;
}

/* Top Badges Row (Category & Stock) */
.tm-product-top-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.tm-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--tm-terracotta);
    background: #fdf5f0;
    border: 1px solid #f6e2d7;
    padding: 4px 12px;
    border-radius: 20px;
}

.tm-cat-icon {
    font-size: 12px;
}

.tm-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.tm-stock-pill.in-stock {
    background: #edf5eb;
    color: #386b32;
    border: 1px solid #d5ebd0;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #3fa234;
    box-shadow: 0 0 0 0 rgba(63, 162, 52, 0.7);
    animation: tm-pulse 1.8s infinite;
}

@keyframes tm-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(63, 162, 52, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(63, 162, 52, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(63, 162, 52, 0);
    }
}

/* Product Title */
.single-product h1.product-title {
    font-family: var(--tm-font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tm-text-dark);
    margin: 0 0 10px 0;
    letter-spacing: -0.2px;
}

.single-product .is-divider.small {
    display: none !important;
}

/* Rating & Sold Row */
.tm-rating-sold-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #6d5e56;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #ede5dd;
}

.tm-stars-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tm-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 1px;
}

.tm-rating-score {
    font-weight: 700;
    color: #2c2522;
}

.tm-divider-dot {
    color: #c7bbb3;
}

.tm-sold-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--tm-terracotta);
    font-weight: 600;
}

/* 4. Luxury Pricing Box (Only for Product Summary) */
.single-product .product-info.summary .price-wrapper {
    background: #faf6f2;
    border: 1px solid #ebd5c7;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.single-product .product-info.summary .price-wrapper p.price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 !important;
}

.single-product .product-info.summary .price-wrapper del {
    color: #9c8e87 !important;
    font-size: 16px;
    font-weight: 400;
    text-decoration: line-through;
}

.single-product .product-info.summary .price-wrapper ins,
.single-product .product-info.summary .price-wrapper .amount {
    color: var(--tm-terracotta) !important;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    font-family: var(--tm-font-sans);
}

.tm-savings-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ede3dc;
}

.tm-savings-pill {
    background: var(--tm-terracotta);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.tm-vat-pill {
    font-size: 12px;
    color: #5c7452;
    font-weight: 500;
}

/* Short Description */
.single-product .product-short-description {
    font-size: 14px;
    line-height: 1.65;
    color: #544843;
    margin-bottom: 20px;
}

/* 5. Size Selector & Guide */
.tm-size-selector-block {
    margin: 20px 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #ede4dc;
    border-radius: 12px;
}

.tm-size-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tm-size-title {
    font-size: 13px;
    font-weight: 600;
    color: #3b302a;
}

.tm-size-title strong {
    color: var(--tm-terracotta);
    font-size: 14px;
}

.tm-size-guide-trigger {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--tm-terracotta);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.tm-size-guide-trigger:hover {
    opacity: 0.8;
}

.tm-size-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tm-size-pill {
    background: #ffffff;
    border: 1.5px solid #e2d7ce;
    border-radius: 8px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tm-size-pill .size-letter {
    font-size: 13px;
    font-weight: 700;
    color: #2c2522;
}

.tm-size-pill .size-sub {
    font-size: 10px;
    color: #8c7e77;
    margin-top: 2px;
}

.tm-size-pill:hover {
    border-color: var(--tm-terracotta);
    background: #fffdfb;
}

.tm-size-pill.active {
    border-color: var(--tm-terracotta);
    background: #fdf6f2;
    box-shadow: 0 0 0 1px var(--tm-terracotta);
}

.tm-size-pill.active .size-letter {
    color: var(--tm-terracotta);
}

.tm-size-pill.active .size-sub {
    color: var(--tm-terracotta);
    font-weight: 500;
}

/* 6. Add to Cart & Buy Now Form */
.single-product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 24px 0 20px 0 !important;
}

/* Quantity Input */
.single-product .quantity {
    display: inline-flex !important;
    align-items: center;
    border: 1.5px solid #d9cebe;
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
    height: 48px;
    padding: 0 4px;
}

.single-product .quantity input.qty {
    width: 44px !important;
    height: 44px !important;
    border: none !important;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #2c2522;
    background: transparent;
    box-shadow: none !important;
    padding: 0 !important;
}

.single-product .quantity .button.minus,
.single-product .quantity .button.plus {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    background: #f4eee7 !important;
    color: #4a3932 !important;
    border: none !important;
    font-size: 16px !important;
    padding: 0 !important;
    line-height: 32px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: none !important;
}

.single-product .quantity .button.minus:hover,
.single-product .quantity .button.plus:hover {
    background: var(--tm-terracotta) !important;
    color: #ffffff !important;
}

/* Primary Button: Thêm Vào Giỏ */
.single-product .single_add_to_cart_button {
    flex: 1 1 auto;
    min-width: 170px;
    height: 48px;
    border-radius: 30px !important;
    background: #ffffff !important;
    color: var(--tm-terracotta) !important;
    border: 2px solid var(--tm-terracotta) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 0 20px !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 12px rgba(184, 115, 82, 0.12) !important;
    margin: 0 !important;
}

.single-product .single_add_to_cart_button:hover {
    background: var(--tm-terracotta) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(184, 115, 82, 0.28) !important;
    transform: translateY(-1px);
}

/* Secondary Button: Mua Ngay */
.tm-buy-now-btn {
    flex: 1 1 100%;
    height: 50px;
    border-radius: 30px !important;
    background: linear-gradient(135deg, #b87352 0%, #9e5b3c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(184, 115, 82, 0.35) !important;
    transition: all 0.25s ease !important;
    margin: 4px 0 0 0 !important;
}

.tm-buy-now-btn:hover {
    background: linear-gradient(135deg, #a26142 0%, #8b4d30 100%) !important;
    box-shadow: 0 8px 26px rgba(184, 115, 82, 0.45) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* 7. Trust & Guarantees Card */
.tm-trust-card {
    background: #fdfbf9;
    border: 1px solid #ebd5c7;
    border-radius: 14px;
    padding: 18px;
    margin-top: 24px;
    margin-bottom: 20px;
}

.tm-trust-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--tm-terracotta);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ede3dc;
}

.tm-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.tm-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tm-trust-icon {
    flex-shrink: 0;
    color: var(--tm-terracotta);
    margin-top: 2px;
}

.tm-trust-text strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #2c2522;
    margin-bottom: 2px;
}

.tm-trust-text p {
    font-size: 11px;
    line-height: 1.4;
    color: #726660;
    margin: 0;
}

/* 8. Product Meta & Share Icons */
.single-product .product_meta {
    font-size: 12px;
    color: #8c7e77;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e8ded6;
}

.single-product .product_meta > span {
    display: block;
    margin-bottom: 4px;
}

.single-product .product_meta a {
    color: #5c4e46;
    text-decoration: none;
}

.single-product .product_meta a:hover {
    color: var(--tm-terracotta);
}

.single-product .share-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 9. Product Tabs Section */
.single-product .product-footer {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #ede4dc;
}

.single-product .woocommerce-tabs {
    margin-bottom: 60px;
}

.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #ede4dc !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
}

.single-product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #786b64 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--tm-terracotta) !important;
    border-bottom-color: var(--tm-terracotta) !important;
}

.single-product .woocommerce-tabs .panel {
    background: #ffffff;
    border: 1px solid #ede4dc;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.tm-tab-content-inner {
    max-width: 900px;
    margin: 0 auto;
}

.tm-tab-heading {
    font-family: var(--tm-font-serif);
    font-size: 20px;
    font-weight: 700;
    color: #2c2522;
    margin-bottom: 12px;
}

.tm-tab-sub {
    font-size: 13px;
    color: #6d5e56;
    margin-bottom: 20px;
}

/* Size Table */
.tm-table-responsive {
    overflow-x: auto;
    margin-bottom: 16px;
}

.tm-size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ebd5c7;
}

.tm-size-table th {
    background: #fbf5ef;
    color: #3d302a;
    font-weight: 700;
    padding: 12px 14px;
    border: 1px solid #ebd5c7;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.tm-size-table td {
    padding: 12px 14px;
    border: 1px solid #f0e6dc;
    color: #4a3a33;
}

.tm-size-table tbody tr:nth-child(even) {
    background: #fdfbf9;
}

.tm-size-table tbody tr:hover {
    background: #fdf6f2;
}

.tm-size-note {
    font-size: 12px;
    color: #7d6e67;
    margin: 10px 0 0 0;
}

/* Policy Grid */
.tm-policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.tm-policy-list {
    margin: 0;
    padding-left: 20px;
}

.tm-policy-list li {
    font-size: 13px;
    line-height: 1.7;
    color: #544843;
    margin-bottom: 8px;
}

/* 10. Related Products - Perfectly Balanced Cards */
.single-product .related-products-wrapper.product-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #ede4dc;
}

.single-product .product-section-title-related {
    font-family: var(--tm-font-serif) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--tm-text-dark) !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    position: relative !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.single-product .product-section-title-related::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--tm-terracotta);
    margin: 10px auto 0 auto;
}

/* Card Outer & Col */
.single-product .related-products-wrapper .product-small.col {
    padding: 0 10px 20px 10px;
}

.single-product .related-products-wrapper .col-inner {
    background: #ffffff;
    border: 1px solid #f0e9e2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(74, 56, 50, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.single-product .related-products-wrapper .col-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(74, 56, 50, 0.1);
    border-color: #dfcebf;
}

.single-product .related-products-wrapper .product-small.box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image container */
.single-product .related-products-wrapper .box-image {
    position: relative;
    overflow: hidden;
    background: #fdfbf9;
    border-radius: 11px 11px 0 0;
}

.single-product .related-products-wrapper .box-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.single-product .related-products-wrapper .col-inner:hover .box-image img {
    transform: scale(1.05);
}

/* Compact Sale Badge for Cards */
.single-product .related-products-wrapper .badge-container {
    top: 10px !important;
    left: 10px !important;
}

.single-product .related-products-wrapper .badge-inner.on-sale {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.5px !important;
}

/* Text Container */
.single-product .related-products-wrapper .box-text {
    padding: 14px 16px 16px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
    text-align: left !important;
}

.single-product .related-products-wrapper .title-wrapper {
    margin-bottom: 8px;
}

.single-product .related-products-wrapper .category {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--tm-terracotta) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 4px !important;
    opacity: 1 !important;
}

/* Equal Title Height: Exactly 2 lines (38px) - Cân bằng tuyệt đối giữa các card */
.single-product .related-products-wrapper .name.product-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.38 !important;
    color: var(--tm-text-dark) !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin: 0 0 8px 0 !important;
    text-overflow: ellipsis;
}

.single-product .related-products-wrapper .name.product-title a {
    color: var(--tm-text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.single-product .related-products-wrapper .name.product-title a:hover {
    color: var(--tm-terracotta);
}

/* Reset Price Wrapper in Related Cards (Clean, compact, aligned) */
.single-product .related-products-wrapper .price-wrapper {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.single-product .related-products-wrapper .price-wrapper p.price,
.single-product .related-products-wrapper .price-wrapper .price {
    display: flex !important;
    align-items: baseline !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin: 0 !important;
}

.single-product .related-products-wrapper .price-wrapper del {
    color: #9c8e87 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
}

.single-product .related-products-wrapper .price-wrapper ins,
.single-product .related-products-wrapper .price-wrapper .amount {
    color: var(--tm-terracotta) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-family: var(--tm-font-sans) !important;
}

/* 11. Size Guide Modal */
.tm-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 37, 34, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.tm-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.tm-modal-dialog {
    background: #ffffff;
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: tm-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tm-modal-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fbf6f0;
    border-bottom: 1px solid #ebd5c7;
}

.tm-modal-title {
    font-family: var(--tm-font-serif);
    font-size: 20px;
    font-weight: 700;
    color: #2c2522;
    margin: 0;
}

.tm-modal-sub {
    font-size: 12px;
    color: #726660;
    margin: 4px 0 0 0;
}

.tm-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #726660;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.tm-modal-close:hover {
    color: var(--tm-terracotta);
}

.tm-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.tm-modal-tips {
    margin-top: 16px;
    background: #fdf8f4;
    border: 1px dashed #e8cbb9;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 12px;
    color: #5c4940;
    line-height: 1.5;
}

.tm-modal-tips strong {
    color: var(--tm-terracotta);
}

.tm-modal-footer {
    padding: 16px 24px;
    background: #faf6f2;
    border-top: 1px solid #ebd5c7;
    text-align: right;
}

.tm-btn-close-modal {
    background: var(--tm-terracotta) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 8px 24px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer;
}

/* 12. Mobile Sticky Action Bar */
.tm-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #ebd5c7;
    padding: 10px 14px;
    z-index: 9999;
}

.tm-sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tm-sticky-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.tm-sticky-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f0e9e2;
}

.tm-sticky-meta {
    overflow: hidden;
}

.tm-sticky-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #2c2522;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.tm-sticky-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--tm-terracotta);
}

.tm-sticky-price del {
    font-size: 11px;
    color: #8c7e77;
    margin-right: 4px;
}

.tm-sticky-price ins,
.tm-sticky-price .amount {
    color: var(--tm-terracotta);
    text-decoration: none;
}

.tm-sticky-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tm-sticky-btn-cart {
    background: #ffffff !important;
    color: var(--tm-terracotta) !important;
    border: 1.5px solid var(--tm-terracotta) !important;
    border-radius: 24px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    height: 38px !important;
    margin: 0 !important;
}

.tm-sticky-btn-buy {
    background: var(--tm-terracotta) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 24px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 8px 14px !important;
    height: 38px !important;
    margin: 0 !important;
    box-shadow: 0 4px 12px rgba(184, 115, 82, 0.3) !important;
}

/* 13. Responsive Breakpoints */
@media (max-width: 850px) {
    .single-product .product-main > .row {
        flex-direction: column;
        gap: 30px;
    }
    .single-product .product-gallery,
    .single-product .product-info.summary {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding-left: 0;
    }
    .single-product h1.product-title {
        font-size: 24px;
    }
    .tm-trust-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .tm-policy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .single-product .woocommerce-tabs .panel {
        padding: 20px 16px;
    }
    .single-product .shop-container {
        padding-bottom: 80px; /* Space for mobile sticky bar */
    }
}
