/*************** ADD CUSTOM CSS HERE.   ***************/
.breadcrumbs a.current,
.breadcrumbs a:hover {
    color: var(--primary-color);
}

/* Pháo Hoa 84: Ẩn triệt để dòng phí vận chuyển trên Cart & Checkout */
.ph-custom-shipping-row,
.wc-block-components-totals-shipping {
    display: none !important;
}



@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    .ph-choice-section .ph-choice-card {
        height: auto !important;
        min-height: 0 !important;
        padding: 24px 18px 20px 18px !important;
    }
    .ph-choice-section .ph-choice-image {
        width: 100% !important;
        margin: 16px auto 0 !important;
    }
    .ph-choice-section .ph-choice-image picture,
    .ph-choice-section .ph-choice-image picture img,
    .ph-choice-section .ph-choice-image img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: 575 / 230 !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
    }

    /* Xóa hết padding .ph-guide-section ở mobile */
    .ph-guide-section,
    section.ph-guide-section,
    .section.ph-guide-section {
        padding: 0 !important;
    }

    /* =========================================================
       TỐI ƯU KHOẢNG CÁCH CÁC SECTION TRANG CHỦ TRÊN MOBILE
       (Chỉ áp dụng duy nhất cho giao diện mobile của trang chủ)
    ========================================================= */
    /* 1. Giảm padding của các outer section trên trang chủ */
    body.home .section:not(.ph-new-hero-section) {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    body.home .section.ph-new-hero-section {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 2. Loại bỏ padding lồng nhau bị nhân đôi (double padding) ở các section con */
    body.home .section > .section-content > section,
    body.home .section section {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 3. Tinh chỉnh khoảng cách nội dung từng section cho cân đối, tự nhiên */
    body.home .ph-event-section {
        padding: 4px 10px 10px !important;
        margin: 0 !important;
    }

    body.home .ph-choice-section {
        padding: 8px 10px 10px !important;
        margin: 0 !important;
    }

    body.home .ph-choice-heading {
        margin: 0 auto 14px !important;
    }

    body.home .ph-choice-trust {
        margin-top: 14px !important;
        margin-bottom: 0 !important;
    }

    body.home .ph-occasion-section {
        padding: 4px 10px 8px !important;
        margin: 0 !important;
    }

    body.home .ph-guide-section {
        padding: 4px 10px 8px !important;
        margin: 0 !important;
    }

    body.home .ph-branch-section {
        padding: 8px 10px 12px !important;
        margin: 0 !important;
    }

    body.home .ph-action-section {
        padding: 14px 12px !important;
        margin: 0 !important;
    }

    body.home .video-tiktok {
        padding: 14px 12px !important;
        margin: 0 !important;
    }

    body.home .testimonials {
        padding: 14px 12px !important;
        margin: 0 !important;
    }

    body.home .ph-safety-section {
        padding: 6px 10px 10px !important;
        margin: 0 !important;
    }

    body.home .ph-faq-section {
        padding: 6px 10px 10px !important;
        margin: 0 !important;
    }

    body.home .ph-news-section {
        padding: 6px 10px 10px !important;
        margin: 0 !important;
    }

    body.home .section.contact {
        padding-top: 14px !important;
        padding-bottom: 24px !important;
        margin: 0 !important;
    }

    /* 4. Giảm khoảng cách tiêu đề section để không bị trống trải */
    body.home .section__header {
        margin: 0 auto 14px !important;
    }

    body.home .section__header.center,
    body.home .section__header.left {
        margin-bottom: 14px !important;
    }

    body.home .section__subtitle {
        margin-bottom: 6px !important;
        padding: 5px 14px !important;
        font-size: 11px !important;
    }

    body.home .section__title,
    body.home .section-title {
        margin-top: 0 !important;
        margin-bottom: 6px !important;
    }

    body.home .section__description {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    body.home .section-title-normal,
    body.home .section-title-center {
        margin-bottom: 12px !important;
    }

    body.home .section .row {
        margin-bottom: 0 !important;
    }
}




/* ============================================================
   NỘI DUNG CHI TIẾT SẢN PHẨM CSS (SINGLE PRODUCT DETAILED CONTENT)
   ============================================================ */
.ph-product-detail-content {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
    border-top: 1px solid #ececec;
    padding-top: 30px;
}

.ph-product-detail-content h2,
.ph-product-detail-content h3 {
    font-weight: 700;
    color: #111111;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

.ph-product-detail-content h2 {
    font-size: 1.8em;
}

.ph-product-detail-content h3 {
    font-size: 1.4em;
}

.ph-product-detail-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.2em;
    color: #333333;
}

.ph-product-detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 4px;
}

.ph-product-detail-content ul,
.ph-product-detail-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
}

.ph-product-detail-content li {
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.ph-product-detail-content a {
    color: #b11f24;
    text-decoration: underline;
}

.ph-product-detail-content a:hover {
    color: #d12a2e;
}

@media only screen and (max-width: 48em) {
    .ph-product-detail-content {
        margin-top: 25px;
        margin-bottom: 25px;
        padding-top: 20px;
    }

    .ph-product-detail-content h2 {
        font-size: 1.5em;
    }

    .ph-product-detail-content h3 {
        font-size: 1.2em;
    }

    .ph-product-detail-content p {
        font-size: 14px;
    }
}

/* ============================================================
   WOOCOMMERCE BLOCKS - HIDE SHIPPING METHODS OPTIONS & SELECTIONS
   ============================================================ */
.wc-block-checkout__shipping-option,
.wc-block-checkout__shipping-option-wrap,
.wc-block-components-shipping-rates-control,
.wc-block-components-totals-shipping {
    display: none !important;
}

/* ============================================================
   RESPONSIVE ORDER SUMMARY - WRAP & CENTER TOTAL PRICE ON MOBILE
   ============================================================ */
@media (max-width: 767px) {
    body.woocommerce-checkout .wc-block-components-order-summary-item {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    body.woocommerce-checkout .wc-block-components-order-summary-item__image {
        flex: 0 0 auto !important;
        margin-right: 12px !important;
    }

    body.woocommerce-checkout .wc-block-components-order-summary-item__description {
        flex: 1 1 0% !important;
        min-width: 150px !important;
    }

    body.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 12px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ============================================================
   CUSTOM SWATCHES & CONTACT BUTTONS FOR VARIATIONS CSS
   ============================================================ */

/* Hide WooCommerce native select dropdown for pa_phan-loai attribute */
.variations select[name="attribute_pa_phan-loai"] {
    display: none !important;
}

/* Swatches wrapper styling */
.vmax-swatches-wrapper {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Individual swatch button */
.vmax-swatch-btn {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #dddddd !important;
    border-radius: 99px !important;
    padding: 8px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vmax-swatch-btn:hover {
    border-color: #b11f24 !important;
    color: #b11f24 !important;
    background-color: #fffafb !important;
}

.vmax-swatch-btn.active {
    background-color: #b11f24 !important;
    color: #ffffff !important;
    border-color: #b11f24 !important;
    box-shadow: 0 4px 12px rgba(177, 31, 36, 0.25) !important;
}

.vmax-swatch-btn:focus {
    outline: none !important;
}

/* Helper class to hide elements safely */
.vmax-hide {
    display: none !important;
}

/* Call and Zalo CTA buttons wrapper */
.vmax-custom-cta-wrap {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.vmax-custom-cta-wrap a.button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 99px;
    text-transform: uppercase;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    margin: 0 !important;
    text-shadow: none;
}

/* Phone call CTA button styling */
.vmax-custom-cta-wrap a.vmax-call-btn {
    background-color: #b11f24 !important;
}

.vmax-custom-cta-wrap a.vmax-call-btn:hover {
    background-color: #96161a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(177, 31, 36, 0.3);
}

/* Zalo chat CTA button styling */
.vmax-custom-cta-wrap a.vmax-zalo-btn {
    background-color: #b11f24 !important;
}

.vmax-custom-cta-wrap a.vmax-zalo-btn:hover {
    background-color: #96161a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(177, 31, 36, 0.3);
}

/* Mobile responsive layout */
@media (max-width: 576px) {
    .vmax-custom-cta-wrap {
        flex-direction: column !important;
        gap: 10px;
    }

    .vmax-custom-cta-wrap a.button {
        width: 100% !important;
        padding: 14px 20px !important;
    }

    .vmax-swatches-wrapper {
        width: 100%;
        display: flex;
    }

    .vmax-swatch-btn {
        flex: 1;
        text-align: center;
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

/* Hide quantity selector and add to cart button for contact-only products */
.vmax-contact-price-product .quantity,
.vmax-contact-price-product .single_add_to_cart_button {
    display: none !important;
}

/* Enlarge all buttons inside product loop cards (.price-cta-row) */
.price-cta-row a.button,
.price-cta-row .add-to-cart-button a.button {
    font-size: 14px !important;
    padding: 8px 20px !important;
    height: auto !important;
    line-height: 1.4 !important;
    border-radius: 99px !important;
}

/* ============================================================
   PREMIUM STAR RATING SELECTOR SYSTEM
   ============================================================ */
.comment-form-rating {
    margin-bottom: 25px !important;
}

.comment-form-rating label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

/* Hide the default WooCommerce select dropdown */
.comment-form-rating select {
    display: none !important;
}

/* Base style for stars container */
p.stars {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

p.stars span {
    display: inline-flex !important;
    gap: 12px !important;
    /* Space between stars */
}

/* Style the star link items */
p.stars a {
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    position: relative !important;
    text-indent: -9999px !important;
    border-right: none !important;
    /* Remove the vertical line dividers */
    padding-right: 0 !important;
    margin-right: 0 !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
}

/* Micro-animation: scale up when hovered */
p.stars a:hover {
    transform: scale(1.3) !important;
}

/* Style the star icon pseudo-element */
p.stars a::before {
    content: "\e011" !important;
    /* Flatsome star icon */
    font-family: "flatsome-icons" !important;
    text-indent: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 24px !important;
    /* Enlarged star size */
    line-height: 24px !important;
    text-align: center !important;
    color: #e3e3e3 !important;
    /* Unselected grey state */
    transition: color 0.15s ease, text-shadow 0.15s ease !important;
}

/* Selected state: Reset succeeding stars after the active one */
p.stars.selected a.active::before,
p.stars.selected a.active~a::before {
    color: #e3e3e3 !important;
}

/* Make selected stars gold */
p.stars.selected a::before {
    color: #ffb400 !important;
    /* Selected state gold */
    text-shadow: 0 0 4px rgba(255, 180, 0, 0.2) !important;
}

/* Hover state: Set all to gold on parent hover */
p.stars:hover a::before {
    color: #ffb400 !important;
}

/* Reset succeeding stars to grey on hover */
p.stars a:hover~a::before {
    color: #e3e3e3 !important;
    text-shadow: none !important;
}

/* Selected active star glow */
p.stars.selected a.active::before {
    color: #ffb400 !important;
    text-shadow: 0 0 8px rgba(255, 180, 0, 0.4) !important;
}

/* Custom border for the review form wrapper */
.single-product #review_form_wrapper {
    border: 2px solid var(--fs-color-primary) !important;
}

/* Hide static contact price text on loop cards */
.product-small .vmax-contact-price {
    display: none !important;
}

@media (max-width: 767px) {

    /* Push "Liên hệ" button down on mobile by creating a placeholder height for the empty price area */
    .home .product-small:has(.custom-contact-btn) .price-cta-row .price {
        min-height: 54px !important;
        display: block !important;
    }
}

@media (max-width: 767px) {

    /* Hide redundant order summary title above contact info on mobile */
    .wc-block-components-checkout-order-summary__title {
        display: none !important;
    }
}

/* ============================================================
   CUSTOM POLICY PAGES STYLING (HƯỚNG DẪN MUA HÀNG, CHÍNH SÁCH)
   ============================================================ */
.ph-custom-page-container {
    margin: 0px auto;
    padding: 30px 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    border: 1px solid #f1f1f1;
}

.ph-custom-page-container h1 {
    font-size: 2.2em;
    font-weight: 800;
    color: #b11f24;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 3px solid #b11f24;
    padding-bottom: 12px;
    margin-top: 0;
}

/* Table of contents styling */
.ph-custom-page-toc {
    background-color: #fcfcfc;
    border-left: 4px solid #b11f24;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    border: 1px solid #efefef;
    border-left-width: 4px;
}

.ph-custom-page-toc-title {
    font-weight: 700;
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ph-custom-page-toc ul {
    margin: 0 !important;
    padding-left: 0 !important;
    list-style-type: none !important;
}

.ph-custom-page-toc li {
    margin-bottom: 6px;
}

.ph-custom-page-toc a {
    color: #b11f24;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ph-custom-page-toc a:hover {
    color: #96161a;
    text-decoration: underline;
}

/* Content headings & body text */
.ph-custom-page-content h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: #b11f24;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 8px;
}

.ph-custom-page-content h3 {
    font-size: 1.2em;
    font-weight: 700;
    color: #333333;
    margin-top: 1.3em;
    margin-bottom: 0.5em;
}

.ph-custom-page-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 1.2em;
}

.ph-custom-page-content ul,
.ph-custom-page-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
}

.ph-custom-page-content li {
    font-size: 16px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 0.6em;
}

.ph-custom-page-content strong {
    color: #111111;
}

/* Contact box at the end of content */
.ph-custom-page-contact-box {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fdf4f4 0%, #fffbfb 100%);
    border: 2px dashed #b11f24;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
}

.ph-custom-page-contact-box h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: #b11f24;
    margin-top: 0;
    margin-bottom: 10px;
}

.ph-custom-page-contact-box p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
}

.ph-custom-page-contact-btns {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.ph-custom-page-contact-btns a.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 99px;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    text-transform: uppercase;
}

.ph-custom-page-contact-btns a.ph-page-hotline {
    background-color: #b11f24 !important;
}

.ph-custom-page-contact-btns a.ph-page-hotline:hover {
    background-color: #96161a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(177, 31, 36, 0.2);
}

.ph-custom-page-contact-btns a.ph-page-zalo {
    background-color: #0068ff !important;
    /* Premium Zalo blue */
}

.ph-custom-page-contact-btns a.ph-page-zalo:hover {
    background-color: #0056d6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 104, 255, 0.2);
}

/* Mobile responsive fixes */
@media (max-width: 767px) {
    .ph-custom-page-container {
        padding: 20px 15px;
        margin: 15px auto;
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid #eeeeee;
    }

    .ph-custom-page-container h1 {
        font-size: 1.6em;
    }

    .ph-custom-page-content h2 {
        font-size: 1.3em;
    }

    .ph-custom-page-content h3 {
        font-size: 1.15em;
    }

    .ph-custom-page-contact-btns {
        flex-direction: column;
        width: 100%;
    }

    .ph-custom-page-contact-btns a.button {
        width: 100%;
    }
}

/* ============================================================
   CLASSIFICATION PAGE CUSTOM COMPONENTS (TABLE, ACCORDION, EMPTY STATE)
   ============================================================ */

/* SEO Premium Table */
.ph-seo-table-wrap {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

table.ph-seo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background-color: #ffffff;
    font-size: 15px;
}

table.ph-seo-table th {
    background-color: #b11f24;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #b11f24;
}

table.ph-seo-table td {
    padding: 12px 16px;
    border: 1px solid #eeeeee;
    color: #444444;
    line-height: 1.6;
}

table.ph-seo-table tr:nth-child(even) {
    background-color: #fdfafb;
}

/* Premium FAQ Accordion using semantic details/summary */
.ph-faq-container {
    margin-top: 30px;
    margin-bottom: 40px;
}

details.ph-faq-accordion {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

details.ph-faq-accordion[open] {
    border-color: #b11f24;
    box-shadow: 0 4px 15px rgba(177, 31, 36, 0.05);
}

summary.ph-faq-summary {
    list-style: none;
    outline: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: #333333;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease;
    user-select: none;
}

summary.ph-faq-summary::-webkit-details-marker {
    display: none;
}

summary.ph-faq-summary:hover {
    background-color: #fffafb;
    color: #b11f24;
}

summary.ph-faq-summary::after {
    content: "" !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #888888 !important;
    border-bottom: 2px solid #888888 !important;
    transform: rotate(45deg) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
    margin-right: 5px !important;
}

details.ph-faq-accordion[open] summary.ph-faq-summary {
    border-bottom: 1px solid #eeeeee;
    color: #b11f24;
    background-color: #fffafb;
}

details.ph-faq-accordion[open] summary.ph-faq-summary::after {
    transform: rotate(-135deg) !important;
    border-color: #b11f24 !important;
}

.ph-faq-content {
    padding: 16px 20px;
    color: #555555;
    line-height: 1.6;
    font-size: 15px;
    background-color: #fafafa;
}

.ph-faq-content p:last-child {
    margin-bottom: 0;
}

/* Empty State Box for BCA */
.ph-empty-state-box {
    text-align: center;
    padding: 40px 30px;
    background-color: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin: 30px auto;
    max-width: 600px;
}

.ph-empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.ph-empty-state-box h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: #b11f24;
    margin-top: 0;
    margin-bottom: 10px;
}

.ph-empty-state-box p {
    font-size: 15px;
    color: #666666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.ph-empty-state-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.ph-empty-state-btns a.button {
    min-height: 44px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 99px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.ph-empty-state-btns a.ph-empty-hotline {
    background-color: #b11f24 !important;
    color: #ffffff !important;
}

.ph-empty-state-btns a.ph-empty-hotline:hover {
    background-color: #96161a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(177, 31, 36, 0.2);
}

.ph-empty-state-btns a.ph-empty-zalo {
    background-color: #0068ff !important;
    color: #ffffff !important;
}

.ph-empty-state-btns a.ph-empty-zalo:hover {
    background-color: #0056d6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 104, 255, 0.2);
}

/* Category grid adjustments */
.category-page-row {
    margin-bottom: 40px;
}

/* Force equal card heights and button alignments in classification product grids */
.category-page-row .products.row>.col {
    display: flex !important;
    flex-direction: column !important;
}

.category-page-row .products.row>.col>.col-inner {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff !important;
}

.category-page-row .products.row .product-small.box {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin-bottom: 0 !important;
}

.category-page-row .products.row .product-small.box .box-text {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 15px 10px !important;
}

.category-page-row .products.row .product-small.box .box-image {
    flex-shrink: 0 !important;
}

/* Force wrapped CTA buttons to expand to 100% card width when stacked vertically below price */
.products.row .price-cta-row {
    flex-wrap: wrap !important;
}

.products.row .price-cta-row .add-to-cart-button,
.products.row .price-cta-row a.button,
.products.row .price-cta-row a.custom-contact-btn {
    flex: 1 1 auto !important;
    display: inline-flex !important;
}

.products.row .price-cta-row .add-to-cart-button a,
.products.row .price-cta-row a.button,
.products.row .price-cta-row a.custom-contact-btn {
    width: 100% !important;
    justify-content: center !important;
}


/* ============================================================
   PAGE GIỚI THIỆU (ID 424) - 100% FULL-WIDTH VIEWPORT
   ============================================================ */
.page-id-424 #content,
.page-id-424 .content-area,
.page-id-424 .page-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-id-424 .row.row-main {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.page-id-424 .row.row-main>.col,
.page-id-424 .row.row-main>.col>.col-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Reduce vertical padding between layout sections on single product pages */
.custom-product-page-layout-269>section.section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* ============================================================
   PREMIUM MOBILE DRAWER MENU STYLING (PHÁO HOA 84)
   ============================================================ */

/* 1. Mobile menu container & general styling */
.mobile-sidebar {
    background-color: #ffffff !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

/* 2. Menu Level 1 (Parent items) */
.mobile-sidebar ul.nav-sidebar>li {
    margin-bottom: 8px !important;
    border-bottom: 1px solid #f1f3f5 !important;
    /* Light bottom border */
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: visible !important;
    transition: background-color 0.25s ease, border-color 0.25s ease !important;
    border: none !important;
    box-shadow: none !important;
}

/* Parent links alignment and layout */
.mobile-sidebar ul.nav-sidebar>li>a {
    display: flex !important;
    align-items: center !important;
    height: 52px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    /* Dark text color */
    padding: 0 12px !important;
    text-transform: none !important;
    /* Normal text-case */
    letter-spacing: normal !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 3. Dropdown toggle button styling */
#main-menu li.menu-item-has-children>.toggle {
    position: absolute !important;
    right: 12px !important;
    top: 26px !important;
    /* Center vertically relative to 52px row height */
    transform: translateY(-50%) rotate(0deg) !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
    z-index: 10 !important;
}

/* Rotate arrow when open */
#main-menu li.is-open>.toggle {
    transform: translateY(-50%) rotate(180deg) !important;
    opacity: 0.9 !important;
}

/* Arrow icon sizing */
#main-menu li.menu-item-has-children>.toggle i,
#main-menu li.menu-item-has-children>.toggle svg {
    font-size: 13px !important;
    width: auto !important;
    height: auto !important;
}

/* 4. Active parent state (Sản phẩm is-open) */
.mobile-sidebar ul.nav-sidebar>li.is-open {
    background-color: #fff9f6 !important;
    /* Light premium orange/red background */
    border-left: 3px solid #d71920 !important;
    /* Brand red left accent border */
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.mobile-sidebar ul.nav-sidebar>li.is-open>a {
    color: #c9181f !important;
    /* Highlighted brand red text color */
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

/* 5. Submenu container (block) styling */
#main-menu li.menu-item-has-children>ul {
    display: block !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    /* width: auto !important; */
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    /* background-color: #fafafa !important; */
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: max-height 0.28s ease, opacity 0.25s ease !important;
}

/* Submenu container when parent is open */
#main-menu li.is-open>ul {
    max-height: 250px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    padding: 6px 0 10px 0 !important;
    border-radius: 0 0 8px 8px !important;
    /* border-top: 1px solid #f1f3f5 !important; */
    margin-bottom: 8px !important;
}

/* 6. Submenu list items & links */
#main-menu li.is-open>ul>li {
    border-bottom: 1px solid #f3f4f6 !important;
    /* Very light item border */
    margin: 0 !important;
}

#main-menu li.is-open>ul>li:last-child {
    border-bottom: none !important;
    /* Remove last item border */
}

/* Submenu links styling */
#main-menu li.is-open>ul>li>a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 14px 12px 24px !important;
    /* Slightly indented padding */
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Hover/Touch active state on submenu links */
#main-menu li.is-open>ul>li>a:hover,
#main-menu li.is-open>ul>li>a:active {
    background-color: #fff0ed !important;
    color: #c9181f !important;
}

/* 7. Close button (X) premium restyling */
button.mfp-close {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    background: #f5f5f5 !important;
    color: #111827 !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 15px 15px 0 0 !important;
    /* Căn đều với mép phải và trên */
    transition: background-color 0.2s ease, color 0.2s ease !important;
    outline: none !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
}

button.mfp-close:hover,
button.mfp-close:active {
    background-color: #eeeeee !important;
    color: #c9181f !important;
}

/* Remove any Flatsome default layout borders on active/open states */
.mobile-sidebar .nav-sidebar>li.active,
.mobile-sidebar .nav-sidebar>li:hover {
    border-color: #f1f3f5 !important;
    background-color: #ffffff !important;
}

/* Fireworks Canvas Safe Transparent Styling (Guarantees transparent background across all mobile/Android browsers) */
#hao-fireworks {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    pointer-events: none !important;
    z-index: 95 !important;
    background: transparent !important;
    background-color: transparent !important;
}


/* ============================================================
   CỤM SECTION MỚI (THEO ẢNH THAM CHIẾU PHÁO HOA 84 BÀ ĐIỂM)
   ============================================================ */
.ph-mockup-cluster {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1E293B;
    line-height: 1.6;
    overflow-x: hidden;
}

.ph-mockup-cluster * {
    box-sizing: border-box;
}

.phm-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.phm-img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.phm-poster-frame {
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(11, 37, 69, 0.06);
    border: 1px solid #ECEFF4;
}

/* 1. LỊCH SỬ & PHÁT TRIỂN */
.phm-history-section {
    padding: 55px 0 45px 0;
    background-color: #FFFDF8;
}

.phm-main-title {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800;
    color: #C9181F;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.phm-sparkle-gold {
    color: #EAA728;
    display: inline-block;
    padding: 0 4px;
}

.phm-subtitle {
    font-size: 15px;
    line-height: 1.65;
    color: #4A5568;
    max-width: 820px;
    margin: 0 auto 35px auto;
}

.phm-history-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.phm-history-card {
    background: #FFFFFF;
    border: 1px solid #ECEFF4;
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(11, 37, 69, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phm-history-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(11, 37, 69, 0.08);
}

.phm-card-icon-wrap {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.phm-history-icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(234, 167, 40, 0.15));
}

.phm-card-title {
    font-size: 16px;
    font-weight: 750;
    color: #0B2545;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.35;
}

.phm-title-highlight {
    color: #C9181F;
    font-weight: 800;
}

.phm-card-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #64748B;
    margin: 0;
}

/* 2 & 3. SẢN PHẨM TRỌNG TÂM + VÌ SAO CHỌN CỬA HÀNG 84 */
.phm-prod-and-why-section {
    padding: 35px 0 45px 0;
    background-color: #FFFFFF;
}

.phm-prod-why-grid {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.phm-products-box {
    background: radial-gradient(circle at 50% 20%, #153A6B 0%, #07182C 85%);
    border-radius: 16px;
    padding: 28px 22px;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 28px rgba(7, 24, 44, 0.15);
}

.phm-box-title {
    font-size: 22px;
    font-weight: 800;
    color: #F5BA42;
    margin-top: 0;
    margin-bottom: 6px;
}

.phm-box-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
}

.phm-prods-3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    flex-grow: 1;
}

.phm-prod-item-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    color: #1E293B;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease;
}

.phm-prod-item-card:hover {
    transform: translateY(-4px);
}

.phm-prod-img-wrap {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.phm-prod-img-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.phm-prod-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.phm-prod-name {
    font-size: 16px;
    font-weight: 800;
    color: #C9181F;
    margin-top: 0;
    margin-bottom: 6px;
}

.phm-prod-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.phm-prod-name a:hover {
    color: #900e13;
}

.phm-prod-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748B;
    margin-bottom: 14px;
    flex-grow: 1;
}

.phm-btn-pill-red {
    display: inline-block;
    background: #C9181F;
    color: #FFFFFF !important;
    font-size: 12.5px;
    font-weight: 750;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.phm-btn-pill-red:hover {
    background: #E0282E;
}

.phm-why-shop-box {
    background: #FFFDF8;
    border: 1px solid #ECEFF4;
    border-radius: 16px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(11, 37, 69, 0.04);
}

.phm-why-title {
    font-size: 21px;
    font-weight: 800;
    color: #C9181F;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 20px;
}

.phm-why-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.phm-why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.phm-why-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #A3712C;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phm-badge-text {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.phm-ico-why-price {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Ccircle cx='7' cy='7' r='1.5' fill='%23FFFFFF'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phm-ico-why-truck {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='14' height='13' rx='1'/%3E%3Cpolygon points='15 8 19 8 22 11 22 16 15 16 15 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5' fill='%23FFFFFF'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5' fill='%23FFFFFF'/%3E%3Cline x1='1' y1='9' x2='6' y2='9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phm-ico-why-shield {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phm-why-info {
    flex-grow: 1;
}

.phm-why-heading {
    font-size: 15px;
    font-weight: 800;
    color: #0B2545;
    margin-top: 0;
    margin-bottom: 3px;
}

.phm-why-text {
    font-size: 13px;
    line-height: 1.45;
    color: #64748B;
    margin: 0;
}

.phm-why-cta-bottom {
    background: #C9181F;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
}

/* 4 & 5. POSTER QUY TRÌNH + BÀ ĐIỂM */
.phm-process-badiem-section {
    padding: 35px 0 45px 0;
    background-color: #FFFDF8;
}

.phm-process-badiem-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.phm-badiem-intro-card {
    background: #FFFFFF;
    border: 1px solid #ECEFF4;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(11, 37, 69, 0.04);
}

.phm-badiem-content-inner {
    padding: 28px 24px 20px 24px;
}

.phm-badiem-title {
    font-size: 22px;
    font-weight: 900;
    color: #C9181F;
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.phm-badiem-subtitle {
    font-size: 14.5px;
    font-weight: 700;
    color: #0B2545;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 12px;
}

.phm-badiem-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #4A5568;
    margin: 0;
}

.phm-badiem-footer-img {
    margin-top: auto;
    border-top: 1px solid #ECEFF4;
    overflow: hidden;
}

.phm-badiem-footer-img img {
    width: 100%;
    height: auto;
    display: block;
}

.phm-process-poster-col {
    display: flex;
}

.phm-poster-frame {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(11, 37, 69, 0.05);
}

/* 6, 7 & 8. 3 COLUMNS SECTION */
.phm-features-3col-section {
    padding: 45px 0 50px 0;
    background: radial-gradient(circle at 10% 20%, rgba(255, 235, 215, 0.45) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(255, 220, 200, 0.4) 0%, transparent 45%),
        #FFFDF8;
    position: relative;
}

.phm-features-3col-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1.2fr;
    gap: 24px;
    align-items: stretch;
}

.phm-col-featured-prod,
.phm-col-why-badiem {
    background: #FFFFFF;
    border: 1px solid #ECEFF4;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phm-col-featured-prod:hover,
.phm-col-why-badiem:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(11, 37, 69, 0.08);
}

.phm-col-featured-prod {
    padding: 24px 22px 0 22px;
    overflow: hidden;
}

.phm-col-why-badiem {
    padding: 24px 24px 22px 24px;
}

.phm-card-badge-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.phm-badge-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.phm-col-num-title {
    font-size: 16.5px;
    font-weight: 850;
    color: #0B2545;
    margin-top: 0;
    margin-bottom: 5px;
    letter-spacing: 0.2px;
    text-align: center;
}

.phm-col-sub-red {
    font-size: 14.5px;
    font-weight: 800;
    color: #C9181F;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
}

.phm-col-body-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4A5568;
    margin: 0 0 16px 0;
    text-align: center;
}

.phm-prod-pedestal-wrap {
    margin: auto -22px 0 -22px;
    width: calc(100% + 44px);
    overflow: hidden;
    line-height: 0;
}

.phm-pedestal-img {
    width: 100%;
    height: auto;
    display: block;
}

.phm-checklist-badiem {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-grow: 1;
    justify-content: space-around;
}

.phm-checklist-badiem li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #F1F4F8;
    font-size: 13.5px;
    font-weight: 700;
    color: #0B2545;
    line-height: 1.45;
}

.phm-checklist-badiem li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.phm-check-gold-svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.phm-col-poster-3step {
    display: flex;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 37, 69, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.phm-col-poster-3step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(11, 37, 69, 0.09);
}

.phm-poster-3step-hd {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

/* ==================================================
   3, 4, 5, 6. HƯỚNG DẪN AN TOÀN, QUY ĐỊNH, FAQ, LIÊN HỆ
================================================== */
.phm-safety-legal-section {
    padding: 30px 0 14px 0;
    background-color: #FAF8F5;
}

.phm-safety-legal-grid,
.phm-faq-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    /* Khong ep chieu cao card, tu co theo content */
    grid-auto-rows: auto;
}

/* Common Card Header */
.phm-sec-title {
    font-size: 17.5px;
    font-weight: 850;
    color: #0B2545;
    margin-top: 0;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    text-align: center;
}

.phm-sec-title .phm-star {
    color: #E5A83B;
    font-size: 15px;
    vertical-align: middle;
}

.phm-sec-title .phm-num {
    color: #C9181F;
}

.phm-sec-sub {
    font-size: 14.5px;
    font-weight: 750;
    color: #C9181F;
    margin-top: 0;
    margin-bottom: 18px;
    text-align: center;
}

/* SECTION 3 - HƯỚNG DẪN SỬ DỤNG */
.phm-safety-col {
    background: #FFFFFF;
    border: 1px solid #ECEFF4;
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
    display: block;
    height: auto;
    min-height: 0;
}

.phm-safety-content-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 0;
}

.phm-safety-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phm-step-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #334155;
}

.phm-point-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E5A83B 0%, #C47A1B 100%);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 2px 6px rgba(196, 122, 27, 0.25);
}

.phm-safety-poster-wrap {
    width: 100%;
    max-width: 210px;
    margin: 0 auto;
}

.phm-poster-frame {
    width: 100%;
    object-fit: contain;
    height: auto;
    border-radius: 14px;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.phm-safety-highlight-callout {
    background: #FFF5F4;
    border: 1px solid #FFE4E4;
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.phm-callout-line {
    flex: 1;
    height: 1px;
    background: #FCA5A5;
    max-width: 60px;
}

.phm-callout-badge-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #C9181F;
    font-size: 13.5px;
    font-weight: 750;
    white-space: nowrap;
}

.phm-shield-icon-svg {
    flex-shrink: 0;
}

/* --- VECTOR SVG ICONS FOR SECTIONS 3, 4, 5, 6 --- */
.phm-ico-shield {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C9181F'%3E%3Cpath d='M12 2L4 6v6c0 5.5 3.5 10.7 8 12 4.5-1.3 8-6.5 8-12V6l-8-4zm-2 15l-4-4 1.4-1.4 2.6 2.6 6.6-6.6 1.4 1.4-8 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.phm-ico-legal-doc {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9181F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cline x1='10' y1='9' x2='8' y2='9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phm-ico-legal-shield {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9181F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phm-ico-legal-gavel {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9181F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14 13-7.5 7.5a2.12 2.12 0 1 1-3-3L11 10'/%3E%3Cpath d='m16 16 6-6a2 2 0 0 0 0-2.83l-2.83-2.83a2 2 0 0 0-2.83 0l-6 6' stroke-width='2'/%3E%3Cline x1='14' y1='13' x2='11' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phm-ico-faq-cart {
    display: inline-block;
    width: 17px;
    height: 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9181F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1.5' fill='%23C9181F'/%3E%3Ccircle cx='20' cy='21' r='1.5' fill='%23C9181F'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phm-ico-faq-doc {
    display: inline-block;
    width: 17px;
    height: 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9181F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phm-ico-faq-tools {
    display: inline-block;
    width: 17px;
    height: 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9181F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phm-ico-faq-support {
    display: inline-block;
    width: 17px;
    height: 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9181F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.phm-ico-btn-phone {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFFFFF'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.phm-ico-btn-cart {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1.5' fill='%23FFFFFF'/%3E%3Ccircle cx='20' cy='21' r='1.5' fill='%23FFFFFF'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

/* SECTION 4 - QUY ĐỊNH */
.phm-legal-col {
    background: #FFFFFF;
    border: 1px solid #ECEFF4;
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
    display: block;
    height: auto;
    min-height: 0;
}

.phm-scales-wrap {
    margin-bottom: 14px;
}

.phm-scales-img {
    max-width: 220px;
    max-height: 135px;
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.phm-legal-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.phm-legal-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.phm-legal-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid #FCA5A5;
    background: #FFF5F4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.phm-legal-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #334155;
    flex: 1;
}

/* SECTION 5 & 6 CONTAINER */
.phm-faq-contact-section {
    padding: 14px 0 45px 0;
    background-color: #FAF8F5;
}

/* SECTION 5 - FAQ ACCORDION */
.phm-faq-box {
    background: #FFFFFF;
    border: 1px solid #ECEFF4;
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 4px 20px rgba(11, 37, 69, 0.05);
    display: block;
    height: auto;
    min-height: 0;
}

.phm-faq-title-margin {
    margin-bottom: 18px;
}

.phm-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phm-faq-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
    transition: all 0.2s ease;
}

.phm-faq-card:hover {
    background-color: #FAFAFC;
    border-color: #CBD5E1;
}

.phm-faq-card[open] {
    border-color: #E2E8F0;
    background: #FFFFFF;
}

.phm-faq-summary {
    padding: 12px 16px;
    min-height: 52px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    user-select: none;
}

.phm-faq-summary::-webkit-details-marker {
    display: none;
}

.phm-faq-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFF1F0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phm-faq-badge-q {
    font-size: 15px;
    font-weight: 850;
    color: #C9181F;
}

.phm-faq-q {
    font-size: 14px;
    font-weight: 750;
    color: #0B2545;
    flex: 1;
    line-height: 1.4;
}

.phm-faq-toggle {
    margin-left: auto;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    color: #D97706;
    flex-shrink: 0;
    padding-left: 8px;
}

.phm-faq-toggle::before {
    content: "+";
}

.phm-faq-card[open] .phm-faq-toggle {
    color: #C9181F;
}

.phm-faq-card[open] .phm-faq-toggle::before {
    content: "−";
}

.phm-faq-answer {
    padding: 0 16px 14px 60px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
}

.phm-faq-answer p {
    margin: 0;
}

/* SECTION 6 - LIÊN HỆ PHÁO HOA 84 BÀ ĐIỂM (CTA) */
.phm-contact-card {
    background: radial-gradient(circle at 50% 25%, rgba(18, 48, 86, 0.90) 0%, rgba(7, 24, 44, 0.97) 85%), url('/wp-content/uploads/2026/08/phm-contact-navy-bg.jpg') center/cover no-repeat;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 30px rgba(7, 24, 44, 0.22);
    padding: 28px 26px;
    color: #FFFFFF;
    display: block;
    height: auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.phm-contact-card-inner {
    display: block;
    height: auto;
    min-height: 0;
}

.phm-contact-card .phm-sec-title {
    color: #FFFFFF;
}

.phm-contact-card .phm-sec-title .phm-num {
    color: #FFFFFF;
}

.phm-sub-gold {
    color: #F5BA42 !important;
    margin-bottom: 14px;
}

.phm-cta-desc-wrap {
    margin-bottom: 14px;
}

.phm-cta-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.phm-cta-desc:last-child {
    margin-bottom: 0;
}

.phm-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 14px 0;
    flex-wrap: wrap;
}

.phm-btn-call {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #E52E2E 0%, #C9181F 100%);
    border: 1.5px solid #FFA39E;
    border-radius: 50px;
    padding: 8px 22px;
    color: #FFFFFF !important;
    text-decoration: none !important;
    box-shadow: 0 4px 18px rgba(201, 24, 31, 0.45), 0 0 12px rgba(255, 77, 79, 0.3);
    transition: all 0.25s ease;
}

.phm-btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(201, 24, 31, 0.6), 0 0 16px rgba(255, 77, 79, 0.5);
    background: linear-gradient(135deg, #F03535 0%, #D41A22 100%);
}

.phm-btn-call-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phm-btn-call-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.phm-btn-call-sub {
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.1;
}

.phm-btn-call-num {
    font-size: 16px;
    font-weight: 850;
    color: #FFFFFF;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.phm-btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(11, 37, 69, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    border-radius: 50px;
    padding: 12px 22px;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 750;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.phm-btn-shop:hover {
    transform: translateY(-2px);
    border-color: #F5BA42;
    color: #F5BA42 !important;
    box-shadow: 0 4px 16px rgba(245, 186, 66, 0.25);
    background: rgba(11, 37, 69, 0.8);
}

.phm-btn-shop svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.phm-btn-shop:hover svg {
    transform: scale(1.08);
}

.phm-cta-slogan {
    text-align: center;
    color: #F5BA42;
    font-size: 15.5px;
    font-weight: 750;
    margin-top: 14px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.2px;
}

.phm-cta-slogan .phm-star {
    font-size: 14px;
    vertical-align: middle;
}

/* RESPONSIVE DESIGN (TABLET & MOBILE) */
@media (max-width: 1023px) {
    .phm-history-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .phm-prod-why-grid,
    .phm-process-badiem-grid,
    .phm-safety-legal-grid,
    .phm-faq-contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .phm-features-3col-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .phm-col-poster-3step {
        grid-column: span 2;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .phm-container {
        padding: 0 16px;
    }

    .phm-history-grid,
    .phm-prods-3-grid,
    .phm-features-3col-grid,
    .phm-safety-content-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .phm-col-poster-3step {
        grid-column: span 1;
        width: 100%;
    }

    .phm-safety-col,
    .phm-legal-col,
    .phm-faq-box,
    .phm-contact-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .phm-safety-poster-wrap {
        max-width: 340px;
        margin: 0 auto;
    }

    .phm-callout-badge-inner {
        font-size: 12.5px;
        white-space: normal;
        text-align: center;
    }

    .phm-faq-answer {
        padding: 0 12px 14px 14px;
    }

    .phm-cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .phm-btn-call,
    .phm-btn-shop {
        width: 100%;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ========================================================
   SECTION GỢI Ý PHÁO HOA PHÙ HỢP (TRANG CHỦ) - ICONS & HOVER
   ======================================================== */
.ph-occasion-icon {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: rgba(255, 61, 0, 0.08) !important;
    color: #ff3d00 !important;
    margin: 0 auto 16px auto !important;
    transition: all 0.3s ease !important;
}

.ph-occasion-card:hover .ph-occasion-icon {
    background: #ff3d00 !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 6px 16px rgba(255, 61, 0, 0.25) !important;
}

.ph-occasion-icon svg {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    transition: transform 0.3s ease !important;
}

.ph-occasion-card:hover .ph-occasion-icon svg {
    stroke: #ffffff !important;
}

/* Fallback via CSS background/mask if inner SVG is ever stripped by WP editor */
.ph-occasion-icon.ph-occ-tet:empty::before,
.ph-occasion-card:nth-child(1) .ph-occasion-icon:empty::before {
    content: "";
    width: 32px;
    height: 32px;
    background-color: 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%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") no-repeat center / contain;
    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%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E") no-repeat center / contain;
    display: inline-block;
}

.ph-occasion-icon.ph-occ-khaitruong:empty::before,
.ph-occasion-card:nth-child(2) .ph-occasion-icon:empty::before {
    content: "";
    width: 32px;
    height: 32px;
    background-color: 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%3Cline x1='12' y1='2' x2='12' y2='6'/%3E%3Cline x1='12' y1='18' x2='12' y2='22'/%3E%3Cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'/%3E%3Cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'/%3E%3Cline x1='2' y1='12' x2='6' y2='12'/%3E%3Cline x1='18' y1='12' x2='22' y2='12'/%3E%3Cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'/%3E%3Cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'/%3E%3C/svg%3E") no-repeat center / contain;
    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%3Cline x1='12' y1='2' x2='12' y2='6'/%3E%3Cline x1='12' y1='18' x2='12' y2='22'/%3E%3Cline x1='4.93' y1='4.93' x2='7.76' y2='7.76'/%3E%3Cline x1='16.24' y1='16.24' x2='19.07' y2='19.07'/%3E%3Cline x1='2' y1='12' x2='6' y2='12'/%3E%3Cline x1='18' y1='12' x2='22' y2='12'/%3E%3Cline x1='4.93' y1='19.07' x2='7.76' y2='16.24'/%3E%3Cline x1='16.24' y1='7.76' x2='19.07' y2='4.93'/%3E%3C/svg%3E") no-repeat center / contain;
    display: inline-block;
}

.ph-occasion-icon.ph-occ-tiec:empty::before,
.ph-occasion-card:nth-child(3) .ph-occasion-icon:empty::before {
    content: "";
    width: 32px;
    height: 32px;
    background-color: 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%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") no-repeat center / contain;
    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%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") no-repeat center / contain;
    display: inline-block;
}

.ph-occasion-icon.ph-occ-doanhnghiep:empty::before,
.ph-occasion-card:nth-child(4) .ph-occasion-icon:empty::before {
    content: "";
    width: 32px;
    height: 32px;
    background-color: 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='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E") no-repeat center / contain;
    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='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E") no-repeat center / contain;
    display: inline-block;
}

.ph-occasion-btn:not(:has(svg))::after {
    content: "→";
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.ph-occasion-btn:hover:not(:has(svg))::after {
    transform: translateX(4px);
}

/* ============================================================
   PREMIUM MOBILE DRAWER MENU STYLING (PHÁO HOA 84 - TỪ 09.ZIP)
   ============================================================ */

/* 1. Mobile menu container & general styling */
.mobile-sidebar {
    background-color: #ffffff !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

/* 2. Menu Level 1 (Parent items) */
.mobile-sidebar ul.nav-sidebar > li {
    margin-bottom: 8px !important;
    border-bottom: 1px solid #f1f3f5 !important; /* Light bottom border */
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: visible !important;
    transition: background-color 0.25s ease, border-color 0.25s ease !important;
    border: none !important;
    box-shadow: none !important;
}

/* Parent links alignment and layout */
.mobile-sidebar ul.nav-sidebar > li > a {
    display: flex !important;
    align-items: center !important;
    height: 52px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important; /* Dark text color */
    padding: 0 12px !important;
    text-transform: none !important; /* Normal text-case */
    letter-spacing: normal !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 3. Dropdown toggle button styling */
#main-menu li.menu-item-has-children > .toggle {
    position: absolute !important;
    right: 12px !important;
    top: 26px !important; /* Center vertically relative to 52px row height */
    transform: translateY(-50%) rotate(0deg) !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
    z-index: 10 !important;
}

/* Rotate arrow when open */
#main-menu li.is-open > .toggle {
    transform: translateY(-50%) rotate(180deg) !important;
    opacity: 0.9 !important;
}

/* Arrow icon sizing */
#main-menu li.menu-item-has-children > .toggle i,
#main-menu li.menu-item-has-children > .toggle svg {
    font-size: 13px !important;
    width: auto !important;
    height: auto !important;
}

/* 4. Active parent state (Sản phẩm is-open) */
.mobile-sidebar ul.nav-sidebar > li.is-open {
    background-color: #fff9f6 !important; /* Light premium orange/red background */
    border-left: 3px solid #d71920 !important; /* Brand red left accent border */
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.mobile-sidebar ul.nav-sidebar > li.is-open > a {
    color: #c9181f !important; /* Highlighted brand red text color */
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

/* 5. Submenu container (block) styling */
#main-menu li.menu-item-has-children > ul {
    display: block !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    /* width: auto !important; */
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    /* background-color: #fafafa !important; */
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: max-height 0.28s ease, opacity 0.25s ease !important;
}

/* Submenu container when parent is open */
#main-menu li.is-open > ul {
    max-height: 250px !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    padding: 6px 0 10px 0 !important;
    border-radius: 0 0 8px 8px !important;
    /* border-top: 1px solid #f1f3f5 !important; */
    margin-bottom: 8px !important;
}

/* 6. Submenu list items & links */
#main-menu li.is-open > ul > li {
    border-bottom: 1px solid #f3f4f6 !important; /* Very light item border */
    margin: 0 !important;
}

#main-menu li.is-open > ul > li:last-child {
    border-bottom: none !important; /* Remove last item border */
}

/* Submenu links styling */
#main-menu li.is-open > ul > li > a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 14px 12px 24px !important; /* Slightly indented padding */
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Hover/Touch active state on submenu links */
#main-menu li.is-open > ul > li > a:hover,
#main-menu li.is-open > ul > li > a:active {
    background-color: #fff0ed !important;
    color: #c9181f !important;
}

/* 7. Close button (X) premium restyling */
button.mfp-close {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    background: #f5f5f5 !important;
    color: #111827 !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 15px 15px 0 0 !important; /* Căn đều với mép phải và trên */
    transition: background-color 0.2s ease, color 0.2s ease !important;
    outline: none !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
}

button.mfp-close:hover,
button.mfp-close:active {
    background-color: #eeeeee !important;
    color: #c9181f !important;
}

/* Remove any Flatsome default layout borders on active/open states */
.mobile-sidebar .nav-sidebar > li.active,
.mobile-sidebar .nav-sidebar > li:hover {
    border-color: #f1f3f5 !important;
    background-color: #ffffff !important;
}

/* =========================================================
   CỤM TÌM KIẾM TRÊN MENU MOBILE
   Căn chỉnh để dropdown hiện trọn vẹn, không bị tràn hay che mất.
   Khi đóng, triệt tiêu :hover ảo trên mobile để click icon đóng ngay lập tức.
   Desktop và tablet giữ nguyên 100%.
   ========================================================= */
@media screen and (max-width: 550px) {
    /* Khi chưa có class .current-dropdown (hoặc đã đóng), triệt tiêu hoàn toàn :hover ảo trên mobile */
    .mobile-nav li.header-search:not(.current-dropdown) > .nav-dropdown,
    li.header-search:not(.current-dropdown) > .nav-dropdown {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .mobile-nav li.header-search:not(.current-dropdown):after,
    .mobile-nav li.header-search:not(.current-dropdown):before,
    li.header-search:not(.current-dropdown):after,
    li.header-search:not(.current-dropdown):before {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Khi đang mở (.current-dropdown) */
    v-dropdown,
    li.current-dropdown > .nav-dropdown,
    .nav-right li.current-dropdown > .nav-dropdown,
    .nav-right li.current-dropdown:last-child > .nav-dropdown,
    .mobile-nav li.current-dropdown > .nav-dropdown,
    .header-search.current-dropdown > .nav-dropdown {
        display: table !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        left: auto !important;
        right: -55px !important;
        max-width: calc(100vw - 30px) !important;
    }
}