/*
Theme Name: Flatsome Child
Theme URI: http://flatsome.uxthemes.com
Template: flatsome
Author: UX-Themes
Author URI: https://uxthemes.com
Description: Multi-Purpose Responsive WooCommerce Theme
Version: 3.20.5.1791997123
Updated: 2026-10-14 16:58:43

*/


/* Nút "Liên hệ" thay cho giá trống — màu: #A97445 #4A2918 #FAF7F2 */
.tt-contact-btn {
    --tt-ico: 32px;  /* cỡ vòng tròn icon */
    --tt-off: 6px;   /* khoảng cách icon tới mép nút */
    --tt-gap: 10px;  /* khoảng cách icon tới chữ */
    --tt-pad: 22px;  /* khoảng đệm phía không có icon */
    --tt-ease: cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: calc(var(--tt-ico) + 2 * var(--tt-off));
    padding: 0 var(--tt-pad) 0 calc(var(--tt-off) + var(--tt-ico) + var(--tt-gap));
    border-radius: 99px;
    background: linear-gradient(135deg, #A97445 0%, #8a5a32 100%);
    color: #FAF7F2 !important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(74, 41, 24, 0.25);
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s, padding 0.55s var(--tt-ease);
}
.tt-contact-btn__icon {
    position: absolute;
    top: var(--tt-off);
    left: var(--tt-off);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tt-ico);
    height: var(--tt-ico);
    border-radius: 50%;
    background: #FAF7F2;
    color: #4A2918;
    transition: color 0.25s, left 0.55s var(--tt-ease), transform 0.55s var(--tt-ease);
}
.tt-contact-btn__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}
a.tt-contact-btn:hover {
    background: #4A2918;
    box-shadow: 0 6px 18px rgba(74, 41, 24, 0.35);
    transform: translateY(-1px);
}
a.tt-contact-btn:hover .tt-contact-btn__icon {
    color: #A97445;
}

/* Hover: icon lăn sang phải, chữ trượt sang trái (chỉ thiết bị có chuột) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    a.tt-contact-btn:hover {
        padding: 0 calc(var(--tt-off) + var(--tt-ico) + var(--tt-gap)) 0 var(--tt-pad);
    }
    a.tt-contact-btn:hover .tt-contact-btn__icon {
        left: calc(100% - var(--tt-off) - var(--tt-ico));
        transform: rotate(360deg);
    }
}

/* Thu nhỏ trong danh sách sản phẩm */
.product-small .tt-contact-btn {
    --tt-ico: 24px;
    --tt-off: 3px;
    --tt-gap: 7px;
    --tt-pad: 14px;
    display: inline-flex; /* thắng ".box a { display: inline-block }" của Flatsome */
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(74, 41, 24, 0.2);
}
.product-small .tt-contact-btn__icon svg {
    width: 14px;
    height: 14px;
}

/* Section "Sản phẩm theo danh mục" trên trang chủ */
.tt-eyebrow p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    color: #A97445;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.tt-eyebrow p::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #A97445;
}
.tt-cat-title {
    padding: 0;
    margin-bottom: 20px;
}
.tt-cat-title .section-title {
    align-items: flex-end;
    border: 0;
}
.tt-cat-title .section-title b {
    display: none;
}
.tt-cat-title .section-title-main {
    margin: 0;
    padding: 0;
    border: 0;
    color: #4A2918;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.tt-cat-title .section-title a {
    margin-left: auto;
    padding-left: 16px;
    color: #A97445;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
}
.tt-cat-title .section-title a:hover {
    color: #4A2918;
}
.tt-cat-title .section-title a i {
    transition: transform 0.25s;
}
.tt-cat-title .section-title a:hover i {
    transform: translateX(4px);
}

/* Tab dạng viên thuốc */
.tt-tabs > .nav {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tt-tabs > .nav::-webkit-scrollbar {
    display: none;
}
.tt-tabs > .nav > li {
    flex-shrink: 0;
    margin: 0;
}
.tt-tabs > .nav > li > a {
    padding: 8px 20px;
    border: 1px solid #ECE2D6;
    border-radius: 99px;
    background: #fff;
    color: #4A2918;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.25s;
}
.tt-tabs > .nav > li > a:hover {
    border-color: #A97445;
    background: #fff;
    color: #A97445;
}
.tt-tabs > .nav > li.active > a {
    border-color: #A97445;
    background: #A97445;
    color: #FAF7F2;
    box-shadow: 0 4px 12px rgba(169, 116, 69, 0.3);
}
.tt-tabs > .tab-panels {
    padding-top: 0;
}

/* Thẻ sản phẩm: dùng chung cho trang chủ (.tt-products) và trang danh mục (.shop-container .products) */
.tt-products .product-small.col,
.shop-container .products .product-small.col {
    padding-bottom: 20px;
}
.shop-container .products .product-small.col > .col-inner {
    height: 100%; /* thẻ cao bằng nhau trong cùng một hàng */
}
.tt-products .product-small.box,
.shop-container .products .product-small.box {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #ECE2D6;
    border-radius: 10px;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.tt-products .product-small.box:hover,
.shop-container .products .product-small.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(74, 41, 24, 0.14);
}
.tt-products .box-image,
.shop-container .products .box-image {
    background: #FAF7F2;
}
.tt-products .box-image img,
.shop-container .products .box-image img {
    /* giữ opacity để ảnh thứ hai (back-image của Flatsome) vẫn mờ dần khi hover */
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tt-products .product-small.box:hover .box-image img,
.shop-container .products .product-small.box:hover .box-image img {
    transform: scale(1.06);
}
.tt-products .image-tools {
    display: none;
}
.tt-products .box-text,
.shop-container .products .box-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px 16px;
}
.tt-products .title-wrapper,
.shop-container .products .title-wrapper {
    flex: 1;
    width: 100%;
}
.tt-products .product-title,
.shop-container .products .product-title {
    margin: 4px 0 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tt-products .product-title a,
.shop-container .products .product-title a {
    color: #333;
}
.tt-products .product-title a:hover,
.shop-container .products .product-title a:hover {
    color: #A97445;
}
.tt-products .price-wrapper .price,
.shop-container .products .price-wrapper .price {
    margin: 0;
}

/* Nút "Xem nhanh" ở trang danh mục */
.shop-container .products .grid-tools {
    bottom: 12px;
    justify-content: center;
    background: none;
    transform: translateY(calc(100% + 12px)); /* ẩn hẳn dưới đáy ảnh khi chưa hover */
    transition: transform 0.3s;
}
.shop-container .products .product-small.box:hover .grid-tools {
    transform: none;
}
.shop-container .products .grid-tools a.quick-view {
    display: inline-block;
    width: auto;
    padding: 7px 18px;
    border-radius: 99px;
    background: rgba(74, 41, 24, 0.88);
    color: #FAF7F2;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: 0 4px 12px rgba(74, 41, 24, 0.25);
    transition: background 0.25s;
}
.shop-container .products .grid-tools a.quick-view:hover {
    background: #A97445;
}
.tt-card-meta {
    margin: 0;
    color: #8a7a6c;
    font-size: 12px;
    opacity: 1;
}
.tt-card-meta b {
    color: #A97445;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 549px) {
    .tt-cat-title .section-title-main {
        font-size: 22px;
    }
    .tt-products .product-small.col,
    .shop-container .products .product-small.col {
        padding-bottom: 12px;
    }
    .tt-products .box-text,
    .shop-container .products .box-text {
        padding: 10px 10px 12px;
    }
    .tt-products .product-title,
    .shop-container .products .product-title {
        font-size: 14px;
    }
}

/* Section "Vì sao chọn Thiên Tuấn" trên trang chủ */
.tt-why .tt-why__item {
    padding-bottom: 0;
}
.tt-why .tt-why__item + .tt-why__item {
    border-left: 1px solid rgba(250, 247, 242, 0.12);
}
.tt-why .tt-why__item .col-inner {
    padding: 8px 5px;
}
.tt-why__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #A97445;
    color: #FAF7F2;
    box-shadow: 0 0 0 6px rgba(169, 116, 69, 0.18);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
.tt-why__icon svg {
    width: 28px;
    height: 28px;
}
.tt-why__item:hover .tt-why__icon {
    background: #FAF7F2;
    color: #4A2918;
    transform: translateY(-4px);
}
.tt-why .tt-why__title {
    margin: 0 0 6px;
    color: #FAF7F2;
    font-size: 17px;
    font-weight: 700;
}
.tt-why .tt-why__desc {
    margin: 0;
    color: rgba(250, 247, 242, 0.72);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 849px) {
    .tt-why .tt-why__item:nth-child(odd) {
        border-left: 0;
    }
    .tt-why .tt-why__item:nth-child(n+3) {
        margin-top: 28px;
    }
}
@media (max-width: 549px) {
    .tt-why__icon {
        width: 54px;
        height: 54px;
        margin-bottom: 12px;
    }
    .tt-why__icon svg {
        width: 24px;
        height: 24px;
    }
    .tt-why .tt-why__title {
        font-size: 15px;
    }
    .tt-why .tt-why__desc {
        font-size: 13px;
    }
}

/* Công trình thực tế (trang chủ + trang Dự án) */
.tt-projects-grid .portfolio-box {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #ECE2D6;
    transition: transform 0.3s, box-shadow 0.3s;
}
.tt-projects-grid .portfolio-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(74, 41, 24, 0.14);
}
.tt-projects-grid .box-image {
    position: relative;
}
.tt-projects-grid .box-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(74, 41, 24, 0) 40%, rgba(74, 41, 24, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}
.tt-projects-grid .portfolio-box:hover .box-image::after {
    opacity: 1;
}
.tt-projects-grid .box-image img {
    transition: transform 0.6s;
}
.tt-projects-grid .portfolio-box:hover .box-image img {
    transform: scale(1.06);
}
.tt-projects-grid .box-text {
    padding: 14px 16px 16px;
}
.tt-projects-grid .portfolio-box-title {
    margin: 0 0 4px;
    color: #4A2918;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}
.tt-projects-grid .portfolio-box-category {
    margin: 0;
    color: #A97445;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 1;
}
.tt-projects-grid .portfolio-box-category .show-on-hover {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Thanh lọc trên trang Dự án */
.tt-projects-page .filter-nav {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tt-projects-page .filter-nav::-webkit-scrollbar {
    display: none;
}
.tt-projects-page .filter-nav > li {
    flex-shrink: 0;
    margin: 0;
}
.tt-projects-page .filter-nav > li > a {
    padding: 8px 20px;
    border: 1px solid #ECE2D6;
    border-radius: 99px;
    background: #fff;
    color: #4A2918;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
    transition: all 0.25s;
}
.tt-projects-page .filter-nav > li > a:hover {
    border-color: #A97445;
    background: #fff;
    color: #A97445;
}
.tt-projects-page .filter-nav > li.active > a {
    border-color: #A97445;
    background: #A97445;
    color: #FAF7F2;
    box-shadow: 0 4px 12px rgba(169, 116, 69, 0.3);
}

/* Tin tức trên trang chủ */
.tt-news-grid .box-blog-post {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #ECE2D6;
    border-radius: 10px;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.tt-news-grid .box-blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(74, 41, 24, 0.14);
}
.tt-news-grid .box-image {
    width: 100%; /* tránh khung ảnh co về 0 trong flex column */
}
.tt-news-grid .box-image img {
    transition: transform 0.6s;
}
.tt-news-grid .box-blog-post:hover .box-image img {
    transform: scale(1.06);
}
.tt-news-grid .box-text {
    flex: 1;
    padding: 16px 18px 18px;
}
.tt-news-grid .blog-post-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}
.tt-news-grid .post-meta {
    order: -1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #A97445;
    font-size: 13px;
    font-weight: 500;
    opacity: 1;
}
.tt-news-grid .post-meta::before {
    content: "";
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tt-news-grid .post-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tt-news-grid .post-title a {
    color: #4A2918;
    transition: color 0.2s;
}
.tt-news-grid .post-title a:hover {
    color: #A97445;
}
.tt-news-grid .is-divider {
    display: none;
}
.tt-news-grid .from_the_blog_excerpt {
    flex: 1;
    margin: 0 0 12px;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tt-news-grid .button {
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #A97445;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}
.tt-news-grid .button::after {
    content: "→";
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.25s;
}
.tt-news-grid .button:hover {
    background: none;
    color: #4A2918;
    box-shadow: none;
}
.tt-news-grid .button:hover::after {
    transform: translateX(4px);
}

/* Video trên trang chủ */
.tt-videos .tt-video {
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid #ECE2D6;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 8px 22px rgba(74, 41, 24, 0.12);
}
.tt-videos .col {
    padding-bottom: 20px;
}
.tt-videos .row > .col:first-child {
    padding-bottom: 0;
}

/* Nhận xét khách hàng */
.tt-reviews-slider .flickity-slider > .tt-review {
    position: relative;
    width: 100%;
    margin: 0;
    /* !important để thắng ".flickity-slider>.icon-box { padding: 3% !important }" của Flatsome */
    padding: 32px 34px 28px !important;
}
.tt-reviews-slider .tt-review::before {
    content: "";
    position: absolute;
    inset: 0 10px;
    border: 1px solid #ECE2D6;
    border-radius: 12px;
    background: #FAF7F2;
}
.tt-reviews-slider .tt-review::after {
    content: "\201C";
    position: absolute;
    top: 6px;
    right: 30px;
    color: rgba(169, 116, 69, 0.28);
    font-family: Georgia, serif;
    font-size: 72px;
    line-height: 1;
}
.tt-reviews-slider .tt-review > * {
    position: relative;
    z-index: 1;
}
.tt-reviews-slider .testimonial-image {
    margin-bottom: 12px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(74, 41, 24, 0.15);
}
.tt-reviews-slider .star-rating {
    margin: 0 0 12px;
}
.tt-reviews-slider .star-rating::before {
    color: #E6D6C4;
}
.tt-reviews-slider .star-rating span::before {
    color: #A97445;
}
.tt-reviews-slider .testimonial-text {
    color: #555;
    font-size: 15px;
    line-height: 1.65;
}
.tt-reviews-slider .testimonial-meta {
    padding-top: 14px;
}
.tt-reviews-slider .testimonial-name {
    display: block;
    color: #4A2918;
    font-size: 16px;
    font-weight: 700;
}
.tt-reviews-slider .testimonial-name-divider {
    display: none;
}
.tt-reviews-slider .testimonial-company {
    display: block;
    margin-top: 2px;
    color: #8a7a6c;
    font-size: 13px;
}
.tt-reviews-slider .flickity-page-dots {
    bottom: -32px;
}
.tt-reviews-slider .flickity-page-dots .dot {
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border: 0;
    border-radius: 99px;
    background: #A97445;
    opacity: 0.3;
    transition: width 0.3s, opacity 0.3s;
}
.tt-reviews-slider .flickity-page-dots .dot.is-selected {
    width: 26px;
    background: #A97445;
    opacity: 1;
}
.tt-reviews .tt-reviews-slider {
    margin-bottom: 32px;
}

@media (max-width: 549px) {
    .tt-reviews-slider .flickity-slider > .tt-review {
        padding: 26px 26px 22px !important;
    }
    .tt-reviews-slider .tt-review::before {
        inset: 0 6px;
    }
}

/* CTA cuối trang chủ */
.tt-cta .tt-cta__eyebrow p {
    color: rgba(250, 247, 242, 0.8);
}
.tt-cta .tt-cta__title {
    margin: 0 0 10px;
    color: #FAF7F2;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}
.tt-cta .tt-cta__desc {
    margin: 0;
    color: rgba(250, 247, 242, 0.78);
    font-size: 16px;
    line-height: 1.6;
}
.tt-cta .col {
    padding-bottom: 0;
}
.tt-cta__actions .col-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}
.tt-cta__actions .text {
    margin: 0;
}

/* Nút gọi bản lớn (dùng chung hiệu ứng lăn của nút "Liên hệ") */
.tt-contact-btn--lg {
    --tt-ico: 40px;
    --tt-off: 6px;
    --tt-gap: 12px;
    --tt-pad: 28px;
    font-size: 17px;
}
.tt-contact-btn--lg .tt-contact-btn__icon svg {
    width: 20px;
    height: 20px;
}
.tt-cta .tt-contact-btn--lg,
.tt-cta .tt-cta__quote {
    min-width: 270px;
    justify-content: center;
}
.tt-cta a.tt-contact-btn:hover {
    background: #FAF7F2;
    color: #4A2918 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.tt-cta a.tt-contact-btn:hover .tt-contact-btn__icon {
    background: #4A2918;
    color: #FAF7F2;
}

/* Nút "Nhận báo giá" */
.tt-cta .tt-cta__quote {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 0 28px;
    border: 2px solid #FAF7F2;
    color: #FAF7F2;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    transition: background 0.25s, color 0.25s;
}
.tt-cta .tt-cta__quote::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.25s;
}
.tt-cta .tt-cta__quote:hover {
    border-color: #FAF7F2;
    background: #FAF7F2;
    color: #4A2918;
    box-shadow: none;
}
.tt-cta .tt-cta__quote:hover::after {
    transform: translateX(4px);
}

@media (max-width: 549px) {
    .tt-cta .col:first-child {
        margin-bottom: 24px;
        text-align: center;
    }
    .tt-cta .tt-cta__eyebrow p {
        justify-content: center;
    }
    .tt-cta .tt-cta__title {
        font-size: 24px;
    }
    .tt-cta .tt-cta__desc {
        font-size: 15px;
    }
    .tt-cta__actions .col-inner {
        align-items: center;
    }
}

/* Footer (UX Block "footer") */
.tt-footer {
    border-top: 1px solid #ECE2D6;
}
.tt-footer .col {
    padding-bottom: 20px;
}
.tt-footer__logo {
    max-width: 200px;
    margin-bottom: 12px;
}
.tt-footer__intro p {
    margin: 0;
    color: #6b5b4e;
    font-size: 15px;
    line-height: 1.7;
}
.tt-footer .tt-footer__title {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 10px;
    color: #4A2918;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.tt-footer .tt-footer__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: #A97445;
}
.tt-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tt-footer .col-inner ul li {
    margin: 0 0 10px; /* thắng ".col-inner ul li { margin-left: 1.3em }" của Flatsome */
}
.tt-footer__links a,
.tt-contact-info a,
.tt-contact-info span {
    color: #6b5b4e;
    font-size: 15px;
    line-height: 1.6;
}
.tt-footer__links a {
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}
.tt-footer__links a:hover,
.tt-contact-info a:hover {
    color: #A97445;
}
.tt-footer__links a:hover {
    transform: translateX(4px);
}
.tt-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.tt-contact-info svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: #A97445;
}

/* Thanh bản quyền */
.absolute-footer {
    padding: 14px 0;
    color: rgba(250, 247, 242, 0.85);
    font-size: 14px;
}
.absolute-footer .copyright-footer {
    padding: 0;
}

@media (max-width: 549px) {
    .tt-footer__brand {
        text-align: center;
    }
    .tt-footer__logo {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Widget "Danh mục sản phẩm" ở sidebar cửa hàng */
#shop-sidebar .widget_product_categories {
    padding: 20px 18px 14px;
    border: 1px solid #ECE2D6;
    border-radius: 10px;
    background: #fff;
}
.widget_product_categories .widget-title {
    color: #4A2918;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.widget_product_categories .is-divider {
    height: 2px;
    background: #A97445;
}
.widget_product_categories .product-categories > li + li {
    border-top-color: #F1E9DF;
}
.widget_product_categories .product-categories li {
    align-items: center;
}
.widget_product_categories .product-categories a {
    color: #4A2918;
    font-size: 15px;
    transition: color 0.2s, padding-left 0.2s;
}
.widget_product_categories .product-categories a:hover {
    padding-left: 4px;
    color: #A97445;
}
.widget_product_categories .product-categories > li > a {
    font-weight: 600;
}

/* Danh mục đang xem */
.widget_product_categories .product-categories .current-cat > a {
    color: #A97445;
    font-weight: 700;
}
.widget_product_categories ul.children > li.current-cat {
    position: relative;
}
.widget_product_categories ul.children > li.current-cat::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: -16px;
    width: 3px;
    border-radius: 3px;
    background: #A97445;
}

/* Huy hiệu số lượng */
.widget_product_categories .product-categories span.count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 99px;
    background: #FAF7F2;
    color: #A97445;
    font-size: 12px;
    font-weight: 600;
    opacity: 1;
}
.widget_product_categories .product-categories span.count.is-empty {
    color: #b9aea4;
}

/* Nút xổ */
.widget_product_categories .product-categories .toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 0 0 4px;
    border-radius: 50%;
    color: #4A2918;
    opacity: 0.7;
    transition: background 0.2s, opacity 0.2s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.widget_product_categories .product-categories .toggle:hover {
    background: #FAF7F2;
    opacity: 1;
}
.widget_product_categories .product-categories .toggle i {
    top: 0;
    font-size: 1.1em;
    transition: none;
}

/* Danh mục con: xổ mượt thay cho ẩn/hiện tức thì của Flatsome */
.widget_product_categories .product-categories ul.children {
    display: block;
    max-height: 0;
    margin: 0 0 0 3px;
    overflow: hidden;
    border-left-color: #ECE2D6;
    border:none !important;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin 0.35s ease;
}
.widget_product_categories .product-categories .active > ul.children {
    max-height: 600px;
    margin-bottom: 10px;
    opacity: 1;
    transform: none;
}
.widget_product_categories .product-categories ul.children li {
    display: flex;
    align-items: center;
}
.widget_product_categories .product-categories ul.children a {
    flex: 1;
    font-size: 14px;
}
.widget_product_categories .product-categories ul.children span.count {
    margin-right: 30px; /* thẳng cột với huy hiệu của danh mục cha (nút xổ 26px + 4px) */
}

@media (prefers-reduced-motion: reduce) {
    .widget_product_categories .product-categories ul.children,
    .widget_product_categories .product-categories .toggle {
        transition: none;
    }
}

/* Tab "Thông số kỹ thuật" trên trang chi tiết sản phẩm */
.tt-specs-table {
    width: 100%;
    max-width: 760px;
    border: 1px solid #ECE2D6;
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
.tt-specs-table th,
.tt-specs-table td {
    padding: 12px 18px;
    border: 0;
    border-bottom: 1px solid #ECE2D6;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    vertical-align: middle;
}
.tt-specs-table tr:last-child th,
.tt-specs-table tr:last-child td {
    border-bottom: 0;
}
.tt-specs-table tr:nth-child(odd) {
    background: #FAF7F2;
}
.tt-specs-table th {
    width: 36%;
    color: #4A2918;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.tt-specs-table td {
    color: #555;
}
@media (max-width: 549px) {
    .tt-specs-table th,
    .tt-specs-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
    .tt-specs-table th {
        width: 42%;
    }
}

/* ===== Trang Liên hệ ===== */

.tt-contact-page__title {
    margin: 0 0 10px;
    color: #A97445;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.tt-contact-page__lead {
    margin: 0;
    color: #6b5a4e;
    font-size: 17px;
}

/* Hai khung thông tin + form: nền, bo góc đặt trên .col-inner, cao bằng nhau nhờ hàng align-equal */
.tt-contact-page__info > .col-inner,
.tt-contact-page__form > .col-inner {
    flex: 1;
    padding: 40px 36px;
    border-radius: 16px;
}
.tt-contact-page__info > .col-inner h2,
.tt-contact-page__form > .col-inner h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
}
.tt-contact-page__info > .col-inner > .text:first-child p,
.tt-contact-page__form > .col-inner > .text:first-child p {
    margin: 0 0 24px;
    font-size: 15px;
}

/* Khung thông tin */
.tt-contact-page__info > .col-inner {
    position: relative;
    overflow: hidden;
    background: #4A2918;
    color: #FAF7F2;
}
.tt-contact-page__info > .col-inner::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(169, 116, 69, 0.35) 0%, rgba(169, 116, 69, 0) 70%);
    pointer-events: none;
}
.tt-contact-page__info > .col-inner h2 {
    color: #FAF7F2;
}
.tt-contact-page__info > .col-inner > .text:first-child p {
    color: rgba(250, 247, 242, 0.72);
}
.tt-contact-page__list {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}
.tt-contact-page__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid rgba(250, 247, 242, 0.12);
}
.tt-contact-page__list li:first-child {
    padding-top: 0;
    border-top: 0;
}
.tt-contact-page__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #A97445;
    color: #FAF7F2;
    box-shadow: 0 0 0 5px rgba(169, 116, 69, 0.18);
}
.tt-contact-page__icon svg {
    width: 20px;
    height: 20px;
}
.tt-contact-page__label {
    display: block;
    margin-bottom: 2px;
    color: rgba(250, 247, 242, 0.6);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.tt-contact-page__value {
    color: #FAF7F2;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
}
a.tt-contact-page__value:hover {
    color: #e2b98f;
}
.tt-contact-page__actions {
    position: relative;
    z-index: 1;
}
.tt-contact-page__actions p {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}
.tt-contact-page__info a.tt-contact-btn:hover {
    background: #FAF7F2;
    color: #4A2918 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.tt-contact-page__info a.tt-contact-btn:hover .tt-contact-btn__icon {
    background: #4A2918;
    color: #FAF7F2;
}

/* Nút Zalo dạng viền (shortcode [tt_zalo_button]) */
.tt-zalo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid rgba(250, 247, 242, 0.5);
    border-radius: 99px;
    color: #FAF7F2;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.tt-zalo-btn:hover {
    border-color: #FAF7F2;
    background: #FAF7F2;
    color: #4A2918;
}

/* Khung form */
.tt-contact-page__form > .col-inner {
    border: 1px solid #eee3d6;
    background: #fff;
    box-shadow: 0 10px 30px rgba(74, 41, 24, 0.08);
}
.tt-contact-page__form > .col-inner h2 {
    color: #4A2918;
    scroll-margin-top: 120px;
}
.tt-contact-page__form > .col-inner > .text:first-child p {
    color: #6b5a4e;
}
.tt-contact-page__form .wpcf7 {
    color: #555;
}
.tt-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.tt-form__field {
    margin-bottom: 16px;
}
.tt-form__field label {
    display: block;
    margin-bottom: 6px;
    color: #4A2918;
    font-size: 14px;
    font-weight: 500;
}
.tt-form__field label span {
    color: #c0392b;
}
.tt-contact-page__form .wpcf7 input:not([type="submit"]),
.tt-contact-page__form .wpcf7 select,
.tt-contact-page__form .wpcf7 textarea {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #e3d6c7;
    border-radius: 10px;
    background-color: #FAF7F2;
    color: #4A2918;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.tt-contact-page__form .wpcf7 select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A97445' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}
.tt-contact-page__form .wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}
.tt-contact-page__form .wpcf7 ::placeholder {
    color: #b3a395;
}
.tt-contact-page__form .wpcf7 input:not([type="submit"]):focus,
.tt-contact-page__form .wpcf7 select:focus,
.tt-contact-page__form .wpcf7 textarea:focus {
    border-color: #A97445;
    background-color: #fff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(169, 116, 69, 0.15);
}
.tt-contact-page__form .wpcf7 .wpcf7-not-valid {
    border-color: #c0392b;
}
.tt-contact-page__form .wpcf7 .wpcf7-not-valid-tip {
    margin-top: 6px;
    padding: 0;
    background: none;
    color: #c0392b;
    font-size: 13px;
    opacity: 1;
}
.tt-contact-page__form .wpcf7 .wpcf7-not-valid-tip::after {
    display: none;
}
.tt-form__submit p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 8px;
}
.tt-contact-page__form .wpcf7 input[type="submit"] {
    min-height: 48px;
    margin: 0;
    padding: 0 30px;
    border: 0;
    border-radius: 99px;
    background: linear-gradient(135deg, #A97445 0%, #8a5a32 100%);
    color: #FAF7F2;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: 0 4px 14px rgba(74, 41, 24, 0.25);
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.tt-contact-page__form .wpcf7 input[type="submit"]:hover {
    background: #4A2918;
    box-shadow: 0 6px 18px rgba(74, 41, 24, 0.35);
    transform: translateY(-1px);
}
.tt-contact-page__form .wpcf7-spinner {
    margin: 0;
}
.tt-form__note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8a7a6d;
    font-size: 13px;
}
.tt-form__note::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A97445' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.tt-contact-page__form .wpcf7 .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-width: 1px;
    border-radius: 10px;
    color: #4A2918;
    font-size: 14px;
}
.tt-contact-page__form .wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    background: #f0f9f1;
}
.tt-contact-page__form .wpcf7 form.invalid .wpcf7-response-output,
.tt-contact-page__form .wpcf7 form.failed .wpcf7-response-output {
    border-color: #e9b1aa;
    background: #fdf3f2;
}

/* Bản đồ (shortcode [tt_contact_map]) */
.tt-contact-map {
    overflow: hidden;
    border: 1px solid #eee3d6;
    border-radius: 16px;
    line-height: 0;
}
.tt-contact-map iframe {
    width: 100%;
    border: 0;
}

@media (max-width: 849px) {
    .tt-contact-page__title {
        font-size: 30px;
    }
    .tt-contact-map iframe {
        height: 340px !important;
    }
}
@media (max-width: 549px) {
    .tt-contact-page__title {
        font-size: 26px;
    }
    .tt-contact-page__lead {
        font-size: 15px;
    }
    .tt-contact-page__info > .col-inner,
    .tt-contact-page__form > .col-inner {
        padding: 28px 20px;
        border-radius: 12px;
    }
    .tt-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .tt-contact-page__actions a,
    .tt-contact-page__form .wpcf7 input[type="submit"] {
        flex: 1 1 100%;
        justify-content: center;
    }
    .tt-contact-map {
        border-radius: 12px;
    }
    .tt-contact-map iframe {
        height: 280px !important;
    }
}
