/*
Theme Name: Mona Theme Child
Template: monatheme
Theme URI: #
Description: Cát Phương Xa — child theme overrides
Author: MONA.Media
Version: 4.3.0
Text Domain: monatheme-child
*/

/* =========================================================
 * WordPress integration overrides — Cát Phương Xa
 * Fix for: image fit, anchor underlines, list bullets,
 * WC layout glitches, footer chrome.
 * ========================================================= */

/* --- Breadcrumb: gói vào wrap 1280px giống .container --- */
.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    background: transparent;
    border-bottom: 0;
}

/* --- 1. Image fit (template HTML dùng .ph-img; WP <img> trần) --- */
.cat-card .cat-img img,
.product-card .product-img img,
.product-card .product-img picture img,
.news-card .news-img img,
.svc-card img,
.partner-card img,
.about-img img,
.cart-img img,
.o-img img,
.pd-main-img img,
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card .product-img,
.cat-card .cat-img,
.news-card .news-img,
.about-img,
.cart-img,
.o-img,
.pd-main-img,
.pd-thumb {
    overflow: hidden;
}

/* picture wrapper (WP optimized images) cũng phải fill */
.product-card .product-img picture,
.cat-card .cat-img picture,
.news-card .news-img picture {
    display: block;
    width: 100%;
    height: 100%;
}

.svc-card img {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.partner-card img {
    /* Task #52: căn giữa logo trong ô (ngang + dọc), đồng đều mọi ô */
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 56px;
    object-fit: contain;
    object-position: center;
    margin: auto;
    display: block;
}

.about-img {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

/* --- 2. Anchor underlines (cards & nav links shouldn't underline) --- */
.cat-card,
.cat-card *,
.product-card a,
.product-card .product-title,
.product-card .btn-add,
.news-card,
.news-card *,
.news-row,
.news-row *,
.svc-card,
.svc-card *,
.partner-card,
.value-card,
.value-card *,
.timeline-item,
.timeline-item *,
.why-card,
.why-card *,
.contact-item,
.contact-item *,
.contact-item a,
.footer-col a,
.main-nav a,
.top-bar a,
.sidebar-list a,
.cart-item-title a,
.o-name a,
.read-more,
.breadcrumb a,
.product-title,
.btn,
.btn-side,
.btn-add,
.phone,
.cta-banner a,
.hero-cta a {
    text-decoration: none;
}

.footer-col a:hover,
.main-nav a:hover,
.read-more:hover,
.sidebar-list a:hover {
    text-decoration: none;
}

/* --- 3. List bullets — remove default --- */
.sidebar-list,
.main-nav ul,
.menu-list,
.cart-services-list,
.svc-features,
.o-services ul,
.partner-grid,
.cat-grid,
.product-grid,
.svc-grid,
.why-grid,
.values-grid,
.news-grid,
.news-list-vert {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.sidebar-list li,
.cart-services-list li,
.svc-features li,
.o-services ul li {
    list-style: none;
}

/* --- 4. Hero CTA buttons (rendered as <a>) cần block-like --- */
.hero-cta a {
    display: inline-block;
}

/* --- 5. Footer-col anchor block layout (template expects each <a> as a block) --- */
.footer-col a {
    display: block;
}

/* --- 6. WC currency / price wrap --- */
.product-card .product-price .woocommerce-Price-amount,
.product-card .product-price .amount,
.product-card .product-price del,
.product-card .product-price ins,
.product-card .product-price bdi,
.product-card .product-price * {
    text-decoration: none;
}

.product-card .product-price ins {
    background: transparent;
    color: var(--red);
    font-weight: 700;
}

.product-card .product-price del {
    color: var(--gray-500);
    font-size: 0.9em;
    margin-right: 6px;
    text-decoration: line-through;
}

.product-card .product-price .woocommerce-Price-amount {
    color: var(--red);
    font-weight: 700;
}

/* WC price inside any card / cart / order — no underline */
.product-price a,
.cart-item-price *,
.o-price-row *,
.summary-row * {
    text-decoration: none;
}

.cart-item-price del,
.summary-row del {
    text-decoration: line-through;
}

/* --- 7. WC checkout form field rows fit container --- */
.co-section .form-group .woocommerce-input-wrapper,
.co-section .form-group input[type="text"],
.co-section .form-group input[type="email"],
.co-section .form-group input[type="tel"],
.co-section .form-group select,
.co-section .form-group textarea {
    width: 100%;
}

/* WC clearfix pseudo-elements phá vỡ grid của .form-row (chiếm 2 grid items rỗng) */
.woocommerce form .form-row::before,
.woocommerce form .form-row::after,
.woocommerce-page form .form-row::before,
.woocommerce-page form .form-row::after,
.checkout .form-row::before,
.checkout .form-row::after {
    display: none !important;
    content: none !important;
}

/* --- Payment section: bỏ default WC styling (grey bg, padding, border) --- */
.woocommerce-checkout #payment.mona-payment-flat,
.woocommerce-checkout #payment {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment .payment_methods.methods {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    border: none;
    background: transparent;
}

.woocommerce-checkout #payment .payment_methods > li {
    background: transparent;
    border: none;
    padding: 0;
}

.woocommerce-checkout #payment .place-order {
    padding: 0;
    margin: 16px 0 0;
    background: transparent;
    border-radius: 0;
}

.woocommerce-checkout #payment .terms,
.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
    display: none !important;
}

/* Hide "Have a coupon?" + login info bars TRÊN trang CHECKOUT only.
   Không scope toàn site vì .woocommerce-form-login còn dùng ở /my-account/. */
.woocommerce-checkout .checkout_coupon,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout > form.checkout > .woocommerce-info,
.woocommerce-checkout > form.checkout > .woocommerce-form-login,
.woocommerce-checkout .showcoupon,
.woocommerce-checkout .showlogin {
    display: none !important;
}

/* Style validation messages — Cát Phương Xa palette */
.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup {
    margin: 12px 0 16px;
}

/* Outer wc-notices (trên container) cũng giới hạn width bằng container */
.woocommerce > .woocommerce-notices-wrapper,
body .woocommerce > .woocommerce-notices-wrapper {
    max-width: 1280px !important;
    margin: 12px auto !important;
    padding: 0 24px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.woocommerce > .woocommerce-notices-wrapper:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset chiều cao thừa nếu có */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-notice {
    list-style: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 13px;
    font-weight: 500;
    border-left: 4px solid;
}

.woocommerce-error {
    background: #fee2e2;
    border-color: var(--red);
    color: #991b1b;
}

.woocommerce-message {
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green-dark);
}

.woocommerce-info {
    /* Hidden globally above; if revealed, style consistently */
    background: var(--gold-light);
    border-color: var(--gold);
    color: var(--gold-dark);
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-notice li {
    padding: 4px 0;
    list-style: none;
}

.woocommerce-error a,
.woocommerce-message a {
    color: inherit;
    text-decoration: underline;
}

/* Inline field validation */
.woocommerce-invalid-required-field input,
.woocommerce-invalid input,
.form-group input.woocommerce-invalid,
.form-group input:invalid:not(:placeholder-shown),
.co-section .form-group input.error {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.woocommerce-validated input,
.co-section .form-group input.woocommerce-validated {
    border-color: var(--green) !important;
}

.form-group .error-message,
.form-group .field-error {
    color: var(--red);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Block UI overlay (loading state during submit) */
.blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.7) !important;
}

/* Place order button — full width gold */
.woocommerce-checkout #place_order {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Pay-opt selected state pink/dim hover */
.pay-opt.selected,
.pay-opt[data-selected="1"] {
    background: var(--green-light);
    border-color: var(--green);
}

.co-section .form-group .optional {
    color: var(--gray-500);
    font-size: 11px;
    margin-left: 4px;
}

/* --- 8. WC payment options input alignment --- */
.payment-options .pay-opt {
    cursor: pointer;
}

/* Payment gateway instructions/notice — chú ý style (gold-light bg, gold border) */
.woocommerce-checkout #payment div.payment_box,
.payment-options .pay-opt .payment_box {
    position: relative;
    width: 100%;
    margin: 10px 0 0 !important;
    padding: 10px 14px !important;
    background: var(--gold-light) !important;
    color: var(--gold-dark) !important;
    border: 1px solid var(--gold) !important;
    border-left-width: 4px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    line-height: 1.5;
    font-style: normal;
    box-shadow: none !important;
}

.woocommerce-checkout #payment div.payment_box::before,
.payment-options .pay-opt .payment_box::before {
    content: '💡 ';
}

.woocommerce-checkout #payment div.payment_box p,
.payment-options .pay-opt .payment_box p {
    margin: 0;
    color: inherit;
}

.woocommerce-checkout #payment div.payment_box a {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* Khi không có instructions → ẩn box rỗng */
.payment-options .pay-opt .payment_box:empty {
    display: none !important;
}

/* --- 9. Cart qty-control input — single line --- */
.qty-control input.qty {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
}

/* Ẩn spinner mặc định của browser cho input[type="number"] */
.qty-control input[type="number"]::-webkit-outer-spin-button,
.qty-control input[type="number"]::-webkit-inner-spin-button,
input.qty[type="number"]::-webkit-outer-spin-button,
input.qty[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.qty-control input[type="number"],
input.qty[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* --- 10. WP body classes for theme conflicts --- */
body.home,
body.page,
body.single,
body.archive,
body.search {
    display: block;
}

/* --- 11. Search form border/box fit --- */
.search-bar input[type="text"] {
    flex: 1;
}

/* --- 12. CF7 spinner inline --- */
.wpcf7-spinner {
    vertical-align: middle;
}

/* --- 13. Empty cart layout tweaks --- */
.cart-empty-block .btn {
    text-decoration: none;
}

/* --- Bỏ HOÀN TOÀN diagonal striped pattern + mọi pseudo overlay đè content --- */
.news-img::before,
.news-img::after,
.cat-img::before,
.cat-img::after,
.product-img::before,
.product-img::after,
.pd-main-img::before,
.pd-main-img::after,
.pd-thumb::before,
.pd-thumb::after,
.cart-img::before,
.cart-img::after,
.o-img::before,
.o-img::after,
.partner-card::before,
.partner-card::after,
.section::before,
.section::after,
.page-banner::after {
    display: none !important;
    content: none !important;
    background: none !important;
    pointer-events: none !important;
}

/* Placeholder bg đơn giản (xám nhạt) khi container thiếu ảnh */
.news-img,
.cat-img,
.product-img,
.cart-img,
.o-img,
.pd-main-img {
    background: var(--gray-100) !important;
}

/* Đảm bảo container chính của news/service không có pseudo đè */
.page-news .container::before,
.page-news .container::after,
.page-service .container::before,
.page-service .container::after,
.single-news .container::before,
.single-news .container::after {
    display: none !important;
    content: none !important;
}

/* Mọi pseudo absolute overlay không được chặn click */
*::before,
*::after {
    pointer-events: none;
}

/* --- Prose typography cho detail content (product / service / news) --- */
.prose {
    color: var(--gray-900);
    font-size: 15px;
    line-height: 1.75;
    word-wrap: break-word;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: var(--gray-900);
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.prose h1 { font-size: 28px; border-bottom: 2px solid var(--gold); padding-bottom: 6px; }
.prose h2 { font-size: 22px; color: var(--green-dark); }
.prose h3 { font-size: 18px; color: var(--green-dark); }
.prose h4 { font-size: 16px; }

.prose p {
    margin: 0 0 1em;
}

.prose strong { color: var(--gray-900); font-weight: 700; }

.prose a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: var(--gold-dark);
}

.prose ul,
.prose ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.prose ul li,
.prose ol li {
    margin-bottom: 0.4em;
    list-style: revert;
}

.prose ul li::marker {
    color: var(--gold);
}

.prose blockquote {
    margin: 1em 0;
    padding: 14px 20px;
    background: var(--gold-light);
    border-left: 4px solid var(--gold);
    border-radius: 6px;
    color: var(--gold-dark);
    font-style: italic;
}

.prose blockquote p {
    margin: 0;
}

.prose img,
.prose figure {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
    display: block;
}

.prose figcaption {
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 14px;
}

.prose th,
.prose td {
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    text-align: left;
}

.prose th {
    background: var(--green);
    color: white;
    font-weight: 600;
}

.prose tr:nth-child(even) td {
    background: var(--gray-50);
}

.prose pre,
.prose code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 13px;
}

.prose pre {
    padding: 14px 18px;
    overflow-x: auto;
    border: 1px solid var(--gray-200);
}

.prose hr {
    margin: 2em 0;
    border: none;
    border-top: 2px dashed var(--gray-200);
}

/* Product description container (single product page) */
.mona-product-detail .pd-section .prose {
    background: var(--gray-50);
    padding: 20px 24px;
    border-radius: 8px;
}

/* Service single content */
.single-service .single-service-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-top: 24px;
}

.single-service .single-service-content .lead {
    font-size: 16px;
    color: var(--green-dark);
    padding: 12px 16px;
    background: var(--green-light);
    border-left: 4px solid var(--green);
    border-radius: 6px;
    margin: 0 0 20px;
    font-style: normal;
}

/* News article */
.news-article {
    font-size: 15px;
}

.news-article .prose img {
    margin: 1.2em auto;
}

@media (max-width: 720px) {
    .news-article {
        padding: 20px !important;
    }
    .news-article-thumb {
        margin: -20px -20px 16px !important;
    }
}

/* --- My Account page --- */
.mona-auth-grid {
    margin-top: 16px;
}

@media (max-width: 720px) {
    .mona-auth-grid {
        grid-template-columns: 1fr !important;
    }
}

.woocommerce-MyAccount-navigation ul.sidebar-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
    width: 100%;
}

.woocommerce-MyAccount-navigation .sidebar-list li {
    border-bottom: 1px solid var(--gray-100);
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

.woocommerce-MyAccount-navigation .sidebar-list li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
}

.woocommerce-MyAccount-navigation .sidebar-list a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar không sticky theo scroll — apply toàn site (shop, my-account, news, service) */
aside .sidebar,
aside .sidebar-banner,
aside .side-banner {
    position: static !important;
    top: auto !important;
}

.woocommerce-MyAccount-navigation .sidebar-list a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.woocommerce-MyAccount-navigation .sidebar-list a.active {
    background: var(--green);
    color: white;
    font-weight: 700;
}

.mona-account-content h2,
.mona-account-content h3 {
    color: var(--gray-900);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-size: 18px;
}

.woocommerce-orders-table,
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td,
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    text-align: left;
}

.woocommerce-orders-table thead th,
.woocommerce-table--order-details thead th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .5px;
}

.woocommerce-orders-table .button,
.woocommerce-table--order-details .button {
    display: inline-block;
    padding: 6px 12px;
    background: var(--green);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 4px;
}

.woocommerce-orders-table .button:hover {
    background: var(--green-dark);
}

.woocommerce-orders-table .button.cancel {
    background: var(--red);
}

.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.woocommerce-Address {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 16px;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 15px;
}

.woocommerce-Address .edit {
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.mona-account-content input[type="text"],
.mona-account-content input[type="email"],
.mona-account-content input[type="tel"],
.mona-account-content input[type="password"],
.mona-account-content select,
.mona-account-content textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.mona-account-content input:focus,
.mona-account-content select:focus,
.mona-account-content textarea:focus {
    outline: none;
    border-color: var(--green);
}

.mona-account-content .button {
    background: var(--gold);
    color: var(--black);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.mona-account-content .button:hover {
    background: var(--gold-dark);
    color: white;
}

@media (max-width: 720px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

/* --- 14. Logo link (header) --- */
.logo,
.logo:hover,
.logo:visited {
    text-decoration: none;
    color: inherit;
}

.header .logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 240px;
    overflow: hidden;
}

.header .logo img,
.header .logo .custom-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .header .logo {
        max-width: 160px;
    }
    .header .logo img,
    .header .logo .custom-logo {
        max-height: 48px;
    }
}

/* --- 15. Hero: grow with content so stats không bị cắt --- */
.hero {
    height: auto;
    min-height: 520px;
}

.hero-swiper,
.hero-swiper .swiper-slide {
    height: auto;
    min-height: 520px;
}

.hero-content {
    padding-top: 64px;
    padding-bottom: 64px;
}

.hero-stats {
    flex-wrap: wrap;
    row-gap: 16px;
}

@media (max-width: 768px) {
    .hero,
    .hero-swiper,
    .hero-swiper .swiper-slide {
        min-height: 480px;
    }
    .hero-content {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 24px;
    }
    .hero-stat {
        text-align: center;
    }
    .hero-stat .num {
        font-size: 26px;
    }
}

/* --- 16. Page banner: cao hơn + background image (có overlay đảm bảo đọc được chữ) --- */
.page-banner {
    padding: 72px 24px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 40, 28, 0.78) 0%, rgba(9, 74, 54, 0.62) 60%, rgba(157, 122, 47, 0.55) 100%);
    z-index: 0;
}

.page-banner > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 56px 20px;
        min-height: 180px;
    }
}

/* =========================================================
 * FEEDBACK ĐỢT 1 — Homepage + Giới thiệu overhaul
 * (load sau common.css nên override base ở specificity ngang)
 * ========================================================= */

/* --- (g) VÀNG ÁNH KIM: gradient kim loại cho mọi chữ vàng --- */
:root {
    --gold-metallic: linear-gradient(135deg,
        #8f6b1e 0%, #d4af37 16%, #f7e89a 34%, #e8c75a 50%,
        #b8860b 66%, #f7e89a 84%, #c8a13e 100%);
}
.text-metallic-gold,
.gold,
.hero-text h1 .gold,
.page-banner .gold,
.hero-stat .num,
.footer-col p[style*="--gold"] {
    background: var(--gold-metallic);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: cpxGoldShimmer 5s linear infinite;
}
@keyframes cpxGoldShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 220% center; }
}
@media (prefers-reduced-motion: reduce) {
    .text-metallic-gold, .gold, .hero-text h1 .gold,
    .hero-stat .num, .home-stat-num { animation: none; }
}

/* =========================================================
 * (a) Bỏ line trên cùng — top-bar đã gỡ khỏi markup header.
 * =========================================================
 * (c)(d) Header gộp 1 hàng: logo to + menu chữ xanh + search nhỏ phải
 * ========================================================= */
.header--inline {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

/* (d) Phóng to logo */
.header--inline .logo { flex: 0 0 auto; max-width: 320px; }
.header--inline .logo img,
.header--inline .logo .custom-logo {
    max-height: 86px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* (c) Menu inline cùng logo, nền trong suốt, chữ xanh */
.main-nav--inline {
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}
.main-nav--inline a {
    flex: 0 0 auto;
    color: var(--green-dark);
    text-transform: uppercase;
    border-right: none;
    padding: 10px 13px;
    /* Task #68 #5 — tăng size text menu +10% (13.5px → 14.85px). */
    font-size: 14.85px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 8px;
    white-space: nowrap;
}
.main-nav--inline a:hover {
    background: var(--green-light);
    color: var(--green);
}
.main-nav--inline a.active {
    background: transparent;
    color: var(--green);
}
.main-nav--inline a.active::after {
    left: 13px;
    right: 13px;
    bottom: 2px;
    height: 3px;
    background: var(--gold-metallic);
}

/* (b) Ô tìm kiếm nhỏ, dồn góc phải */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.search-bar--compact {
    width: 210px;
    max-width: 210px;
    flex: 0 0 auto;
    border-radius: 999px;
}
.search-bar--compact input { padding: 8px 14px; font-size: 13px; }
.search-bar--compact button {
    padding: 0 14px;
    font-size: 15px;
    background: var(--green);
}
/* Task #44: icon kính lúp SVG (thay emoji 🔍 bị lỗi/tofu), canh giữa, màu trắng */
.search-bar--compact button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    border: none;
}
.search-bar--compact button .search-ico {
    width: 18px;
    height: 18px;
    display: block;
    stroke: #fff;
}

/* =========================================================
 * (f) Bỏ phần sọc (stripe) ở banner hero
 * ========================================================= */
.hero-overlay::before,
.hero-visual::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* =========================================================
 * (2) Block "Báo giá nhanh" dùng hình ảnh + button gắn link
 * ========================================================= */
.cta-banner--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-left: 6px solid var(--gold);
}
.cta-banner--image::before { display: none; }
.cta-banner--image h2,
.cta-banner--image p { text-shadow: 0 2px 10px rgba(0,0,0,0.35); }

/* =========================================================
 * (e) Con số nổi bật — section riêng dưới hero
 * ========================================================= */
/* (1) Nền section bỏ — chỉ giữ nền trong từng ô con số (feedback Đợt 1 #1) */
.home-stats-section {
    background: transparent;
    padding: 48px 24px;
    position: relative;
    overflow: hidden;
}
.home-stats-head {
    max-width: 1280px;
    margin: 0 auto 28px;
    text-align: center;
}
.home-stats-head .eyebrow {
    display: inline-block;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.home-stats-head h2 {
    font-size: 30px;
    font-weight: 900;
    color: var(--green-dark);
    margin: 0;
    text-transform: uppercase;
}
.home-stats-head .line {
    width: 64px;
    height: 4px;
    border-radius: 4px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, var(--green), var(--gold));
}
.home-stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.home-stat {
    text-align: center;
    color: #fff;
    padding: 28px 16px;
    border-radius: 16px;
    /* Nền chỉ nằm TRONG ô con số (feedback Đợt 1 #1) */
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(212,165,58,0.14), transparent 55%),
        linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, #0a6147 100%);
    border: 1px solid rgba(212,165,58,0.35);
    box-shadow: 0 10px 28px rgba(9,74,54,0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: cpxStatPop 0.6s ease both;
}
.home-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(9,74,54,0.28);
}
.home-stat:nth-child(2) { animation-delay: 0.08s; }
.home-stat:nth-child(3) { animation-delay: 0.16s; }
.home-stat:nth-child(4) { animation-delay: 0.24s; }
@keyframes cpxStatPop {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}
.home-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    font-size: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(212,165,58,0.55);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    animation: cpxFloat 3.4s ease-in-out infinite;
}
.home-stat:nth-child(even) .home-stat-icon { animation-delay: 0.7s; }
.home-stat-num {
    display: block;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.05;
    background: var(--gold-metallic);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: cpxGoldShimmer 5s linear infinite;
}
.home-stat-lbl {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.9;
}
@keyframes cpxFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* =========================================================
 * Section CAM KẾT (why) — icon hiện đại + chữ to + icon động + nền brand
 * ========================================================= */
.why-section {
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(212,165,58,0.10), transparent 50%),
        linear-gradient(135deg, var(--green-light) 0%, #ffffff 70%);
    position: relative;
}
.why-grid { gap: 28px; }
.why-card { padding: 28px 18px; text-align: center; }
.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
    font-size: 48px;
    line-height: 1;
    color: #fff;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    /* Viền hình màu vàng gold */
    border: 4px solid var(--gold);
    box-shadow:
        0 10px 24px rgba(14,107,78,0.28),
        inset 0 0 0 3px rgba(255,255,255,0.14),
        0 0 0 2px rgba(212,165,58,0.35);
    transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
    animation: cpxFloat 3.6s ease-in-out infinite;
}
/* Ảnh tròn lấp đầy vòng tròn (thay icon) */
.why-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    transition: transform 0.45s cubic-bezier(.2,.7,.3,1);
}
.why-icon--img { background: #fff; }
.why-icon-glyph { display: inline-flex; line-height: 1; }
.why-card:nth-child(2) .why-icon { animation-delay: 0.4s; }
.why-card:nth-child(3) .why-icon { animation-delay: 0.8s; }
.why-card:nth-child(4) .why-icon { animation-delay: 1.2s; }
/* Hiệu ứng zoom-in khi hover chuột (tắt float để zoom hiện rõ) */
.why-card:hover .why-icon {
    animation: none;
    transform: scale(1.12);
    box-shadow:
        0 18px 34px rgba(14,107,78,0.34),
        inset 0 0 0 3px rgba(255,255,255,0.18),
        0 0 0 3px var(--gold);
}
.why-card:hover .why-icon img { transform: scale(1.12); }
.why-card h5 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 14px; line-height: 1.6; }

/* =========================================================
 * DỊCH VỤ (homepage) — icon động
 * ========================================================= */
.svc-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;        /* Task #73 #1 — cắt ảnh theo viền tròn, không lộ góc */
    padding: 0;
}
/* Task #73 #1 — ảnh icon up lên LẤP ĐẦY TRỌN vòng tròn (không còn hở góc/khoảng trống).
   Ghi đè .svc-card img (max 56px contain) cho riêng icon trong .svc-icon. */
.svc-icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 50%;
    display: block;
}
.svc-card:hover .svc-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(14,107,78,0.4);
}

/* =========================================================
 * LOGO MARQUEE — 2 line chạy song song ngược chiều (partners)
 * ========================================================= */
.partner-marquee {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partner-marquee-row { overflow: hidden; }
.partner-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    will-change: transform;
}
.partner-marquee-row--ltr .partner-marquee-track {
    animation: cpxMarqueeLeft 27s linear infinite;
}
.partner-marquee-row--rtl .partner-marquee-track {
    animation: cpxMarqueeRight 27s linear infinite;
}
.partner-marquee:hover .partner-marquee-track { animation-play-state: paused; }
.partner-marquee .partner-card {
    flex: 0 0 auto;
    width: 168px;
    height: 92px;
    margin: 0 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-weight: 700;
    color: var(--green-dark);
}
@keyframes cpxMarqueeLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes cpxMarqueeRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
    .partner-marquee-track { animation: none !important; }
    .partner-marquee { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* =========================================================
 * TRANG GIỚI THIỆU — con số nổi bật section riêng, slide ngang
 * ========================================================= */
.about-stats-section {
    margin: 8px auto 28px;
    max-width: 1100px;
    padding: 0 24px;
    overflow: hidden;
}
.about-stats-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.about-stat-card {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
    border-radius: 14px;
    padding: 22px 14px;
    text-align: center;
    border: 1px solid rgba(212,165,58,0.45);
    box-shadow: 0 8px 20px rgba(14,107,78,0.18);
    animation: cpxSlideX 0.7s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--i, 0) * 0.12s);
}
@keyframes cpxSlideX {
    from { opacity: 0; transform: translateX(-48px); }
    to   { opacity: 1; transform: translateX(0); }
}
.about-stat-ico {
    display: inline-flex;
    width: 52px; height: 52px;
    align-items: center; justify-content: center;
    margin: 0 auto 10px;
    font-size: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(212,165,58,0.6);
}
.about-stat-card .num {
    display: block;
    font-size: 32px;
    font-weight: 900;
    background: var(--gold-metallic);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: cpxGoldShimmer 5s linear infinite;
}
.about-stat-card .lbl {
    display: block;
    margin-top: 4px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* =========================================================
 * RESPONSIVE cho header inline + các section mới
 * ========================================================= */
@media (max-width: 1100px) {
    .main-nav--inline a { padding: 9px 10px; font-size: 13.75px; } /* Task #68 #5 — +10% (12.5→13.75) */
    .header--inline .logo img,
    .header--inline .logo .custom-logo { max-height: 70px; }
    .search-bar--compact { width: 170px; max-width: 170px; }
}

/* Dưới 992px: gập menu vào nút toggle (dropdown trắng, chữ xanh) */
@media (max-width: 992px) {
    .header--inline { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex !important; }
    .main-nav--inline {
        display: none;
        order: 5;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        justify-content: flex-start;
    }
    .main-nav--inline.open {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        background: #fff;
        z-index: 49;
        box-shadow: 0 8px 18px rgba(0,0,0,0.16);
        border-top: 2px solid var(--gold);
        max-height: 75vh;
        overflow-y: auto;
    }
    .main-nav--inline a {
        width: 100%;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid var(--gray-100);
        padding: 14px 18px;
    }
    .main-nav--inline a.active { border-left: 4px solid var(--gold); }
    .main-nav--inline a.active::after { display: none; }
    .header-right { margin-left: auto; }
}

/* =========================================================
 * Task #68 #1 — Khối ảnh cấu hình ở sidebar (thay box "Tư vấn miễn phí").
 * Ảnh hiển thị FULL trong khung (không cắt), bo góc. Dùng cho trang
 * Sản phẩm (shop) + Tin tức (single). Account up ảnh ở Theme Settings.
 * ========================================================= */
.sidebar-promo-image {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 4px 14px rgba(9, 74, 54, 0.12);
}
.sidebar-promo-image img {
    width: 100%;
    height: auto;
    display: block;
}
.sidebar-promo-placeholder {
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    line-height: 1.4;
    padding: 24px;
    background: var(--green-light, #E8F5EF);
    border: 2px dashed var(--green, #0E6B4E);
    color: var(--green-dark, #094A36);
}
.sidebar-promo-placeholder .cpx-ph-icon { font-size: 40px; line-height: 1; }
.sidebar-promo-placeholder .cpx-ph-title { font-size: 16px; font-weight: 700; }
.sidebar-promo-placeholder .cpx-ph-sub { font-size: 12px; opacity: .85; }

/* =========================================================
 * Task #129 #2 — Box ảnh banner sidebar (trang Tin tức + Dịch vụ):
 * ẢNH FULL KHUNG, bỏ nền/padding gold của .side-banner gốc.
 * ========================================================= */
.side-banner--image {
    display: block;
    padding: 0 !important;
    background: none !important;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 4px 14px rgba(9, 74, 54, 0.12);
}
.side-banner--image::before { display: none !important; content: none !important; }
.side-banner--image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.side-banner--placeholder {
    aspect-ratio: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    line-height: 1.4;
    padding: 24px;
    background: var(--green-light, #E8F5EF);
    border: 2px dashed var(--green, #0E6B4E);
    color: var(--green-dark, #094A36);
    box-shadow: none;
}
.side-banner--placeholder .cpx-ph-icon { font-size: 40px; line-height: 1; }
.side-banner--placeholder .cpx-ph-title { font-size: 16px; font-weight: 700; }
.side-banner--placeholder .cpx-ph-sub { font-size: 12px; opacity: .85; }

/* =========================================================
 * Task #68 #3 — Popup "Đã thêm vào giỏ hàng" (CTA giỏ + Bỏ qua).
 * ========================================================= */
body.cpx-modal-open { overflow: hidden; }
.cpx-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cpx-cart-modal.is-open { display: flex; }
.cpx-cart-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 74, 54, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.cpx-cart-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 18px;
    max-width: 420px;
    width: 100%;
    padding: 32px 28px 26px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    animation: cpxPop .25s ease;
}
@keyframes cpxPop {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.cpx-cart-modal__x {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: var(--gray-400, #9aa0a6);
    cursor: pointer;
}
.cpx-cart-modal__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--green-light, #E8F5EF);
    color: var(--green, #0E6B4E);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
}
.cpx-cart-modal__title { margin: 0 0 6px; font-size: 20px; color: var(--green-dark, #094A36); }
.cpx-cart-modal__name { margin: 0 0 22px; font-size: 14px; color: var(--gray-600, #555); min-height: 18px; }
.cpx-cart-modal__actions { display: flex; flex-direction: column; gap: 10px; }
.cpx-cart-modal__actions .btn { width: 100%; justify-content: center; text-align: center; }
.cpx-cart-modal__skip { background: #fff; }
@media (min-width: 480px) {
    .cpx-cart-modal__actions { flex-direction: row; }
    .cpx-cart-modal__actions .btn { flex: 1; }
}

@media (max-width: 768px) {
    .home-stats-inner { grid-template-columns: 1fr 1fr; gap: 18px; }
    .home-stat-num { font-size: 32px; }
    .about-stats-track { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header--inline .logo img,
    .header--inline .logo .custom-logo { max-height: 58px; }
}

@media (max-width: 560px) {
    .header-right { flex: 1 1 100%; order: 4; }
    .search-bar--compact { width: auto; max-width: none; flex: 1; }
    .partner-marquee .partner-card { width: 140px; height: 80px; }
}

@media (max-width: 460px) {
    .home-stats-inner { grid-template-columns: 1fr 1fr; }
    .about-stats-track { grid-template-columns: 1fr 1fr; }
}

/* --- Form contact trong trang chi tiết dịch vụ (feedback Đợt 1 #4) --- */
.service-contact-form {
    margin-top: 48px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-top: 4px solid var(--gold);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 8px 22px rgba(14,107,78,0.08);
}
.service-contact-form .wpcf7-form p { margin: 0 0 14px; }
.service-contact-form input[type="text"],
.service-contact-form input[type="email"],
.service-contact-form input[type="tel"],
.service-contact-form textarea,
.service-contact-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    background: var(--gray-50);
}
.service-contact-form input:focus,
.service-contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
}
.service-contact-form .wpcf7-submit {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: auto;
}
.service-contact-form .wpcf7-submit:hover { background: var(--gold-dark); color: #fff; }

/* =========================================================
 * (3) Footer làm lại theo ảnh mẫu — logo + liên hệ + social + đăng ký báo giá
 * ========================================================= */
.footer--cpx .footer-grid {
    align-items: start;
    display: grid;
    grid-template-columns: 1.6fr 1.2fr 1fr 1.3fr;
    gap: 36px;
}
@media (max-width: 980px) {
    .footer--cpx .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
    .footer--cpx .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer--cpx .footer-brand { padding-right: 12px; }
.footer-logo { display: block; margin-bottom: 16px; }
/* Logo footer đã tách nền (PNG trong suốt) + to hơn ~30%: 64px → 84px
   (feedback Đợt 1 #2). */
.footer-logo img,
.footer-logo .footer-logo-img {
    max-height: 84px;
    height: auto;
    width: auto;
    max-width: 340px;
    display: block;
}
.footer-logo-badge {
    width: 52px; height: 52px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold); color: var(--green-dark);
    font-weight: 900; font-size: 18px; letter-spacing: 0.5px;
}
.footer-logo-name { color: #fff; font-weight: 900; font-size: 20px; letter-spacing: 0.5px; }
.footer-tag { font-size: 13.5px; color: rgba(255,255,255,0.85); line-height: 1.7; margin: 0 0 10px; }
.footer-slogan { color: var(--gold); font-weight: 700; margin: 0; }
/* Task #112 #2 — icon "Thông tin liên hệ" footer: khung bo góc + viền vàng gold. */
.footer--cpx .footer-col p .fi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    font-size: 14px;
    line-height: 1;
    border: 1px solid var(--gold);
    border-radius: 8px;
    background: rgba(212,165,58,0.10);
    vertical-align: middle;
    box-sizing: border-box;
}
.footer--cpx .footer-col p a { display: inline; color: rgba(255,255,255,0.88); }
.footer--cpx .footer-col p a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-social .social-ico {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.10); color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.footer-social a.social-ico:hover { background: var(--gold); color: var(--green-dark); transform: translateY(-3px); }
.footer-social-note { font-size: 12.5px; color: rgba(255,255,255,0.7); margin: 6px 0 0; }

.footer-subscribe { display: flex; margin-top: 10px; max-width: 320px; border-radius: 8px; overflow: hidden; background: #fff; }
.footer-subscribe input {
    flex: 1 1 auto; min-width: 0; border: none; outline: none;
    padding: 11px 12px; font-size: 13.5px; color: var(--gray-900); background: #fff;
}
.footer-subscribe button {
    flex: 0 0 auto; border: none; cursor: pointer;
    padding: 0 16px; font-size: 13px; font-weight: 800; letter-spacing: 0.4px;
    text-transform: uppercase; color: var(--green-dark);
    background: var(--gold); transition: background 0.2s ease, color 0.2s ease;
}
.footer-subscribe button:hover { background: var(--gold-dark); color: #fff; }

@media (max-width: 760px) {
    .footer-logo { justify-content: flex-start; }
    .footer-subscribe { max-width: 100%; }
}

/* =========================================================
 * (Task #40) Footer — nen XANH LA DAM + van da MARBLE theo anh mau PM duyet.
 * Texture gen bang ImageMagick (plasma+sinusoid, tong #03190F -> #0C4A35),
 * dap len base xanh dam, phu nhe overlay toi de giu chu trang de doc.
 * Dung .footer.footer--cpx (2 class) de THANG .footer cua common.css tren MOI trang.
 * ========================================================= */
.footer.footer--cpx {
    background-color: #07261b;
    background-image:
        linear-gradient(rgba(3,20,13,0.28), rgba(3,20,13,0.42)),
        url('assets/images/footer-marble-green.jpg?v=40');
    background-position: center, center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    border-top: 4px solid var(--gold);
}
/* Social icon tong vang gold nhu mau (vien + glyph vang, hover fill vang). */
.footer--cpx .footer-social .social-ico {
    background: rgba(212,165,58,0.10);
    color: var(--gold);
    border: 1px solid var(--gold);
}
.footer--cpx .footer-social a.social-ico:hover {
    background: var(--gold);
    color: var(--green-dark);
    transform: translateY(-3px);
}

/* =========================================================
 * Task #58 — Đối tác đồng hành: Splide loop + AutoScroll
 * (thay marquee 2-line CSS cũ; markup giờ là .partner-splide.splide)
 * ========================================================= */
.partner-splide {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.partner-splide .splide__track { overflow: hidden; }
.partner-splide .splide__list { align-items: center; }
.partner-splide .splide__slide { display: flex; align-items: center; }
.partner-splide .partner-card {
    flex: 0 0 auto;
    width: 168px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-weight: 700;
    color: var(--green-dark);
}
.partner-splide .partner-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
@media (max-width: 560px) {
    .partner-splide .partner-card { width: 140px; height: 80px; }
}

/* Task #63 (#3): icon khối "Thông tin liên hệ" footer hỗ trợ ẢNH upload
   (Theme Settings → Footer & Social). Để trống = emoji mặc định. Ảnh canh
   giữa theo dòng chữ, kích thước nhỏ gọn ~22px. */
/* Task #112 #2 — khi icon footer là ẢNH upload: vẫn giữ khung bo góc viền vàng,
   ảnh canh giữa trong khung 30px. */
.footer--cpx .footer-col p .fi.has-img {
    line-height: 0;
    padding: 4px;
}
.footer--cpx .footer-col p .fi.has-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

/* =========================================================
 * Task #73 #4 — FLOATING CONTACT BUTTONS (Zalo · Messenger · Hotline)
 * Nút tròn, icon VÀNG KIM trên nền XANH LÁ brand, nổi góc phải dưới.
 * Click-to-call cho hotline; link social cấu hình ở Theme Settings.
 * ========================================================= */
.mona-float-contact {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}
.mona-float-contact .mfc-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gold, #E0A93B);
    background:
        radial-gradient(120% 120% at 30% 25%, rgba(255,255,255,0.16), transparent 55%),
        linear-gradient(135deg, var(--green, #0e6b4e) 0%, var(--green-dark, #094a36) 100%);
    box-shadow: 0 8px 20px rgba(7, 61, 44, 0.40), inset 0 0 0 1px rgba(212,165,58,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: mfcPulse 2.4s ease-out infinite;
}
.mona-float-contact .mfc-btn:hover {
    transform: scale(1.10);
    box-shadow: 0 12px 28px rgba(7, 61, 44, 0.52), inset 0 0 0 1px rgba(212,165,58,0.65);
}
.mona-float-contact .mfc-ico { color: var(--gold, #E0A93B); display: flex; }
.mona-float-contact .mfc-ico-zalo {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.4px;
    line-height: 1;
}
.mona-float-contact .mfc-label { display: none; }
/* Task #112 #3 — ảnh upload LẤP KHÍT toàn bộ nút tròn (cover, bo tròn theo nút).
   Khi có ảnh, ảnh phủ kín nút; phần nền gradient xanh chỉ còn viền mỏng.
   Không đặt overflow:hidden lên .mfc-btn để giữ hiệu ứng pulse ring. */
.mona-float-contact .mfc-ico-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}
.mona-float-contact .mfc-ico-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
/* Hiệu ứng nhịp sóng nhẹ quanh nút (chú ý kêu gọi liên hệ) */
@keyframes mfcPulse {
    0%   { box-shadow: 0 8px 20px rgba(7,61,44,0.40), inset 0 0 0 1px rgba(212,165,58,0.45), 0 0 0 0 rgba(14,107,78,0.45); }
    70%  { box-shadow: 0 8px 20px rgba(7,61,44,0.40), inset 0 0 0 1px rgba(212,165,58,0.45), 0 0 0 12px rgba(14,107,78,0); }
    100% { box-shadow: 0 8px 20px rgba(7,61,44,0.40), inset 0 0 0 1px rgba(212,165,58,0.45), 0 0 0 0 rgba(14,107,78,0); }
}
.mona-float-contact .mfc-hotline { animation-delay: 0.8s; }
.mona-float-contact .mfc-messenger { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
    .mona-float-contact .mfc-btn { animation: none; }
}
@media (max-width: 560px) {
    .mona-float-contact { right: 12px; bottom: 14px; gap: 12px; }
    .mona-float-contact .mfc-btn { width: 50px; height: 50px; }
}

/* =========================================================
 * Task #74 #2 — Mobile: hiển thị 2 sản phẩm / hàng.
 * common.css ≤480px ép .product-grid về 1 cột; child load SAU nên
 * override lại 2 cột cho đúng feedback khách (lưới sản phẩm gọn 2/hàng).
 * ========================================================= */
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-img { height: 150px; }
    .product-title { min-height: 34px; font-size: 12.5px; }
    .product-card .product-info { padding: 10px; }
    .product-card .btn-add { font-size: 12px; padding: 8px 6px; }
    .product-card .product-price { font-size: 13.5px; }
}

/* ============================================================
   Task #113 — Footer menu Dịch vụ (#1) + thông tin công ty ở
   phương thức "Thanh toán trực tiếp tại Công ty" (#3)
   ============================================================ */
.footer-menu--service {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-menu--service li {
    margin: 0 0 9px;
}
.footer-menu--service li a {
    display: block;
    color: inherit;
    opacity: .85;
    transition: opacity .2s ease, color .2s ease;
}
.footer-menu--service li a:hover {
    opacity: 1;
    color: var(--gold);
}

/* Thông tin liên hệ công ty — chỉ hiện khi chọn COD (radio :checked) */
.pay-company-info {
    display: none;
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--gold-light);
    border: 1px solid var(--gold);
    border-left-width: 4px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-700);
}
.pay-opt input.input-radio:checked ~ .pay-opt-text .pay-company-info {
    display: block;
}
.pay-company-info .pci-name {
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 4px;
}
.pay-company-info .pci-row {
    margin: 2px 0;
}
.pay-company-info .pci-ico {
    margin-right: 4px;
}
.pay-company-info .pci-row a {
    color: var(--green-dark);
    text-decoration: none;
}
.pay-company-info .pci-hint {
    margin-top: 6px;
    font-style: italic;
    color: var(--gray-700);
}

/* =========================================================
 * Task #129 #1 — Trang Tin tức: ảnh card FILL FULL khung (object-fit:cover),
 * bỏ khoảng trắng, tỉ lệ đồng đều. (Trước đây task#117 dùng contain → hở nền xám.)
 * Khung news-row có chiều cao cố định để mọi card đồng đều.
 * ========================================================= */
.page-news .news-card .news-img img,
.page-news .news-row .news-img img,
.page-news .news-img img.ph-img,
.page-news .news-img picture img {
    object-fit: cover !important;
    object-position: center !important;
    width: 100%;
    height: 100%;
    display: block;
}
.page-news .news-img,
.page-news .news-card .news-img,
.page-news .news-row .news-img {
    background: var(--gray-100);
    overflow: hidden;
}
/* Tỉ lệ đồng đều cho các card list (news-row): khung ảnh cao cố định, ảnh cover lấp đầy */
.page-news .news-row .news-img {
    height: 100%;
    min-height: 180px;
}

/* =========================================================
 * Task #213 #1 — Mobile: header DÍNH (sticky) để mở được menu
 * khi đã lướt xuống. Trước đây .header--inline static → cuộn
 * xuống là hamburger trôi khỏi màn hình, không bấm mở menu được.
 * Header dính làm containing block cho dropdown absolute, nên
 * neo lại đáy header (ghi đè inline top main.js set theo scrollY).
 * ========================================================= */
@media (max-width: 992px) {
    .header--inline {
        position: sticky;
        top: 0;
        z-index: 60;
        background: #fff;
    }
    .main-nav--inline.open {
        position: absolute !important;
        top: 100% !important;
        left: 0;
        right: 0;
    }
}

/* === Task #215 — sale price display on single product === */
.pd-price-box .pd-price-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.pd-price-box .pd-regular-price {
    color: var(--gray-500, #9aa0a6);
    text-decoration: line-through;
    font-size: 16px;
    font-weight: 500;
}
.pd-price-box .pd-sale-badge {
    display: inline-block;
    background: var(--red, #e53935);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
}
