/*
Theme Name: Flatsome Child
Theme URI: https://uxthemes.com/
Description: This is a child theme for Flatsome Theme - Tối ưu UX/UI Thiên Phúc Vĩnh Hằng Viên
Author: UX-Themes
Author URI: https://uxthemes.com/
Template: flatsome
Version: 3.0
*/

/* ========================================================
   1. ĐỒNG BỘ BO GÓC 5PX TOÀN BỘ WEBSITE
   ======================================================== */
.button, 
.button.primary,
.button.secondary,
.tp-hero-btn, 
button, 
input[type="submit"], 
input[type="button"],
.badge, 
.tag, 
.box, 
.card, 
.col-inner, 
.accordion-title,
.accordion-inner, 
.ux-box, 
.wpcf7-form-control, 
.wpcf7-submit,
.tp-product-card, 
.tp-feature-box, 
.tp-info-badge,
.tp-loc-card,
.tp-map-frame,
.post-item,
.box-image,
.box-image img,
.gallery-box,
.has-hover,
.modal-content,
.searchform input,
.header-button-1 .button,
.header-button-2 .button,
.tp-bar-call,
.tp-bar-zalo {
    border-radius: 5px !important;
}

/* ========================================================
   2. TỐI ƯU NÚT CTA CÂN ĐỐI & ĐỒNG BỘ
   ======================================================== */
.button, 
.tp-hero-btn,
input[type="submit"],
.post-item .button {
    height: 44px !important;
    min-height: 44px !important;
    line-height: 42px !important;
    padding: 0 22px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.button.primary,
.tp-hero-btn-primary {
    background: linear-gradient(135deg, #c89f79 0%, #b7944f 100%) !important;
    border: 1px solid #b7944f !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(183,148,79,0.3) !important;
}

.button.primary:hover,
.tp-hero-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(183,148,79,0.45) !important;
    background: linear-gradient(135deg, #b7944f 0%, #9e7934 100%) !important;
    color: #ffffff !important;
}

.button.secondary.is-outline,
.tp-hero-btn-secondary {
    background: rgba(44, 25, 20, 0.8) !important;
    border: 1.5px solid #b7944f !important;
    color: #f5ede6 !important;
    backdrop-filter: blur(4px) !important;
}

.button.secondary.is-outline:hover,
.tp-hero-btn-secondary:hover {
    background: #b7944f !important;
    color: #ffffff !important;
    border-color: #b7944f !important;
    transform: translateY(-2px) !important;
}

/* Header buttons */
.header-button-1 .button,
.header-button-2 .button {
    height: 38px !important;
    min-height: 38px !important;
    line-height: 36px !important;
    padding: 0 16px !important;
    font-size: 0.85rem !important;
    border-radius: 5px !important;
}

/* ========================================================
   3. HEADER 1-ROW NAVIGATION
   ======================================================== */
.header-main .flex-row { flex-wrap: nowrap !important; align-items: center !important; }
.header-nav-main { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; margin: 0 !important; }
.header-nav-main.nav > li { white-space: nowrap !important; flex-shrink: 0 !important; }
.header-nav-main.nav > li > a { padding: 0 10px !important; font-size: 0.92rem !important; font-weight: 700 !important; letter-spacing: 0.3px !important; white-space: nowrap !important; text-transform: uppercase !important; }
.header-nav-main.nav > li.has-dropdown > a i { margin-left: 3px !important; font-size: 0.8rem !important; }
.header-button-1 .button { background: linear-gradient(135deg, #c89f79 0%, #b7944f 100%) !important; border: none !important; color: #ffffff !important; box-shadow: 0 3px 10px rgba(183,148,79,0.3) !important; }
.header-button-2 .button { border: 1.5px solid #b7944f !important; color: #663d28 !important; }
@media (min-width: 850px) and (max-width: 1250px) {
  .header-nav-main.nav > li > a { padding: 0 7px !important; font-size: 0.85rem !important; }
  .header-button-1 .button, .header-button-2 .button { padding: 5px 10px !important; font-size: 0.8rem !important; }
}

/* ========================================================
   4. MỤC SẢN PHẨM: CHIỀU CAO BẰNG NHAU, ẢNH CỐ ĐỊNH, NÚT THẲNG HÀNG
   ======================================================== */
.tp-product-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.tp-product-row > [class*="col"] {
    display: flex !important;
    flex-direction: column !important;
}

.tp-product-row > [class*="col"] > .col-inner,
.tp-product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #361f18 !important;
    border: 1.5px solid #b7944f !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.tp-product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(183,148,79,0.25) !important;
}

.tp-product-img-wrap {
    width: 100% !important;
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
    overflow: hidden !important;
    position: relative !important;
}

.tp-product-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

.tp-product-card:hover .tp-product-img-wrap img {
    transform: scale(1.05) !important;
}

.tp-product-body {
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: #361f18 !important;
}

.tp-product-badge {
    display: inline-block !important;
    align-self: flex-start !important;
    background: #b7944f !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 10px !important;
}

.tp-product-title {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    min-height: 48px !important;
}

.tp-product-list {
    color: #f5ede6 !important;
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    padding-left: 18px !important;
    margin-bottom: 20px !important;
    flex-grow: 1 !important;
}

.tp-product-list li {
    margin-bottom: 6px !important;
}

.tp-product-btn-wrap {
    margin-top: auto !important;
    width: 100% !important;
    text-align: center !important;
}

.tp-product-btn-wrap a {
    width: 100% !important;
    border-radius: 5px !important;
}

/* ========================================================
   5. ACCORDION / FAQ SANG TRỌNG ĐẲNG CẤP VLASTA / THIÊN PHÚC
   ======================================================== */
.accordion {
    max-width: 960px !important;
    margin: 0 auto !important;
}

.accordion .accordion-item {
    margin: 0 0 12px !important;
    border: 0 !important;
}

.accordion .accordion-title {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 64px !important;
    padding: 16px 55px 16px 24px !important;
    background: #ffffff !important;
    border: 1px solid #dfc4ad !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: #1f1714 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    transition: all 0.25s ease !important;
}

.accordion .accordion-title:hover {
    border-color: #b7944f !important;
    color: #b7944f !important;
}

.accordion .accordion-title span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.accordion .accordion-title.active,
.accordion .accordion-title[aria-expanded="true"] {
    min-height: auto !important;
    padding-top: 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 0 !important;
    border-radius: 5px 5px 0 0 !important;
    border-color: #b7944f !important;
    color: #b7944f !important;
    background: #fdfbf9 !important;
}

.accordion .accordion-inner {
    margin: 0 !important;
    padding: 0 55px 22px 24px !important;
    background: #fdfbf9 !important;
    border-left: 1px solid #b7944f !important;
    border-right: 1px solid #b7944f !important;
    border-bottom: 1px solid #b7944f !important;
    border-top: 0 !important;
    border-radius: 0 0 5px 5px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: #55443e !important;
}

.accordion .accordion-inner p,
.accordion .accordion-inner li {
    margin: 0 0 8px 0 !important;
    color: #55443e !important;
}

.accordion .toggle i,
.accordion .toggle svg {
    display: none !important;
}

.accordion .toggle {
    position: absolute !important;
    right: 22px !important;
    top: 50% !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important;
}

.accordion .toggle:before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #b7944f !important;
    border-bottom: 2px solid #b7944f !important;
    transform: translate(-50%, -55%) rotate(45deg) !important;
    transition: 0.25s ease !important;
}

.accordion .accordion-title.active .toggle:before,
.accordion .accordion-title[aria-expanded="true"] .toggle:before {
    transform: translate(-50%, -35%) rotate(225deg) !important;
    border-color: #b7944f !important;
}

/* ========================================================
   6. SECTION VỊ TRÍ PHONG THỦY HIỆN ĐẠI
   ======================================================== */
.tp-loc-card {
    background: #ffffff;
    border: 1px solid #ebd9c8;
    border-radius: 5px !important;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(183,148,79,0.07);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tp-loc-card:hover {
    transform: translateY(-2px);
    border-color: #b7944f;
}

.tp-loc-card h4 {
    color: #2c1914;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-loc-card h4 span.dot {
    width: 8px;
    height: 8px;
    background: #b7944f;
    border-radius: 50%;
    display: inline-block;
}

.tp-loc-card p {
    color: #55443e;
    font-size: 0.93rem;
    line-height: 1.6;
    margin: 0;
}

.tp-map-frame {
    border-radius: 5px !important;
    overflow: hidden;
    border: 1.5px solid #dfc4ad;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* ========================================================
   7. BÀI VIẾT BLOG CARD TỐI ƯU ONPAGE
   ======================================================== */
.post-item {
    background: #ffffff !important;
    border: 1px solid #ebd9c8 !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100% !important;
}

.post-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 24px rgba(183,148,79,0.15) !important;
    border-color: #b7944f !important;
}

.post-item .box-image {
    height: 210px !important;
    overflow: hidden !important;
    border-radius: 5px 5px 0 0 !important;
}

.post-item .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
    border-radius: 5px 5px 0 0 !important;
}

.post-item:hover .box-image img {
    transform: scale(1.05) !important;
}

.post-item .box-text {
    padding: 20px !important;
}

.post-item .post-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #2c1914 !important;
    margin-bottom: 10px !important;
}

.post-item .post-title a {
    color: #2c1914 !important;
    text-decoration: none !important;
}

.post-item .post-title a:hover {
    color: #b7944f !important;
}