/*
Theme Name: Tường Phát Heritage
Theme URI: https://dinhdongtuongphat.com/
Description: Giao diện Heritage Luxury dành riêng cho Đồ Đồng Tường Phát, kế thừa Flatsome và giữ nguyên các tùy biến nghiệp vụ từ theme Camera.
Author: Tường Phát
Template: flatsome
Version: 1.5.3
Text Domain: tuongphat-heritage
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.form-popup  input[type='email'], .form-popup  input[type='search'],.form-popup  input[type='number'],.form-popup  input[type='url'],.form-popup  input[type='tel'],.form-popup  input[type='text'], textarea{
    border-radius: 5px;
}
.div-nut input{
    margin-bottom: 10px !important;
}
.div-nut{
        margin-top: 13px;
}
.div-nut-gui{
    text-align: center;
}
.wpcf7-spinner{
    display: none;
}
.form-popup .lb-float{
    position: absolute;
     margin-top: -7px;
    left: 1rem;
    pointer-events: none;
    font-size: 12px;
    line-height: 1.125rem;
    color: #6c6c70;
    background-color: #fff;
    padding: 0 4px;
    transition: top .2s;
    z-index: 33;
    display: inline;
    width: auto;
    font-size: 14px;
    font-weight: normal;
}
#newsletter-signup-link .col{
    padding-bottom: 0px !important;
}
#newsletter-signup-link{
    border-radius: 5px;
}
.form-dien-thoai .wpcf7 input[type='submit'] {
    border-radius: 0 !important;
    text-align: left;
    margin: 0;
    padding: 0 10px;
    background: #f5b315 !important;
}
.form-dien-thoai .wpcf7-spinner{
    display: none;
}
.form-dien-thoai form{
    margin-bottom: 0px;
}
.form-dien-thoai .form-sdt {
    display: inline-block;
    width: 100%;
}
.form-dien-thoai label {
    background: url(images/icon-phone.png) left top no-repeat;
    padding: 0 5px 0 52px;
    margin: 0px;
    text-align: left;
    font-weight: 400;
    font-size: 14px;
    color: white;
    margin-bottom: 11px;
}
.form-dien-thoai .form-sdt .left {
    float: left;
    width: 85%;
    display: inline-block;
}
ul.menu>li+li, .widget>ul>li+li {
    border-top: none;}
.form-dien-thoai .form-sdt .right {
    width: 15%;
    float: left;
    display: inline-block;
}
.form-dien-thoai {
    margin-top: 12px;
    background:#5f3916;
    padding: 15px;
    border-radius: 5px;
}
p.tit-dc-ft1, p.tit-dc-ft1 {
    font-size: 18px !important;
    border-bottom: 1px solid;
    max-width: max-content;
    font-weight: 600;
}
#product-sidebar .widget-title{
        font-weight: 600;
    background: #5f3916;
    padding: 0px 20px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    line-height: 40px;
    color: #fff;
    display: block;
    text-transform: uppercase;
    margin: 0px;
}
ul.product-categories li a:before{
content: "\f0da";
font-family: fontawesome;
color: #5f3916;
margin-right: 5px;
}
ul.product-categories li a{
    padding-left: 10px;
    padding-right: 10px;
}
.product-tabs a {
    color: #fff !important;
}
ul.product-tabs {
    background: #5f3916;
    padding: 0px 10px;
}
.tab-panels {
    padding: 20px;
    border: 1px solid #e5e6ec;
    background: #fff;
}
p.name.product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
}
#shop-sidebar .widget-title,.post-sidebar .widget-title{
        font-weight: 600;
    background: #5f3916;
    padding: 0px 20px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    line-height: 40px;
    color: #fff;
    text-transform: uppercase;
    margin: 0px;
    display: block;
}

.box-image {
    margin-top: 5px;
}
.product-small.box {
    background: #fff;
    border: 1px solid #dbdbdb;
    padding: 0px 5px;
    overflow: hidden;
}
.section-danh-muc .large-columns-4 .product-category:nth-child(1),.section-danh-muc .large-columns-4 .product-category:nth-child(2),.section-danh-muc .large-columns-4 .product-category:nth-child(3),.section-danh-muc .large-columns-4 .product-category:nth-child(4){
    border-bottom: none !important;
}
.price-wrapper .price del,.price-wrapper .price ins{
    display: block;
}
.product-category{
    background: white;
    border: 1px solid #dbdbdb;
}
.tit-sp {
    background: #fff;
    border: 1px solid #dbdbdb;

}
h2.tit-sp-home a {
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0px 1px 0px #444;
    margin: 0px;
}
h2.tit-sp-home:after {
    top: 1px;
    border: 20px solid transparent;
    border-left-color: #5f3916;
    position: absolute;
    margin-left: 15px;
    content: "";
}
h2.tit-sp-home {
    background: #5f3916;
    padding: 0 15px;
    margin: 0;
    font-size: 16px;
    display: inline-block;
    width: auto;
    line-height: 40px;
}
.div-hotline span{
    color: red;
    font-weight: bold;
    font-size:17px;
}

.contact-phone ul li a i {
    color: #900;
    font-size:22px;
}
.contact-phone ul li a {
    color: #0528bc;
    font-weight: 700;
}
.contact-phone ul li a span.hotline {
    color: #900;
}
.contact-phone ul li {
    list-style: none;
    margin: 5px 0;
    padding: 8px 0 8px 8px;
    font-size: 15px;
    background-color: #b9e6ff;
}
.header-block .col{
    padding-bottom:0px !important;
}
@-webkit-keyframes shine{
100%{left:125%}
}
@keyframes shine{
100%{left:125%}
}
.searchform{
    padding:5px;
}

.product-small .box-image:hover::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}
.product-small .box-image::before, .product-category .box-image::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left,rgba(255,255,255,0) 0,rgba(255,255,255,.3) 100%);
    background: linear-gradient(to right,rgba(255,255,255,0) 0,rgba(255,255,255,.3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
}

.category-section{
	padding-top:0px !important;
}
.div-no-padding{
	padding-bottom: 0px !important;
}
.row-tieu-chi .medium-3 .col-inner{
	border: 3px solid #ddd;
    padding: 15px 20px;
}
.row-tieu-chi .medium-3 .col-inner:hover{
		border: 3px solid #5BC0DE;
}
#woocommerce_product_categories-2 ul.product-categories ul.children li a{
	width: 80%;
}
#woocommerce_product_categories-2 ul.product-categories ul.children ul.children li a{
	padding-left:10px;
}
#woocommerce_product_categories-2 ul.product-categories ul.children ul.children li a:before{
	font-family: fontawesome;
	content: "\f04d";
	font-size:8px;
	padding-right:5px;
}
#woocommerce_product_categories-2 ul.product-categories > li.active>.toggle {
    margin-top: 12px;
    -ms-transform: rotate(0deg);
    transform: rotate(90deg);
    /* padding-top: 26px; */
}
#woocommerce_product_categories-2 ul.product-categories ul.children{

	    margin: 0 0 0px 3px;
}
#woocommerce_product_categories-2 ul.product-categories > li > .toggle > i.icon-angle-down:before{
	font-family: fontawesome !important;
	content: "\f0da" !important;
	color: white;
	opacity: 1;
} 
ul.product-categories{
	    border: 1px solid #ccc;
}
#woocommerce_product_categories-2 ul.product-categories > li .toggle{
opacity: 1;
	padding-right: 20px;
}
#woocommerce_product_categories-2 ul.product-categories > li > a{
	padding-left: 29px;
}

#woocommerce_product_categories-2 ul.product-categories > li > ul.children > li{
	    border-bottom: 1px dotted #555;
      padding: 6px 0 6px 4px;
 	background: #f4fafb;
}
#woocommerce_product_categories-2 ul.product-categories > li ul.children li:hover{
	background:#D9EDF7;
}
#woocommerce_product_categories-2 ul.product-categories > li ul.children{
    padding-left: 0px;
    background: #f4fafb;
    border-left: none;
    margin-left: 0px;
}
#woocommerce_product_categories-2 ul.product-categories ul.children{
	font-size:16px;
}
#woocommerce_product_categories-2 ul.product-categories > li > a{


    padding: 7px;
    text-transform: uppercase;
}

#woocommerce_product_categories-2{
	    margin-bottom: 10px !important;
    margin-left: 0 !important;
    border: none;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    padding: 0px;
}

.header-bottom-nav li{margin:0}
.header-bottom-nav li a{padding-left:15px; padding-right:15px; line-height:30px; font-size:17px;color: #414141; }
.nav-dropdown-default {
    padding: 10px;
}
.copyright-footer{
    color: white;
}

.success-color {
    color: white;
    background: #5F3916;
    padding: 10px;

    font-size: 15px;

}.cart_totals  span.amountt{color:red}
.address-field{width:100% !important}
input[type='email'], input[type='search'], input[type='number'], input[type='url'], input[type='tel'], input[type='text'], textarea{    margin-bottom: 0; font-size:15px; box-shadow:none;}
.blog-single .entry-meta .danh-muc{display: block;
    margin-bottom: 6px;}
.blog-single .the-tim-kiem a{background: #e4e4e4;
    padding: 5px;
    color: #6e6e6e;
    margin-bottom: 5px;
}
.blog-single .the-tim-kiem a:hover{background: #5f3916; color:white}
.archive-page-header{
    display: block !important;
}
.blog-single, .thuong-hieu .col, .blog-single .col{padding-bottom:0}
.blog-single .article-inner .entry-meta{font-size:15px}
.blog-single .entry-content{padding:0}
.flickity-prev-next-button{top:24%}
.thuong-hieu .section-title-container{margin-bottom:0}
.thuong-hieu {padding-bottom:20px !important}
.blog-single .post-sidebar{padding-left:0}
.blog-archive h1.page-title{font-size:22px; color:#5f3916}
.blog-archive .post-item .box-text .post-title:hover{color:#5f3916 !important}
.blog-archive .post-item .box{    border: 1px solid #e5e6ec;background: white}
.blog-archive .large-9 .badge {display:none}
.recent-blog-posts-li .badge-inner{border-radius:99%}
.recent-blog-posts-li a{font-size:15px}
.blog-archive .post-sidebar{padding-right:0}
.row-lien-he .cot1 input[type='tel']{margin-bottom:0; border-radius:4px}
.wpcf7-submit{font-size:15px !important; font-weight:normal !important; border-radius:3px !important; text-transform:none !important}
.row-lien-he input[type='tel'], .row-lien-he input[type='text'], .row-lien-he textarea {margin-bottom:10px}
.woocommerce .is-well{padding:20px; font-size:15px}
.woocommerce-order-details h2, .woocommerce-customer-details h2{font-size:18px}
#order_review button{border-radius:4px; font-weight:normal; text-transform:none}
.has-border {
    border: 2px solid #446084;
    padding: 15px 20px 11px;
}

.cart_totals .button{    font-weight: normal;
    text-transform: none; border-radius:4px}
.continue-shopping a, .continue-shopping button{    font-weight: normal;
    text-transform: none;}

.widget_shopping_cart .button{text-transform:none; font-weight:normal; font-size:15px}


.header-block{padding-top:5px !important}

.header-button a{line-height:20px}
li.html input{height:40px; box-shadow: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 3px;}
.header-cart-icon img{max-width:40px}

.row-tieu-chi{margin-top:17px !important
}
span.amount {
    color: #9d2326;
    font-size: 18px;
}
.footer-secondary{padding:0}
.footer-section {border-top:1px solid #ececec}
.danh-muc-sp-section .product-category .box-image .image-cover{border-radius:10px}
.danh-muc-sp-section .col, .tin-tuc .col{padding-bottom:0}
.danh-muc-sp-section .product-category .box-text{    padding: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-image: linear-gradient(#0087ff00, #000000);
    padding-top: 50px;}
.danh-muc-sp-section .product-category .image-cover{
    border: 3px solid white;}
.danh-muc-sp-section .product-category .col-innerr:hover {border-bottom:2px solid gray}
.row-tieu-chi .icon-box{line-height:20px}
.nav>li.header-divider{margin:0}
.div-tong-dai{
    text-align: center;
    font-weight: bold;
    font-size: 19px;
    color: #5F3916;
}
.flatsome_recent_posts ul{
        border: 1px solid #ccc;
}
.widget .current-cat>a {
    color: #5F3916;
    font-weight: bolder;
}
ul.header-nav-main .header-button a.header-cart-link{
        color: #5F3916;
    border: 2px solid #5F3916;
    font-size: 14px;
    line-height: 35px;
    padding-left: 8px;
    padding-right: 8px;
}
.div-tong-dai .span-hotline{
    color: #f00;
    font-size: 23px;
}

.section-title-container {
    margin-bottom: 10px;
}
.tin-tuc{padding-top:10px; padding-bottom:0 !important}

.section-title a:hover{color:red}
.star-rating span:before, .star-rating:before, .woocommerce-page .star-rating:before {
	color: #ffac00;}
.category-section .product-small .box-text .price ins span, .single-product .product-info .price ins span{font-size:18px; font-weight:bold; color:red; font-family: "barlow", sans-serif;}
.single-product .product-info .cart{margin-bottom:0}
.single-product .product-info .price del span{color:gray;}

.product-small .box-text .product-title {

    height: 42px;
    overflow: hidden;
}
.product-page-price span.amount{
    font-size: 25px !important;
}

.archive .product-small.box .product-title a {color:black !important;}
.recent-blog-posts-li{padding:0 8px}
.category-section .recent-blog-posts-li a {
    font-size: 14px;
    margin-bottom: 0;
    color: black;
}
.widget_nav_menu{padding:0 !important}

.tin-tuc .post-item .post-title{font-size:17px}
.related .product-small.box .box-text, .archive .product-small.box .box-text{padding: 10px 0}
.related .product-small.box .price ins span, .archive .product-small.box .price ins span{color:red; font-family:"barlow", sans-serif; font-size:19px}

.tin-tuc .post-item .box-image .image-cover{border-radius:10px}
.banner-section img{border-radius:10px}
.category-section .product-small .box-text{padding:6px; padding-bottom:10px}

.section-title a{font-size:15px; font-weight:normal}
.header-block .icon-box .icon-box-text{    padding-left: 5px;
    font-size: 15px;
    line-height: 19px;
    padding-top: 4px;}
.product-main {
    padding: 20px 0;
}



.single-product .product-short-description p{margin-bottom:5px}
.dark .breadcrumbs {
    color: #40e8ffe6;
    font-weight: normal;
}
.woocommerce-ordering select{font-size:15px}
.single-product .product-short-description{ overflow:hidden; font-size: 14px;
    background: #f8f8f8;
    padding: 10px; margin-bottom:20px;
    color: #414141;}
.single-product .zoom-button{border: 1px solid currentColor !important;}

.single-product #product-sidebar{padding-bottom:0; border-right:0; padding-right:10px}

.widget_product_categories li a{color:black}
.widget_product_categories li{font-size:16px}
.row.category-page-row .large-3{padding-right:0}

.single-product .product-info .product-title{font-size: 22px;
    color: #0d3d73;}
.single-product .product-info{padding-top:0; padding-bottom:0}
.single-product #review_form_wrapper{margin-bottom:20px}
.single-proudct .comment-form .submit{    font-weight: normal;
    text-transform: none}
.single-product .comment-form{margin-bottom:0 !important}
.single-product .review-form-inner{    padding: 15px 30px 0px;}
.single-product #reviews .large-12{padding-bottom:0px}
.single-product #reviews h3{color:#5f3916}
.single-product .share-icons a{border: 1px solid silver;}
.single-product .product-section-title{    margin: 0;
    letter-spacing: 0;
    text-transform: none;
    font-size: 22px;
    color: #5f3916;}
.product_meta>span {
    display: block;
 font-size: 15px;
}
.widget .is-divider{display:none}


.nav-line-bottom>li>a:before, .nav-line-grow>li>a:before, .nav-line>li>a:before{height:0}
.single-product .product-tabs{font-size:22px; border-bottom:1px solid #eaeaea}
span.devvn_title{font-family:"barlow", sans-serif}
.devvn-popup-title, .popup-customer-info-group .devvn-order-btn{background:#5f3916 !important; font-family:"barlow", sans-serif}
a.devvn_buy_now_style span {
    display: block;
	font-size: 12px;}
a.devvn_buy_now_style strong{font-size:22px; font-weight:normal; font-family:"barlow", sans-serif}
a.devvn_buy_now_style{    max-width: 300px; margin-bottom:5px}
.single-product .badge{width:40px; height:40px}
.single-product .badge-container .badge-inner, .archive .badge-container .badge-inner{border-radius:99%; font-weight:normal; font-size: 14px; background:red}
.devvn_readmore_taxonomy_flatsome a{text-align:left}
.devvn_readmore_flatsome a {

    text-align: left;
    margin-bottom: 10px;
}
.single-product .badge-container, .archive .badge-container{margin:10px;}
.product-gallery-slider img{    border: 1px solid #eaeaea;}
.single_add_to_cart_button{    background-color: #004a8b;
    text-transform: none;
    font-weight: normal;
    border-radius: 4px;}
.widget_shopping_cart_content{font-size:14px; color:black}
.account-item a{color: #5f3916;
    font-size: 14px;
    text-transform: none;}

.top-bar-nav li a{font-size: 14px;
    padding-left: 7px;
    padding-right: 7px;}
@media(max-width: 855px){
	.off-canvas-left.dark .mfp-content{background: #5f3916}
.icon-box-left .icon-box-img+.icon-box-text {
    padding-left: 5px;
    font-size: 13px;
    line-height: 15px;
}
.danh-muc-sp-section .gap-element{display:none !important}
.danh-muc-sp-section .product-category {flex-basis:50%; max-width:50%;    padding: 0 2.8px 0px; margin-bottom:3px}
.section{    padding-top: 10px !important;
    padding-bottom: 10px !important;}
a.devvn_buy_now_style{max-width:100% !important}
.thong-tin-ban-hang .left, .thong-tin-ban-hang .right{width:100%; padding-right:0; padding-left:0}
.featured-title .page-title-inner {
    padding-bottom: 0px; padding-top:15px;
}
.blog-archive .post-item .post-title{font-size:16px}
.blog-single .post-sidebar{padding-left:15px}
.blog-archive .post-sidebar{padding-right:15px}
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* ============================================================
   TƯỜNG PHÁT HERITAGE v1.0.0
   Visual system: Heritage Luxury / Bronze / Ivory / Charcoal
   ============================================================ */
:root{
  --tp-ink:#17140f;
  --tp-ink-soft:#262118;
  --tp-bronze:#9a652d;
  --tp-bronze-2:#c08a45;
  --tp-bronze-3:#ddb46f;
  --tp-ivory:#f7f2e8;
  --tp-paper:#fffdf8;
  --tp-muted:#756e63;
  --tp-line:rgba(75,58,35,.16);
  --tp-shadow:0 14px 40px rgba(35,27,17,.10);
  --tp-shadow-lg:0 26px 70px rgba(26,20,12,.18);
  --tp-radius:18px;
  --tp-serif:Georgia,"Times New Roman",serif;
  --tp-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
html{scroll-behavior:smooth}
body{font-family:var(--tp-sans);background:var(--tp-paper);color:var(--tp-ink)}
body.home #main{background:var(--tp-paper)}
body.home .page-wrapper{padding-top:0}
body.home .entry-content{padding-top:0}

/* Header refresh while preserving Flatsome Header Builder */
.header-wrapper{box-shadow:0 1px 0 rgba(33,26,17,.08)}
.header-top{background:var(--tp-ink)!important;color:#f7ead7!important}
.header-top a,.header-top .nav>li>a{color:#f7ead7!important}
.header-main{background:rgba(255,253,248,.97)!important;backdrop-filter:saturate(150%) blur(10px)}
.header-main .nav>li>a{color:var(--tp-ink)!important;font-weight:650;letter-spacing:.01em}
.header-main .nav>li>a:hover,.header-main .nav>li.active>a{color:var(--tp-bronze)!important}
.nav-dropdown{border:1px solid var(--tp-line)!important;border-radius:14px!important;box-shadow:var(--tp-shadow-lg)!important;padding:10px!important}
.nav-dropdown>li>a{border:0!important;border-radius:8px;padding:10px 12px!important}
.nav-dropdown>li>a:hover{background:var(--tp-ivory)!important;color:var(--tp-bronze)!important}

/* Homepage shell */
.tp-home{overflow:hidden;background:var(--tp-paper)}
.tp-container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.tp-kicker{display:inline-flex;align-items:center;gap:9px;text-transform:uppercase;letter-spacing:.17em;font-size:12px;font-weight:800;color:var(--tp-bronze)}
.tp-kicker:before{content:"";width:34px;height:1px;background:currentColor}
.tp-title{font-family:var(--tp-serif);font-weight:600;line-height:1.08;letter-spacing:-.025em;color:var(--tp-ink);margin:0}
.tp-section{padding:86px 0}
.tp-section-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:34px}
.tp-section-head .tp-title{font-size:clamp(34px,4vw,54px);max-width:760px}
.tp-section-head p{max-width:540px;color:var(--tp-muted);font-size:16px;line-height:1.75;margin:12px 0 0}
.tp-text-link{display:inline-flex;align-items:center;gap:8px;color:var(--tp-ink)!important;font-weight:750;text-decoration:none;border-bottom:1px solid var(--tp-bronze-2);padding-bottom:5px;white-space:nowrap}
.tp-text-link:hover{color:var(--tp-bronze)!important}

/* Hero */
.tp-hero{position:relative;min-height:680px;background:radial-gradient(circle at 68% 38%,#3c3020 0,#211b13 28%,#12100c 69%);color:#fff;display:flex;align-items:center}
.tp-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,7,5,.93) 0%,rgba(10,8,5,.75) 44%,rgba(10,8,5,.15) 72%,rgba(10,8,5,.45) 100%);z-index:1}
.tp-hero:after{content:"";position:absolute;inset:0;opacity:.18;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(to right,#000,transparent 80%)}
.tp-hero-media{position:absolute;right:0;top:0;width:56%;height:100%;overflow:hidden}
.tp-hero-media img{width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.86) contrast(1.05);transform:scale(1.02)}
.tp-hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#12100c 0,transparent 38%),linear-gradient(0deg,rgba(18,16,12,.55),transparent 45%)}
.tp-hero-inner{position:relative;z-index:2;padding:90px 0 86px;max-width:680px}
.tp-hero .tp-kicker{color:#e2bd7d}
.tp-hero-title{font-family:var(--tp-serif);font-size:clamp(48px,6.3vw,82px);font-weight:600;line-height:.98;letter-spacing:-.036em;margin:20px 0 24px;color:#fff}
.tp-hero-title em{font-style:normal;color:#e3b76e}
.tp-hero-copy{font-size:18px;line-height:1.72;color:rgba(255,255,255,.78);max-width:590px;margin:0 0 32px}
.tp-actions{display:flex;flex-wrap:wrap;gap:12px}
.tp-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:0 22px;border-radius:999px;font-size:14px;font-weight:800;letter-spacing:.015em;text-decoration:none!important;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.tp-btn:hover{transform:translateY(-2px)}
.tp-btn-primary{background:linear-gradient(135deg,var(--tp-bronze-3),var(--tp-bronze));color:#16100a!important;box-shadow:0 12px 30px rgba(154,101,45,.22)}
.tp-btn-primary:hover{box-shadow:0 16px 38px rgba(192,138,69,.32)}
.tp-btn-ghost{border:1px solid rgba(255,255,255,.34);color:#fff!important;background:rgba(255,255,255,.04)}
.tp-btn-ghost:hover{background:rgba(255,255,255,.10)}
.tp-hero-note{display:flex;flex-wrap:wrap;gap:22px;margin-top:42px;color:rgba(255,255,255,.68);font-size:13px}
.tp-hero-note span{display:flex;align-items:center;gap:8px}
.tp-hero-note i{width:7px;height:7px;border-radius:50%;background:#d5a75f;box-shadow:0 0 0 5px rgba(213,167,95,.12)}

/* Trust strip */
.tp-trust{position:relative;z-index:5;margin-top:-34px}
.tp-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--tp-line);border-radius:20px;box-shadow:var(--tp-shadow-lg);overflow:hidden}
.tp-trust-item{padding:26px 24px;border-right:1px solid var(--tp-line)}
.tp-trust-item:last-child{border-right:0}
.tp-trust-item b{display:block;font-family:var(--tp-serif);font-size:23px;margin-bottom:5px;color:var(--tp-ink)}
.tp-trust-item span{font-size:13px;line-height:1.55;color:var(--tp-muted)}

/* Categories */
.tp-cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.tp-cat-card{position:relative;min-height:370px;border-radius:var(--tp-radius);overflow:hidden;background:#211b13;box-shadow:var(--tp-shadow);isolation:isolate}
.tp-cat-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s ease,filter .45s ease;z-index:-2}
.tp-cat-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(17,14,10,.92) 0,rgba(17,14,10,.24) 62%,rgba(17,14,10,.08));z-index:-1}
.tp-cat-card:hover img{transform:scale(1.055);filter:saturate(.9)}
.tp-cat-content{position:absolute;left:0;right:0;bottom:0;padding:25px}
.tp-cat-index{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#dfb979;font-weight:800}
.tp-cat-name{font-family:var(--tp-serif);font-size:28px;line-height:1.12;color:#fff;margin:7px 0 10px}
.tp-cat-meta{color:rgba(255,255,255,.68);font-size:13px}

/* Product cards */
.tp-products{background:var(--tp-ivory)}
.tp-product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.tp-product-card{background:#fff;border:1px solid rgba(86,63,34,.12);border-radius:16px;overflow:hidden;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.tp-product-card:hover{transform:translateY(-5px);box-shadow:var(--tp-shadow-lg);border-color:rgba(154,101,45,.28)}
.tp-product-media{aspect-ratio:1/1;background:#f4efe5;overflow:hidden;position:relative}
.tp-product-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.tp-product-card:hover .tp-product-media img{transform:scale(1.035)}
.tp-product-badge{position:absolute;top:13px;left:13px;background:rgba(23,20,15,.88);color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.tp-product-body{padding:18px 18px 20px}
.tp-product-category{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--tp-bronze);font-weight:800;margin-bottom:7px}
.tp-product-name{font-family:var(--tp-serif);font-size:21px;line-height:1.24;margin:0 0 12px;min-height:52px}
.tp-product-name a{color:var(--tp-ink)!important;text-decoration:none}
.tp-product-price{font-weight:800;color:#7d251d;font-size:15px}
.tp-product-price .price,.tp-product-price .amount{font-weight:800}

/* Story */
.tp-story{background:#16130e;color:#fff;position:relative}
.tp-story:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(190,132,63,.22),transparent 32%),linear-gradient(135deg,transparent 0 56%,rgba(255,255,255,.025) 56% 57%,transparent 57%)}
.tp-story-grid{position:relative;display:grid;grid-template-columns:1.08fr .92fr;gap:70px;align-items:center}
.tp-story .tp-title{font-size:clamp(38px,5vw,62px);color:#fff}
.tp-story p{color:rgba(255,255,255,.70);font-size:16px;line-height:1.8}
.tp-story-list{display:grid;gap:0;border-top:1px solid rgba(255,255,255,.13)}
.tp-story-step{display:grid;grid-template-columns:55px 1fr;gap:18px;padding:21px 0;border-bottom:1px solid rgba(255,255,255,.13)}
.tp-story-step strong{font-family:var(--tp-serif);font-size:25px;color:#d7aa65;font-weight:500}
.tp-story-step b{display:block;font-size:15px;margin-bottom:5px;color:#fff}
.tp-story-step span{display:block;color:rgba(255,255,255,.58);font-size:13px;line-height:1.55}

/* Editorial / articles */
.tp-article-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr;gap:18px}
.tp-article{border:1px solid var(--tp-line);border-radius:16px;overflow:hidden;background:#fff;min-width:0}
.tp-article-media{aspect-ratio:16/10;background:#eee9df;overflow:hidden}
.tp-article:first-child .tp-article-media{aspect-ratio:16/11}
.tp-article-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.tp-article:hover img{transform:scale(1.03)}
.tp-article-body{padding:18px}
.tp-article-date{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--tp-bronze);font-weight:800}
.tp-article-title{font-family:var(--tp-serif);font-size:22px;line-height:1.25;margin:8px 0 0}
.tp-article:first-child .tp-article-title{font-size:28px}
.tp-article-title a{color:var(--tp-ink)!important}

/* Consultation CTA */
.tp-cta{padding:30px 0 88px;background:var(--tp-paper)}
.tp-cta-card{background:linear-gradient(130deg,#302419,#17130f 62%);color:#fff;border-radius:24px;padding:52px;display:flex;align-items:center;justify-content:space-between;gap:40px;box-shadow:var(--tp-shadow-lg);position:relative;overflow:hidden}
.tp-cta-card:after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;right:-110px;top:-150px;border:70px solid rgba(218,171,102,.12)}
.tp-cta-copy{position:relative;z-index:1;max-width:700px}
.tp-cta-copy h2{font-family:var(--tp-serif);font-size:clamp(34px,4vw,50px);line-height:1.08;color:#fff;margin:0 0 12px}
.tp-cta-copy p{color:rgba(255,255,255,.68);margin:0;font-size:15px;line-height:1.7}
.tp-cta-actions{position:relative;z-index:1;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}

/* WooCommerce global polish */
.shop-container .product-small.box,.related-products-wrapper .product-small.box,.upsells .product-small.box{border:1px solid var(--tp-line)!important;border-radius:14px!important;padding:7px!important;background:#fff!important;box-shadow:none!important;transition:.25s ease}
.shop-container .product-small.box:hover,.related-products-wrapper .product-small.box:hover,.upsells .product-small.box:hover{transform:translateY(-3px);box-shadow:var(--tp-shadow)!important;border-color:rgba(154,101,45,.28)!important}
.product-small .box-image{border-radius:10px!important;overflow:hidden}
.product-small .box-text{padding:14px 8px 12px!important}
p.name.product-title a{font-family:var(--tp-serif);font-size:18px!important;font-weight:600!important;line-height:1.3!important;color:var(--tp-ink)!important}
.price-wrapper .price,.price-wrapper .price .amount,.price-lienhe{color:#8c2c22!important;font-weight:800!important}
#product-sidebar .widget-title,#shop-sidebar .widget-title,.post-sidebar .widget-title{background:var(--tp-ink)!important;border-radius:10px!important;color:#fff!important;letter-spacing:.04em}
ul.product-tabs{background:var(--tp-ink)!important;border-radius:10px 10px 0 0}
.tab-panels{border-color:var(--tp-line)!important;border-radius:0 0 12px 12px!important}
.single-product .product-title{font-family:var(--tp-serif)!important;font-size:clamp(30px,4vw,46px)!important;line-height:1.12!important;color:var(--tp-ink)!important}
.single-product .product-gallery .flickity-viewport{border-radius:16px;overflow:hidden}
.custom-consult-form{border-color:var(--tp-line)!important;border-radius:16px!important;box-shadow:var(--tp-shadow)!important}
.custom-consult-form .consult-header{color:var(--tp-ink)!important}
.custom-consult-form .consult-header i,.custom-consult-form .wpcf7-submit{background:linear-gradient(135deg,var(--tp-bronze-2),var(--tp-bronze))!important;color:#fff!important}
.button,.button.primary,input[type=submit]{border-radius:999px!important;font-weight:800!important;letter-spacing:.01em}
.button.primary,input[type=submit]{background-color:var(--tp-bronze)!important}
.button.primary:hover,input[type=submit]:hover{background-color:#7f5124!important}

/* Footer */
.footer-wrapper{background:var(--tp-ink)!important;color:#d7d0c5}
.footer-wrapper .footer,.footer-wrapper .absolute-footer{background:transparent!important;color:#bfb7ab!important}
.footer-wrapper h3,.footer-wrapper h4,.footer-wrapper .widget-title{color:#fff!important;letter-spacing:.04em}
.footer-wrapper a{color:#d9c6a7!important}
.footer-wrapper a:hover{color:#fff!important}
.absolute-footer{border-top:1px solid rgba(255,255,255,.10)!important}

/* Mobile action bar */
.tp-mobile-actions{display:none}
@media (max-width:849px){
  body{padding-bottom:66px}
  .tp-mobile-actions{position:fixed;display:grid;grid-template-columns:repeat(4,1fr);left:10px;right:10px;bottom:8px;z-index:9998;background:rgba(20,17,13,.94);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.13);border-radius:18px;box-shadow:0 12px 35px rgba(0,0,0,.28);overflow:hidden;padding:5px}
  .tp-mobile-actions a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:50px;color:#fff!important;text-decoration:none;font-size:10px;font-weight:700;border-radius:12px}
  .tp-mobile-actions a:hover{background:rgba(255,255,255,.08)}
  .tp-mobile-actions b{font-size:18px;line-height:1}
  .tp-hero{min-height:auto}
  .tp-hero-media{width:100%;opacity:.52}
  .tp-hero:before{background:linear-gradient(90deg,rgba(10,8,5,.94),rgba(10,8,5,.70))}
  .tp-hero-inner{padding:76px 0 95px;max-width:100%}
  .tp-hero-title{font-size:clamp(42px,12vw,64px)}
  .tp-trust-grid{grid-template-columns:1fr 1fr}
  .tp-trust-item:nth-child(2){border-right:0}.tp-trust-item:nth-child(-n+2){border-bottom:1px solid var(--tp-line)}
  .tp-cat-grid,.tp-product-grid{grid-template-columns:1fr 1fr}
  .tp-cat-card{min-height:310px}
  .tp-story-grid{grid-template-columns:1fr;gap:42px}
  .tp-article-grid{grid-template-columns:1fr 1fr}.tp-article:first-child{grid-column:1/-1}
  .tp-cta-card{padding:40px 30px;align-items:flex-start;flex-direction:column}.tp-cta-actions{justify-content:flex-start}
}
@media (max-width:549px){
  .tp-container{width:min(100% - 28px,1180px)}
  .tp-section{padding:64px 0}
  .tp-section-head{display:block;margin-bottom:26px}.tp-section-head .tp-title{font-size:36px}.tp-section-head .tp-text-link{margin-top:18px}
  .tp-hero-inner{padding:62px 0 84px}.tp-hero-copy{font-size:16px}.tp-actions{display:grid;grid-template-columns:1fr 1fr}.tp-btn{padding:0 14px}
  .tp-hero-note{gap:12px 18px}
  .tp-trust{margin-top:-24px}.tp-trust-item{padding:18px 16px}.tp-trust-item b{font-size:19px}
  .tp-cat-grid{gap:12px}.tp-cat-card{min-height:255px}.tp-cat-content{padding:17px}.tp-cat-name{font-size:22px}
  .tp-product-grid{gap:12px}.tp-product-body{padding:13px}.tp-product-name{font-size:18px;min-height:45px}.tp-product-category{font-size:9px}
  .tp-story-step{grid-template-columns:42px 1fr}.tp-story-step strong{font-size:21px}
  .tp-article-grid{grid-template-columns:1fr}.tp-article:first-child{grid-column:auto}.tp-article:first-child .tp-article-title{font-size:24px}
  .tp-cta{padding-bottom:72px}.tp-cta-card{padding:32px 22px;border-radius:18px}.tp-cta-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .header-main .nav>li>a{font-size:13px}
}


/* =========================================
   TƯỜNG PHÁT HERITAGE v1.2.0
   Tinh gọn hơn, web-like hơn, đầu mục rõ hơn,
   danh mục có chiều sâu 3D nhẹ, đủ thông tin sản phẩm.
   ========================================= */

body.tp-heritage-active{
  --tp-serif:"Be Vietnam Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --tp-sans:"Be Vietnam Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --tp-ink:#181512;
  --tp-ink-soft:#27211b;
  --tp-bronze:#8b5a2a;
  --tp-bronze-2:#b47a3a;
  --tp-bronze-3:#d2a15c;
  --tp-ivory:#f6f2ea;
  --tp-paper:#fffdfa;
  --tp-muted:#6e665d;
  --tp-line:rgba(74,58,37,.12);
  --tp-shadow:0 10px 28px rgba(24,18,12,.08);
  --tp-shadow-lg:0 18px 46px rgba(24,18,12,.14);
  --tp-radius:16px;
}
body.tp-heritage-active,
body.tp-heritage-active .nav>li>a,
body.tp-heritage-active .button,
body.tp-heritage-active input,
body.tp-heritage-active textarea,
body.tp-heritage-active select{font-family:var(--tp-sans)}
body.tp-heritage-active h1,
body.tp-heritage-active h2,
body.tp-heritage-active h3,
body.tp-heritage-active h4,
body.tp-heritage-active .tp-title,
body.tp-heritage-active .tp-product-name,
body.tp-heritage-active .tp-article-title,
body.tp-heritage-active .single-product .product-title,
body.tp-heritage-active p.name.product-title a{font-family:var(--tp-sans)!important;letter-spacing:-.02em}

body.tp-heritage-active .header-main .nav>li>a{font-size:14px;font-weight:700;letter-spacing:.01em;text-transform:none}
body.tp-heritage-active .nav-dropdown>li>a{font-size:14px}

body.tp-heritage-active .tp-container{width:min(1220px,calc(100% - 40px))}
body.tp-heritage-active .tp-kicker{font-size:11px;letter-spacing:.14em;color:var(--tp-bronze-2)}
body.tp-heritage-active .tp-title{font-size:clamp(30px,3.2vw,42px)!important;font-weight:800;line-height:1.18}
body.tp-heritage-active .tp-section{padding:70px 0}
body.tp-heritage-active .tp-section-head{align-items:flex-end;gap:24px;margin-bottom:28px}
body.tp-heritage-active .tp-section-head p{font-size:15px;line-height:1.75;color:var(--tp-muted)}
body.tp-heritage-active .tp-text-link{font-size:14px;border-bottom-width:2px}

body.tp-heritage-active .tp-hero{min-height:560px;background:linear-gradient(90deg,#f3ece1 0%,#efe5d5 50%,#ddc6a5 100%);color:var(--tp-ink)}
body.tp-heritage-active .tp-hero:before{background:linear-gradient(90deg,rgba(255,250,244,.96) 0%,rgba(255,250,244,.88) 42%,rgba(255,250,244,.15) 72%,rgba(255,250,244,.05) 100%)}
body.tp-heritage-active .tp-hero:after{display:none}
body.tp-heritage-active .tp-hero-media{width:45%}
body.tp-heritage-active .tp-hero-media img{filter:saturate(.92) contrast(1.02)}
body.tp-heritage-active .tp-hero-media:after{background:linear-gradient(90deg,rgba(246,242,234,.85) 0%,rgba(246,242,234,.05) 50%),linear-gradient(0deg,rgba(59,43,29,.12),rgba(59,43,29,.12))}
body.tp-heritage-active .tp-hero-inner{padding:68px 0 62px;max-width:620px}
body.tp-heritage-active .tp-hero .tp-kicker{color:var(--tp-bronze)}
body.tp-heritage-active .tp-hero-title{font-size:clamp(38px,4.7vw,56px);font-weight:800;line-height:1.12;color:var(--tp-ink);margin:16px 0 18px}
body.tp-heritage-active .tp-hero-title em{color:var(--tp-bronze-2)}
body.tp-heritage-active .tp-hero-copy{color:var(--tp-muted);font-size:17px;line-height:1.8;max-width:560px;margin-bottom:26px}
body.tp-heritage-active .tp-hero-note{margin-top:26px;font-size:13px;color:#655847;gap:14px 18px}
body.tp-heritage-active .tp-hero-note i{background:var(--tp-bronze);box-shadow:0 0 0 4px rgba(154,101,45,.12)}

body.tp-heritage-active .tp-btn{min-height:46px;border-radius:10px;padding:0 18px;font-size:13px;font-weight:800;box-shadow:none}
body.tp-heritage-active .tp-btn-primary{background:linear-gradient(180deg,var(--tp-bronze-2),var(--tp-bronze));color:#fff!important}
body.tp-heritage-active .tp-btn-ghost{border:1px solid rgba(94,73,48,.22);color:var(--tp-ink)!important;background:#fff}
body.tp-heritage-active .tp-btn:hover{transform:translateY(-1px)}

body.tp-heritage-active .tp-trust{margin-top:-20px}
body.tp-heritage-active .tp-trust-grid{border-radius:14px;box-shadow:var(--tp-shadow);background:#fff}
body.tp-heritage-active .tp-trust-item{padding:20px 18px}
body.tp-heritage-active .tp-trust-item b{font-size:18px;font-weight:800}
body.tp-heritage-active .tp-trust-item span{font-size:13px}

body.tp-heritage-active .tp-cat-grid{grid-template-columns:repeat(4,1fr);gap:20px;perspective:1600px}
body.tp-heritage-active .tp-cat-card{min-height:330px;border-radius:18px;background:#271d15;border:1px solid rgba(255,255,255,.15);box-shadow:0 18px 40px rgba(27,20,13,.16), inset 0 1px 0 rgba(255,255,255,.08);transform:translateY(0) rotateX(0) rotateY(0);transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;}
body.tp-heritage-active .tp-cat-card:before{content:"";position:absolute;inset:0;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 26%,rgba(0,0,0,.12) 100%);z-index:-1}
body.tp-heritage-active .tp-cat-card:after{background:linear-gradient(180deg,rgba(255,255,255,.05) 0%,rgba(26,18,12,.08) 26%,rgba(26,18,12,.88) 100%)}
body.tp-heritage-active .tp-cat-card:hover{transform:translateY(-6px) rotateX(2deg);box-shadow:0 28px 54px rgba(27,20,13,.22), 0 0 0 1px rgba(210,161,92,.18)}
body.tp-heritage-active .tp-cat-card img{filter:saturate(.9) contrast(1.03)}
body.tp-heritage-active .tp-cat-content{padding:22px}
body.tp-heritage-active .tp-cat-index{font-size:10px;letter-spacing:.14em;color:#e3be7f}
body.tp-heritage-active .tp-cat-name{font-size:24px;font-weight:800;line-height:1.18;color:#fff;margin:8px 0}
body.tp-heritage-active .tp-cat-meta{font-size:13px;color:rgba(255,255,255,.8)}

body.tp-heritage-active .tp-products{background:var(--tp-ivory)}
body.tp-heritage-active .tp-product-grid{grid-template-columns:repeat(4,1fr);gap:20px}
body.tp-heritage-active .tp-product-card{border-radius:16px;border:1px solid var(--tp-line);box-shadow:var(--tp-shadow);display:flex;flex-direction:column;height:100%}
body.tp-heritage-active .tp-product-card:hover{transform:translateY(-4px);box-shadow:var(--tp-shadow-lg)}
body.tp-heritage-active .tp-product-media{aspect-ratio:1/1;background:#f3ede2}
body.tp-heritage-active .tp-product-badge{border-radius:10px;padding:5px 10px;top:12px;left:12px;background:rgba(35,29,21,.92);font-size:9px;letter-spacing:.1em}
body.tp-heritage-active .tp-product-body{padding:16px 16px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
body.tp-heritage-active .tp-product-category{font-size:10px;letter-spacing:.12em;color:var(--tp-bronze-2)}
body.tp-heritage-active .tp-product-name{font-size:18px;line-height:1.4;margin:0;min-height:50px;font-weight:800}
body.tp-heritage-active .tp-product-desc{font-size:13px;line-height:1.65;color:var(--tp-muted);min-height:42px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.tp-heritage-active .tp-product-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:auto;padding-top:4px}
body.tp-heritage-active .tp-product-price{font-size:15px;font-weight:800;color:#84271f}
body.tp-heritage-active .tp-product-more{font-size:12px;font-weight:800;color:var(--tp-ink)!important;text-decoration:none;border-bottom:1px solid rgba(139,90,42,.4)}
body.tp-heritage-active .tp-product-more:hover{color:var(--tp-bronze)!important}

body.tp-heritage-active .tp-story{background:#191510}
body.tp-heritage-active .tp-story .tp-title{font-size:clamp(30px,3.3vw,42px)!important}
body.tp-heritage-active .tp-story p{font-size:15px}
body.tp-heritage-active .tp-story-step{grid-template-columns:48px 1fr;padding:18px 0}
body.tp-heritage-active .tp-story-step strong{font-size:20px;font-weight:800}
body.tp-heritage-active .tp-story-step b{font-size:14px;font-weight:800}
body.tp-heritage-active .tp-story-step span{font-size:13px}

body.tp-heritage-active .tp-article-grid{grid-template-columns:1.2fr 1fr 1fr;gap:20px}
body.tp-heritage-active .tp-article{border-radius:16px;box-shadow:var(--tp-shadow)}
body.tp-heritage-active .tp-article-body{padding:16px}
body.tp-heritage-active .tp-article-date{font-size:10px;letter-spacing:.1em}
body.tp-heritage-active .tp-article-title{font-size:20px;font-weight:800;line-height:1.35}
body.tp-heritage-active .tp-article:first-child .tp-article-title{font-size:24px}

body.tp-heritage-active .tp-cta{padding:24px 0 84px}
body.tp-heritage-active .tp-cta-card{padding:36px 40px;border-radius:20px;box-shadow:var(--tp-shadow-lg)}
body.tp-heritage-active .tp-cta-copy h2{font-size:clamp(28px,3vw,38px);font-weight:800;line-height:1.25}
body.tp-heritage-active .tp-cta-copy p{font-size:15px}

body.tp-heritage-active .shop-container .product-small.box,
body.tp-heritage-active .related-products-wrapper .product-small.box,
body.tp-heritage-active .upsells .product-small.box{border-radius:14px!important;box-shadow:var(--tp-shadow)!important;padding:8px!important}
body.tp-heritage-active p.name.product-title a{font-size:16px!important;font-weight:800!important}
body.tp-heritage-active .price-wrapper{margin-top:4px}
body.tp-heritage-active .single-product .product-title{font-size:clamp(28px,3vw,38px)!important;font-weight:800!important}

body.tp-heritage-active .footer-wrapper{background:#211b16!important}
body.tp-heritage-active .absolute-footer{background:#181411!important;color:#d7cec1}

@media (max-width: 849px){
  body.tp-heritage-active .tp-container{width:min(100% - 28px,1220px)}
  body.tp-heritage-active .tp-section{padding:54px 0}
  body.tp-heritage-active .tp-title{font-size:30px!important}
  body.tp-heritage-active .tp-hero{min-height:auto}
  body.tp-heritage-active .tp-hero-media{width:100%;opacity:.38}
  body.tp-heritage-active .tp-hero-media:after{background:linear-gradient(90deg,rgba(246,242,234,.95) 0%,rgba(246,242,234,.75) 55%,rgba(246,242,234,.28) 100%)}
  body.tp-heritage-active .tp-hero-inner{padding:56px 0 78px;max-width:100%}
  body.tp-heritage-active .tp-hero-title{font-size:34px}
  body.tp-heritage-active .tp-hero-copy{font-size:15px}
  body.tp-heritage-active .tp-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  body.tp-heritage-active .tp-btn{padding:0 12px;font-size:12px}
  body.tp-heritage-active .tp-trust-grid{grid-template-columns:1fr 1fr}
  body.tp-heritage-active .tp-trust-item:nth-child(2){border-right:0}
  body.tp-heritage-active .tp-trust-item:nth-child(-n+2){border-bottom:1px solid var(--tp-line)}
  body.tp-heritage-active .tp-cat-grid,.tp-product-grid{grid-template-columns:1fr 1fr!important;gap:12px}
  body.tp-heritage-active .tp-cat-card{min-height:250px}
  body.tp-heritage-active .tp-cat-content{padding:16px}
  body.tp-heritage-active .tp-cat-name{font-size:20px}
  body.tp-heritage-active .tp-product-name{font-size:16px;min-height:44px}
  body.tp-heritage-active .tp-product-desc{font-size:12px;min-height:38px}
  body.tp-heritage-active .tp-story-grid{grid-template-columns:1fr;gap:38px}
  body.tp-heritage-active .tp-article-grid{grid-template-columns:1fr}
  body.tp-heritage-active .tp-cta-card{padding:28px 22px;flex-direction:column;align-items:flex-start;gap:18px}
  body.tp-heritage-active .tp-cta-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;justify-content:flex-start}
}


/* =========================================
   v1.2.0 — SINGLE PRODUCT + SHOP SYNC
   ========================================= */
body.tp-heritage-active.single-product #main,
body.tp-heritage-active.woocommerce-shop #main,
body.tp-heritage-active.tax-product_cat #main{background:#f8f5ef}

/* Breadcrumb / product shell */
body.tp-heritage-active.single-product .product-main{padding:34px 0 42px}
body.tp-heritage-active.single-product .product-main .row.content-row{align-items:flex-start}
body.tp-heritage-active.single-product .woocommerce-breadcrumb,
body.tp-heritage-active.single-product .breadcrumbs{font-size:12px;color:#80786e;margin-bottom:16px}
body.tp-heritage-active.single-product .woocommerce-breadcrumb a,
body.tp-heritage-active.single-product .breadcrumbs a{color:#6d6256}

/* Gallery */
body.tp-heritage-active.single-product .product-gallery .product-images,
body.tp-heritage-active.single-product .product-gallery .woocommerce-product-gallery{background:#fff;border:1px solid var(--tp-line);border-radius:20px;padding:14px;box-shadow:var(--tp-shadow)}
body.tp-heritage-active.single-product .product-gallery .woocommerce-product-gallery__image img{border-radius:14px;background:#f3ede3}
body.tp-heritage-active.single-product .product-thumbnails a,
body.tp-heritage-active.single-product .product-thumbnails .col{border-radius:10px;overflow:hidden}

/* Summary card */
body.tp-heritage-active.single-product .product-info.summary{background:#fff;border:1px solid var(--tp-line);border-radius:20px;padding:26px 28px!important;box-shadow:var(--tp-shadow)}
body.tp-heritage-active.single-product .tp-single-eyebrow{font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--tp-bronze-2);margin-bottom:8px}
body.tp-heritage-active.single-product .product-title{font-size:clamp(28px,3vw,40px)!important;font-weight:800!important;line-height:1.25!important;margin:0 0 12px!important}
body.tp-heritage-active.single-product .is-divider{display:none}
body.tp-heritage-active.single-product .price-wrapper,
body.tp-heritage-active.single-product .price{margin:6px 0 14px}
body.tp-heritage-active.single-product .price,
body.tp-heritage-active.single-product .price .amount,
body.tp-heritage-active.single-product .price-lienhe{font-size:20px!important;font-weight:800!important;color:#8b2b21!important}
body.tp-heritage-active.single-product .product-short-description{font-size:15px;line-height:1.8;color:#625b53;padding:14px 0 8px;border-top:1px solid var(--tp-line)}
body.tp-heritage-active.single-product .product-short-description p:last-child{margin-bottom:0}
body.tp-heritage-active.single-product .product_meta{border-top:1px solid var(--tp-line);padding-top:14px;margin-top:16px;font-size:12px;color:#81786f}
body.tp-heritage-active.single-product .social-icons{margin-top:8px}

/* Trust + quick specs */
body.tp-heritage-active .tp-single-trust{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 16px}
body.tp-heritage-active .tp-single-trust span{display:inline-flex;align-items:center;gap:6px;background:#f7f2e9;border:1px solid #eadfce;border-radius:10px;padding:8px 10px;font-size:12px;color:#4f473f;font-weight:700}
body.tp-heritage-active .tp-single-trust b{color:#8d5b2d}
body.tp-heritage-active .tp-quick-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0 16px}
body.tp-heritage-active .tp-quick-spec{border:1px solid var(--tp-line);background:#fffdf9;border-radius:12px;padding:10px 12px;min-width:0}
body.tp-heritage-active .tp-quick-spec small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#8a8178;font-weight:700;margin-bottom:4px}
body.tp-heritage-active .tp-quick-spec strong{display:block;font-size:13px;color:#25211d;line-height:1.4;white-space:normal}

/* Cart / quantity if enabled */
body.tp-heritage-active.single-product form.cart{padding:14px 0 4px;margin:0;border-top:1px solid var(--tp-line)}
body.tp-heritage-active.single-product form.cart .button{border-radius:10px!important;min-height:46px;font-size:13px;font-weight:800}
body.tp-heritage-active.single-product .quantity .minus,
body.tp-heritage-active.single-product .quantity .plus,
body.tp-heritage-active.single-product .quantity input{min-height:44px}

/* Premium consult */
body.tp-heritage-active .tp-single-consult{margin:18px 0 6px;border:1px solid rgba(139,90,42,.22);background:linear-gradient(180deg,#fffdf9,#f8f1e5);border-radius:16px;padding:16px}
body.tp-heritage-active .tp-single-consult-head{display:flex;gap:11px;align-items:center}
body.tp-heritage-active .tp-single-consult-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#2a2119;color:#fff;font-size:17px;flex:0 0 38px}
body.tp-heritage-active .tp-single-consult-head b{display:block;font-size:14px;color:#211c18;margin-bottom:3px}
body.tp-heritage-active .tp-single-consult-head span{display:block;font-size:12px;color:#746a60;line-height:1.45}
body.tp-heritage-active .tp-single-consult-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}
body.tp-heritage-active .tp-single-consult-actions a{min-height:42px;display:flex;align-items:center;justify-content:center;border-radius:9px;font-size:12px;font-weight:800;text-decoration:none!important}
body.tp-heritage-active .tp-single-call{background:linear-gradient(180deg,var(--tp-bronze-2),var(--tp-bronze));color:#fff!important}
body.tp-heritage-active .tp-single-zalo{background:#fff;color:#27211b!important;border:1px solid var(--tp-line)}
body.tp-heritage-active .tp-single-form-wrap{margin-top:12px}
body.tp-heritage-active .tp-single-form-wrap .wpcf7 form{margin:0}
body.tp-heritage-active .tp-single-form-wrap .wpcf7 p{margin:0 0 8px}
body.tp-heritage-active .tp-single-form-wrap input[type=text],
body.tp-heritage-active .tp-single-form-wrap input[type=tel],
body.tp-heritage-active .tp-single-form-wrap input[type=email]{height:42px;border-radius:9px;border:1px solid #ddd2c2;background:#fff;font-size:13px;box-shadow:none}
body.tp-heritage-active .tp-single-form-wrap input[type=submit]{width:100%;margin:0;border-radius:9px!important;min-height:42px;font-size:12px;font-weight:800;background:#2a2119!important}

/* Strip between top product and tabs */
body.tp-heritage-active .tp-single-servicebar{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#fff;border:1px solid var(--tp-line);border-radius:18px;box-shadow:var(--tp-shadow);margin:0 0 28px;overflow:hidden}
body.tp-heritage-active .tp-single-service-item{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:18px;border-right:1px solid var(--tp-line)}
body.tp-heritage-active .tp-single-service-item:last-child{border-right:0}
body.tp-heritage-active .tp-single-service-item>b{font-size:12px;color:var(--tp-bronze-2);font-weight:800}
body.tp-heritage-active .tp-single-service-item strong{display:block;font-size:13px;color:#28231f;margin-bottom:3px}
body.tp-heritage-active .tp-single-service-item span{display:block;font-size:11px;line-height:1.45;color:#7a7168}

/* Product content tabs */
body.tp-heritage-active.single-product .product-footer{background:#f8f5ef;padding:0 0 72px}
body.tp-heritage-active.single-product .product-footer>.container{max-width:1220px}
body.tp-heritage-active.single-product .product-tabs{display:flex;gap:6px;background:transparent!important;padding:0!important;margin:0 0 10px!important;overflow-x:auto;border:0!important}
body.tp-heritage-active.single-product .product-tabs li{margin:0!important;flex:0 0 auto}
body.tp-heritage-active.single-product .product-tabs li a{display:flex!important;align-items:center;min-height:44px;padding:0 16px!important;border-radius:10px!important;background:#ece4d8!important;color:#544b42!important;font-size:12px!important;font-weight:800!important;border:1px solid transparent!important;text-transform:none!important}
body.tp-heritage-active.single-product .product-tabs li.active a{background:#2b241e!important;color:#fff!important;border-color:#2b241e!important}
body.tp-heritage-active.single-product .tab-panels{background:#fff!important;border:1px solid var(--tp-line)!important;border-radius:16px!important;padding:28px!important;box-shadow:var(--tp-shadow);font-size:15px;line-height:1.85;color:#4f4943}
body.tp-heritage-active.single-product .tab-panels h2,
body.tp-heritage-active.single-product .tab-panels h3{color:#211d19;font-weight:800;line-height:1.35}
body.tp-heritage-active.single-product .tab-panels h2{font-size:25px}
body.tp-heritage-active.single-product .tab-panels h3{font-size:20px}
body.tp-heritage-active.single-product .tab-panels img{border-radius:12px;margin:10px auto}
body.tp-heritage-active.single-product .shop_attributes{border:0}
body.tp-heritage-active.single-product .shop_attributes th,
body.tp-heritage-active.single-product .shop_attributes td{padding:12px 14px;border-bottom:1px solid var(--tp-line);font-size:13px}
body.tp-heritage-active.single-product .shop_attributes th{background:#f8f5ef;color:#332c26;font-weight:800;width:32%}
body.tp-heritage-active .tp-support-tab h3{font-size:22px;margin:0 0 16px}
body.tp-heritage-active .tp-support-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
body.tp-heritage-active .tp-support-grid>div{border:1px solid var(--tp-line);border-radius:12px;padding:15px;background:#fffdf9}
body.tp-heritage-active .tp-support-grid b{display:block;font-size:13px;color:#2c2621;margin-bottom:5px}
body.tp-heritage-active .tp-support-grid span{display:block;font-size:12px;line-height:1.6;color:#766d64}

/* Related / upsells */
body.tp-heritage-active.single-product .related-products-wrapper,
body.tp-heritage-active.single-product .upsells{margin-top:34px}
body.tp-heritage-active.single-product .related-products-wrapper h3.product-section-title,
body.tp-heritage-active.single-product .upsells h3.product-section-title{font-size:26px!important;font-weight:800!important;letter-spacing:-.02em;text-transform:none;color:#211d19;border:0;margin-bottom:18px}

/* Shop & category */
body.tp-heritage-active.woocommerce-shop .shop-page-title,
body.tp-heritage-active.tax-product_cat .shop-page-title{background:#fff;border-bottom:1px solid var(--tp-line);padding:18px 0}
body.tp-heritage-active .tp-shop-intro{background:#fff;border:1px solid var(--tp-line);border-radius:16px;padding:18px 20px;margin:0 0 22px;box-shadow:var(--tp-shadow)}
body.tp-heritage-active .tp-shop-intro span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--tp-bronze-2);font-weight:800;margin-bottom:5px}
body.tp-heritage-active .tp-shop-intro strong{display:block;font-size:22px;line-height:1.25;color:#211d19;margin-bottom:5px}
body.tp-heritage-active .tp-shop-intro p{font-size:13px;color:#746b62;margin:0;line-height:1.6}
body.tp-heritage-active .category-page-row{padding-top:28px}
body.tp-heritage-active .shop-container .product-small.box{height:100%;display:flex;flex-direction:column;background:#fff!important;border-radius:15px!important;box-shadow:var(--tp-shadow)!important;border:1px solid var(--tp-line)!important}
body.tp-heritage-active .shop-container .box-image{background:#f3ede3;border-radius:11px;overflow:hidden;margin:0}
body.tp-heritage-active .shop-container .box-text{padding:14px 10px 12px!important;display:flex;flex-direction:column;flex:1}
body.tp-heritage-active .shop-container p.name.product-title{margin:0 0 8px}
body.tp-heritage-active .shop-container p.name.product-title a{font-size:15px!important;line-height:1.45!important;font-weight:800!important}
body.tp-heritage-active .shop-container .price-wrapper{margin-top:auto}
body.tp-heritage-active .shop-container .price{font-size:14px!important;font-weight:800!important;color:#8b2b21!important}
body.tp-heritage-active #shop-sidebar .widget{background:#fff;border:1px solid var(--tp-line);border-radius:14px;overflow:hidden;margin-bottom:16px;box-shadow:var(--tp-shadow)}
body.tp-heritage-active #shop-sidebar .widget-title{background:#2a231d!important;border-radius:0!important;font-size:12px!important;letter-spacing:.06em!important;padding:0 16px!important}
body.tp-heritage-active #shop-sidebar .widget>ul{padding:10px 14px;margin:0}
body.tp-heritage-active #shop-sidebar .widget>ul li a{font-size:13px;color:#4e4740}

/* Blog/article sync */
body.tp-heritage-active.single-post #main,
body.tp-heritage-active.blog #main,
body.tp-heritage-active.archive #main{background:#f8f5ef}
body.tp-heritage-active.single-post .blog-wrapper,
body.tp-heritage-active.archive .blog-wrapper{padding-top:34px}
body.tp-heritage-active.single-post article,
body.tp-heritage-active.archive article{background:#fff;border:1px solid var(--tp-line);border-radius:16px;box-shadow:var(--tp-shadow);overflow:hidden}
body.tp-heritage-active.single-post .entry-content{font-size:15px;line-height:1.85;color:#514a43}
body.tp-heritage-active.single-post .entry-title{font-size:clamp(28px,3vw,38px);line-height:1.3;font-weight:800;letter-spacing:-.025em}

@media (max-width: 849px){
  body.tp-heritage-active.single-product .product-main{padding:18px 0 28px}
  body.tp-heritage-active.single-product .product-gallery .product-images,
  body.tp-heritage-active.single-product .product-gallery .woocommerce-product-gallery{border-radius:14px;padding:8px;margin-bottom:14px}
  body.tp-heritage-active.single-product .product-info.summary{border-radius:14px;padding:18px!important}
  body.tp-heritage-active.single-product .product-title{font-size:27px!important}
  body.tp-heritage-active .tp-single-trust{gap:6px}
  body.tp-heritage-active .tp-single-trust span{font-size:11px;padding:7px 8px}
  body.tp-heritage-active .tp-quick-specs{grid-template-columns:1fr 1fr;gap:7px}
  body.tp-heritage-active .tp-single-servicebar{grid-template-columns:1fr 1fr;border-radius:14px}
  body.tp-heritage-active .tp-single-service-item{border-bottom:1px solid var(--tp-line);padding:14px}
  body.tp-heritage-active .tp-single-service-item:nth-child(2){border-right:0}
  body.tp-heritage-active .tp-single-service-item:nth-child(n+3){border-bottom:0}
  body.tp-heritage-active.single-product .product-tabs{padding-bottom:3px!important}
  body.tp-heritage-active.single-product .product-tabs li a{min-height:40px;padding:0 12px!important;font-size:11px!important}
  body.tp-heritage-active.single-product .tab-panels{border-radius:14px!important;padding:18px!important;font-size:14px}
  body.tp-heritage-active .tp-support-grid{grid-template-columns:1fr}
  body.tp-heritage-active .tp-shop-intro strong{font-size:19px}
}


/* ============================================================
   TƯỜNG PHÁT HERITAGE v1.3.0
   - bỏ nhận diện Flatsome mặc định
   - giảm text, tăng hierarchy
   - tối ưu desktop/tablet/mobile
   - footer & contact page chuẩn Tường Phát
   ============================================================ */

body.tp-heritage-active{
  --tp-ink:#1c1814;
  --tp-ink-2:#2c251f;
  --tp-bronze:#8a5a2b;
  --tp-bronze-2:#b57937;
  --tp-gold:#d0a15d;
  --tp-paper:#fffdfa;
  --tp-soft:#f6f2ea;
  --tp-soft-2:#eee6da;
  --tp-muted:#6f675e;
  --tp-line:rgba(66,49,31,.12);
  --tp-shadow:0 10px 28px rgba(25,18,12,.08);
  --tp-shadow-lg:0 20px 50px rgba(25,18,12,.14);
}

/* BRAND HEADER */
body.tp-heritage-active .header-top{display:none!important}
body.tp-heritage-active #logo{width:auto!important;max-width:300px!important}
body.tp-heritage-active #logo a{display:flex!important;align-items:center;gap:12px;text-decoration:none!important}
body.tp-heritage-active .tp-brand-logo{display:flex!important;align-items:center;gap:12px;color:var(--tp-ink)!important;min-width:0}
body.tp-heritage-active .tp-brand-mark{
  width:46px;height:46px;display:grid;place-items:center;flex:0 0 46px;
  border:2px solid var(--tp-bronze);border-radius:50%;font-size:16px;font-weight:800;
  color:var(--tp-bronze);letter-spacing:-.03em
}
body.tp-heritage-active .tp-brand-copy{display:block;min-width:0}
body.tp-heritage-active .tp-brand-copy strong{display:block;font-size:17px;line-height:1.12;color:var(--tp-ink);font-weight:800;white-space:nowrap}
body.tp-heritage-active .tp-brand-copy small{display:block;font-size:9px;line-height:1.4;letter-spacing:.08em;text-transform:uppercase;color:#8b8279;margin-top:4px;white-space:nowrap}
body.tp-heritage-active .tp-brand-logo-img{display:block;max-height:58px;width:auto;object-fit:contain}
body.tp-heritage-active .header-main{border-bottom:1px solid var(--tp-line);background:#fffdf9!important}
body.tp-heritage-active .header-main .nav>li>a{font-size:13px!important;font-weight:700!important;color:#2b2622!important}
body.tp-heritage-active .header-main .nav>li>a:hover{color:var(--tp-bronze)!important}

/* GLOBAL TYPOGRAPHY */
body.tp-heritage-active h1{font-size:clamp(32px,4vw,48px);line-height:1.16;font-weight:800;letter-spacing:-.035em}
body.tp-heritage-active h2{font-size:clamp(26px,3vw,36px);line-height:1.22;font-weight:800;letter-spacing:-.025em}
body.tp-heritage-active h3{font-size:clamp(18px,2vw,24px);line-height:1.32;font-weight:800}
body.tp-heritage-active p{line-height:1.72}
body.tp-heritage-active .tp-container{width:min(1220px,calc(100% - 40px));margin:0 auto}
body.tp-heritage-active .tp-section-tight{padding:64px 0}
body.tp-heritage-active .tp-section-head-simple{align-items:flex-end;margin-bottom:24px}
body.tp-heritage-active .tp-section-head-simple p{display:none}

/* HOME HERO */
body.tp-heritage-active .tp-hero-compact{min-height:500px;background:var(--tp-soft)}
body.tp-heritage-active .tp-hero-compact:before{background:linear-gradient(90deg,rgba(255,253,249,.97) 0%,rgba(255,253,249,.9) 45%,rgba(255,253,249,.08) 78%)}
body.tp-heritage-active .tp-hero-compact .tp-hero-media{width:48%}
body.tp-heritage-active .tp-hero-compact .tp-hero-inner{padding:72px 0;max-width:600px}
body.tp-heritage-active .tp-hero-compact .tp-hero-title{margin:12px 0 14px;font-size:clamp(40px,4.6vw,56px);color:var(--tp-ink)}
body.tp-heritage-active .tp-hero-compact .tp-hero-copy{font-size:16px;max-width:520px;margin-bottom:24px;color:var(--tp-muted)}
body.tp-heritage-active .tp-hero-compact .tp-actions{gap:10px}

/* COMPACT BENEFIT STRIP */
body.tp-heritage-active .tp-benefit-strip{position:relative;z-index:4;margin-top:-22px}
body.tp-heritage-active .tp-benefit-grid{
  display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--tp-line);
  border-radius:16px;box-shadow:var(--tp-shadow);overflow:hidden
}
body.tp-heritage-active .tp-benefit-grid>div{padding:18px 20px;border-right:1px solid var(--tp-line)}
body.tp-heritage-active .tp-benefit-grid>div:last-child{border-right:0}
body.tp-heritage-active .tp-benefit-grid b{display:block;font-size:14px;color:var(--tp-ink);margin-bottom:4px}
body.tp-heritage-active .tp-benefit-grid span{display:block;font-size:11px;color:var(--tp-muted)}

/* CATEGORY CARDS - SUBTLE 3D */
body.tp-heritage-active .tp-cat-grid-v13{gap:18px;perspective:1200px}
body.tp-heritage-active .tp-cat-card-v13{
  min-height:310px;border-radius:16px;border:1px solid rgba(255,255,255,.16);
  box-shadow:0 16px 34px rgba(29,21,13,.15), inset 0 1px 0 rgba(255,255,255,.12);
  transform:translateZ(0);transition:transform .24s ease,box-shadow .24s ease
}
body.tp-heritage-active .tp-cat-card-v13:before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.18),transparent 24%,rgba(0,0,0,.15))
}
body.tp-heritage-active .tp-cat-card-v13:after{
  background:linear-gradient(180deg,rgba(15,11,8,.02) 0%,rgba(15,11,8,.10) 40%,rgba(15,11,8,.88) 100%)
}
body.tp-heritage-active .tp-cat-card-v13:hover{transform:translateY(-5px) rotateX(1.5deg);box-shadow:0 24px 42px rgba(29,21,13,.21)}
body.tp-heritage-active .tp-cat-card-v13 .tp-cat-index{font-size:10px}
body.tp-heritage-active .tp-cat-card-v13 .tp-cat-name{font-size:22px}
body.tp-heritage-active .tp-cat-card-v13 .tp-cat-meta{font-size:12px}

/* PRODUCT GRID */
body.tp-heritage-active .tp-product-grid-v13{grid-template-columns:repeat(4,1fr);gap:18px}
body.tp-heritage-active .tp-product-card{box-shadow:none;border-color:var(--tp-line);border-radius:14px}
body.tp-heritage-active .tp-product-card:hover{box-shadow:var(--tp-shadow);transform:translateY(-3px)}
body.tp-heritage-active .tp-product-body{padding:14px 14px 16px;gap:6px}
body.tp-heritage-active .tp-product-name{font-size:16px;line-height:1.4;min-height:46px}
body.tp-heritage-active .tp-product-desc{font-size:12px;line-height:1.55;min-height:37px;-webkit-line-clamp:2}
body.tp-heritage-active .tp-product-price{font-size:14px}
body.tp-heritage-active .tp-product-more{font-size:11px}

/* BRAND PROOF */
body.tp-heritage-active .tp-brand-proof{padding:72px 0;background:#201a15;color:#fff}
body.tp-heritage-active .tp-brand-proof-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:54px;align-items:center}
body.tp-heritage-active .tp-brand-proof .tp-title{color:#fff!important;max-width:580px}
body.tp-heritage-active .tp-brand-proof p{color:rgba(255,255,255,.66);max-width:560px;font-size:14px;margin:12px 0 20px}
body.tp-heritage-active .tp-proof-points{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
body.tp-heritage-active .tp-proof-points span{font-size:11px;color:#f1e4d2;border:1px solid rgba(255,255,255,.15);padding:7px 10px;border-radius:8px}
body.tp-heritage-active .tp-brand-proof .tp-text-link{color:#fff!important}
body.tp-heritage-active .tp-brand-proof-visual{border-radius:18px;overflow:hidden;min-height:330px;background:#382b20;box-shadow:0 26px 60px rgba(0,0,0,.22)}
body.tp-heritage-active .tp-brand-proof-visual img{width:100%;height:100%;min-height:330px;object-fit:cover;display:block}

/* ARTICLES */
body.tp-heritage-active .tp-article-grid-v13{grid-template-columns:repeat(3,1fr);gap:18px}
body.tp-heritage-active .tp-article-grid-v13 .tp-article:first-child .tp-article-media{aspect-ratio:16/10}
body.tp-heritage-active .tp-article-grid-v13 .tp-article:first-child .tp-article-title{font-size:20px}
body.tp-heritage-active .tp-article-title{font-size:18px}
body.tp-heritage-active .tp-article{box-shadow:none}

/* CTA */
body.tp-heritage-active .tp-cta-v13 .tp-cta-card{padding:30px 34px;border-radius:16px}
body.tp-heritage-active .tp-cta-v13 .tp-cta-copy h2{font-size:28px;margin-bottom:5px}
body.tp-heritage-active .tp-cta-v13 .tp-cta-copy p{font-size:13px}

/* PRODUCT DETAIL: compact support bar and long description control */
body.tp-heritage-active .tp-single-servicebar{grid-template-columns:repeat(3,1fr);margin-bottom:22px}
body.tp-heritage-active .tp-single-service-item{grid-template-columns:24px 1fr;padding:14px 16px}
body.tp-heritage-active .tp-single-service-item b{font-size:13px}
body.tp-heritage-active .tp-single-service-item strong{font-size:12px}
body.tp-heritage-active .tp-single-service-item span{font-size:10px}
body.tp-heritage-active.single-product .woocommerce-Tabs-panel--description.tp-desc-collapsed{
  position:relative;max-height:850px;overflow:hidden
}
body.tp-heritage-active.single-product .woocommerce-Tabs-panel--description.tp-desc-collapsed:after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:140px;
  background:linear-gradient(transparent,#fff)
}
body.tp-heritage-active .tp-desc-toggle-wrap{text-align:center;margin:-4px 0 22px;position:relative;z-index:3}
body.tp-heritage-active .tp-desc-toggle{
  min-height:40px;padding:0 18px;border:1px solid var(--tp-line);border-radius:9px;background:#fff;
  color:var(--tp-ink);font-size:12px;font-weight:800;cursor:pointer
}

/* CONTACT PAGE */
body.tp-heritage-active .tp-contact-page{background:var(--tp-paper)}
body.tp-heritage-active .tp-page-hero{padding:64px 0 50px;background:linear-gradient(135deg,#f8f3eb,#eee1cf);border-bottom:1px solid var(--tp-line)}
body.tp-heritage-active .tp-page-hero h1{margin:10px 0 10px;color:var(--tp-ink)}
body.tp-heritage-active .tp-page-hero p{max-width:650px;margin:0;color:var(--tp-muted);font-size:15px}
body.tp-heritage-active .tp-contact-quick{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
body.tp-heritage-active .tp-contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
body.tp-heritage-active .tp-location-card{position:relative;padding:24px;border:1px solid var(--tp-line);border-radius:16px;background:#fff;box-shadow:var(--tp-shadow)}
body.tp-heritage-active .tp-location-no{display:block;color:var(--tp-bronze-2);font-size:11px;font-weight:800;letter-spacing:.12em;margin-bottom:12px}
body.tp-heritage-active .tp-location-card h2{font-size:20px;margin:0 0 10px}
body.tp-heritage-active .tp-location-card p{font-size:13px;color:var(--tp-muted);min-height:48px;margin:0 0 18px}
body.tp-heritage-active .tp-location-actions{display:flex;gap:14px;flex-wrap:wrap}
body.tp-heritage-active .tp-location-actions a{font-size:12px;font-weight:800;color:var(--tp-bronze)!important;text-decoration:none}
body.tp-heritage-active .tp-contact-help{padding:64px 0;background:var(--tp-soft)}
body.tp-heritage-active .tp-contact-help-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:50px;align-items:start}
body.tp-heritage-active .tp-contact-help h2{margin:10px 0}
body.tp-heritage-active .tp-contact-help p{font-size:14px;color:var(--tp-muted);max-width:480px}
body.tp-heritage-active .tp-contact-form-card{background:#fff;border:1px solid var(--tp-line);border-radius:16px;padding:22px;box-shadow:var(--tp-shadow)}
body.tp-heritage-active .tp-contact-form-card input,
body.tp-heritage-active .tp-contact-form-card textarea{border-radius:9px!important;border:1px solid #ded5c8!important;box-shadow:none!important}
body.tp-heritage-active .tp-contact-form-card input[type=submit]{background:var(--tp-bronze)!important;color:#fff!important}

/* GLOBAL FOOTER */
body.tp-heritage-active .footer-wrapper{background:#1d1814!important;color:#ded5ca}
body.tp-heritage-active .tp-global-footer{padding:54px 0 0}
body.tp-heritage-active .tp-footer-main{display:grid;grid-template-columns:1.2fr .7fr 1.1fr .65fr;gap:34px;padding-bottom:38px}
body.tp-heritage-active .tp-footer-wordmark{display:flex;align-items:center;gap:10px;margin-bottom:12px}
body.tp-heritage-active .tp-footer-wordmark span{width:38px;height:38px;border:1.5px solid #c89755;border-radius:50%;display:grid;place-items:center;color:#d7a661;font-weight:800;font-size:13px}
body.tp-heritage-active .tp-footer-wordmark strong{color:#fff;font-size:15px;letter-spacing:.02em}
body.tp-heritage-active .tp-footer-brand p{font-size:12px;line-height:1.65;color:#a99f95;max-width:300px;margin:0 0 14px}
body.tp-heritage-active .tp-footer-contact{display:flex;gap:12px;flex-wrap:wrap}
body.tp-heritage-active .tp-footer-contact a{font-size:12px;font-weight:800;color:#d7a661!important}
body.tp-heritage-active .tp-footer-col h3{color:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.07em;margin:0 0 14px}
body.tp-heritage-active .tp-footer-col>a{display:block;color:#aaa096!important;font-size:12px;margin:0 0 9px;text-decoration:none}
body.tp-heritage-active .tp-footer-col>a:hover{color:#fff!important}
body.tp-heritage-active .tp-footer-locations p{font-size:11px;line-height:1.55;color:#aaa096;margin:0 0 10px}
body.tp-heritage-active .tp-footer-locations b{display:block;color:#e8dfd4;font-size:11px;margin-bottom:2px}
body.tp-heritage-active .tp-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid rgba(255,255,255,.09);padding:16px 0 18px;color:#827a72;font-size:10px}

/* MOBILE QUICK BAR: smaller, less intrusive */
@media (max-width:849px){
  body.tp-heritage-active #logo{max-width:220px!important}
  body.tp-heritage-active .tp-brand-logo{gap:8px}
  body.tp-heritage-active .tp-brand-mark{width:36px;height:36px;flex-basis:36px;font-size:12px}
  body.tp-heritage-active .tp-brand-copy strong{font-size:13px}
  body.tp-heritage-active .tp-brand-copy small{font-size:7px}
  body.tp-heritage-active .tp-container{width:min(100% - 28px,1220px)}
  body.tp-heritage-active .tp-section-tight{padding:50px 0}

  body.tp-heritage-active .tp-hero-compact{min-height:410px}
  body.tp-heritage-active .tp-hero-compact .tp-hero-media{width:100%;opacity:.48}
  body.tp-heritage-active .tp-hero-compact:before{background:linear-gradient(90deg,rgba(255,253,249,.96) 0%,rgba(255,253,249,.82) 65%,rgba(255,253,249,.24) 100%)}
  body.tp-heritage-active .tp-hero-compact .tp-hero-inner{padding:54px 0 74px;max-width:92%}
  body.tp-heritage-active .tp-hero-compact .tp-hero-title{font-size:34px}
  body.tp-heritage-active .tp-hero-compact .tp-hero-copy{font-size:14px;max-width:360px}
  body.tp-heritage-active .tp-hero-compact .tp-actions{display:flex;flex-wrap:wrap}
  body.tp-heritage-active .tp-hero-compact .tp-btn{flex:0 0 auto;min-height:42px}

  body.tp-heritage-active .tp-benefit-grid{grid-template-columns:1fr 1fr}
  body.tp-heritage-active .tp-benefit-grid>div{padding:14px 13px}
  body.tp-heritage-active .tp-benefit-grid>div:nth-child(2){border-right:0}
  body.tp-heritage-active .tp-benefit-grid>div:nth-child(-n+2){border-bottom:1px solid var(--tp-line)}
  body.tp-heritage-active .tp-benefit-grid b{font-size:12px}
  body.tp-heritage-active .tp-benefit-grid span{font-size:9px}

  body.tp-heritage-active .tp-section-head-simple{display:flex;margin-bottom:20px}
  body.tp-heritage-active .tp-section-head-simple .tp-title{font-size:27px!important}
  body.tp-heritage-active .tp-section-head-simple .tp-text-link{margin-top:0;font-size:11px}

  body.tp-heritage-active .tp-cat-grid-v13{grid-template-columns:1fr 1fr!important;gap:10px}
  body.tp-heritage-active .tp-cat-card-v13{min-height:210px;border-radius:13px}
  body.tp-heritage-active .tp-cat-card-v13 .tp-cat-content{padding:14px}
  body.tp-heritage-active .tp-cat-card-v13 .tp-cat-name{font-size:17px}
  body.tp-heritage-active .tp-cat-card-v13 .tp-cat-meta{font-size:9px}

  body.tp-heritage-active .tp-product-grid-v13{grid-template-columns:1fr 1fr!important;gap:10px}
  body.tp-heritage-active .tp-product-body{padding:10px 10px 12px}
  body.tp-heritage-active .tp-product-category{font-size:8px}
  body.tp-heritage-active .tp-product-name{font-size:13px;min-height:38px;line-height:1.42}
  body.tp-heritage-active .tp-product-desc{display:none}
  body.tp-heritage-active .tp-product-footer{align-items:center}
  body.tp-heritage-active .tp-product-price{font-size:12px}
  body.tp-heritage-active .tp-product-more{font-size:9px}

  body.tp-heritage-active .tp-brand-proof{padding:52px 0}
  body.tp-heritage-active .tp-brand-proof-grid{grid-template-columns:1fr;gap:26px}
  body.tp-heritage-active .tp-brand-proof-visual{min-height:220px;order:-1}
  body.tp-heritage-active .tp-brand-proof-visual img{min-height:220px}
  body.tp-heritage-active .tp-proof-points{gap:6px}
  body.tp-heritage-active .tp-proof-points span{font-size:9px}

  body.tp-heritage-active .tp-article-grid-v13{grid-template-columns:1fr!important}
  body.tp-heritage-active .tp-article-grid-v13 .tp-article{display:grid;grid-template-columns:118px 1fr}
  body.tp-heritage-active .tp-article-grid-v13 .tp-article-media{aspect-ratio:1/1!important}
  body.tp-heritage-active .tp-article-grid-v13 .tp-article-title{font-size:14px!important}
  body.tp-heritage-active .tp-article-grid-v13 .tp-article-body{padding:12px}

  body.tp-heritage-active .tp-cta-v13 .tp-cta-card{padding:24px 20px}
  body.tp-heritage-active .tp-cta-v13 .tp-cta-copy h2{font-size:22px}
  body.tp-heritage-active .tp-cta-v13 .tp-cta-copy p{font-size:11px}
  body.tp-heritage-active .tp-cta-v13 .tp-cta-actions{display:flex;width:auto}

  body.tp-heritage-active .tp-contact-grid{grid-template-columns:1fr}
  body.tp-heritage-active .tp-page-hero{padding:44px 0 38px}
  body.tp-heritage-active .tp-page-hero p{font-size:13px}
  body.tp-heritage-active .tp-contact-help{padding:48px 0}
  body.tp-heritage-active .tp-contact-help-grid{grid-template-columns:1fr;gap:24px}
  body.tp-heritage-active .tp-location-card p{min-height:0}

  body.tp-heritage-active .tp-footer-main{grid-template-columns:1fr 1fr;gap:28px 18px}
  body.tp-heritage-active .tp-footer-brand{grid-column:1/-1}
  body.tp-heritage-active .tp-footer-locations{grid-column:1/-1}
  body.tp-heritage-active .tp-footer-bottom{display:block}
  body.tp-heritage-active .tp-footer-bottom span{display:block;margin-bottom:4px}

  body.tp-heritage-active .tp-mobile-actions{
    left:8px;right:8px;bottom:max(6px,env(safe-area-inset-bottom));padding:3px;border-radius:14px;
    background:rgba(255,253,249,.96);border:1px solid rgba(60,45,30,.14);box-shadow:0 8px 24px rgba(0,0,0,.14);
    transform:translateY(120%);transition:transform .22s ease
  }
  body.tp-heritage-active .tp-mobile-actions.tp-mobile-actions-visible{transform:translateY(0)}
  body.tp-heritage-active .tp-mobile-actions a{min-height:46px;color:#3a3028!important;font-size:9px;gap:1px}
  body.tp-heritage-active .tp-mobile-actions b{font-size:14px;color:var(--tp-bronze)}
  body.tp-heritage-active.single-product .woocommerce-Tabs-panel--description.tp-desc-collapsed{max-height:680px}
  body.tp-heritage-active .tp-single-servicebar{grid-template-columns:1fr}
  body.tp-heritage-active .tp-single-service-item{border-right:0;border-bottom:1px solid var(--tp-line)}
  body.tp-heritage-active .tp-single-service-item:last-child{border-bottom:0}
}

@media (max-width:549px){
  body.tp-heritage-active #logo{max-width:190px!important}
  body.tp-heritage-active .tp-brand-copy small{display:none}
  body.tp-heritage-active .tp-hero-compact .tp-hero-inner{padding-top:42px}
  body.tp-heritage-active .tp-hero-compact .tp-hero-title{font-size:30px}
  body.tp-heritage-active .tp-section-head-simple{align-items:flex-end;gap:10px}
  body.tp-heritage-active .tp-section-head-simple .tp-title{font-size:24px!important}
  body.tp-heritage-active .tp-cat-card-v13{min-height:190px}
  body.tp-heritage-active .tp-cat-card-v13 .tp-cat-name{font-size:15px}
  body.tp-heritage-active .tp-product-name{font-size:12px}
  body.tp-heritage-active .tp-product-more{display:none}
}


/* ============================================================
   v1.3.1 — Product Grid Density & Image Sharpness
   Thu nhỏ khung ảnh, không crop phóng lớn, tăng số cột ở tablet/
   mobile landscape và dùng ảnh nguồn lớn hơn để tránh mờ.
   ============================================================ */

/* Homepage product cards */
body.tp-heritage-active .tp-product-grid-v13{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
body.tp-heritage-active .tp-product-card{
  border-radius:13px;
  overflow:hidden;
}
body.tp-heritage-active .tp-product-media{
  aspect-ratio:4/3!important;
  height:auto!important;
  padding:12px;
  background:#f7f3ec;
  display:flex;
  align-items:center;
  justify-content:center;
}
body.tp-heritage-active .tp-product-media img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  filter:none!important;
}
body.tp-heritage-active .tp-product-card:hover .tp-product-media img{
  transform:none!important;
}
body.tp-heritage-active .tp-product-body{
  padding:12px 13px 14px!important;
}
body.tp-heritage-active .tp-product-name{
  font-size:15px!important;
  line-height:1.38!important;
  min-height:42px!important;
}
body.tp-heritage-active .tp-product-category{
  font-size:9px!important;
  margin-bottom:3px!important;
}
body.tp-heritage-active .tp-product-desc{
  font-size:11px!important;
  line-height:1.5!important;
  min-height:34px!important;
}

/* WooCommerce shop/category/related products */
body.tp-heritage-active .shop-container .product-small.box,
body.tp-heritage-active .related-products-wrapper .product-small.box,
body.tp-heritage-active .upsells .product-small.box{
  padding:6px!important;
  border-radius:13px!important;
}
body.tp-heritage-active .shop-container .box-image,
body.tp-heritage-active .related-products-wrapper .box-image,
body.tp-heritage-active .upsells .box-image{
  background:#f7f3ec!important;
  border-radius:10px!important;
  overflow:hidden!important;
}
body.tp-heritage-active .shop-container .box-image .image-cover,
body.tp-heritage-active .related-products-wrapper .box-image .image-cover,
body.tp-heritage-active .upsells .box-image .image-cover{
  padding-top:0!important;
  height:220px!important;
  min-height:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.tp-heritage-active .shop-container .box-image .image-cover img,
body.tp-heritage-active .related-products-wrapper .box-image .image-cover img,
body.tp-heritage-active .upsells .box-image .image-cover img,
body.tp-heritage-active .shop-container .box-image img,
body.tp-heritage-active .related-products-wrapper .box-image img,
body.tp-heritage-active .upsells .box-image img{
  position:static!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:10px!important;
  transform:none!important;
  filter:none!important;
}
body.tp-heritage-active .shop-container .box-image:hover img,
body.tp-heritage-active .related-products-wrapper .box-image:hover img,
body.tp-heritage-active .upsells .box-image:hover img{
  transform:none!important;
}
body.tp-heritage-active .shop-container .box-text,
body.tp-heritage-active .related-products-wrapper .box-text,
body.tp-heritage-active .upsells .box-text{
  padding:11px 8px 10px!important;
}
body.tp-heritage-active .shop-container p.name.product-title a,
body.tp-heritage-active .related-products-wrapper p.name.product-title a,
body.tp-heritage-active .upsells p.name.product-title a{
  font-size:14px!important;
  line-height:1.4!important;
}

/* Make product grid denser on tablets / phone landscape */
@media (min-width:850px){
  body.tp-heritage-active .shop-container .products.row > .product-small,
  body.tp-heritage-active .shop-container .products.row > .product,
  body.tp-heritage-active .related-products-wrapper .products.row > .product-small,
  body.tp-heritage-active .upsells .products.row > .product-small{
    flex-basis:25%!important;
    max-width:25%!important;
  }
}
@media (min-width:550px) and (max-width:849px){
  body.tp-heritage-active .tp-product-grid-v13{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.tp-heritage-active .shop-container .products.row > .product-small,
  body.tp-heritage-active .shop-container .products.row > .product,
  body.tp-heritage-active .related-products-wrapper .products.row > .product-small,
  body.tp-heritage-active .upsells .products.row > .product-small{
    flex-basis:33.333333%!important;
    max-width:33.333333%!important;
  }
  body.tp-heritage-active .shop-container .box-image .image-cover,
  body.tp-heritage-active .related-products-wrapper .box-image .image-cover,
  body.tp-heritage-active .upsells .box-image .image-cover{
    height:165px!important;
  }
  body.tp-heritage-active .tp-product-media{
    aspect-ratio:4/3!important;
    padding:9px!important;
  }
  body.tp-heritage-active .tp-product-name{
    font-size:13px!important;
    min-height:38px!important;
  }
  body.tp-heritage-active .tp-product-desc{display:none!important}
}
@media (max-width:549px){
  body.tp-heritage-active .tp-product-grid-v13{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  body.tp-heritage-active .shop-container .products.row > .product-small,
  body.tp-heritage-active .shop-container .products.row > .product,
  body.tp-heritage-active .related-products-wrapper .products.row > .product-small,
  body.tp-heritage-active .upsells .products.row > .product-small{
    flex-basis:50%!important;
    max-width:50%!important;
  }
  body.tp-heritage-active .shop-container .box-image .image-cover,
  body.tp-heritage-active .related-products-wrapper .box-image .image-cover,
  body.tp-heritage-active .upsells .box-image .image-cover{
    height:142px!important;
  }
  body.tp-heritage-active .shop-container .box-image .image-cover img,
  body.tp-heritage-active .related-products-wrapper .box-image .image-cover img,
  body.tp-heritage-active .upsells .box-image .image-cover img,
  body.tp-heritage-active .shop-container .box-image img,
  body.tp-heritage-active .related-products-wrapper .box-image img,
  body.tp-heritage-active .upsells .box-image img{
    padding:7px!important;
  }
  body.tp-heritage-active .tp-product-media{
    aspect-ratio:1/1!important;
    padding:8px!important;
  }
  body.tp-heritage-active .tp-product-body{
    padding:9px 9px 10px!important;
  }
  body.tp-heritage-active .tp-product-name{
    font-size:12px!important;
    min-height:35px!important;
  }
  body.tp-heritage-active .tp-product-price{font-size:11px!important}
}


/* ============================================================
   TƯỜNG PHÁT HERITAGE v1.4.0 — BRAND COMMERCE DENSITY
   Mục tiêu: bớt cảm giác landing page, giảm khoảng trống,
   tăng mật độ catalog, đồng đều card/ảnh và mở rộng khung desktop.
   ============================================================ */

/* 1) Khung website rộng hơn trên màn hình lớn */
body.tp-heritage-active .tp-container{
  width:min(1480px,calc(100% - 56px))!important;
  max-width:none!important;
}
body.tp-heritage-active .header-main .header-inner,
body.tp-heritage-active .header-bottom .flex-row{
  width:min(1480px,calc(100% - 56px))!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* 2) Nhịp section kiểu website thương hiệu, không phải landing page */
body.tp-heritage-active .tp-section,
body.tp-heritage-active .tp-section-tight{padding:44px 0!important}
body.tp-heritage-active .tp-section + .tp-section{border-top:1px solid rgba(66,49,31,.07)}
body.tp-heritage-active .tp-section-head,
body.tp-heritage-active .tp-section-head-simple{margin-bottom:20px!important;gap:18px!important}
body.tp-heritage-active .tp-section-head-simple .tp-title,
body.tp-heritage-active .tp-section-head .tp-title{font-size:clamp(27px,2.2vw,34px)!important;line-height:1.2!important}
body.tp-heritage-active .tp-kicker{font-size:10px!important;letter-spacing:.13em!important}
body.tp-heritage-active .tp-text-link{font-size:12px!important;padding-bottom:3px!important}

/* 3) Hero thấp và gọn hơn */
body.tp-heritage-active .tp-hero-compact{min-height:420px!important}
body.tp-heritage-active .tp-hero-compact .tp-hero-inner{padding:54px 0!important;max-width:570px!important}
body.tp-heritage-active .tp-hero-compact .tp-hero-title{font-size:clamp(36px,3.7vw,50px)!important;margin:10px 0 12px!important}
body.tp-heritage-active .tp-hero-compact .tp-hero-copy{font-size:15px!important;line-height:1.65!important;margin-bottom:18px!important}
body.tp-heritage-active .tp-benefit-strip{margin-top:-16px!important}
body.tp-heritage-active .tp-benefit-grid>div{padding:14px 18px!important}

/* 4) Danh mục: card thấp hơn, đều nhau, 3D nhẹ */
body.tp-heritage-active .tp-cat-grid-v13{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
body.tp-heritage-active .tp-cat-card-v13{
  min-height:0!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  border-radius:14px!important;
}
body.tp-heritage-active .tp-cat-card-v13 img{
  width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;
}
body.tp-heritage-active .tp-cat-card-v13 .tp-cat-content{padding:16px!important}
body.tp-heritage-active .tp-cat-card-v13 .tp-cat-name{font-size:18px!important;margin:5px 0 4px!important;line-height:1.2!important}
body.tp-heritage-active .tp-cat-card-v13 .tp-cat-index{font-size:8px!important}
body.tp-heritage-active .tp-cat-card-v13 .tp-cat-meta{font-size:9px!important}

/* 5) Product section: trắng, sạch, dày catalog hơn */
body.tp-heritage-active .tp-products{
  background:#fff!important;
  border-top:1px solid rgba(66,49,31,.08)!important;
  border-bottom:1px solid rgba(66,49,31,.08)!important;
}
body.tp-heritage-active .tp-product-grid-v13{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;
}
body.tp-heritage-active .tp-product-card{
  min-width:0!important;
  border-radius:12px!important;
  border:1px solid rgba(66,49,31,.11)!important;
  box-shadow:none!important;
  background:#fff!important;
  overflow:hidden!important;
}
body.tp-heritage-active .tp-product-card:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 12px 28px rgba(25,18,12,.09)!important;
  border-color:rgba(138,90,43,.25)!important;
}
body.tp-heritage-active .tp-product-media{
  aspect-ratio:1/1!important;
  height:auto!important;
  padding:8px!important;
  background:#f7f4ee!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
body.tp-heritage-active .tp-product-media img{
  width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;
  padding:0!important;transform:none!important;filter:none!important;
}
body.tp-heritage-active .tp-product-body{padding:10px 11px 12px!important;gap:4px!important}
body.tp-heritage-active .tp-product-category{font-size:8px!important;line-height:1.3!important;margin:0 0 2px!important;letter-spacing:.09em!important}
body.tp-heritage-active .tp-product-name{font-size:13px!important;line-height:1.38!important;min-height:36px!important;margin:0!important}
body.tp-heritage-active .tp-product-desc{display:none!important}
body.tp-heritage-active .tp-product-footer{margin-top:7px!important;padding-top:0!important;align-items:center!important}
body.tp-heritage-active .tp-product-price{font-size:12px!important;line-height:1.2!important}
body.tp-heritage-active .tp-product-more{font-size:9px!important;white-space:nowrap!important}

/* 6) WooCommerce shop/category cũng đồng bộ catalog */
body.tp-heritage-active .shop-container .products.row,
body.tp-heritage-active .related-products-wrapper .products.row,
body.tp-heritage-active .upsells .products.row{margin-left:-7px!important;margin-right:-7px!important}
body.tp-heritage-active .shop-container .products.row > .product-small,
body.tp-heritage-active .shop-container .products.row > .product,
body.tp-heritage-active .related-products-wrapper .products.row > .product-small,
body.tp-heritage-active .upsells .products.row > .product-small{
  padding-left:7px!important;padding-right:7px!important;margin-bottom:14px!important;
}
body.tp-heritage-active .shop-container .product-small.box,
body.tp-heritage-active .related-products-wrapper .product-small.box,
body.tp-heritage-active .upsells .product-small.box{padding:5px!important;border-radius:11px!important}
body.tp-heritage-active .shop-container .box-image .image-cover,
body.tp-heritage-active .related-products-wrapper .box-image .image-cover,
body.tp-heritage-active .upsells .box-image .image-cover{height:190px!important;background:#f7f4ee!important}
body.tp-heritage-active .shop-container .box-text,
body.tp-heritage-active .related-products-wrapper .box-text,
body.tp-heritage-active .upsells .box-text{padding:9px 7px 8px!important}
body.tp-heritage-active .shop-container p.name.product-title a,
body.tp-heritage-active .related-products-wrapper p.name.product-title a,
body.tp-heritage-active .upsells p.name.product-title a{font-size:13px!important;line-height:1.4!important}

/* 7) Brand proof / bài viết gọn hơn */
body.tp-heritage-active .tp-brand-proof{padding:48px 0!important}
body.tp-heritage-active .tp-brand-proof-grid{gap:36px!important}
body.tp-heritage-active .tp-brand-proof-visual{min-height:260px!important}
body.tp-heritage-active .tp-brand-proof-visual img{min-height:260px!important}
body.tp-heritage-active .tp-article-grid-v13{gap:14px!important}
body.tp-heritage-active .tp-article-body{padding:12px!important}
body.tp-heritage-active .tp-article-title{font-size:16px!important;line-height:1.38!important}
body.tp-heritage-active .tp-article-grid-v13 .tp-article:first-child .tp-article-title{font-size:16px!important}
body.tp-heritage-active .tp-cta{padding:16px 0 44px!important}
body.tp-heritage-active .tp-cta-v13 .tp-cta-card{padding:24px 28px!important}

/* 8) Responsive density */
@media (min-width:1600px){
  body.tp-heritage-active .tp-container,
  body.tp-heritage-active .header-main .header-inner,
  body.tp-heritage-active .header-bottom .flex-row{width:min(1540px,calc(100% - 72px))!important}
}
@media (min-width:1200px) and (max-width:1599px){
  body.tp-heritage-active .tp-product-grid-v13{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}
@media (min-width:850px) and (max-width:1199px){
  body.tp-heritage-active .tp-container,
  body.tp-heritage-active .header-main .header-inner,
  body.tp-heritage-active .header-bottom .flex-row{width:min(1180px,calc(100% - 36px))!important}
  body.tp-heritage-active .tp-product-grid-v13{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body.tp-heritage-active .tp-cat-card-v13{aspect-ratio:4/3!important}
}
@media (min-width:550px) and (max-width:849px){
  body.tp-heritage-active .tp-container{width:calc(100% - 24px)!important}
  body.tp-heritage-active .tp-section,
  body.tp-heritage-active .tp-section-tight{padding:34px 0!important}
  body.tp-heritage-active .tp-product-grid-v13{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
  body.tp-heritage-active .tp-cat-grid-v13{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
  body.tp-heritage-active .tp-cat-card-v13{aspect-ratio:4/3!important}
  body.tp-heritage-active .tp-cat-card-v13 .tp-cat-name{font-size:13px!important}
  body.tp-heritage-active .tp-cat-card-v13 .tp-cat-meta{display:none!important}
  body.tp-heritage-active .tp-product-name{font-size:12px!important}
  body.tp-heritage-active .tp-product-media{padding:6px!important}
}
@media (max-width:549px){
  body.tp-heritage-active .tp-container{width:calc(100% - 20px)!important}
  body.tp-heritage-active .tp-section,
  body.tp-heritage-active .tp-section-tight{padding:30px 0!important}
  body.tp-heritage-active .tp-section-head-simple .tp-title{font-size:22px!important}
  body.tp-heritage-active .tp-cat-grid-v13{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.tp-heritage-active .tp-cat-card-v13{aspect-ratio:4/3!important}
  body.tp-heritage-active .tp-cat-card-v13 .tp-cat-content{padding:10px!important}
  body.tp-heritage-active .tp-cat-card-v13 .tp-cat-name{font-size:13px!important}
  body.tp-heritage-active .tp-cat-card-v13 .tp-cat-meta{display:none!important}
  body.tp-heritage-active .tp-product-grid-v13{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.tp-heritage-active .tp-product-body{padding:8px 8px 9px!important}
  body.tp-heritage-active .tp-product-name{font-size:11px!important;min-height:32px!important}
  body.tp-heritage-active .tp-product-price{font-size:10px!important}
  body.tp-heritage-active .tp-product-more{font-size:8px!important}
}


/* ============================================================
   v1.4.1 — Official Hero Banner + Official Brand Logo
   ============================================================ */
body.tp-heritage-active .tp-banner-hero{
  position:relative;
  width:100%;
  overflow:hidden;
  background:#1c150f;
  line-height:0;
}
body.tp-heritage-active .tp-banner-hero picture,
body.tp-heritage-active .tp-banner-hero img{
  display:block;
  width:100%;
}
body.tp-heritage-active .tp-banner-hero img{
  height:auto;
  max-height:none;
}
body.tp-heritage-active .tp-banner-hotspot{
  position:absolute;
  z-index:4;
  display:block;
  border-radius:8px;
  text-indent:-9999px;
  overflow:hidden;
}
body.tp-heritage-active .tp-banner-hotspot-shop{
  left:7.0%;
  top:64.0%;
  width:10.9%;
  height:7.0%;
}
body.tp-heritage-active .tp-banner-hotspot-collection{
  left:18.8%;
  top:64.0%;
  width:11.1%;
  height:7.0%;
}
body.tp-heritage-active .tp-banner-mobile-copy{display:none}
body.tp-heritage-active .tp-brand-logo-img{
  max-height:62px!important;
  width:auto!important;
  object-fit:contain;
}
body.tp-heritage-active #logo{
  max-width:330px!important;
}
body.tp-heritage-active .header-main{
  min-height:78px;
}

/* Keep the first content section close to the banner: less landing-page empty space */
body.tp-heritage-active .tp-banner-hero + .tp-section{
  padding-top:42px!important;
}

@media (max-width:849px){
  body.tp-heritage-active .tp-banner-hero{
    background:#211811;
  }
  body.tp-heritage-active .tp-banner-hero picture{
    display:block;
  }
  body.tp-heritage-active .tp-banner-hero img{
    width:100%;
    height:auto;
  }
  body.tp-heritage-active .tp-banner-hotspot{display:none}
  body.tp-heritage-active .tp-banner-mobile-copy{
    display:block;
    line-height:1.3;
    padding:18px 18px 22px;
    background:linear-gradient(180deg,#211811,#15100c);
    color:#fff;
  }
  body.tp-heritage-active .tp-banner-mobile-copy .tp-kicker{
    color:#d6ad6c;
    font-size:9px;
    letter-spacing:.12em;
  }
  body.tp-heritage-active .tp-banner-mobile-copy h1{
    color:#fff;
    font-size:26px!important;
    line-height:1.15;
    margin:7px 0 8px;
  }
  body.tp-heritage-active .tp-banner-mobile-copy p{
    margin:0 0 14px;
    color:rgba(255,255,255,.72);
    font-size:12px;
    line-height:1.6;
  }
  body.tp-heritage-active .tp-banner-mobile-copy .tp-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
  }
  body.tp-heritage-active .tp-banner-mobile-copy .tp-btn{
    min-height:40px;
    padding:0 13px;
    font-size:10px;
  }
  body.tp-heritage-active .tp-brand-logo-img{
    max-height:48px!important;
  }
  body.tp-heritage-active #logo{
    max-width:235px!important;
  }
  body.tp-heritage-active .header-main{
    min-height:64px;
  }
  body.tp-heritage-active .tp-banner-hero + .tp-section{
    padding-top:34px!important;
  }
}

/* ============================================================
   v1.5.0 — PRODUCT DETAIL PRO / BRAND COMMERCE
   Full-width product page, editorial SEO content, reduced whitespace
   ============================================================ */

body.tp-heritage-active.single-product #main{background:#f7f4ee!important}
body.tp-heritage-active.single-product .product-main{padding:26px 0 30px!important}
body.tp-heritage-active.single-product .product-main>.container,
body.tp-heritage-active.single-product .product-footer>.container{
  width:min(1480px,calc(100% - 56px))!important;
  max-width:1480px!important;
}
body.tp-heritage-active.single-product .product-main .row.content-row{
  display:flex!important;
  align-items:flex-start!important;
  gap:30px!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.tp-heritage-active.single-product .product-main .row.content-row>.col{
  padding-left:0!important;
  padding-right:0!important;
}
body.tp-heritage-active.single-product .product-gallery{
  flex:0 0 calc(58% - 15px)!important;
  max-width:calc(58% - 15px)!important;
}
body.tp-heritage-active.single-product .product-info.summary{
  flex:0 0 calc(42% - 15px)!important;
  max-width:calc(42% - 15px)!important;
  position:sticky!important;
  top:96px!important;
  padding:26px 28px 24px!important;
  border-radius:16px!important;
  border:1px solid var(--tp-line)!important;
  background:#fff!important;
  box-shadow:0 12px 34px rgba(28,21,14,.08)!important;
}
body.tp-heritage-active.single-product .product-sidebar,
body.tp-heritage-active.single-product #product-sidebar,
body.tp-heritage-active.single-product .sidebar-wrapper{display:none!important}

body.tp-heritage-active.single-product .product-gallery .woocommerce-product-gallery,
body.tp-heritage-active.single-product .product-gallery .product-images{
  margin:0!important;
  padding:10px!important;
  border-radius:16px!important;
  border:1px solid var(--tp-line)!important;
  background:#fff!important;
  box-shadow:0 12px 34px rgba(28,21,14,.07)!important;
}
body.tp-heritage-active.single-product .product-gallery .woocommerce-product-gallery__image{
  background:#f8f5ef!important;
  border-radius:12px!important;
  overflow:hidden!important;
}
body.tp-heritage-active.single-product .product-gallery .woocommerce-product-gallery__image img{
  width:100%!important;
  height:auto!important;
  max-height:690px!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:12px!important;
}
body.tp-heritage-active.single-product .product-thumbnails{
  margin-top:10px!important;
  gap:8px!important;
}
body.tp-heritage-active.single-product .product-thumbnails .col,
body.tp-heritage-active.single-product .product-thumbnails a{
  border:1px solid var(--tp-line)!important;
  background:#fff!important;
  border-radius:9px!important;
  overflow:hidden!important;
}
body.tp-heritage-active.single-product .product-thumbnails img{
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  background:#f7f4ee!important;
}

body.tp-heritage-active.single-product .woocommerce-breadcrumb,
body.tp-heritage-active.single-product .breadcrumbs{
  margin:0 0 10px!important;
  font-size:10px!important;
  line-height:1.4!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  color:#958a7e!important;
}
body.tp-heritage-active.single-product .tp-single-eyebrow{
  margin:0 0 7px!important;
  font-size:9px!important;
  letter-spacing:.13em!important;
}
body.tp-heritage-active.single-product .product-title{
  font-size:clamp(31px,2.75vw,42px)!important;
  line-height:1.14!important;
  margin:0 0 10px!important;
  color:#1e1a16!important;
}
body.tp-heritage-active.single-product .price,
body.tp-heritage-active.single-product .price .amount,
body.tp-heritage-active.single-product .price-lienhe{
  font-size:17px!important;
  line-height:1.3!important;
  margin:0!important;
}
body.tp-heritage-active.single-product .product-short-description{
  margin-top:12px!important;
  padding:12px 0 4px!important;
  font-size:13px!important;
  line-height:1.7!important;
  color:#675f57!important;
}
body.tp-heritage-active.single-product .tp-single-trust{
  margin:12px 0!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
}
body.tp-heritage-active.single-product .tp-single-trust span{
  min-height:52px!important;
  padding:8px 9px!important;
  border-radius:9px!important;
  font-size:10px!important;
  line-height:1.35!important;
  background:#f8f4ed!important;
}
body.tp-heritage-active.single-product .tp-quick-specs{
  margin:10px 0 12px!important;
  gap:7px!important;
}
body.tp-heritage-active.single-product .tp-quick-spec{
  min-height:62px!important;
  padding:9px 10px!important;
  border-radius:9px!important;
}
body.tp-heritage-active.single-product .tp-quick-spec small{font-size:8px!important}
body.tp-heritage-active.single-product .tp-quick-spec strong{font-size:11px!important}

/* Compact consult panel */
body.tp-heritage-active .tp-single-consult-v15{
  margin:12px 0 0!important;
  padding:13px!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.tp-heritage-active .tp-single-consult-v15 .tp-single-consult-head{gap:9px!important}
body.tp-heritage-active .tp-single-consult-v15 .tp-single-consult-icon{
  width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:9px!important;font-size:14px!important
}
body.tp-heritage-active .tp-single-consult-v15 .tp-single-consult-head b{font-size:12px!important}
body.tp-heritage-active .tp-single-consult-v15 .tp-single-consult-head span{font-size:10px!important;line-height:1.45!important}
body.tp-heritage-active .tp-single-consult-v15 .tp-single-consult-actions{margin-top:10px!important;gap:7px!important}
body.tp-heritage-active .tp-single-consult-v15 .tp-single-consult-actions a{min-height:39px!important;font-size:10px!important}
body.tp-heritage-active .tp-consult-details{margin-top:9px;border-top:1px solid var(--tp-line);padding-top:9px}
body.tp-heritage-active .tp-consult-details summary{cursor:pointer;font-size:10px;font-weight:800;color:#5e5145;list-style:none}
body.tp-heritage-active .tp-consult-details summary::-webkit-details-marker{display:none}
body.tp-heritage-active .tp-consult-details summary:after{content:' +';color:var(--tp-bronze);font-weight:800}
body.tp-heritage-active .tp-consult-details[open] summary:after{content:' −'}
body.tp-heritage-active .tp-consult-details .tp-single-form-wrap{margin-top:9px!important}

/* Service bar directly below top product */
body.tp-heritage-active.single-product .product-footer{
  padding:0 0 64px!important;
  background:#f7f4ee!important;
}
body.tp-heritage-active .tp-single-servicebar{
  margin:0 0 18px!important;
  border-radius:13px!important;
  box-shadow:none!important;
  border:1px solid var(--tp-line)!important;
}
body.tp-heritage-active .tp-single-service-item{padding:13px 15px!important;grid-template-columns:20px 1fr!important;gap:8px!important}
body.tp-heritage-active .tp-single-service-item strong{font-size:11px!important}
body.tp-heritage-active .tp-single-service-item span{font-size:9px!important}

/* Tabs: more like premium product information navigation */
body.tp-heritage-active.single-product .product-tabs{
  gap:8px!important;
  margin:0 0 10px!important;
  position:sticky;
  top:76px;
  z-index:6;
  background:#f7f4ee!important;
  padding:8px 0!important;
}
body.tp-heritage-active.single-product .product-tabs li a{
  min-height:40px!important;
  padding:0 15px!important;
  border-radius:9px!important;
  background:#eae3d8!important;
  font-size:10px!important;
}
body.tp-heritage-active.single-product .product-tabs li.active a{
  background:#211b16!important;
  color:#fff!important;
}
body.tp-heritage-active.single-product .tab-panels{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.tp-heritage-active.single-product .panel.entry-content{
  margin:0!important;
}
body.tp-heritage-active.single-product .panel.entry-content:not(.woocommerce-Tabs-panel--description){
  padding:24px!important;
  border:1px solid var(--tp-line)!important;
  background:#fff!important;
  border-radius:14px!important;
}

/* Editorial product story */
body.tp-heritage-active .tp-product-story{
  display:block;
  color:#4f4841;
}
body.tp-heritage-active .tp-story-header{
  padding:34px 38px 28px;
  background:#fff;
  border:1px solid var(--tp-line);
  border-radius:16px;
  margin-bottom:16px;
}
body.tp-heritage-active .tp-story-kicker{
  display:block;
  margin-bottom:8px;
  color:var(--tp-bronze);
  font-size:9px;
  line-height:1.4;
  letter-spacing:.13em;
  text-transform:uppercase;
  font-weight:800;
}
body.tp-heritage-active .tp-story-header h2{
  max-width:920px;
  margin:0 0 10px!important;
  font-size:30px!important;
  line-height:1.22!important;
  color:#201b17!important;
}
body.tp-heritage-active .tp-story-header p{
  max-width:980px;
  margin:0!important;
  font-size:14px!important;
  line-height:1.8!important;
  color:#6d655d!important;
}
body.tp-heritage-active .tp-story-gallery{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
body.tp-heritage-active .tp-story-figure{
  grid-column:span 4;
  margin:0!important;
  min-width:0;
  overflow:hidden;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--tp-line);
}
body.tp-heritage-active .tp-story-figure-featured{
  grid-column:span 8;
  grid-row:span 2;
}
body.tp-heritage-active .tp-story-figure img{
  display:block;
  width:100%;
  height:360px;
  object-fit:contain;
  margin:0!important;
  padding:8px;
  background:#f8f5ef;
  border-radius:0!important;
}
body.tp-heritage-active .tp-story-figure-featured img{height:732px}
body.tp-heritage-active .tp-story-figure figcaption{
  padding:10px 12px 11px;
  font-size:9px;
  line-height:1.45;
  color:#71685f;
  border-top:1px solid var(--tp-line);
}
body.tp-heritage-active .tp-story-copy-grid{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(320px,.75fr);
  gap:16px;
  margin-bottom:16px;
}
body.tp-heritage-active .tp-story-copy-grid>section,
body.tp-heritage-active .tp-story-note,
body.tp-heritage-active .tp-story-care{
  background:#fff;
  border:1px solid var(--tp-line);
  border-radius:14px;
  padding:26px 28px;
}
body.tp-heritage-active .tp-product-story h2{
  margin:0 0 10px!important;
  font-size:24px!important;
  line-height:1.3!important;
  color:#211c18!important;
}
body.tp-heritage-active .tp-product-story h3{
  margin:22px 0 7px!important;
  font-size:17px!important;
  line-height:1.35!important;
  color:#2c251f!important;
}
body.tp-heritage-active .tp-product-story p,
body.tp-heritage-active .tp-product-story li{
  font-size:13px!important;
  line-height:1.82!important;
  color:#625a52!important;
}
body.tp-heritage-active .tp-story-note{
  align-self:start;
  background:linear-gradient(180deg,#fffdf8,#f2eadf);
}
body.tp-heritage-active .tp-story-note h3{margin-top:0!important}
body.tp-heritage-active .tp-story-note ul{margin:12px 0 0;padding-left:18px}
body.tp-heritage-active .tp-story-care{margin-bottom:16px}
body.tp-heritage-active .tp-story-faq{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
body.tp-heritage-active .tp-story-faq>div{
  padding:15px;
  background:#faf7f1;
  border:1px solid var(--tp-line);
  border-radius:10px;
}
body.tp-heritage-active .tp-story-faq h3{
  margin:0 0 6px!important;
  font-size:13px!important;
}
body.tp-heritage-active .tp-story-faq p{
  margin:0!important;
  font-size:11px!important;
  line-height:1.65!important;
}
body.tp-heritage-active .tp-legacy-description{
  margin:0 0 18px;
  background:#fff;
  border:1px solid var(--tp-line);
  border-radius:12px;
  overflow:hidden;
}
body.tp-heritage-active .tp-legacy-description summary{
  cursor:pointer;
  padding:14px 18px;
  font-size:11px;
  font-weight:800;
  color:#4c443d;
  background:#faf7f1;
}
body.tp-heritage-active .tp-legacy-description-body{padding:20px 24px}
body.tp-heritage-active .tp-desc-toggle-wrap{display:none!important}
body.tp-heritage-active.single-product .woocommerce-Tabs-panel--description.tp-desc-collapsed{
  max-height:none!important;
  overflow:visible!important;
}
body.tp-heritage-active.single-product .woocommerce-Tabs-panel--description.tp-desc-collapsed:after{display:none!important}

/* Specs/support panels */
body.tp-heritage-active .tp-support-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.tp-heritage-active .tp-support-grid>div{padding:14px!important}

/* Related products: denser, brand commerce look */
body.tp-heritage-active.single-product .related-products-wrapper,
body.tp-heritage-active.single-product .upsells{
  margin-top:26px!important;
  padding-top:4px!important;
}
body.tp-heritage-active.single-product .related-products-wrapper h3.product-section-title,
body.tp-heritage-active.single-product .upsells h3.product-section-title{
  font-size:22px!important;
  margin-bottom:14px!important;
}

@media (min-width:1200px){
  body.tp-heritage-active.single-product .related-products-wrapper .product-small,
  body.tp-heritage-active.single-product .upsells .product-small{
    flex-basis:20%!important;
    max-width:20%!important;
  }
}

@media (max-width:1199px) and (min-width:850px){
  body.tp-heritage-active.single-product .product-main>.container,
  body.tp-heritage-active.single-product .product-footer>.container{
    width:min(1180px,calc(100% - 36px))!important;
  }
  body.tp-heritage-active.single-product .product-main .row.content-row{gap:20px!important}
  body.tp-heritage-active.single-product .product-gallery{flex-basis:55%!important;max-width:55%!important}
  body.tp-heritage-active.single-product .product-info.summary{flex-basis:45%!important;max-width:45%!important;padding:22px!important}
  body.tp-heritage-active .tp-story-copy-grid{grid-template-columns:1.4fr .8fr}
}

@media (max-width:849px){
  body.tp-heritage-active.single-product .product-main>.container,
  body.tp-heritage-active.single-product .product-footer>.container{
    width:calc(100% - 24px)!important;
  }
  body.tp-heritage-active.single-product .product-main{padding:12px 0 22px!important}
  body.tp-heritage-active.single-product .product-main .row.content-row{
    display:block!important;
  }
  body.tp-heritage-active.single-product .product-gallery,
  body.tp-heritage-active.single-product .product-info.summary{
    max-width:100%!important;
    width:100%!important;
    flex-basis:100%!important;
  }
  body.tp-heritage-active.single-product .product-info.summary{
    position:static!important;
    margin-top:10px!important;
    padding:16px!important;
    border-radius:12px!important;
  }
  body.tp-heritage-active.single-product .product-gallery .woocommerce-product-gallery,
  body.tp-heritage-active.single-product .product-gallery .product-images{padding:6px!important;border-radius:12px!important}
  body.tp-heritage-active.single-product .product-gallery .woocommerce-product-gallery__image img{max-height:none!important}
  body.tp-heritage-active.single-product .product-title{font-size:27px!important}
  body.tp-heritage-active.single-product .tp-single-trust{grid-template-columns:1fr 1fr!important}
  body.tp-heritage-active.single-product .tp-single-trust span:last-child{grid-column:1/-1}
  body.tp-heritage-active.single-product .product-tabs{
    position:static!important;
    margin-left:-12px!important;
    margin-right:-12px!important;
    padding:8px 12px!important;
  }
  body.tp-heritage-active .tp-story-header{padding:22px 18px!important;border-radius:12px!important}
  body.tp-heritage-active .tp-story-header h2{font-size:23px!important}
  body.tp-heritage-active .tp-story-header p{font-size:12px!important}
  body.tp-heritage-active .tp-story-gallery{grid-template-columns:1fr 1fr;gap:8px}
  body.tp-heritage-active .tp-story-figure,
  body.tp-heritage-active .tp-story-figure-featured{grid-column:auto!important;grid-row:auto!important}
  body.tp-heritage-active .tp-story-figure-featured{grid-column:1/-1!important}
  body.tp-heritage-active .tp-story-figure img{height:220px!important;padding:5px!important}
  body.tp-heritage-active .tp-story-figure-featured img{height:auto!important;max-height:520px!important}
  body.tp-heritage-active .tp-story-figure figcaption{padding:8px 9px;font-size:8px}
  body.tp-heritage-active .tp-story-copy-grid{grid-template-columns:1fr!important;gap:10px!important}
  body.tp-heritage-active .tp-story-copy-grid>section,
  body.tp-heritage-active .tp-story-note,
  body.tp-heritage-active .tp-story-care{padding:18px!important;border-radius:12px!important}
  body.tp-heritage-active .tp-product-story h2{font-size:20px!important}
  body.tp-heritage-active .tp-product-story h3{font-size:15px!important}
  body.tp-heritage-active .tp-product-story p,
  body.tp-heritage-active .tp-product-story li{font-size:12px!important;line-height:1.75!important}
  body.tp-heritage-active .tp-story-faq{grid-template-columns:1fr!important;gap:8px!important}
  body.tp-heritage-active .tp-support-grid{grid-template-columns:1fr 1fr!important}
  body.tp-heritage-active .tp-single-servicebar{grid-template-columns:1fr 1fr!important}
}

@media (max-width:549px){
  body.tp-heritage-active.single-product .tp-single-trust{grid-template-columns:1fr!important}
  body.tp-heritage-active.single-product .tp-single-trust span:last-child{grid-column:auto}
  body.tp-heritage-active .tp-story-gallery{grid-template-columns:1fr!important}
  body.tp-heritage-active .tp-story-figure-featured{grid-column:auto!important}
  body.tp-heritage-active .tp-story-figure img{height:auto!important;max-height:460px!important}
  body.tp-heritage-active .tp-support-grid{grid-template-columns:1fr!important}
}


/* ============================================================
   v1.5.1 — PRODUCT DETAIL LAYOUT HOTFIX
   Fix Flatsome actual DOM: .product-main contains .row.content-row directly.
   v1.5.0 incorrectly removed the row's auto margins, causing the top product
   block to stick to the far left while the footer/content stayed centered.
   ============================================================ */
body.tp-heritage-active.single-product .product-main .row.content-row{
  width:min(1480px,calc(100% - 56px))!important;
  max-width:1480px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
  flex-wrap:nowrap!important;
}
body.tp-heritage-active.single-product .product-main .row.content-row > .product-gallery{
  flex:0 0 calc(58% - 15px)!important;
  width:calc(58% - 15px)!important;
  max-width:calc(58% - 15px)!important;
}
body.tp-heritage-active.single-product .product-main .row.content-row > .product-info.summary{
  flex:0 0 calc(42% - 15px)!important;
  width:calc(42% - 15px)!important;
  max-width:calc(42% - 15px)!important;
}

@media (max-width:1199px) and (min-width:850px){
  body.tp-heritage-active.single-product .product-main .row.content-row{
    width:min(1180px,calc(100% - 36px))!important;
    max-width:1180px!important;
    gap:20px!important;
  }
  body.tp-heritage-active.single-product .product-main .row.content-row > .product-gallery{
    flex-basis:calc(55% - 10px)!important;
    width:calc(55% - 10px)!important;
    max-width:calc(55% - 10px)!important;
  }
  body.tp-heritage-active.single-product .product-main .row.content-row > .product-info.summary{
    flex-basis:calc(45% - 10px)!important;
    width:calc(45% - 10px)!important;
    max-width:calc(45% - 10px)!important;
  }
}

@media (max-width:849px){
  body.tp-heritage-active.single-product .product-main .row.content-row{
    display:block!important;
    width:calc(100% - 24px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body.tp-heritage-active.single-product .product-main .row.content-row > .product-gallery,
  body.tp-heritage-active.single-product .product-main .row.content-row > .product-info.summary{
    width:100%!important;
    max-width:100%!important;
    flex-basis:100%!important;
  }
}

/* Keep the entire product visible inside the shorter tablet gallery. */
@media (max-width:849px){
  body.tp-heritage-active.single-product .product-gallery .woocommerce-product-gallery__image img{
    display:block!important;
    width:100%!important;
    height:clamp(430px,62vh,560px)!important;
    max-height:clamp(430px,62vh,560px)!important;
    object-fit:contain!important;
  }
}
@media (max-width:549px){
  body.tp-heritage-active.single-product .product-gallery .woocommerce-product-gallery__image img{
    height:clamp(320px,52vh,440px)!important;
    max-height:clamp(320px,52vh,440px)!important;
  }
}

/* TP Heritage v1.5.1 - Footer contact: 1 hang ngang, icon rieng tung muc (2026-10-16) */ body.tp-heritage-active .tp-footer-contact{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px} body.tp-heritage-active .tp-footer-contact .tp-contact-item{display:inline-flex;align-items:center;gap:9px;padding:7px 15px 7px 8px;border:1px solid rgba(201,162,39,.45);border-radius:999px;background:rgba(255,255,255,.045);color:#f5ecd7!important;font-size:13px;font-weight:600;letter-spacing:.01em;line-height:1.35;text-decoration:none;white-space:nowrap;transition:border-color .2s ease,background .2s ease,color .2s ease} body.tp-heritage-active .tp-footer-contact .tp-contact-item:hover{border-color:#d4af37;background:rgba(212,175,55,.14);color:#fff!important} body.tp-heritage-active .tp-footer-contact .tp-contact-ic{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#e8c766,#c9a227);color:#241a08;font-size:14px;font-weight:700;flex:0 0 auto} body.tp-heritage-active .tp-footer-contact .tp-ic-zalo{background:linear-gradient(135deg,#2f9bff,#0068ff);color:#fff;font-size:15px} body.tp-heritage-active .tp-footer-contact .tp-contact-email{border-color:rgba(212,175,55,.85);background:rgba(212,175,55,.13);color:#ffedb0!important} @media (max-width:640px){body.tp-heritage-active .tp-footer-contact{flex-direction:column;align-items:stretch;gap:10px}body.tp-heritage-active .tp-footer-contact .tp-contact-item{justify-content:flex-start}}