/* Shared storefront width. Keep category navigation edge to edge as approved. */
.ie-site {
    --ie-layout-max: 1680px;
    --ie-layout-gutter: clamp(20px, 3vw, 64px);
}

.ie-site #ie-page {
    min-width: 0;
}

.ie-site .ie-header-v22,
.ie-site .ie-home-v22 .ie-home-banner,
.ie-site .ie-home-v22 .ie-results,
.ie-site .ie-footer-v35,
.ie-site main.ie-story {
    width: calc(100% - var(--ie-layout-gutter) - var(--ie-layout-gutter));
    max-width: var(--ie-layout-max);
    margin-left: auto;
    margin-right: auto;
}

.ie-site .ie-header-v22 {
    padding-left: 0;
    padding-right: 0;
    gap: clamp(16px, 2vw, 32px);
}

.ie-site .ie-header-v22 .ie-search {
    min-width: 0;
    max-width: none;
}
.ie-site .ie-header-v22 .ie-header-actions > a,
.ie-site .ie-header-v22 .ie-header-actions > button {
    min-width: 44px;
    justify-content: center;
}
@media (max-width: 360px) {
    .ie-site .ie-header-v22 .ie-wordmark img { width: 100px; }
}

.ie-site .ie-header-v22 .ie-header-actions {
    flex-shrink: 0;
}

/* Three named icon targets fit beside the 112px logo even at 320px. */
@media (max-width: 700px) {
    .ie-site .ie-header-v22 .ie-header-actions {
        gap: 8px;
    }

    .ie-site .ie-header-v22 .ie-header-actions > a,
    .ie-site .ie-header-v22 .ie-header-actions > button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
    }

    .ie-site .ie-header-v22 .ie-header-actions > a > span:not(.ie-icon):not(.ie-cart-count),
    .ie-site .ie-header-v22 .ie-header-actions > button > span:not(.ie-icon):not(.ie-cart-count) {
        display: none;
    }

    .ie-site .ie-header-v22 .ie-header-actions .ie-icon {
        display: inline-flex;
    }

    .ie-site .ie-header-v22 .ie-header-actions [data-ie-open-cart] {
        position: relative;
    }

    .ie-site .ie-header-v22 .ie-header-actions .ie-cart-count {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 18px;
        font-size: 11px;
        line-height: 18px;
    }
}

/* Preserve the approved two-column mobile cards and two-column tablet grid. */
.ie-site .ie-home-v22 .ie-home-products {
    --ie-catalog-columns: 2;
    grid-template-columns: repeat(var(--ie-catalog-columns), minmax(0, 1fr));
    min-width: 0;
}

@media (min-width: 1100px) {
    .ie-site .ie-home-v22 .ie-home-products {
        --ie-catalog-columns: 3;
    }
}

@media (min-width: 1600px) {
    .ie-site .ie-home-v22 .ie-home-products {
        --ie-catalog-columns: 4;
    }
}

/* A loading layer uses the same columns, gap and card rules as the real grid. */
.ie-site .ie-home-v22 .ie-home-products > .ie-home-skeleton {
    grid-template-columns: repeat(var(--ie-catalog-columns), minmax(0, 1fr));
    gap: inherit;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    contain: paint;
}

.ie-site .ie-home-v22 .ie-home-skeleton-card,
.ie-site .ie-home-v22 .ie-home-skeleton-card .ie-home-info,
.ie-site .ie-home-v22 .ie-home-skeleton-title,
.ie-site .ie-home-v22 .ie-home-skeleton-pricing,
.ie-site .ie-home-v22 .ie-home-skeleton-action {
    min-width: 0;
    max-width: 100%;
}

.ie-site .ie-home-v22 .ie-home-skeleton-card .ie-home-info {
    width: 100%;
}

.ie-site .ie-home-v22 .ie-home-skeleton-title > span,
.ie-site .ie-home-v22 .ie-home-skeleton-pricing > span {
    max-width: 100%;
}
