/* ===== Provider / Product List — PC (1100px) ===== */

/* --- 頁面底色 --- */
body.page_provider_list,
body.page_product_list {
    background-color: var(--color-bg-base);
}

/* --- Banner --- */
#main_visual_ctr {
    margin-top: 20px;
    margin-bottom: 0;
    width: 1100px;
}

#main_visual_carousel_ctr_4 {
    margin-bottom: 0;
    width: 1100px;
    height: 575px;
}

/* --- Section Header Strip (provider name + intro) --- */
.provider-section-header {
    width: 1100px;
    background-color: var(--color-bg-section);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    margin: 0 auto;
    box-sizing: border-box;
}

.provider-section-header__name {
    font-family: "Noto Serif TC", serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 4px 0;
}

.provider-section-header__desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- Breadcrumb --- */
#bread_crumb {
    width: 1100px;
    font-size: 13px;
    height: 20px;
    line-height: 20px;
    vertical-align: middle;
    color: var(--color-text-muted);
    margin-top: 12px;
}

#bread_crumb > a:link,
#bread_crumb > a:visited {
    color: var(--color-text-muted);
    text-decoration: none;
}

#bread_crumb > a:hover {
    color: var(--color-text-body);
    text-decoration: underline;
}

#bread_crumb > a:active {
    color: var(--color-primary);
    text-decoration: none;
}

/* --- Product Grid --- */
#product_list_ctr {
    margin-top: 12px;
    width: 1120px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* --- Product Card --- */
.product_ctr {
    width: 333px;
    min-height: 460px;
    margin: 12px 20px;
    position: relative;
    background-color: var(--color-card);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    overflow: hidden;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.product_ctr:hover {
    background-color: var(--color-card-hover);
    box-shadow: 0 4px 16px rgba(14, 61, 105, 0.10);
}

/* --- Product Image --- */
.product_pic {
    width: 333px;
    height: 333px;
    background-position: center;
    background-size: cover;
    display: block;
}

/* --- Natural Hazard Badge --- */
.natural_harzard_ctr {
    width: 100px;
    height: 85px;
    background-color: var(--color-danger);
}

.natural_harzard_type {
    height: 50px;
    text-align: center;
    font-size: 30px;
    line-height: 50px;
    vertical-align: middle;
    color: var(--color-text-light);
    font-weight: bold;
    letter-spacing: 10px;
    padding-left: 10px;
}

.delay_days {
    height: 35px;
    text-align: center;
    font-size: 15px;
    line-height: 35px;
    vertical-align: middle;
    color: var(--color-text-light);
}

/* --- Product Name --- */
.product_name {
    margin-top: 10px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
    font-size: 17px;
    font-family: "Noto Serif TC", serif;
    font-weight: 500;
    text-align: center;
    color: var(--color-text-dark);
}

.product_name a:link,
.product_name a:visited {
    color: var(--color-text-dark);
    text-decoration: none;
}

.product_name a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.product_name a:active {
    color: var(--color-primary-dark);
    text-decoration: none;
}

/* --- Product Spec (variant selector) --- */
.product_spec {
    margin-top: 6px;
    padding: 0 8px;
    width: 100%;
    box-sizing: border-box;
    line-height: 26px;
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

.product_spec_divider {
    padding: 0 3px;
    color: var(--color-border);
}

.product_spec a:link,
.product_spec a:visited {
    color: var(--color-text-muted);
    text-decoration: none;
}

.product_spec a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.product_spec a:active {
    color: var(--color-primary-dark);
    text-decoration: none;
}

/* --- Product Price --- */
.product_price {
    margin: 6px 0 12px;
    width: 100%;
    line-height: 28px;
    font-size: 20px;
    color: var(--color-primary);
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* --- Browse More Link --- */
.go_more_prod {
    width: 100%;
    display: flex;
    justify-content: center;
}

.go_more_prod a {
    font-size: 14px;
    color: var(--color-primary);
    margin: 6px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
}

.go_more_prod a:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
}

/* ══════════════════════════════════════════════════
   Risk 4 — 新鮮出貨說明條 (freshness-strip)
   取代每個商品卡上的紅色延遲警示
   ══════════════════════════════════════════════════ */
.freshness-strip {
    width: 1100px;
    background: linear-gradient(135deg, #fffbe8 0%, #fff5d6 100%);
    border-top: 1px solid var(--color-gold-muted);
    border-bottom: 1px solid var(--color-gold-muted);
    padding: 10px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.freshness-strip__icon {
    font-size: 16px;
    flex-shrink: 0;
}

.freshness-strip__text {
    font-size: 13px;
    color: #7a5300;
    line-height: 1.5;
}

.freshness-strip__text strong {
    color: var(--color-text-dark);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════
   Risk 1 — 品牌識別區 (brand-identity-zone)
   取代原有 .provider-section-header 細帶
   ══════════════════════════════════════════════════ */
.brand-identity-zone {
    width: 1100px;
    background-color: var(--color-bg-section);
    border-top: 3px solid var(--color-gold);
    border-bottom: 1px solid var(--color-border);
    padding: 22px 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

.brand-identity-zone__left {
    flex: 1;
    min-width: 0;
}

.brand-identity-zone__name {
    font-family: "Noto Serif TC", serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin: 0 0 8px 0;
}

.brand-identity-zone__desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 0 10px 0;
}

.brand-identity-zone__breadcrumb {
    font-size: 12px;
    color: var(--color-text-muted);
}

.brand-identity-zone__breadcrumb a:link,
.brand-identity-zone__breadcrumb a:visited {
    color: var(--color-text-muted);
    text-decoration: none;
}

.brand-identity-zone__breadcrumb a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.brand-identity-zone__right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-card);
    border: 1.5px solid var(--color-gold);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.brand-badge--filled {
    background: var(--color-gold);
    color: var(--color-text-dark);
}

/* ══════════════════════════════════════════════════
   Risk 2 — 分類 Tab 列 (category-tab-bar)
   超過 1 個分類時顯示；滾動後吸附頂部
   ══════════════════════════════════════════════════ */
.category-tab-bar-wrap {
    width: 100%;
    background: var(--color-card);
    border-bottom: 2px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(14,61,105,0.06);
    transition: box-shadow 0.2s;
}

.category-tab-bar-wrap.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(14,61,105,0.12);
}

.category-tab-bar {
    width: 1100px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
}

.category-tab-bar::-webkit-scrollbar { display: none; }

.category-tab {
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    user-select: none;
    flex-shrink: 0;
}

.category-tab:hover {
    color: var(--color-primary);
}

.category-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-gold);
    font-weight: 700;
}

/* placeholder to prevent layout jump when tab bar goes sticky */
.category-tab-bar-placeholder {
    display: none;
}

.category-tab-bar-placeholder.visible {
    display: block;
}

/* ══════════════════════════════════════════════════
   Risk 3 — 鎮店之寶 (featured-product)
   第一順序商品的全寬編輯式展示
   ══════════════════════════════════════════════════ */
.featured-product {
    width: 1100px;
    margin: 20px auto 0;
    background: var(--color-card);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    min-height: 200px;
    position: relative;
    transition: box-shadow 0.2s;
}

.featured-product:hover {
    box-shadow: 0 4px 20px rgba(14,61,105,0.10);
}

.featured-product__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--color-gold);
    color: var(--color-text-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    z-index: 2;
    pointer-events: none;
}

.featured-product__image {
    width: 260px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: var(--color-bg-section);
}

.featured-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-product__info {
    padding: 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.featured-product__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.featured-product__name {
    font-family: "Noto Serif TC", serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.3;
    text-decoration: none;
    display: block;
}

.featured-product__name:hover {
    color: var(--color-primary);
}

.featured-product__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.featured-product__spec-link {
    display: inline-block;
    padding: 5px 14px;
    background: var(--color-bg-section);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--color-text-body);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.featured-product__spec-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light);
}

.featured-product__price {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.featured-product__price-note {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 400;
    margin-left: 4px;
}

/* 商品格 sticky 補高 */
.sticky-spacer {
    display: none;
}

.sticky-spacer.visible {
    display: block;
}

/* --- Empty State --- */
.product-empty-state {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.product-empty-state__title {
    font-family: "Noto Serif TC", serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-body);
    margin-bottom: 12px;
}

.product-empty-state__sub {
    font-size: 15px;
    margin-bottom: 24px;
}

.product-empty-state__btn {
    display: inline-block;
    padding: 10px 28px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s;
}

.product-empty-state__btn:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
}
