/**
 * 澳門國泰藥房 — 第三版「澳門花磚」
 * 疊加在 public-premium.css 之後，僅在 body.pm-heritage 時生效。
 * 靈感：葡式花磚（azulejo）與議事亭前地波浪石仔路；國泰橙紅 + 米白 + 鼠尾草綠點綴。
 * 素材：images/pm-heritage/（Logo、線條圖示、花磚紋、波浪線、手繪插畫）。
 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@600;700;900&display=swap');

body.pm-heritage {
    --pm-primary: #c8471a;
    --pm-primary-strong: #a93a12;
    --pm-primary-deep: #74280b;
    --pm-primary-soft: #fcebdc;
    --pm-primary-line: rgba(200, 71, 26, 0.24);

    --pm-ink: #33261d;
    --pm-ink-2: #5a4638;
    --pm-muted: #8a7363;

    --pm-bg: #fbf5ec;
    --pm-surface: #fffdf8;
    --pm-surface-2: #f8ecdd;
    --pm-line: #eedac4;

    --pm-radius: 20px;
    --pm-radius-sm: 12px;

    --ht-sage: #5f8466;
    --ht-sage-soft: #e8efe3;
    --ht-band: #f7eadb;
    --ht-serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
    --ht-tile: url('../images/pm-heritage/tile-pattern.svg?v=2');
    --ht-wave: url('../images/pm-heritage/wave.svg');
    --ht-icon: url('../images/pm-heritage/icons');
}

body.pm-heritage {
    background: var(--pm-bg) !important;
}

/* ================== 頂欄 ================== */
body.pm-heritage .cathay-top-bar {
    background: rgba(255, 251, 244, 0.94);
    border-bottom: none;
    box-shadow: 0 6px 20px rgba(116, 40, 11, 0.07);
}

body.pm-heritage .cathay-top-bar::after {
    top: auto;
    bottom: -7px;
    height: 8px;
    background: var(--ht-wave) repeat-x center / 60px 8px;
    opacity: 1;
}

body.pm-heritage .cathay-top-bar__logo {
    width: 48px !important;
    height: 48px !important;
    max-width: none !important;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(200, 71, 26, 0.16);
}

/* heritage：頂欄不放十字 Rx，避免與國泰標重疊 */
body.pm-heritage .cathay-top-bar__rx {
    display: none !important;
}

@media (min-width: 992px) {
    body.pm-heritage .cathay-top-bar__logo {
        width: 54px !important;
        height: 54px !important;
    }
}

body.pm-heritage .cathay-top-bar__title,
body.pm-heritage .cathay-top-bar__title:hover {
    font-family: var(--ht-serif);
    font-weight: 900;
    color: var(--pm-primary-deep);
    letter-spacing: 0.18em;
}

body.pm-heritage .cathay-top-bar__tagline {
    color: var(--ht-sage);
}

body.pm-heritage .cathay-top-nav__link {
    border-radius: 10px;
}

body.pm-heritage .cathay-top-nav__link.is-active {
    background: var(--pm-primary-soft);
    color: var(--pm-primary-deep);
}

body.pm-heritage .cathay-top-nav__link.is-active::after {
    width: 6px;
    height: 6px;
    bottom: 0;
    border-radius: 1px;
    background: var(--pm-primary);
    transform: translateX(-50%) rotate(45deg);
}

body.pm-heritage .cathay-top-nav__drmiu {
    border-radius: 12px;
}

/* ================== 區塊標題：置中 + 波浪線 ================== */
body.pm-heritage.page-home .section-title {
    align-items: center;
    text-align: center;
    margin-bottom: 32px;
}

body.pm-heritage .section-eyebrow {
    gap: 10px;
    padding: 0;
    background: none;
    color: var(--pm-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

body.pm-heritage .section-eyebrow::before,
body.pm-heritage .section-eyebrow::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: var(--ht-sage);
    box-shadow: none;
    transform: rotate(45deg);
}

body.pm-heritage.page-home .section-title h2 {
    font-family: var(--ht-serif);
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--pm-primary-deep);
}

body.pm-heritage.page-home .section-title h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 16px;
    margin: 12px auto 0;
    background: var(--ht-wave) no-repeat center / 120px 16px;
}

body.pm-heritage.page-home .section-title > p {
    max-width: 32em;
    font-size: 15px;
}

/* ================== 花磚色帶 ================== */
body.pm-heritage.page-home #hotsell,
body.pm-heritage.page-home #locations,
body.pm-heritage.page-home #pharmacist {
    position: relative;
    isolation: isolate;
    padding-top: 52px;
    padding-bottom: 56px;
}

body.pm-heritage.page-home #hotsell::before,
body.pm-heritage.page-home #locations::before,
body.pm-heritage.page-home #pharmacist::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100vmax;
    right: -100vmax;
    z-index: -1;
    background: var(--ht-tile) repeat center / 56px 56px, var(--ht-band);
    border-top: 1px solid var(--pm-line);
    border-bottom: 1px solid var(--pm-line);
}

/* ================== 按鈕 ================== */
body.pm-heritage.page-home .view-all-btn,
body.pm-heritage .home-friendly-links__apply {
    border-radius: 12px;
    border-color: var(--pm-primary);
    background: var(--pm-primary);
    color: #fff;
    box-shadow: 0 6px 0 var(--pm-primary-deep), 0 12px 22px rgba(116, 40, 11, 0.18);
}

body.pm-heritage.page-home .view-all-btn:hover,
body.pm-heritage .home-friendly-links__apply:hover {
    border-color: var(--pm-primary-strong);
    background: var(--pm-primary-strong);
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 4px 0 var(--pm-primary-deep), 0 8px 16px rgba(116, 40, 11, 0.16);
}

/* ================== 輪播 ================== */
body.pm-heritage.page-home .home-carousel-section[data-carousel-slot="home-top"] .cathay-carousel {
    --cathay-carousel-ratio: 3 / 4 !important;
    max-height: none;
}

body.pm-heritage.page-home .cathay-carousel {
    border: 6px solid #fff;
    border-radius: 24px;
    box-shadow: 0 0 0 1px var(--pm-line), 0 18px 40px rgba(116, 40, 11, 0.12);
}

@media (min-width: 992px) {
    body.pm-heritage.page-home .home-hero-row:has(.home-carousel-section) {
        display: grid;
        grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
        gap: 22px;
        align-items: stretch;
        max-width: 1200px;
        margin: 18px auto 0;
        padding: 0 15px;
    }

    body.pm-heritage.page-home .home-hero-row .home-carousel-section,
    body.pm-heritage.page-home .home-hero-row .pm-trust {
        margin: 0;
        padding: 0;
    }

    body.pm-heritage.page-home .home-hero-row .home-carousel-section > .container,
    body.pm-heritage.page-home .home-hero-row .pm-trust > .container {
        max-width: none;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    body.pm-heritage.page-home .home-hero-row .pm-trust > .container {
        display: grid;
        box-sizing: border-box;
        grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.05fr);
        align-items: center;
        gap: 8px 28px;
        padding: 32px 36px;
        border: 6px solid #fff;
        border-radius: 24px;
        box-shadow: 0 0 0 1px var(--pm-line), 0 18px 40px rgba(116, 40, 11, 0.12);
        background:
            linear-gradient(165deg, rgba(255, 253, 248, 0.96) 0%, rgba(252, 243, 230, 0.92) 100%),
            var(--ht-tile) center / 96px 96px;
    }

    body.pm-heritage.page-home .home-hero-row .pm-trust__intro {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        padding: 6px 0;
    }

    body.pm-heritage.page-home .home-hero-row .pm-trust__eyebrow::after {
        margin-left: 0;
    }

    body.pm-heritage.page-home .home-hero-row .pm-trust__title {
        font-size: 26px;
        line-height: 1.65;
    }

    body.pm-heritage.page-home .home-hero-row .pm-trust__list {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        align-content: center;
        height: auto;
        gap: 26px 8px;
        margin: 0;
        background:
            linear-gradient(var(--pm-line), var(--pm-line)) center / 1px calc(100% - 12px) no-repeat,
            linear-gradient(var(--pm-line), var(--pm-line)) center / calc(100% - 12px) 1px no-repeat;
    }

    body.pm-heritage.page-home .home-hero-row .pm-trust__item {
        min-height: 0;
        height: auto;
        padding: 6px 18px;
        border: none !important;
        border-radius: 0;
        background: none;
        box-shadow: none;
        align-items: flex-start;
        text-align: left;
    }

    body.pm-heritage.page-home .home-hero-row .pm-trust__item::before {
        display: none;
    }

    body.pm-heritage.page-home .home-hero-row .pm-trust__value {
        font-size: 44px;
    }

    body.pm-heritage.page-home .home-hero-row .pm-trust__value i {
        width: 52px;
        height: 52px;
    }

    body.pm-heritage.page-home .home-hero-row .pm-trust__label {
        font-size: 14px;
        line-height: 1.45;
        white-space: nowrap;
    }
}

body.pm-heritage .cathay-carousel__name--orange-glass {
    border-radius: 10px;
}

/* ================== 品牌承諾：四塊花磚 ================== */
body.pm-heritage .pm-trust__intro {
    margin: 0 0 14px;
    text-align: center;
}

body.pm-heritage .pm-trust__eyebrow {
    margin: 0;
    color: var(--pm-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

body.pm-heritage .pm-trust__eyebrow::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: var(--pm-primary);
}

body.pm-heritage .pm-trust__title {
    margin: 12px 0 0;
    font-family: var(--ht-serif);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.4;
    color: var(--pm-primary-deep);
}

body.pm-heritage .pm-trust__list {
    gap: 10px;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
}

body.pm-heritage .pm-trust__item {
    position: relative;
    min-height: 120px;
    padding: 20px 10px;
    border: 1px solid var(--pm-line) !important;
    border-radius: 16px;
    background: var(--ht-tile) repeat center / 56px 56px, var(--pm-surface);
    box-shadow: 0 2px 0 #f1dfca;
}

body.pm-heritage .pm-trust__item::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(200, 71, 26, 0.22);
    border-radius: 11px;
    pointer-events: none;
}

body.pm-heritage .pm-trust__value {
    font-family: var(--ht-serif);
    font-weight: 900;
    color: var(--pm-primary-deep);
}

body.pm-heritage .pm-trust__value small {
    color: var(--ht-sage);
}

body.pm-heritage .pm-trust__value i {
    width: 46px;
    height: 46px;
    background: var(--pm-primary);
    box-shadow: none;
    -webkit-mask: none;
    mask: none;
    position: relative;
    color: transparent;
}

body.pm-heritage .pm-trust__value i::before {
    content: '' !important;
    position: absolute;
    inset: 11px;
    background: #fff;
    -webkit-mask: var(--ht-mask) center / contain no-repeat;
    mask: var(--ht-mask) center / contain no-repeat;
}

body.pm-heritage .pm-trust__item:nth-child(3) .pm-trust__value i {
    --ht-mask: url('../images/pm-heritage/icons/pharmacist.svg');
}

body.pm-heritage .pm-trust__item:nth-child(4) .pm-trust__value i {
    --ht-mask: url('../images/pm-heritage/icons/shield.svg');
    background: var(--ht-sage);
}

body.pm-heritage .pm-trust__label {
    color: var(--pm-ink-2);
    font-weight: 600;
}

@media (min-width: 768px) {
    body.pm-heritage .pm-trust__list {
        gap: 14px;
    }
}

/* ================== 健康小貼士：插畫卡 ================== */
body.pm-heritage.page-home .health-tip-card {
    position: relative;
    overflow: hidden;
    padding: 200px 22px 24px;
    border: 1px solid var(--pm-line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 247, 236, 0) 110px, #fff7ec 205px),
        url('../images/pm-heritage/tip.jpg') 85% top / 125% auto no-repeat,
        #fff7ec;
    box-shadow: 0 2px 0 #f1dfca, 0 18px 36px rgba(116, 40, 11, 0.08);
}

body.pm-heritage.page-home .health-tip-card .tip-content h2 {
    font-family: var(--ht-serif);
    font-size: 24px;
    font-weight: 900;
    color: var(--pm-primary-deep);
}

body.pm-heritage.page-home .health-tip-card .tip-content h2 i {
    border-radius: 10px;
    background: var(--ht-sage-soft);
    box-shadow: none;
    color: var(--ht-sage);
}

body.pm-heritage.page-home .tip-category {
    border-radius: 8px;
    border-color: rgba(95, 132, 102, 0.3);
    color: var(--ht-sage);
}

body.pm-heritage.page-home .health-tip-card .view-all-btn {
    border-radius: 12px;
    box-shadow: 0 6px 0 var(--pm-primary-deep), 0 12px 22px rgba(116, 40, 11, 0.18);
}

@media (min-width: 768px) {
    body.pm-heritage.page-home .health-tip-card {
        min-height: 300px;
        padding: 36px 40px;
        padding-right: 46%;
        background:
            linear-gradient(90deg, #fff7ec 0%, #fff7ec 46%, rgba(255, 247, 236, 0.4) 62%, rgba(255, 247, 236, 0) 76%),
            url('../images/pm-heritage/tip.jpg') right center / cover no-repeat,
            #fff7ec;
    }
}

/* ================== 卡片 ================== */
body.pm-heritage .featured-post,
body.pm-heritage #hotsell .hot-product-item .product-card,
body.pm-heritage .location-card,
body.pm-heritage .social-channel-card,
body.pm-heritage .about-container,
body.pm-heritage .pharmacists-container,
body.pm-heritage .recent-posts-list {
    border: 1px solid var(--pm-line) !important;
    border-radius: var(--pm-radius) !important;
    background: var(--pm-surface) !important;
    box-shadow: 0 2px 0 #f1dfca, 0 14px 30px rgba(116, 40, 11, 0.06) !important;
}

body.pm-heritage .featured-post:hover,
body.pm-heritage #hotsell .hot-product-item .product-card:hover,
body.pm-heritage .social-channel-card:hover {
    border-color: rgba(200, 71, 26, 0.35) !important;
    box-shadow: 0 2px 0 #ecd2b5, 0 22px 44px rgba(116, 40, 11, 0.12) !important;
}

body.pm-heritage.page-home .featured-post .post-title,
body.pm-heritage.page-home #hotsell .product-content h3,
body.pm-heritage .location-header h3,
body.pm-heritage .location-card h3,
body.pm-heritage.page-home .feature h3,
body.pm-heritage.page-home .pharmacist-group h3,
body.pm-heritage .social-channel-body h3 {
    font-family: var(--ht-serif);
    font-weight: 700;
}

body.pm-heritage.page-home .featured-post .read-more-btn {
    color: var(--pm-primary);
}

body.pm-heritage.page-home .feature {
    border-radius: 14px;
    background: var(--ht-tile) repeat center / 56px 56px, #fdf3e7;
}

body.pm-heritage.page-home .feature i {
    border-radius: 10px;
    background: var(--ht-sage);
    box-shadow: none;
    color: #fff;
}

body.pm-heritage .location-header i.fa-store,
body.pm-heritage .location-card .fa-store {
    color: var(--ht-sage);
}

/* ================== 藥劑師：插畫橫幅 ================== */
body.pm-heritage.page-home .pharmacists-container::before {
    content: '';
    grid-column: 1 / -1;
    display: block;
    aspect-ratio: 4 / 3;
    max-height: 340px;
    width: 100%;
    background: url('../images/pm-heritage/pharmacist.jpg') center 30% / cover no-repeat;
    border-bottom: 1px solid var(--pm-line);
}

@media (min-width: 768px) {
    body.pm-heritage.page-home .pharmacists-container::before {
        aspect-ratio: auto;
        height: 300px;
    }
}

body.pm-heritage.page-home .pharmacist-group-title i,
body.pm-heritage.page-home .pharmacist-group li::before {
    color: var(--ht-sage);
}

/* ================== 常用網站／友情連結 ================== */
body.pm-heritage h2.cathay-content-block__section-title,
body.pm-heritage .cathay-content-block__section-title {
    font-family: var(--ht-serif);
    color: var(--pm-primary-deep) !important;
}

body.pm-heritage .cathay-content-block__section-title::before {
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: var(--ht-sage);
    transform: rotate(45deg);
}

/* ================== 頁尾：澳門街景 ================== */
body.pm-heritage .footer {
    padding-top: 0;
    border-radius: 0;
    background: #5b2a14 !important;
    color: rgba(255, 240, 224, 0.86);
}

body.pm-heritage .footer::before {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: block;
    width: 100%;
    height: clamp(180px, 34vw, 340px);
    margin-bottom: 32px;
    background:
        linear-gradient(180deg, rgba(251, 245, 236, 1) 0%, rgba(251, 245, 236, 0) 18%, rgba(91, 42, 20, 0) 62%, #5b2a14 100%),
        url('../images/pm-heritage/street.jpg') center 62% / cover no-repeat;
    opacity: 1;
}

body.pm-heritage .footer-brand__name {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ht-serif);
    font-weight: 900;
}

body.pm-heritage .footer-brand__name::before {
    content: '';
    width: 78px;
    height: 48px;
    flex-shrink: 0;
    background: url('../images/pm-heritage/logo-cathay.png?v=3') center / contain no-repeat;
}

body.pm-heritage .footer-brand__latin {
    color: #e9b27a;
}

body.pm-heritage .footer-links h3,
body.pm-heritage .footer-contact h3 {
    font-family: var(--ht-serif);
}

/* ================== Dr.Miu：改由右下底欄九宮格圖示入口，隱藏浮動頭 ================== */
body.pm-heritage .mascot,
body.pm-heritage .mascot.mascot--head {
    display: none !important;
}

body.pm-heritage .bubble {
    display: none !important;
}

/* ================== 底部導覽：自繪線條圖示 ================== */
body.pm-heritage .bottom-navbar .nav-icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    color: var(--pm-ink-2) !important;
}

body.pm-heritage .bottom-navbar .nav-icon::before {
    content: '' !important;
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask: var(--ht-mask, none) center / contain no-repeat;
    mask: var(--ht-mask, none) center / contain no-repeat;
}

body.pm-heritage .bottom-navbar .nav-item--home .nav-icon { --ht-mask: url('../images/pm-heritage/icons/home.svg'); }
body.pm-heritage .bottom-navbar .nav-item--locations .nav-icon { --ht-mask: url('../images/pm-heritage/icons/locations.svg'); }
body.pm-heritage .bottom-navbar .nav-item--jobs .nav-icon { --ht-mask: url('../images/pm-heritage/icons/jobs.svg'); }
body.pm-heritage .bottom-navbar .nav-item--tips .nav-icon { --ht-mask: url('../images/pm-heritage/icons/tips.svg'); }
body.pm-heritage .bottom-navbar .nav-item--ingredients .nav-icon { --ht-mask: url('../images/pm-heritage/icons/ingredients.svg'); }
body.pm-heritage .bottom-navbar .nav-item--posts .nav-icon { --ht-mask: url('../images/pm-heritage/icons/posts.svg'); }
body.pm-heritage .bottom-navbar .nav-item--videos .nav-icon { --ht-mask: url('../images/pm-heritage/icons/videos.svg'); }
body.pm-heritage .bottom-navbar .nav-item--products .nav-icon { --ht-mask: url('../images/pm-heritage/icons/products.svg'); }

/* Dr.Miu：排到右下選單最右側 + 九宮格動畫圖示 */
body.pm-heritage .bottom-navbar .cathay-bottom-nav__grid {
    display: grid;
}

body.pm-heritage .bottom-navbar .nav-item--drmiu {
    order: 99;
}

body.pm-heritage .bottom-navbar .nav-item .nav-icon-wrap {
    border-radius: 12px !important;
    background: var(--pm-surface) !important;
    border: 1px solid var(--pm-line) !important;
    box-shadow: 0 2px 0 #f1dfca !important;
}

body.pm-heritage .bottom-navbar .nav-item--drmiu .nav-icon-wrap {
    width: 40px !important;
    height: 40px !important;
    padding: 2px !important;
    background: #fff6ea !important;
    border-color: rgba(200, 71, 26, 0.28) !important;
    box-shadow: 0 2px 0 #f1dfca !important;
    overflow: hidden;
}

body.pm-heritage .bottom-navbar .nav-item--drmiu .nav-icon--drmiu-sheet {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center 35%;
    display: block;
    border-radius: 8px;
}

body.pm-heritage .bottom-navbar .nav-item--drmiu .nav-icon::before {
    display: none !important;
}

body.pm-heritage .bottom-navbar a.nav-item.active .nav-icon-wrap {
    background: var(--pm-primary) !important;
    border-color: var(--pm-primary) !important;
    box-shadow: 0 2px 0 var(--pm-primary-deep) !important;
}

body.pm-heritage .bottom-navbar a.nav-item.active .nav-icon {
    color: #fff !important;
}

body.pm-heritage .bottom-navbar a.nav-item:hover .nav-icon-wrap {
    border-color: var(--pm-primary-line) !important;
    background: var(--pm-primary-soft) !important;
}

body.pm-heritage .bottom-navbar a.nav-item:hover .nav-icon {
    color: var(--pm-primary) !important;
}

body.pm-heritage .bottom-navbar .nav-item--drmiu:hover .nav-icon-wrap,
body.pm-heritage .bottom-navbar .nav-item--drmiu:active .nav-icon-wrap {
    background: #fff !important;
    border-color: var(--pm-primary) !important;
}

/* ================== 內頁：標題、資訊頁、招聘、列表圖 ================== */
body.pm-heritage:not(.page-home) .section-title {
    text-align: center;
}

body.pm-heritage:not(.page-home) .section-title h1,
body.pm-heritage:not(.page-home) .section-title h2,
body.pm-heritage .info-page-title {
    font-family: var(--ht-serif);
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--pm-primary-deep);
}

body.pm-heritage:not(.page-home) .section-title h1::after,
body.pm-heritage:not(.page-home) .section-title h2::after {
    content: '';
    display: block;
    width: 96px;
    height: 14px;
    margin: 10px auto 0;
    background: var(--ht-wave) no-repeat center / 96px 14px;
}

body.pm-heritage:not(.page-home) .section-title p,
body.pm-heritage .info-page-lead {
    color: var(--pm-ink-2);
}

body.pm-heritage .info-section {
    background: var(--pm-surface);
    border: 1px solid var(--pm-line);
    box-shadow: none;
}

body.pm-heritage .info-section h2 {
    font-family: var(--ht-serif);
    color: var(--pm-primary-deep);
    border-bottom-color: var(--pm-line);
}

body.pm-heritage .info-section p {
    color: var(--pm-ink-2);
}

body.pm-heritage .info-timeline {
    border-left-color: var(--pm-line);
}

body.pm-heritage .info-timeline li::before {
    background: var(--pm-primary);
    box-shadow: 0 0 0 2px var(--pm-primary-soft);
}

body.pm-heritage .info-timeline__year {
    color: var(--pm-primary);
}

body.pm-heritage .recruitment-hero {
    background:
        var(--ht-tile),
        linear-gradient(180deg, #fffdf8 0%, #f8ecdd 100%);
    color: var(--pm-ink);
    border: 1px solid var(--pm-line);
    box-shadow: none;
}

body.pm-heritage .recruitment-hero h1,
body.pm-heritage .recruitment-hero p {
    text-shadow: none;
}

body.pm-heritage .recruitment-hero h1 {
    font-family: var(--ht-serif);
    font-weight: 900;
    color: var(--pm-primary-deep);
}

body.pm-heritage .recruitment-hero p {
    color: var(--pm-ink-2);
}

body.pm-heritage .btn-accent {
    background: var(--pm-primary);
    color: #fff;
}

body.pm-heritage .btn-accent:hover {
    background: var(--pm-primary-deep);
}

body.pm-heritage .position-header {
    background: var(--pm-primary-soft);
    color: var(--pm-primary-deep);
}

body.pm-heritage .position-card,
body.pm-heritage .value-card,
body.pm-heritage .benefit-card,
body.pm-heritage .post-card,
body.pm-heritage article.video-card,
body.pm-heritage .tip-card {
    border: 1px solid var(--pm-line);
    box-shadow: none;
}

body.pm-heritage .post-image {
    border: 0;
    background: var(--pm-surface-2);
}

body.pm-heritage .pd-title,
body.pm-heritage .post-detail .post-title,
body.pm-heritage article .post-title {
    font-family: var(--ht-serif);
    color: var(--pm-primary-deep);
}

body.pm-heritage .pd-cat-chip {
    background: var(--pm-primary);
    box-shadow: none;
}

body.pm-heritage .pd-store-cta {
    background: var(--pm-primary-deep);
}

/* ================== 內頁圖示：與首頁信任卡同一套線條標 ================== */
body.pm-heritage.page-locations { --ht-page-icon: url('../images/pm-heritage/icons/mark/locations.svg'); }
body.pm-heritage.page-posts,
body.pm-heritage.page-post { --ht-page-icon: url('../images/pm-heritage/icons/mark/posts.svg'); }
body.pm-heritage.page-jobs { --ht-page-icon: url('../images/pm-heritage/icons/mark/jobs.svg'); }
body.pm-heritage.page-videos,
body.pm-heritage.page-video { --ht-page-icon: url('../images/pm-heritage/icons/mark/videos.svg'); }
body.pm-heritage.page-ingredients,
body.pm-heritage.page-ingredient { --ht-page-icon: url('../images/pm-heritage/icons/mark/ingredients.svg'); }
body.pm-heritage.page-tips { --ht-page-icon: url('../images/pm-heritage/icons/mark/tips.svg'); }
body.pm-heritage.page-about { --ht-page-icon: url('../images/pm-heritage/icons/mark/about.svg'); }
body.pm-heritage.page-contact { --ht-page-icon: url('../images/pm-heritage/icons/mark/contact.svg'); }
body.pm-heritage.page-links { --ht-page-icon: url('../images/pm-heritage/icons/mark/link.svg'); }
body.pm-heritage.page-promotions { --ht-page-icon: url('../images/pm-heritage/icons/mark/promo.svg'); }
body.pm-heritage.page-policy { --ht-page-icon: url('../images/pm-heritage/icons/mark/policy.svg'); }
body.pm-heritage.products-page,
body.pm-heritage.page-product { --ht-page-icon: url('../images/pm-heritage/icons/mark/products.svg'); }

body.pm-heritage.products-page .catalog-banner {
    border: 6px solid #fff;
    border-radius: 24px;
    box-shadow: 0 0 0 1px var(--pm-line), 0 18px 40px rgba(116, 40, 11, 0.12);
    background:
        linear-gradient(165deg, rgba(255, 253, 248, 0.94) 0%, rgba(252, 243, 230, 0.9) 100%),
        var(--ht-tile) center / 84px 84px;
}

body.pm-heritage.products-page .catalog-banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: var(--ht-wave) repeat-x center / 60px 8px;
    pointer-events: none;
}

body.pm-heritage.products-page .catalog-banner__title,
body.pm-heritage.products-page .catalog-banner__eyebrow {
    font-family: var(--ht-serif);
}

body.pm-heritage:not(.page-home) .section-title:has(> h1)::before,
body.pm-heritage .info-page-intro::before,
body.pm-heritage .recruitment-hero::before,
body.pm-heritage.page-policy main.page > h1::before,
body.pm-heritage.page-product .pd-title::before,
body.pm-heritage.page-post h1.post-title::before,
body.pm-heritage.page-video article > h1::before,
body.pm-heritage.products-page .cat-section-title::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background:
        var(--ht-page-icon) center / 26px 26px no-repeat,
        var(--pm-primary);
    box-shadow: 0 2px 0 var(--pm-primary-deep);
}

body.pm-heritage.products-page .cat-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.pm-heritage.products-page .cat-section-title::before {
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 12px;
    background-size: 18px 18px, auto;
    flex-shrink: 0;
}

body.pm-heritage .recruitment-hero::before {
    margin-bottom: 16px;
}

body.pm-heritage.page-policy main.page > h1 {
    text-align: center;
    font-family: var(--ht-serif);
    font-weight: 900;
    color: var(--pm-primary-deep);
    letter-spacing: 0.06em;
}

body.pm-heritage.page-policy main.page > h1::after {
    content: '';
    display: block;
    width: 96px;
    height: 14px;
    margin: 10px auto 16px;
    background: var(--ht-wave) no-repeat center / 96px 14px;
}

body.pm-heritage.page-policy .content-card,
body.pm-heritage.page-promotions .promo-empty-card {
    background: var(--pm-surface);
    border: 1px solid var(--pm-line);
    border-radius: 20px;
    box-shadow: none;
}

body.pm-heritage.page-promotions .promo-empty-icon {
    color: transparent;
    font-size: 0;
}

body.pm-heritage.page-promotions .promo-empty-icon::before {
    content: '';
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background:
        var(--ht-page-icon) center / 26px 26px no-repeat,
        var(--pm-primary);
    box-shadow: 0 2px 0 var(--pm-primary-deep);
}

body.pm-heritage .info-quick-card i {
    color: var(--pm-primary);
}

body.pm-heritage.page-product .pd-title,
body.pm-heritage.page-post h1.post-title,
body.pm-heritage.page-video article > h1 {
    text-align: center;
}

body.pm-heritage .filter-section {
    background: var(--pm-surface);
    border: 1px solid var(--pm-line);
    border-radius: 16px;
}
