/* ==========================================================================
   assets/css/shop.css  (2026-10-31 新增)
   --------------------------------------------------------------------------
   承载三个新页型:
     · B4 同尺寸跨品牌比价页  /cigar/size/<形态slug>
     · C8 来源站库页          /cigar/shops
     · C9 站->品牌->型号三级下钻 (页内 JS, 承载在 C8 页内)

   ⚠️ 本文件只使用 sh-* 新类名, **不外溢**:
     · 不改 assets/css/cigar-shared.css 一字
     · 不改 assets/css/cigar.css 一字
     · 不复用/不改既有 pt-* 类的定义 (页面里只**引用** pt-go-src 这一条
       「查看原站」链接样式 —— 该类已在 cigar-shared.css 里, 无需也不该重复定义)
   ⚠️ 生成器落盘前会断言: 页面里 0 个内联 <style> 块, 所以所有样式必须在这里。
   ========================================================================== */

.sh-hero {
    margin: 18px 0 14px;
}

.sh-h1 {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: #2b2118;
    word-break: break-word;
}

.sh-sub {
    font-size: 14px;
    line-height: 1.7;
    color: #6b5c4c;
}

.sh-sub b {
    color: #a1561f;
}

.sh-note {
    margin: 16px 0 22px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.75;
    color: #6b5c4c;
    background: #faf7f2;
    border-left: 3px solid #d8c3a5;
    border-radius: 3px;
}

/* ---------- 统计条 ---------- */
.sh-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.sh-stat {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8ded0;
    border-radius: 6px;
    min-width: 0;
}

.sh-stat b {
    display: block;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    color: #a1561f;
    word-break: break-all;
}

.sh-stat span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #8a7a68;
}

/* ---------- 标签条 (B4 古巴/非古巴) ---------- */
.sh-tabs {
    margin: 0 0 18px;
}

.sh-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.sh-tab {
    padding: 7px 14px;
    font-size: 14px;
    color: #5a4b3c;
    background: #fff;
    border: 1px solid #ddd0bd;
    border-radius: 999px;
    cursor: pointer;
}

.sh-tab b {
    color: #a1561f;
}

.sh-tab.is-active {
    color: #fff;
    background: #a1561f;
    border-color: #a1561f;
}

.sh-tab.is-active b {
    color: #fff;
}

.sh-tab-panel[hidden] {
    display: none !important;
}

/* ---------- B4 型号块 ---------- */
.sh-model {
    margin: 0 0 14px;
    background: #fff;
    border: 1px solid #e8ded0;
    border-radius: 8px;
    overflow: hidden;
}

.sh-model-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    padding: 11px 14px;
    background: #fbf8f3;
    border-bottom: 1px solid #efe7da;
}

.sh-model-name {
    font-size: 16px;
    font-weight: 700;
    color: #2b2118;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.sh-model-name:hover {
    color: #a1561f;
}

.sh-model-brand {
    font-size: 13px;
    color: #a1561f;
    text-decoration: none;
}

.sh-model-meta,
.sh-model-count {
    font-size: 12px;
    color: #8a7a68;
}

.sh-model-price {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: #b23c17;
    white-space: nowrap;
}

.sh-quotes {
    padding: 4px 14px 10px;
}

.sh-quote {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    padding: 7px 0;
    font-size: 13px;
    line-height: 1.6;
    border-bottom: 1px dashed #f0e8da;
    color: #6b5c4c;
}

.sh-quote:last-child {
    border-bottom: 0;
}

.sh-quote-empty {
    color: #a99b8a;
}

.sh-q-site {
    font-weight: 700;
    color: #4a3d31;
    overflow-wrap: anywhere;
}

.sh-q-unit {
    font-weight: 700;
    color: #b23c17;
}

.sh-q-pkg,
.sh-q-fr {
    font-size: 12px;
    color: #8a7a68;
    overflow-wrap: anywhere;
}

.sh-q-warn {
    font-size: 12px;
    color: #9a6b12;
    background: #fdf6e6;
    border: 1px solid #f0e0b8;
    border-radius: 3px;
    padding: 0 5px;
}

.sh-q-stock {
    font-size: 12px;
    color: #6b5c4c;
}

.sh-quote .pt-go-src {
    margin-left: auto;
    white-space: nowrap;
}

/* ---------- 空态 ---------- */
.sh-empty {
    padding: 22px 14px;
    text-align: center;
    background: #fff;
    border: 1px dashed #ddd0bd;
    border-radius: 8px;
}

.sh-empty-label {
    font-size: 15px;
    font-weight: 700;
    color: #6b5c4c;
}

.sh-empty-text {
    margin-top: 5px;
    font-size: 13px;
    color: #9a8c7c;
}

/* ---------- C8 筛选条 ---------- */
.sh-filters {
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e8ded0;
    border-radius: 8px;
}

.sh-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}

.sh-filter-row + .sh-filter-row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #efe7da;
}

.sh-filter-label {
    font-size: 13px;
    color: #8a7a68;
    min-width: 66px;
}

.sh-filter-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.sh-filter-btn {
    padding: 5px 11px;
    font-size: 13px;
    color: #5a4b3c;
    background: #fdfaf5;
    border: 1px solid #ddd0bd;
    border-radius: 999px;
    cursor: pointer;
}

.sh-filter-btn b {
    color: #a1561f;
}

.sh-filter-btn.is-active {
    color: #fff;
    background: #a1561f;
    border-color: #a1561f;
}

.sh-filter-btn.is-active b {
    color: #fff;
}

/* ---------- C8 站卡网格 ---------- */
.sh-site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.sh-site-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8ded0;
    border-radius: 8px;
    overflow: hidden;
}

.sh-site-card[hidden] {
    display: none !important;
}

.sh-site-card.is-open {
    border-color: #d8b98f;
}

.sh-site-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fbf8f3;
    border-bottom: 1px solid #efe7da;
}

.sh-site-card-img,
.sh-site-card-fallback {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e8ded0;
}

.sh-site-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #8a7a68;
    background: #f0e9dd;
}

.sh-site-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #2b2118;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sh-site-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
}

.sh-site-tag {
    padding: 1px 6px;
    font-size: 11px;
    color: #8a6a45;
    background: #f6efe4;
    border-radius: 3px;
}

.sh-site-rating {
    color: #9a6b12;
    background: #fdf6e6;
}

.sh-site-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 9px 12px 0;
    font-size: 12px;
    color: #8a7a68;
}

.sh-site-card-stats b {
    color: #a1561f;
}

.sh-site-card-freight,
.sh-site-card-review {
    padding: 6px 12px 0;
    font-size: 12px;
    line-height: 1.65;
    color: #7a6b5a;
    overflow-wrap: anywhere;
}

.sh-site-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-top: auto;
}

.sh-site-expand {
    margin-left: auto;
    padding: 5px 12px;
    font-size: 13px;
    color: #a1561f;
    background: #fff;
    border: 1px solid #d8b98f;
    border-radius: 999px;
    cursor: pointer;
}

.sh-site-panel {
    padding: 0 12px 12px;
    border-top: 1px solid #efe7da;
}

.sh-site-panel[hidden] {
    display: none !important;
}

/* ---------- C9 三级下钻 ---------- */
.sh-d-brand {
    border-bottom: 1px dashed #f0e8da;
}

.sh-d-brand:last-child {
    border-bottom: 0;
}

.sh-d-brand-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    padding: 8px 0;
}

.sh-d-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #4a3d31;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.sh-d-brand-name:hover {
    color: #a1561f;
}

.sh-d-brand-count {
    font-size: 12px;
    color: #9a8c7c;
}

.sh-d-toggle {
    margin-left: auto;
    padding: 2px 9px;
    font-size: 12px;
    color: #8a6a45;
    background: #fdfaf5;
    border: 1px solid #ddd0bd;
    border-radius: 999px;
    cursor: pointer;
}

.sh-d-models[hidden] {
    display: none !important;
}

.sh-d-model {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 5px 0 5px 12px;
    font-size: 13px;
    color: #6b5c4c;
    border-top: 1px dotted #f2ebde;
}

.sh-d-model-name {
    color: #4a3d31;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.sh-d-model-name:hover {
    color: #a1561f;
}

.sh-d-model-price {
    color: #b23c17;
    font-weight: 700;
}

.sh-d-model-count {
    font-size: 12px;
    color: #9a8c7c;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 480px) {
    .sh-h1 {
        font-size: 21px;
    }

    .sh-model-price {
        margin-left: 0;
        width: 100%;
    }

    .sh-site-grid {
        grid-template-columns: 1fr;
    }

    .sh-quote .pt-go-src {
        margin-left: 0;
    }
}
