/* =========================
   HOME: 增强产品卡 + Hero 统计条（批发电商感）
   ========================= */

/* Section 标题行：标题 + View All */
.section-view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    font-family: var(--font-heading);
}
.section-view-all:hover {
    text-decoration: underline;
}

/* =========================
   Hero 统计条（浮于轮播底部）
   ========================= */
.hero-stats {
    max-width: 1400px;
    margin: -38px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.hero-stats__item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-card);
}
.hero-stats__item b {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}
.hero-stats__item span {
    font-size: 12px;
    color: var(--color-text-light);
}

/* =========================
   增强产品卡
   ========================= */
.pc-card {
    display: flex;
    flex-direction: column;
}
.pc-card .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pc-card .product-content h3 {
    min-height: 36px;
}
.pc-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}
.pc-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1;
    letter-spacing: 0.3px;
}
.pc-badge--discount { background: var(--color-discount); }
.pc-badge--hot      { background: var(--color-hot); }
.pc-badge--new      { background: var(--color-success); }
.pc-badge--premium  { background: #7c3aed; }
.pc-badge--sold     { background: rgba(17, 24, 39, 0.82); font-weight: 600; }

.pc-img-wrap {
    display: block;
    overflow: hidden;
    background: #f0f0f0;
}
.pc-img-wrap img {
    transition: transform 0.3s ease;
}
.pc-card:hover .pc-img-wrap img {
    transform: scale(1.04);
}

.pc-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 2px;
    min-height: 20px;
}
.pc-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-text-light);
}
.pc-stars {
    color: var(--color-rating);
    letter-spacing: 1px;
    font-size: 13px;
}
.pc-rating b {
    color: #111827;
    font-weight: 700;
}
.pc-rating em {
    font-style: normal;
    color: #999;
}

.pc-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 2px;
}
.pc-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-primary);
    font-family: var(--font-heading);
    line-height: 1.1;
}
.pc-price small {
    font-size: 12px;
    font-weight: 600;
    color: #999;
}
.pc-price-old {
    font-size: 14px;
    color: #aaa;
    font-weight: 400;
}

.pc-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}
.pc-tier {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.4;
}
.pc-tier--moq {
    background: var(--color-dark);
    color: #fff;
}
.pc-tier--best {
    background: var(--color-sale-bg);
    color: var(--color-primary);
    border: 1px solid #ffd9c2;
}

.pc-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.pc-actions .add-to-cart-btn {
    flex: 1;
    font-size: 13px;
    padding: 11px 10px;
    font-weight: 700;
}
.pc-inquire {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-whatsapp);
    color: #fff;
    padding: 11px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-heading);
    transition: opacity 0.3s ease;
    white-space: nowrap;
}
.pc-inquire:hover {
    opacity: 0.85;
    color: #fff;
}

@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -20px;
    }
}
@media (max-width: 768px) {
    .hero-stats {
        padding: 0 12px;
        gap: 10px;
    }
    .hero-stats__item {
        padding: 12px 14px;
    }
    .hero-stats__item b {
        font-size: 22px;
    }
    .pc-inquire {
        padding: 11px 10px;
        font-size: 12px;
    }
}

/* =========================
   首页密度强化：间距收紧 + 标题装饰
   ========================= */
.block-home-hero + .hero-stats + .section,
.block-home-categories,
.block-home-flash-sale,
.block-home-best-sellers,
.block-home-hot-ranking,
.block-home-brand-wall,
.block-home-hot-strip {
    margin-top: 36px;
}
.section-title-box {
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border-light);
    margin-bottom: 18px;
}
.section-title-box h2,
.section-title-box .section-title {
    position: relative;
}
.section-title-box h2::after,
.section-title-box .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 46px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
}
.section-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
@media (max-width: 768px) {
    .section-title-box {
        align-items: flex-start;
    }
}

/* =========================
   首页间隙收窄：容器加宽 + 网格间距减小
   ========================= */
.block-home-hero,
.block-home-categories .container,
.block-home-flash-sale .container,
.block-home-best-sellers .container,
.block-home-hot-ranking .container,
.block-home-brand-wall .container,
.block-home-hot-strip .container {
    max-width: 1600px;
}
.block-home-categories .container,
.block-home-flash-sale .container,
.block-home-best-sellers .container,
.block-home-hot-ranking .container,
.block-home-brand-wall .container,
.block-home-hot-strip .container {
    padding-left: 20px;
    padding-right: 20px;
}
.product-grid,
.block-home-categories .cat-grid {
    gap: 16px;
}
.block-home-hot-strip .strip-grid {
    gap: 12px;
}
/* 卡片内部收紧 */
.pc-card .product-content {
    padding: 14px 14px 14px;
}
.pc-card .product-content h3 {
    min-height: 34px;
    font-size: 15px;
}
.pc-meta {
    margin: 5px 0 1px;
}
.pc-tiers {
    margin: 7px 0 10px;
}
.hero-stats {
    margin-top: -34px;
}


/* =========================
   产品卡压缩：图片 4:3 + 紧凑内容（一屏多睇一排）
   ========================= */
.pc-card .pc-img-wrap {
    aspect-ratio: 1 / 1;
}
.pc-card .pc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pc-card .product-content {
    padding: 12px 12px 12px;
}
.pc-card .product-content h3 {
    font-size: 14px;
    min-height: 32px;
}
.pc-meta {
    margin: 4px 0 0;
    min-height: 18px;
}
.pc-price {
    font-size: 20px;
}
.pc-price-row {
    margin: 5px 0 0;
}
.pc-tiers {
    margin: 6px 0 8px;
    gap: 5px;
}
.pc-tier {
    font-size: 10.5px;
    padding: 3px 7px;
}
.pc-actions {
    gap: 6px;
}
.pc-actions .add-to-cart-btn {
    padding: 10px 8px;
    font-size: 12px;
}
.pc-inquire {
    padding: 10px 12px;
    font-size: 12px;
}
