/* PLAN-17：電商主頁 home.ecommerce@1 */
.home-ecom-hero {
    position: relative;
    min-height: clamp(280px, 42vw, 480px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.home-ecom-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.home-ecom-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.home-ecom-hero-title {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 800;
    margin: 0 0 1.25rem;
    max-width: 40rem;
}

.home-ecom-hero-title-link {
    color: inherit;
    text-decoration: none;
}

.home-ecom-hero-title-link:hover,
.home-ecom-hero-title-link:focus {
    color: inherit;
    text-decoration: underline;
}

.home-ecom-hero-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .home-ecom-hero-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.home-ecom-hero .promo-product-card {
    background: var(--site-surface, #fff);
    color: var(--site-text, #212529);
}

.home-ecom-shelf-title-link {
    color: var(--site-text, #212529);
}

.home-ecom-shelf-title-link:hover,
.home-ecom-shelf-title-link:focus {
    color: var(--site-accent, #0d6efd);
}

.home-ecom-shelf-more {
    color: var(--site-text-muted, #6c757d);
    white-space: nowrap;
}

.home-ecom-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .home-ecom-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.home-ecom-empty-msg {
    color: var(--site-text-muted, #6c757d);
    font-size: 1.05rem;
}

@media (max-width: 767.98px) {
    .home-ecom-shelves,
    .home-ecom-featured,
    .home-ecom-empty,
    .home-ecom-hero-inner {
        --bs-gutter-x: calc(2 * var(--front-mobile-gutter-x, 0.375rem));
        padding-left: var(--front-mobile-gutter-x, 0.375rem);
        padding-right: var(--front-mobile-gutter-x, 0.375rem);
    }
}
