/* Homepage — mobile-first polish (max-width: 767px) */

@media (max-width: 767px) {
    /* Bottom nav clearance: mobile-bottom-nav-safe.css */

    .icg-home {
        background: #f4f3f0;
    }

    /* ── Hero ── */
    .icg-hero--pro {
        padding: 20px 0 28px;
    }

    .icg-hero-inner {
        padding: 0 16px;
        gap: 24px;
    }

    .icg-hero-accent {
        width: 90vw;
        height: 90vw;
        top: -80px;
        right: -40%;
    }

    .icg-hero-eyebrow {
        font-size: 10px;
        letter-spacing: 0.1em;
        margin-bottom: 14px;
    }

    .icg-hero-title {
        font-size: clamp(32px, 9vw, 40px);
        max-width: none;
        margin-bottom: 12px;
    }

    .icg-hero-lead {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    .icg-hero-perks {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 20px;
    }

    .icg-hero-perks li {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 6px;
        font-size: 10px;
        line-height: 1.25;
        text-align: center;
        border-radius: 12px;
    }

    .icg-hero-perks i {
        font-size: 18px;
        margin: 0;
    }

    .icg-hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .icg-hero-cta .icg-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 14px 20px;
    }

    .icg-hero-signout,
    .icg-hero-signin-hint {
        text-align: center;
        margin-top: 12px;
    }

    .icg-hero-metrics {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 24px;
        padding-top: 0;
        border-top: none;
    }

    .icg-hero-metric {
        padding: 14px 8px;
        border-right: none;
        background: #fff;
        border-radius: 14px;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
        text-align: center;
    }

    .icg-hero-metric:first-child,
    .icg-hero-metric:last-child {
        padding-left: 8px;
        padding-right: 8px;
    }

    .icg-hero-metric strong {
        font-size: 20px;
    }

    .icg-hero-metric span {
        font-size: 9px;
        letter-spacing: 0.05em;
    }

    /* Featured products — swipeable row */
    .icg-hero-bento {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        min-height: 0;
        margin: 0 -16px;
        padding: 4px 16px 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .icg-hero-bento::-webkit-scrollbar {
        display: none;
    }

    .icg-hero-tile {
        flex: 0 0 min(78vw, 300px);
        scroll-snap-align: start;
        min-height: 300px;
        border-radius: 18px;
    }

    .icg-hero-tile--0 {
        flex: 0 0 min(88vw, 320px);
        min-height: 320px;
        grid-column: auto;
        grid-row: auto;
    }

    .icg-hero-tile--1,
    .icg-hero-tile--2,
    .icg-hero-tile--3 {
        grid-column: auto;
        grid-row: auto;
        min-height: 300px;
    }

    .icg-hero-tile-img {
        padding: 20px;
    }

    .icg-hero-tile-meta {
        padding: 12px 14px 14px;
    }

    .icg-hero-bento-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: -4px 0 0;
        font-size: 11px;
        font-weight: 600;
        color: rgba(17, 17, 17, 0.45);
    }

    .icg-hero-bento-hint i {
        font-size: 14px;
    }

    /* ── Categories ── */
    .icg-cats-bar {
        padding: 14px 12px 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

    .icg-cats-bar-inner {
        justify-content: flex-start;
        gap: 8px;
    }

    .icg-cats-pill {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* ── Product grid section ── */
    .icg-home-products {
        padding: 28px 12px 36px;
    }

    .icg-home-products-head {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
    }

    .icg-home-products-title {
        font-size: 22px;
    }

    .icg-home-products-lead {
        font-size: 13px;
    }

    .icg-home-products-head .icg-btn--outline-dark {
        width: 100%;
        min-height: 48px;
    }

    /* Product carousel — one card at a time */
    .icg-products-carousel {
        position: relative;
        padding: 0 4px;
    }

    .icg-products-carousel.is-carousel-active .icg-products-carousel-viewport {
        overflow: hidden;
    }

    .icg-products-carousel.is-carousel-active [data-carousel-track] {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-columns: unset !important;
        gap: 0 !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .icg-products-carousel.is-carousel-active [data-carousel-track]::-webkit-scrollbar {
        display: none;
    }

    .icg-products-carousel.is-carousel-active .mc-product-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        box-sizing: border-box;
    }

    .icg-carousel-arrow {
        position: absolute;
        top: 50%;
        z-index: 3;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        background: #fff;
        color: var(--icg-green-dark, #1e4d24);
        font-size: 22px;
        line-height: 1;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        cursor: pointer;
        transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .icg-carousel-arrow:active:not(:disabled) {
        transform: scale(0.94);
    }

    .icg-carousel-arrow:disabled {
        opacity: 0.35;
        cursor: not-allowed;
        box-shadow: none;
    }

    .icg-carousel-arrow--prev {
        left: 0;
        transform: translateY(-50%);
    }

    .icg-carousel-arrow--next {
        right: 0;
        transform: translateY(-50%);
    }

    .icg-carousel-arrow--prev:active:not(:disabled) {
        transform: translateY(-50%) scale(0.94);
    }

    .icg-carousel-arrow--next:active:not(:disabled) {
        transform: translateY(-50%) scale(0.94);
    }

    .icg-carousel-counter {
        margin: 14px 0 0;
        text-align: center;
        font-size: 13px;
        font-weight: 700;
        color: rgba(17, 17, 17, 0.55);
        letter-spacing: 0.04em;
    }

    .icg-products-carousel:not(.is-carousel-active) .icg-carousel-arrow,
    .icg-products-carousel:not(.is-carousel-active) .icg-carousel-counter {
        display: none;
    }

    .mc-home-shop .mc-shop-grid {
        gap: 12px 10px;
    }

    .mc-home-shop .mc-product-card {
        border-radius: 14px;
    }

    .mc-home-shop .mc-product-image-wrap {
        padding: 14px;
    }

    .mc-home-shop .mc-product-body {
        padding: 12px 12px 14px;
        gap: 8px;
    }

    .mc-home-shop .mc-product-name {
        font-size: 13px;
        line-height: 1.35;
    }

    .mc-home-shop .mc-product-price-now {
        font-size: 15px;
    }

    .mc-home-shop .mc-product-cart .mc-btn {
        min-height: 40px;
        font-size: 12px;
        padding: 10px 12px;
        width: 100%;
    }

    /* ── Band ── */
    .icg-band {
        padding: 32px 16px;
    }

    .icg-band-title {
        font-size: 20px;
    }

    .icg-band-text {
        font-size: 14px;
    }

    /* ── Perks ── */
    .icg-perks {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 24px 12px 32px;
    }

    .icg-perk {
        background: #fff;
        border-radius: 16px;
        padding: 18px 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .icg-perk i {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .icg-perk-label {
        font-size: 12px;
    }

    .icg-perk-desc {
        font-size: 11px;
    }

    /* ── CTA ── */
    .icg-cta-band {
        padding: 36px 16px calc(36px + env(safe-area-inset-bottom, 0px));
    }

    .icg-cta-title {
        font-size: 22px;
    }

    .icg-cta-text {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .icg-cta-band .icg-btn--lg {
        width: 100%;
        min-height: 52px;
    }
}

@media (min-width: 768px) {
    .icg-products-carousel .icg-carousel-arrow,
    .icg-products-carousel .icg-carousel-counter {
        display: none !important;
    }

    .icg-products-carousel [data-carousel-track] {
        display: grid !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
    }
}

@media (max-width: 380px) {
    .icg-hero-perks li {
        font-size: 9px;
        padding: 10px 4px;
    }

    .icg-hero-metric strong {
        font-size: 18px;
    }
}

/* Hide swipe hint on tablet+ */
.icg-hero-bento-hint {
    display: none;
}

@media (max-width: 767px) {
    .icg-hero-bento-hint {
        display: flex;
    }
}
