@charset "UTF-8";

/*
 * PNS Header Layer
 * 從原 PNS migration monolith 抽出的 Header / Delivery / Mega Menu 視覺層
 */

/* =====================================================================
 * Task 2 — Header 三層結構：促銷 strip / 主搜索條 / 大分類 + Mega Menu
 * ===================================================================== */
/* 第 1 層：頂部公告條（藍紫底白字・靜態文字 + 右側連結） */
.pns-promo-strip {
    --pns-promo-line-height: 32px;
    background-color: var(--pns-promo-bg-color, var(--pns-promo-bg, #292D84));
    background-image: var(--pns-promo-bg-image, none);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    font-size: 12px;
    line-height: var(--pns-promo-line-height);
    height: var(--pns-promo-line-height);
    overflow: hidden;
    position: relative;
}
.pns-promo-strip-inner {
    max-width: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pns-header-x-padding);
    height: var(--pns-promo-line-height);
    min-height: var(--pns-promo-line-height);
    box-sizing: border-box;
}
.pns-promo-text {
    position: relative;
    height: var(--pns-promo-line-height);
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.pns-promo-text .pns-promo-track {
    display: flex;
    flex-direction: column;
    will-change: transform;
}
.pns-promo-strip--single .pns-promo-text .pns-promo-track {
    animation: none;
}
.pns-promo-text .pns-promo-track span {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
    height: var(--pns-promo-line-height);
    line-height: var(--pns-promo-line-height);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--pns-promo-message-color, var(--pns-accent));
    font-size: var(--pns-promo-message-font-size, 12px);
    font-weight: 500;
    letter-spacing: 0.3px;
}
/* 多条文案：按条数分步切换，translate 使用行高像素避免与容器高度不一致时两行叠影 */
.pns-promo-text .pns-promo-track[data-count="2"] {
    animation: pns-promo-ticker-2 8s infinite;
}
.pns-promo-text .pns-promo-track[data-count="3"] {
    animation: pns-promo-ticker-3 12s infinite;
}
.pns-promo-text .pns-promo-track[data-count="4"] {
    animation: pns-promo-ticker-4 16s infinite;
}
.pns-promo-text .pns-promo-track[data-count="5"] {
    animation: pns-promo-ticker-5 20s infinite;
}
@keyframes pns-promo-ticker-2 {
    0%, 49% { transform: translate3d(0, 0, 0); }
    50%, 99% { transform: translate3d(0, calc(-1 * var(--pns-promo-line-height)), 0); }
    100% { transform: translate3d(0, 0, 0); }
}
@keyframes pns-promo-ticker-3 {
    0%, 30% { transform: translate3d(0, 0, 0); }
    33.33%, 63% { transform: translate3d(0, calc(-1 * var(--pns-promo-line-height)), 0); }
    66.66%, 96% { transform: translate3d(0, calc(-2 * var(--pns-promo-line-height)), 0); }
    100% { transform: translate3d(0, 0, 0); }
}
@keyframes pns-promo-ticker-4 {
    0%, 22% { transform: translate3d(0, 0, 0); }
    25%, 47% { transform: translate3d(0, calc(-1 * var(--pns-promo-line-height)), 0); }
    50%, 72% { transform: translate3d(0, calc(-2 * var(--pns-promo-line-height)), 0); }
    75%, 97% { transform: translate3d(0, calc(-3 * var(--pns-promo-line-height)), 0); }
    100% { transform: translate3d(0, 0, 0); }
}
@keyframes pns-promo-ticker-5 {
    0%, 18% { transform: translate3d(0, 0, 0); }
    20%, 38% { transform: translate3d(0, calc(-1 * var(--pns-promo-line-height)), 0); }
    40%, 58% { transform: translate3d(0, calc(-2 * var(--pns-promo-line-height)), 0); }
    60%, 78% { transform: translate3d(0, calc(-3 * var(--pns-promo-line-height)), 0); }
    80%, 98% { transform: translate3d(0, calc(-4 * var(--pns-promo-line-height)), 0); }
    100% { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .pns-promo-text .pns-promo-track[data-count] {
        animation: none;
    }
    .pns-promo-text .pns-promo-track[data-count] span:not(:first-child) {
        display: none;
    }
}
.pns-promo-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}
.pns-promo-links a {
    color: var(--pns-promo-link-color, #fff);
    text-decoration: none;
    font-size: var(--pns-promo-link-font-size, 14px);
    font-weight: 500;
    white-space: nowrap;
    padding: 0;
    transition: opacity 0.15s;
}
.pns-promo-links a:last-child {
    padding-right: 0;
    margin-right: 0;
}
.pns-promo-links a.pns-promo-utility-link,
.pns-promo-links a.pns-promo-locator-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.pns-promo-link-icon--img {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.pns-promo-link-icon--img img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.pns-promo-link-label {
    line-height: 1.2;
}
.pns-promo-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    min-width: 1em;
    min-height: 1em;
    line-height: 1;
    font-size: inherit;
}
.pns-promo-link-icon .icon {
    font-size: 1em;
    line-height: 1;
}
.pns-promo-locator-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.pns-promo-locator-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}
.pns-promo-links a:hover {
    opacity: 0.8;
}
.pns-promo-sep {
    color: rgba(255, 255, 255, 0.22);
    font-size: var(--pns-promo-link-font-size, 14px);
    font-weight: 300;
    line-height: 1;
    user-select: none;
}

/* 第 2 層：主搜索條（原站背景圖 + 白色元素） */
.pns-header {
    background-color: var(--pns-header-bg-color, #3D4DB7);
    background-image: var(--pns-header-bg-image, url("../images/ui/pns-header-bg.jpg"));
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.pns-header-inner {
    max-width: none;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px var(--pns-header-x-padding);
    color: #fff;
    box-sizing: border-box;
}
.pns-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-right: 8px;
}
.pns-header-logo img {
    max-height: 56px;
    width: auto;
}
.pns-logo-main {
    height: 40px;
    width: auto;
}
.pns-logo-badge {
    height: 40px;
    width: auto;
}
.pns-header-search {
    width: 402px;
    flex: 0 0 402px;
    position: relative;
}
/* 聚焦／展開紀錄時需高於 .pns-mega-nav (z-index:900) */
.pns-header-search.is-focused,
.pns-header-search.is-history-open {
    z-index: 910;
}
/* 原站：胶囊形深蓝搜索框 + 细白边 + 右侧 icon-search */
.pns-header-search form {
    display: flex;
    align-items: center;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(18, 51, 149, 0.72);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
/* 默认态 hover（截图3）— 未聚焦时悬停加深 */
.pns-header-search:not(.is-focused):not(.is-history-open):hover form {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(18, 51, 149, 0.85);
}
.pns-header-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0 8px 0 18px;
    font-size: 14px;
    height: 100%;
    font-family: var(--font-primary);
    color: #fff;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}
.pns-header-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.92);
    opacity: 1;
}
.pns-header-search input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.pns-header-search button[type="submit"] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    margin-right: 2px;
    padding: 0;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.pns-header-search button[type="submit"] .icon-search {
    font-size: 18px;
    line-height: 1;
}
.pns-header-search button[type="submit"]:hover {
    opacity: 0.85;
}

/* 聚焦／展开历史：白底（原站）；失焦回深蓝默认 */
.pns-header-search.is-focused .pns-header-search-form,
.pns-header-search.is-focused form,
.pns-header-search.is-history-open .pns-header-search-form,
.pns-header-search.is-history-open form {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.95);
}
.pns-header-search.is-focused .pns-header-search-input,
.pns-header-search.is-focused input[type="search"],
.pns-header-search.is-history-open .pns-header-search-input,
.pns-header-search.is-history-open input[type="search"] {
    color: rgb(49, 80, 171);
}
.pns-header-search.is-focused .pns-header-search-input::placeholder,
.pns-header-search.is-focused input[type="search"]::placeholder,
.pns-header-search.is-history-open .pns-header-search-input::placeholder,
.pns-header-search.is-history-open input[type="search"]::placeholder {
    color: #999;
}
.pns-header-search.is-focused .pns-header-search-submit,
.pns-header-search.is-focused button[type="submit"],
.pns-header-search.is-history-open .pns-header-search-submit,
.pns-header-search.is-history-open button[type="submit"] {
    color: rgb(49, 80, 171);
}

/* 有輸入時：右側藍底白 × 清除，隱藏放大鏡 */
.pns-header-search-clear {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgb(49, 80, 171);
    color: #fff;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.pns-header-search-clear .icon-close {
    font-size: 10px;
    line-height: 1;
}
.pns-header-search-clear:hover {
    opacity: 0.88;
}
.pns-header-search.is-focused.has-value .pns-header-search-clear {
    display: inline-flex;
}
.pns-header-search.is-focused.has-value .pns-header-search-submit,
.pns-header-search.is-focused.has-value button[type="submit"] {
    display: none;
}

/* 搜尋紀錄下拉 */
.pns-search-history {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 2;
    box-sizing: border-box;
    padding: 14px 16px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.pns-search-history[hidden] {
    display: none !important;
}
.pns-search-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.pns-search-history-title {
    font-size: 14px;
    font-weight: 700;
    color: #444;
    line-height: 1.3;
}
.pns-search-history-clear {
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: rgb(49, 80, 171);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.pns-search-history-clear:hover {
    opacity: 0.75;
}
.pns-search-history-clear:disabled {
    opacity: 0.35;
    cursor: default;
}
.pns-search-history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pns-search-history-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    height: 32px;
    padding: 0 4px 0 12px;
    border: 1px solid #c5d4f0;
    border-radius: 999px;
    background: #fff;
    box-sizing: border-box;
}
.pns-search-history-tag-text {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: rgb(49, 80, 171);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.pns-search-history-tag-text:hover {
    color: #2a4088;
}
.pns-search-history-tag-remove {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: rgb(49, 80, 171);
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}
.pns-search-history-tag-remove .icon-close {
    font-size: 12px;
    line-height: 1;
}
.pns-search-history-tag-remove:hover {
    opacity: 1;
}

.pns-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}
.pns-action-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    line-height: 1.2;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 6px;
}
.pns-action-link:hover { color: #7EC8F2; }
.pns-action-link .icon.pns-header-action-icon { font-size: 22px; }
.pns-action-link .pns-header-action-icon,
.pns-action-link .icon.pns-header-action-icon {
    font-size: 28px;
    line-height: 1;
    color: #fff;
}
.pns-action-link:hover .pns-header-action-icon,
.pns-action-link:hover .icon.pns-header-action-icon {
    color: #7EC8F2;
}
.pns-action-link .icon.pns-header-action-icon:before {
    color: inherit;
}
.pns-action-link .pns-action-label { display: none; }
/* 移動端搜索按鈕：桌面隱藏 */
.pns-mobile-search-btn { display: none; }

/* 漢堡按鈕在深藍底上白色 */
.pns-mobile-menu-toggle {
    display: none;
}
.pns-mobile-menu-toggle span {
    background: #fff !important;
}
.pns-header-actions {
    --pns-header-badge-wishlist-bg: #ffc400;
    --pns-header-badge-wishlist-color: #fff;
    --pns-header-badge-cart-bg: #ffc400;
    --pns-header-badge-cart-color: #fff;
}
/* 对齐原站 pns-header-cart：图标与 .count 同层 flex，角标相对图标盒定位 */
.pns-header-action-slot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    vertical-align: middle;
}
.pns-action-link--wishlist .pns-header-action-slot .count,
.pns-action-link--wishlist .pns-header-action-slot .pns-wishlist-count {
    background: var(--pns-header-badge-wishlist-bg);
    color: var(--pns-header-badge-wishlist-color);
}
.pns-action-link--cart .pns-header-action-slot .count,
.pns-action-link--cart .pns-header-action-slot .pns-cart-count,
.pns-action-link--cart .pns-header-action-slot .cart-count-badge {
    background: var(--pns-header-badge-cart-bg);
    color: var(--pns-header-badge-cart-color);
}
.pns-header-action-slot .count,
.pns-header-action-slot .pns-cart-count,
.pns-header-action-slot .pns-wishlist-count {
    position: absolute;
    top: -3.5px;
    right: -9px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    font-size: 11px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
    pointer-events: none;
}

/* ── 送貨方式選擇器（深藍底上的半透明白框） ── */
.pns-delivery-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 179px;
    height: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}
.pns-delivery-toggle:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.08);
}
.pns-delivery-toggle-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.pns-delivery-label { font-weight: 400; }
/* 送貨 / 自取 互斥顯示（避免移動端媒體查詢疊加導致雙文案） */
.pns-delivery-toggle .pns-delivery-label--delivery,
.pns-delivery-toggle .pns-delivery-label--pickup {
    display: none;
}
.pns-delivery-toggle[data-mode="delivery"] .pns-delivery-label--delivery {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.pns-delivery-toggle[data-mode="pickup"] .pns-delivery-label--pickup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    flex: 1;
    min-width: 0;
    width: 100%;
}
.pns-delivery-toggle-icon-pickup {
    display: none;
}
.pns-delivery-toggle[data-mode="pickup"] .pns-delivery-toggle-icon-delivery {
    display: none;
}
.pns-delivery-toggle[data-mode="pickup"] .pns-delivery-toggle-icon-pickup {
    display: inline-flex;
}
.pns-delivery-toggle[data-mode="delivery"] .pns-delivery-toggle-icon-pickup {
    display: none;
}
.pns-delivery-toggle[data-mode="delivery"] .pns-delivery-toggle-icon-delivery {
    display: inline-block;
}
.pns-delivery-label--pickup {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    flex: 1;
    min-width: 0;
    width: 100%;
}
.pns-delivery-sublabel {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.92;
}
.pns-delivery-store-name {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pns-delivery-arrow {
    color: #fff;
    margin-left: auto;
    flex-shrink: 0;
}
.pns-delivery-toggle-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}
.pns-delivery-toggle .icon.icon-hd,
.pns-delivery-toggle .icon.icon-cnc {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}
.pns-delivery-toggle .icon.icon-hd:before,
.pns-delivery-toggle .icon.icon-cnc:before {
    display: block;
    margin: 0 auto;
    line-height: 1;
}
/* 已選送貨上門 — 頂欄圓形貨車圖標 +「送貨上門」 */
.pns-delivery-toggle--delivery {
    width: auto;
    min-width: 132px;
    max-width: min(280px, 42vw);
    height: auto;
    min-height: 40px;
    padding: 4px 10px 4px 4px;
    gap: 8px;
    border-color: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}
.pns-delivery-toggle--delivery .pns-delivery-toggle-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    flex-shrink: 0;
}
.pns-delivery-toggle--delivery .icon.icon-hd {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}
.pns-delivery-toggle--delivery .icon.icon-hd:before {
    transform: scale(0.9);
    transform-origin: center center;
}
.pns-delivery-toggle--delivery .pns-delivery-label--delivery {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
/* 僅「送貨上門」、尚無地址時 — 單行主標（與未選店前默認態一致） */
.pns-delivery-toggle--delivery .pns-delivery-label--delivery:has(.pns-delivery-store-name.is-empty),
.pns-delivery-toggle--delivery .pns-delivery-label--delivery:has(.pns-delivery-store-name[hidden]) {
    gap: 0;
}
.pns-delivery-toggle--delivery .pns-delivery-label--delivery:has(.pns-delivery-store-name.is-empty) .pns-delivery-sublabel,
.pns-delivery-toggle--delivery .pns-delivery-label--delivery:has(.pns-delivery-store-name[hidden]) .pns-delivery-sublabel {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    opacity: 1;
}

/* 已選落佳拎門市 — 頂欄雙行「自取店 / 店名」 */
.pns-delivery-toggle--pickup {
    border-radius: 999px;
    width: auto;
    min-width: 168px;
    max-width: min(280px, 38vw);
    padding: 4px 12px 4px 4px;
    gap: 8px;
    overflow: visible;
}
.pns-delivery-toggle--pickup .pns-delivery-toggle-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    flex-shrink: 0;
}
.pns-delivery-toggle--pickup .pns-delivery-toggle-icon-pickup {
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 1;
}
.pns-delivery-toggle--pickup .icon.icon-cnc:before {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    margin: 0;
    transform: scale(0.88);
    transform-origin: center center;
}
.pns-delivery-toggle--pickup .pns-delivery-store-name {
    max-width: 100%;
}

/* Modal */
.pns-delivery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pns-delivery-modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0,0,0,0.4);
}
.pns-delivery-modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    width: calc(100% - 32px);
    max-width: 520px;
    max-height: min(90vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(26, 59, 120, 0.18);
    isolation: isolate;
    --pns-delivery-tab-active: #5268B8;
    --pns-delivery-tab-accent: #0082E6;
    --pns-delivery-btn-primary: #3FA7F3;
    --pns-delivery-btn-primary-hover: #2B97E3;
    --pns-delivery-tab-inactive-bg: #EBF2F9;
    --pns-delivery-tab-inactive-fg: #8A96A8;
}

/* Tabs — 對齊 PNS PC：雙欄 50%、未激活淺藍灰底、激活白底+藍字+底線 */
.pns-delivery-tabs {
    display: flex;
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--pns-delivery-tab-inactive-bg);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}
.pns-delivery-tab {
    flex: 1 1 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
    padding: 14px 12px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: var(--pns-delivery-tab-inactive-bg);
    color: var(--pns-delivery-tab-inactive-fg);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 -4px 0 transparent;
}
.pns-delivery-tab:first-child {
    border-radius: 20px 0 0 0;
}
.pns-delivery-tab:last-child {
    border-radius: 0 20px 0 0;
}
.pns-delivery-tab-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
}
.pns-delivery-tab .icon.icon-hd,
.pns-delivery-tab .icon.icon-cnc {
    font-size: 24px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
}
.pns-delivery-tab .icon.icon-hd:before,
.pns-delivery-tab .icon.icon-cnc:before {
    display: block;
    width: 1em;
    margin: 0 auto;
    line-height: 1;
}
.pns-delivery-tab-label {
    white-space: nowrap;
}
.pns-delivery-tab:hover:not(.active) {
    color: #6B7A8C;
    background: #E3ECF5;
}
.pns-delivery-tab.active {
    background: #fff;
    color: var(--pns-delivery-tab-active);
    z-index: 1;
    box-shadow: none;
}
.pns-delivery-tab.active .icon:before {
    color: var(--pns-delivery-tab-active);
}
.pns-delivery-tab:focus {
    outline: none;
}
body.ulive-keyboard-nav .pns-delivery-tab:focus-visible {
    outline: 2px solid var(--pns-delivery-tab-accent);
    outline-offset: -2px;
}

/* Panes */
.pns-delivery-pane {
    display: none;
    padding: 24px 28px 20px;
    text-align: center;
}
.pns-delivery-pane--pickup {
    padding-bottom: 16px;
}
.pns-delivery-pane.active {
    display: block;
}
.pns-delivery-pane--guest {
    padding: 20px 28px 24px;
}
.pns-delivery-pane#pns-delivery-pane-delivery:not(.pns-delivery-pane--guest) {
    padding: 20px 28px 24px;
}
.pns-delivery-address-card {
    text-align: left;
}
.pns-delivery-address-detail {
    background: #f3f7fb;
    border: 1px solid #e2eaf2;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 14px;
}
.pns-delivery-address-line {
    margin: 0 0 6px;
    font-size: 15px;
    color: #2f3d4c;
    line-height: 1.45;
}
.pns-delivery-address-line:last-child {
    margin-bottom: 0;
}
.pns-delivery-hint--title {
    font-weight: 600;
    color: rgb(63, 90, 181);
    margin-bottom: 10px;
}
.pns-delivery-label--delivery {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
/* 送貨地址摘要沿用 .pns-delivery-store-name；自取時隱藏送貨區塊內的第二行 */
.pns-delivery-toggle[data-mode="pickup"] .pns-delivery-label--delivery {
    display: none !important;
}
.pns-delivery-toggle[data-mode="delivery"] .pns-delivery-address-summary {
    display: block;
    width: 100%;
    max-width: 100%;
}
.pns-delivery-hint {
    font-size: 15px;
    color: #5A6878;
    margin: 0 0 12px;
    line-height: 1.45;
}
.pns-delivery-pane--guest .pns-delivery-hint {
    color: rgb(63, 90, 181);
}
.pns-delivery-illustration {
    margin: 4px auto 16px;
    width: 200px;
    max-width: 72%;
}
.pns-delivery-illustration img {
    display: block;
    width: 100%;
    height: auto;
}
.pns-delivery-links {
    font-size: 15px;
    color: #6B7A8C;
    margin: 0;
    line-height: 1.5;
}
.pns-delivery-links a {
    color: var(--pns-delivery-btn-primary, #3FA7F3);
    text-decoration: underline;
}
.pns-delivery-links a:hover {
    color: var(--pns-delivery-btn-primary-hover, #2B97E3);
}
/* 落佳拎 */
.pns-delivery-pickup-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 8px;
    text-align: center;
    color: rgb(62, 62, 62);
    line-height: 1.35;
}
.pns-delivery-pickup-desc {
    font-size: 16px;
    font-weight: 500;
    color: rgb(62, 62, 62);
    margin: 0 0 18px;
    text-align: center;
    line-height: 1.45;
}
.pns-delivery-pickup-eta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 20px;
    max-width: 100%;
}
.pns-delivery-pickup-eta-icon {
    flex-shrink: 0;
    line-height: 0;
}
.pns-delivery-pickup-eta-icon img {
    display: block;
    width: 65px;
    height: auto;
}
.pns-delivery-pickup-eta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}
.pns-delivery-pickup-eta-prefix {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #8A96A8;
    font-weight: 400;
}
.pns-delivery-pickup-eta-highlight {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: #00A651;
}
.pns-delivery-pickup-eta-num {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}
.pns-delivery-pickup-search {
    margin-bottom: 14px;
}
.pns-delivery-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #C5CED8;
    border-radius: 999px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pns-delivery-search-field:focus-within {
    border-color: var(--pns-delivery-tab-accent, #0082E6);
    box-shadow: 0 0 0 2px rgba(0, 130, 230, 0.12);
}
.pns-delivery-search-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: rgb(63, 167, 243);
}
.pns-delivery-search-icon .icon {
    font-size: 18px;
    line-height: 1;
}
.pns-delivery-search-icon .icon:before {
    color: rgb(63, 167, 243);
}
.pns-delivery-search-input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #2D3A4A;
    outline: none;
    box-shadow: none;
}
.pns-delivery-search-input::placeholder {
    color: #9AA8B8;
}
.pns-delivery-pickup-selects {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.pns-delivery-select-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.pns-delivery-select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: -2px;
    border: 5px solid transparent;
    border-top-color: var(--pns-delivery-tab-accent, #0082E6);
    pointer-events: none;
}
.pns-delivery-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 36px 12px 14px;
    border: 1px solid #C5CED8;
    border-radius: 10px;
    font-size: 15px;
    color: #2D3A4A;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    box-sizing: border-box;
}
.pns-delivery-select:disabled {
    color: #9AA8B8;
    background-color: #F5F7FA;
    cursor: not-allowed;
}
.pns-delivery-select:focus {
    border-color: var(--pns-delivery-tab-accent, #0082E6);
    box-shadow: 0 0 0 2px rgba(0, 130, 230, 0.12);
}

/* 落佳拎門市列表 */
.pns-delivery-pickup-results {
    margin: 0 -28px 12px;
    padding: 12px 16px 0;
    background: #F5F5F5;
}
.pns-delivery-pickup-results-count {
    margin: 0 0 10px;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 500;
    color: rgb(62, 62, 62);
    text-align: left;
}
.pns-delivery-pickup-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 12px;
}
.pns-delivery-pickup-store {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #E4E8ED;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pns-delivery-pickup-store.is-selected::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 22px 22px;
    border-color: transparent transparent var(--pns-delivery-tab-active, #5268B8) transparent;
    border-radius: 0 0 9px 0;
}
.pns-delivery-pickup-store:hover {
    border-color: #C5D4E8;
}
.pns-delivery-pickup-store.is-selected {
    border-color: var(--pns-delivery-tab-active, #5268B8);
    box-shadow: 0 0 0 1px var(--pns-delivery-tab-active, #5268B8);
}
.pns-delivery-pickup-store-logo {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}
.pns-delivery-pickup-store-logo--pns {
    background: linear-gradient(135deg, #E31837 0%, #003DA5 100%);
    color: #fff;
}
.pns-delivery-pickup-store-logo--fusion {
    background: #7CB342;
    color: #fff;
    font-size: 10px;
    letter-spacing: -0.02em;
}
.pns-delivery-pickup-store-body {
    flex: 1;
    min-width: 0;
}
.pns-delivery-pickup-store-name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: rgb(62, 62, 62);
    line-height: 1.35;
}
.pns-delivery-pickup-store.is-selected .pns-delivery-pickup-store-name {
    color: var(--pns-delivery-tab-active, #5268B8);
}
.pns-delivery-pickup-store-address {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #6B7A8C;
}
.pns-delivery-pickup-store.is-selected .pns-delivery-pickup-store-address {
    color: var(--pns-delivery-tab-active, #5268B8);
}
.pns-delivery-pickup-store-hours {
    margin: 0;
    font-size: 13px;
    color: #8A96A8;
}
.pns-delivery-pickup-results-empty {
    margin: 0;
    padding: 20px 8px;
    font-size: 14px;
    color: #8A96A8;
    text-align: center;
}

/* 落佳拎提醒條 — 對齊 PNS：全寬灰底、上下細線、灰色三角圖標 */
.pns-delivery-pickup-notice-wrap {
    margin: 0 -28px 0;
}
.pns-delivery-pickup-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 28px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
    color: #8B95A5;
    background: #F5F5F5;
    border-top: 1px solid #E8EAED;
    border-bottom: 1px solid #E8EAED;
    border-radius: 0;
    text-align: left;
}
.pns-delivery-pickup-notice-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #9AA5B3;
}
.pns-delivery-pickup-notice-icon .icon {
    font-size: 26px;
    line-height: 1;
}
.pns-delivery-pickup-notice-icon .icon:before {
    color: #9AA5B3;
}
.pns-delivery-pickup-notice-text {
    flex: 1;
    min-width: 0;
}

.pns-delivery-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(60vh, 520px);
    overflow-x: visible;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Footer 按鈕（PNS 圓角膠囊 + 彈窗底角） */
.pns-delivery-modal-footer {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    background: #F5F7FA;
    border-top: none;
    border-radius: 0 0 20px 20px;
}
.pns-delivery-modal-footer--guest .pns-delivery-btn-confirm {
    background: var(--pns-delivery-btn-primary, #3FA7F3);
}
.pns-delivery-modal-footer--guest .pns-delivery-btn-confirm:hover {
    background: var(--pns-delivery-btn-primary-hover, #2B97E3);
}
.pns-delivery-btn-close,
.pns-delivery-btn-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 124px;
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.pns-delivery-btn-close {
    background: #E8ECF1;
    border: none;
    color: #4A5568;
}
.pns-delivery-btn-close:hover {
    background: #DCE2EA;
}
.pns-delivery-btn-confirm {
    background: var(--pns-delivery-btn-primary, #3FA7F3);
    border: none;
    color: #fff;
}
.pns-delivery-btn-confirm:hover {
    background: var(--pns-delivery-btn-primary-hover, #2B97E3);
}

/* ═══════════════════════════════════════════════════════════════
   第 3 層：大分類 Nav Bar（白底深色文字）+ Mega Menu（PNS 佈局）
   ═══════════════════════════════════════════════════════════════ */

/* ── 每個一級分類的專屬顏色（CSS 自定義屬性，通過 cat-slug class 設置） ── */
.pns-mega-item.cat-food-drink           { --cat-color: #3879FF; } /* 食品及飲品 */
.pns-mega-item.cat-baby-mom             { --cat-color: #E8546C; } /* 母嬰 */
.pns-mega-item.cat-personal-care-health { --cat-color: #9B59B6; } /* 個人護理、健康 */
.pns-mega-item.cat-home-living          { --cat-color: #5DADE2; } /* 家居生活 */
.pns-mega-item.cat-pet-zone             { --cat-color: #E67E22; } /* 寵物區 */

.pns-mega-nav {
    background: var(--mega-nav-bg, #FFFFFF);
    /* 仅底边：四边简写会被 WP html :where([style*="border-width"]) 等规则误伤出左右 border-style:solid */
    border-width: 0 0 max(1px, var(--mega-nav-line-width, 4px)) 0;
    border-style: none none solid none;
    border-color: transparent transparent var(--mega-nav-line-color, #E0E0E0) transparent;
    /* 勿在此加外阴影：blur 会向上渗入 .pns-header 底缘，形成一条暗线 */
    box-shadow: none;
    position: relative;
    z-index: 900;
}
.pns-mega-nav[class*="active-cat-"] {
    border-bottom-width: var(--mega-nav-accent-width, 4px);
    border-bottom-style: solid;
    border-bottom-color: var(--active-cat-color, #3879FF);
}

.pns-mega-nav-inner {
    padding: 5px var(--mega-nav-padding-x, var(--pns-header-x-padding, 40px)) 0;
    max-width: none;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.pns-mega-list {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pns-mega-item {
    position: static;
    list-style: none;
    margin: 0 5px;
    display: flex;
    align-items: stretch;
}
.pns-mega-item.has-mega:hover,
.pns-mega-item.has-mega.js-hover-active {
    z-index: 902;
}

/* 漢堡按鈕僅在移動端 ≤768px 顯示 */
.pns-mega-hamburger { display: none; }

.pns-mega-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    line-height: 0;
}
.pns-mega-item__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}
.pns-mega-item__label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding-top: 1px;
}
.pns-mega-item > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #3E3E3E;
    font-size: 16px;
    font-weight: 700;
    height: 50px;
    line-height: 1;
    padding: 4px 16px 2px;
    white-space: nowrap;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}
.pns-mega-item > a .pns-mega-item__icon,
.pns-mega-item > a .pns-mega-item__label,
.pns-mega-item > a .pns-mega-arrow {
    flex-shrink: 0;
    align-self: center;
}

/* 梯形圓角背景形狀（上窄下寬 + 圓角）—— 用偽元素實現 */
.pns-mega-item > a {
    position: relative;
    z-index: 1;
}

.pns-mega-item > a::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 0;
    border-radius: 6px 6px 0 0;
    transform: perspective(40px) rotateX(3deg);
    transform-origin: bottom center;
    z-index: -1;
    background: transparent;
    transition: background 0.2s;
}

/* 當前激活項（服務端根據分類頁動態添加 .is-active + cat-{slug}） */
.pns-mega-item.is-active > a::before {
    background: var(--cat-color, #3879FF);
}
.pns-mega-item.is-active > a {
    color: var(--cat-text-color, #fff);
}

/* Hover — 灰色背景（未選中項） */
.pns-mega-item > a:hover::before {
    background: #F0F0F0;
}
.pns-mega-item > a:hover {
    color: #3E3E3E;
    border-bottom: none;
    text-decoration: none;
    outline: none;
}

/* 已選中項 hover 保持彩色 */
.pns-mega-item.is-active > a:hover::before {
    background: var(--cat-color, #3879FF);
}
.pns-mega-item.is-active > a:hover {
    color: var(--cat-text-color, #fff);
    border-bottom: none;
    text-decoration: none;
    outline: none;
}

/* 高亮项（優惠專區/獨家產品） */
.pns-mega-item.is-highlight > a {
    color: #FF820F;
}

/* 默認向下；hover 展開彈層時箭頭向上（is-active 當前頁仍向下） */
.pns-mega-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.2s;
    margin-left: 2px;
}
.pns-mega-arrow .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}
/* 字形在 :before，须显式 fontello（<i> 本身会继承正文族）。
   尺寸/字重对齐原站 pns.hk：fontello 字形本身不响应 font-weight，
   主要靠 1.25em 字号 + 轻微 text-stroke 让箭头更粗壮。 */
.pns-mega-arrow .icon:before {
    font-family: "fontello" !important;
    font-size: 1.25em;
    font-weight: normal !important;
    font-style: normal;
    line-height: 1;
    color: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-stroke: 0.4px currentColor;
}
.pns-mega-arrow .icon-arrow-up {
    display: none;
}
.pns-mega-item.is-active > a .pns-mega-arrow,
.pns-mega-item.has-mega:hover > a .pns-mega-arrow {
    opacity: 1;
}
.pns-mega-item.has-mega:hover > a .pns-mega-arrow .icon-arrow-down,
.pns-mega-item.has-mega.js-hover-active > a .pns-mega-arrow .icon-arrow-down {
    display: none;
}
.pns-mega-item.has-mega:hover > a .pns-mega-arrow .icon-arrow-up,
.pns-mega-item.has-mega.js-hover-active > a .pns-mega-arrow .icon-arrow-up {
    display: inline-flex;
}

/* ── Mega Panel（全幅下拉） ── */
.pns-mega-panel {
    position: absolute;
    top: 100%;
    left: 40px;
    right: 40px;
    background: transparent;
    display: none;
    z-index: 901;
    padding-top: 14px;
}
.pns-mega-item.has-mega:hover .pns-mega-panel,
.pns-mega-item.has-mega.js-hover-active .pns-mega-panel {
    display: block;
}
.pns-mega-panel-wrap {
    max-width: none;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}
/* 內層 flex 容器：承載 padding-top，避免被外層 border-radius 裁剪導致透明 */
.pns-mega-panel-content {
    display: flex;
    min-height: 360px;
    padding-top: 0;
}

/* ── 左側 L2 分類列表 ── */
.pns-mega-sidebar {
    width: 270px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-right: 1px solid var(--pns-line);
    padding: 0;
}
.pns-mega-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pns-mega-l2-tab {
    list-style: none;
}
.pns-mega-l2-tab a {
    display: block;
    padding: 9px 20px;
    color: var(--pns-text);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    border-bottom: 1px solid #E8E8E8;
}
.pns-mega-l2-tab:last-child a {
    border-bottom: none;
}
.pns-mega-l2-tab:hover a,
.pns-mega-l2-tab.is-active a {
    color: #3FA7F3;
    background: #F5F5F5;
    font-weight: 500;
}

/* ── 右側主內容區 ── */
.pns-mega-main {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
    max-height: 520px;
    background: #F5F5F5;
}
.pns-mega-l2-pane {
    display: none;
}
.pns-mega-l2-pane.is-active {
    display: block;
}

/* L2 標題行 */
.pns-mega-l2-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.pns-mega-l2-head h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pns-text);
    margin: 0;
}
.pns-mega-seeall {
    color: #3FA7F3;
    font-size: 14px;
    text-decoration: none;
}
.pns-mega-seeall:hover {
    color: #2B8FD4;
    text-decoration: underline;
}

/* ── L3 帶圖網格（4 列） ── */
.pns-mega-l3-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #E8E8E8;
    border-radius: 4px;
    overflow: hidden;
    padding: 1px;
}
.pns-mega-l3-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 0;
    background: #FFFFFF;
    text-decoration: none;
    color: var(--pns-text);
    transition: background 0.15s;
}
.pns-mega-l3-card:hover {
    background: var(--pns-bg-soft);
}
.pns-mega-l3-card img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.pns-mega-l3-ph {
    width: 62px;
    height: 62px;
    background: var(--pns-bg-soft);
    border-radius: 4px;
    flex-shrink: 0;
}
.pns-mega-l3-label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #1E388C;
    margin-left: 18px;
}
.pns-mega-l3-card:hover .pns-mega-l3-label {
    color: #3FA7F3;
}

/* ── 熱選品牌行 ── */
.pns-mega-brands {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pns-line);
}
.pns-mega-brands h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--pns-text);
    margin: 0 0 12px;
}
.pns-mega-brand-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pns-mega-brand-badge {
    flex: 0 0 calc((100% - 70px) / 8);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 6px 8px;
    border: 1px solid var(--pns-line);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pns-text);
    text-decoration: none;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
    white-space: nowrap;
}
.pns-mega-brand-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pns-mega-brand-badge:hover {
    border-color: var(--pns-primary);
    box-shadow: 0 2px 8px rgba(44,42,142,0.1);
    color: inherit;
}

/* 隱藏舊 Header 視覺骨架（保留結構但讓 PNS Header 取代視覺）
 * 注意：PNS Header 自己也帶 .site-header class（main.js sticky 依賴），
 * 所以必須用 :not(.pns-header-wrapper) 排除，避免誤傷新 Header。 */
body.pns-style .site-header:not(.pns-header-wrapper) { display: none !important; }
body.pns-style .pns-header-wrapper {
    display: block !important;
    margin-top: 0;
    padding-top: 0;
    /* 覆蓋 style.css .site-header 白底，避免与页头主区/导航条之间出现细缝 */
    background: transparent;
    /* html/body 設了 overflow-x:hidden 會讓 sticky 失效，改用 fixed */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
}
/* 主內容區頂部留白，避免被固定 Header 遮擋（高度由 main.js 寫入 --pns-header-offset） */
body.pns-style #main-content.site-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: var(--pns-header-offset, 150px);
}
body.admin-bar.pns-style .pns-header-wrapper {
    top: var(--pns-admin-bar-offset, 32px);
}
body.admin-bar.pns-style #main-content.site-main {
    padding-top: calc(var(--pns-header-offset, 150px) + var(--pns-admin-bar-offset, 32px));
}
@media screen and (max-width: 782px) {
    body.admin-bar.pns-style .pns-header-wrapper {
        top: var(--pns-admin-bar-offset, 46px);
    }
    body.admin-bar.pns-style #main-content.site-main {
        padding-top: calc(var(--pns-header-offset, 150px) + var(--pns-admin-bar-offset, 46px));
    }
}
/* 滾動後輕微陰影（由 main.js 在 scroll 時加上 .sticky） */
body.pns-style .pns-header-wrapper.sticky {
    box-shadow: 0 2px 12px rgba(30, 56, 140, 0.15);
}

/* 全站字體統一為 --font-primary（覆蓋舊基礎層等處硬編碼字體族） */
body.pns-style,
body.pns-style input,
body.pns-style button,
body.pns-style select,
body.pns-style textarea,
body.pns-style h1,
body.pns-style h2,
body.pns-style h3,
body.pns-style h4,
body.pns-style h5,
body.pns-style h6,
body.pns-style .product-title,
body.pns-style .pns-product-title,
body.pns-style .section-title {
    font-family: var(--font-primary) !important;
}

/* =====================================================================

/* =====================================================================
 * Responsive Header Extracts
 * 從原 PNS migration monolith 響應式段落抽出的 Header / Mega Menu 適配
 * ===================================================================== */
@media (min-width: 1441px) {
    .pns-promo-strip-inner,
    .pns-header-inner,
    .pns-mega-nav-inner {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1280px) {
    .pns-header-inner {
        padding: 14px var(--pns-header-x-padding);
    }
    .pns-mega-nav-inner {
        padding: 5px 40px 0;
    }
}

@media (max-width: 1024px) {
    /* Header（內聯搜索在文件後段統一 display:none） */
    .pns-delivery-toggle {
        width: auto;
    }
    /* Mega Nav：平板與手機一致 — 橫向 Tab + 導航行漢堡（不再僅頂欄漢堡） */
    .pns-mobile-menu-toggle { display: none; }
    .pns-mega-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 71px;
        box-sizing: border-box;
        border-right: 1px solid #ccc;
    }
    .pns-nav-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 100%;
        min-width: 44px;
        min-height: 44px;
        height: 55px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        color: #3f5ab5;
        box-sizing: border-box;
    }
    /* 图标与文字共用按钮全宽居中基准（勿固定 28px 宽，否则与 width:100% 的标签不对齐） */
    .pns-nav-hamburger .icon-menu-mobile {
        display: block;
        width: 100%;
        height: 28px;
        font-size: 0;
        line-height: 0;
        flex-shrink: 0;
    }
    .pns-nav-hamburger .icon-menu-mobile:before {
        display: none;
    }
    .pns-nav-hamburger .icon-menu-mobile:after {
        content: "";
        display: block;
        width: 28px;
        height: 28px;
        margin: 0 auto;
        background: url("../images/ui/icon-menu-mobile.svg") center center / contain no-repeat;
        /* SVG 构图偏右（放大镜在右侧），光学上略向左收 2px 与「所有產品」对齐 */
        transform: translateX(-2px);
    }
    .pns-nav-hamburger .pns-nav-hamburger-label {
        display: block;
        font-size: 10px;
        font-weight: 500;
        white-space: nowrap;
        color: #3f5ab5;
        text-align: center;
        width: 100%;
        height: auto;
        background: none;
        padding: 0;
        box-sizing: border-box;
    }
    .pns-mega-nav {
        display: block !important;
        border-width: 0 0 max(1px, var(--mega-nav-line-width, 4px)) 0;
        border-style: none none solid none;
        border-color: transparent transparent var(--mega-nav-line-color, #E0E0E0) transparent;
        box-shadow: none;
        overflow: visible;
        max-width: 100%;
    }
    .pns-mega-nav[class*="active-cat-"] {
        border-bottom-width: var(--mega-nav-accent-width, 4px);
        border-bottom-style: solid;
        border-bottom-color: var(--active-cat-color, #3879FF);
    }
    .pns-mega-nav-inner {
        display: block;
        /* 与头部/主体留白一致：左右各 12px；横滑时首/尾 tab 不会贴到屏幕边 */
        padding: 0;
        scroll-padding-inline: var(--ulive-content-gutter, 12px);
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        height: 55px;
        box-sizing: border-box;
    }
    .pns-mega-nav-inner::-webkit-scrollbar { display: none; }
    .pns-mega-list {
        flex-wrap: nowrap;
        gap: 0;
        min-width: max-content;
        height: 55px;
        align-items: stretch;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
    .pns-mega-item { margin: 0; display: flex; align-items: center; }
    .pns-mega-item > a {
        font-size: 14px;
        font-weight: 600;
        height: 100%;
        line-height: 1;
        padding: 4px 14px 2px;
        gap: 6px;
        align-items: center;
    }
    .pns-mega-item.is-active > a { color: var(--cat-text-color, #fff); }
    .pns-mega-item > a:hover {
        color: var(--pns-primary);
        border-bottom: none;
        text-decoration: none;
        outline: none;
    }
    .pns-mega-arrow { display: none; }
    .pns-mega-panel { display: none !important; }
    .pns-mega-item.has-mega:hover .pns-mega-panel { display: none !important; }
    .pns-mega-panel-inner { grid-template-columns: repeat(3, 1fr); }
    /* MCB 面板在平板/手機啟用 */
    .mcb-panel {
        display: flex;
    }
    .mcb-overlay {
        display: block;
    }
    .pns-header-search {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --pns-header-x-padding: 12px;
    }
    .pns-header-wrapper {
        max-width: 100%;
    }

    /* === Header === */
    .pns-promo-strip {
        font-size: 11px;
        line-height: var(--pns-promo-line-height);
        height: var(--pns-promo-line-height);
    }
    .pns-promo-strip-inner {
        height: var(--pns-promo-line-height);
        min-height: var(--pns-promo-line-height);
        padding-left: max(var(--pns-header-x-padding), env(safe-area-inset-left, 0px));
        padding-right: max(var(--pns-header-x-padding), env(safe-area-inset-right, 0px));
    }
    .pns-promo-links { display: none; }
    .pns-header {
        height: 70px;
        overflow: hidden;
    }
    /* Logo | 配送（可收缩）| 右侧图标 — 避免配送 min-width 把图标挤出视口 */
    .pns-header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 6px;
        row-gap: 0;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: max(var(--pns-header-x-padding), env(safe-area-inset-left, 0px));
        padding-right: max(var(--pns-header-x-padding), env(safe-area-inset-right, 0px));
        height: 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }
    .pns-header-logo {
        grid-column: 1;
        flex: none;
        min-width: 0;
        max-width: min(120px, 34vw);
        margin-right: 0;
    }
    .pns-header-logo img,
    .pns-logo-main {
        display: block;
        height: 36px;
        width: auto;
        max-width: 100%;
        max-height: 38px;
        object-fit: contain;
        object-position: left center;
    }
    .pns-logo-badge {
        height: 36px;
        width: auto;
        max-height: 38px;
    }
    /* 移動端隱藏內聯搜索框（原站使用搜索面板替代） */
    .pns-header-search {
        display: none;
    }
    /* MCB 面板已含搜索，移動端隱藏獨立搜索按鈕 */
    .pns-mobile-search-btn {
        display: none;
    }
    .pns-header-actions {
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        flex: none;
        flex-shrink: 0;
        min-width: 0;
    }
    .pns-action-link {
        padding: 0;
        margin-right: 0;
        min-width: 36px;
        min-height: 40px;
        width: 36px;
        height: 40px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        box-sizing: border-box;
    }
    .pns-action-link:last-child { margin-right: 0; }
    .pns-action-link .icon.pns-header-action-icon { font-size: 20px; }
    .pns-action-link .pns-header-action-icon { font-size: 24px; }
    .pns-delivery-toggle {
        grid-column: 2;
        padding: 4px 6px 4px 4px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        min-height: 40px;
        height: auto;
        box-sizing: border-box;
        overflow: hidden;
        justify-self: stretch;
    }
    .pns-delivery-toggle--pickup,
    .pns-delivery-toggle--delivery,
    .pns-delivery-toggle[data-mode="pickup"],
    .pns-delivery-toggle[data-mode="delivery"] {
        max-width: 100%;
        min-width: 0;
    }
    .pns-delivery-toggle--pickup {
        overflow: hidden;
    }
    .pns-delivery-toggle[data-mode="delivery"] .pns-delivery-sublabel,
    .pns-delivery-toggle[data-mode="pickup"] .pns-delivery-sublabel {
        font-size: 10px;
    }
    .pns-delivery-toggle[data-mode="delivery"] .pns-delivery-store-name,
    .pns-delivery-toggle[data-mode="pickup"] .pns-delivery-store-name {
        font-size: 12px;
    }
    .pns-delivery-toggle[data-mode="delivery"] .pns-delivery-label--delivery {
        overflow: hidden;
    }
    .pns-delivery-toggle[data-mode="delivery"] .pns-delivery-store-name {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --pns-header-x-padding: 8px;
    }
    /* Header */
    .pns-header-inner {
        gap: 4px;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: max(var(--pns-header-x-padding), env(safe-area-inset-left, 0px));
        padding-right: max(var(--pns-header-x-padding), env(safe-area-inset-right, 0px));
    }
    .pns-header-logo {
        max-width: min(108px, 30vw);
    }
    .pns-header-logo img,
    .pns-logo-main {
        height: 34px;
        max-height: 36px;
    }
    .pns-delivery-toggle[data-mode="delivery"] {
        max-width: 100%;
        min-width: 0;
        height: auto;
        min-height: 40px;
        padding: 4px 6px 4px 4px;
        gap: 6px;
        justify-content: flex-start;
    }
    .pns-delivery-toggle[data-mode="delivery"] .pns-delivery-label--delivery {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    .pns-delivery-toggle[data-mode="delivery"] .pns-delivery-label--pickup {
        display: none !important;
    }
    .pns-delivery-toggle[data-mode="delivery"] .pns-delivery-arrow {
        display: block !important;
    }
    .pns-delivery-toggle[data-mode="pickup"] {
        max-width: 100%;
        min-width: 0;
        padding: 4px 6px 4px 4px;
        gap: 6px;
        justify-content: flex-start;
    }
    .pns-delivery-toggle[data-mode="pickup"] .pns-delivery-label--pickup {
        display: flex !important;
    }
    .pns-delivery-toggle[data-mode="pickup"] .pns-delivery-label--delivery {
        display: none !important;
    }
    .pns-delivery-toggle[data-mode="pickup"] .pns-delivery-arrow {
        display: block !important;
    }
    .pns-delivery-toggle--pickup .pns-delivery-store-name {
        max-width: 100%;
        font-size: 13px;
    }
    .pns-delivery-toggle--pickup .pns-delivery-sublabel {
        font-size: 10px;
    }
    .pns-header-actions { gap: 0; }
    .pns-action-link {
        min-width: 34px;
        width: 34px;
        height: 40px;
        min-height: 40px;
    }
    .pns-action-link .icon.pns-header-action-icon { font-size: 18px; }
    .pns-action-link .pns-header-action-icon { font-size: 24px; }
}

@media (max-width: 430px) {
    :root {
        --pns-header-x-padding: 6px;
    }
    .pns-header-inner {
        gap: 2px;
        padding-left: max(var(--pns-header-x-padding), env(safe-area-inset-left, 0px));
        padding-right: max(var(--pns-header-x-padding), env(safe-area-inset-right, 0px));
    }
    .pns-header-logo {
        max-width: min(100px, 28vw);
    }
    .pns-logo-main,
    .pns-header-logo img {
        height: 32px;
        max-height: 34px;
    }
    .pns-delivery-toggle[data-mode="pickup"],
    .pns-delivery-toggle[data-mode="delivery"] {
        max-width: 100%;
        min-width: 0;
    }
    .pns-action-link {
        min-width: 32px;
        width: 32px;
        min-height: 38px;
        height: 38px;
    }
    .pns-action-link .icon.pns-header-action-icon { font-size: 18px; }
    .pns-action-link .pns-header-action-icon { font-size: 22px; }
    .pns-header-action-slot .count,
    .pns-header-action-slot .pns-cart-count,
    .pns-header-action-slot .pns-wishlist-count {
        width: 20px;
        height: 20px;
        min-width: 20px;
        max-width: 20px;
        font-size: 11px;
        padding: 0;
        top: -3.5px;
        right: -9px;
    }
}

@media (max-width: 375px) {
    :root {
        --pns-header-x-padding: 6px;
    }
    .pns-promo-strip {
        font-size: 10px;
        line-height: var(--pns-promo-line-height);
        height: var(--pns-promo-line-height);
    }
    .pns-promo-strip-inner {
        height: var(--pns-promo-line-height);
        min-height: var(--pns-promo-line-height);
        padding-left: max(var(--pns-header-x-padding), env(safe-area-inset-left, 0px));
        padding-right: max(var(--pns-header-x-padding), env(safe-area-inset-right, 0px));
    }
    .pns-promo-text .pns-promo-track span { font-size: min(var(--pns-promo-message-font-size, 12px), 10px); }
    .pns-promo-links a { font-size: min(var(--pns-promo-link-font-size, 14px), 12px); }

    .pns-header-inner {
        gap: 2px;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: max(var(--pns-header-x-padding), env(safe-area-inset-left, 0px));
        padding-right: max(var(--pns-header-x-padding), env(safe-area-inset-right, 0px));
    }
    .pns-header-logo {
        max-width: min(96px, 26vw);
    }
    .pns-logo-main,
    .pns-header-logo img {
        height: 32px;
        max-height: 34px;
    }
    .pns-action-link {
        min-width: 32px;
        width: 32px;
        height: 38px;
        min-height: 38px;
    }
    .pns-action-link .pns-header-action-icon { font-size: 22px; }
}

/* =====================================================================
 * Mobile Category Browser (MCB) — 全頁面分類瀏覽面板
 * ===================================================================== */
.mcb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
}
.mcb-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}
.mcb-panel {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: none;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
}
.mcb-panel.active {
    display: flex;
    transform: translateX(0);
}
.mcb-topbar {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 10px 0 6px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
    gap: 6px;
    background: #fff;
}
.mcb-back {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    flex-shrink: 0;
    padding: 0;
}
.mcb-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 38px;
    padding: 0 12px 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #f5f5f5;
}
.mcb-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #5eb0f0;
    line-height: 0;
}
.mcb-search input[type="search"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    -webkit-appearance: none;
}
.mcb-search input[type="search"]::placeholder {
    color: #999;
}
.mcb-search input[type="search"]:focus {
    outline: none;
}
.mcb-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f2f2f3;
}
/* 左欄：PNS — 整欄白底；選中項淺藍字 + 底部藍條 */
.mcb-sidebar {
    width: 26%;
    min-width: 92px;
    max-width: 108px;
    background: #fff;
    overflow-y: auto;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid #e8e8e8;
}
.mcb-l1-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}
.mcb-l1-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
    height: auto;
    padding: 12px 6px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    border: none;
    border-bottom: 1px solid #eee;
    border-left: none;
    color: #333;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;
    background: #fff;
    box-sizing: border-box;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.mcb-l1-item.is-active {
    background: #fff;
    color: #2a7de1;
    border-bottom: 3px solid #2a7de1;
    font-weight: 700;
    padding-bottom: 10px; /* 補償底條高度，避免文字微跳 */
}
.mcb-l1-item:focus {
    outline: none;
}
.mcb-l1-item:focus-visible {
    outline: 2px solid #2a7de1;
    outline-offset: -2px;
}
@media (hover: none) and (pointer: coarse) {
    .mcb-l1-item:focus,
    .mcb-l1-item:focus-visible {
        outline: none !important;
    }
}
/* 右欄：淺灰底 + 白色圓角卡片 */
.mcb-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 10px 10px 16px;
    background-color: #f2f2f3;
}
.mcb-l1-pane {
    display: block;
    scroll-margin-top: 8px;
}
.mcb-l1-pane + .mcb-l1-pane {
    margin-top: 6px;
}
.mcb-l2-section {
    margin-bottom: 10px;
    padding: 14px 12px 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.mcb-l2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0;
    border: none;
}
.mcb-l2-header h3 {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0;
    padding-right: 8px;
    line-height: 1.3;
}
.mcb-l2-header a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #2a7de1;
    text-decoration: none;
    border-radius: 0;
    transition: opacity 0.2s;
}
.mcb-l2-header a:hover {
    opacity: 0.75;
    background: transparent;
}
.mcb-l2-header a svg {
    display: block;
}
.mcb-l3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 8px;
}
.mcb-l3-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 2px 0;
}
.mcb-l3-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}
.mcb-l3-ph {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 4px;
    background: #f0f0f0;
    object-fit: contain;
}
.mcb-l3-card > span:last-child {
    font-size: 11px;
    color: #333;
    text-align: center;
    margin-top: 6px;
    line-height: 1.35;
    width: 100%;
    max-width: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mcb-empty {
    color: #999;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
}
.mcb-l2-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    padding: 10px 8px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    background: #fafafa;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
}
.mcb-brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.mcb-brand-img {
    height: 36px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
}
.mcb-brand-placeholder {
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
    color: #999;
}
