/* CATEGORY-LEAF-CRITICAL-1H: mobile first screen for product leaf categories */
@media (max-width: 980px) {
    .sc-category-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .sc-category-sidebar,
    .sc-category-products {
        min-width: 0;
    }

    .sc-category-filter {
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--aw-border-soft, #e6e8eb);
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(17, 20, 23, .04);
    }

    .sc-category-filter__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 18px 18px 14px;
        border-bottom: 1px solid var(--aw-border-soft, #e6e8eb);
    }

    .sc-category-filter--mobile-enhanced:not(.is-mobile-filter-open) .sc-category-filter__group,
    .sc-category-filter--mobile-enhanced:not(.is-mobile-filter-open) .sc-category-filter__actions {
        display: none;
    }

    .sc-category-filter--mobile-enhanced .sc-category-filter__mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        margin: 14px 0 0;
        padding: 13px 16px;
        color: #15171a;
        font: inherit;
        font-weight: 800;
        text-align: left;
        background: linear-gradient(135deg, rgba(255,111,41,.12), rgba(255,255,255,.96));
        border: 1px solid rgba(255,111,41,.28);
        border-radius: 16px;
    }

    .sc-category-toolbar {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        min-height: 58px;
        margin-bottom: 18px;
        padding: 11px 16px;
        background: #fff;
        border: 1px solid var(--aw-border-soft, #e6e8eb);
        border-radius: 14px;
    }

    .sc-category-toolbar__count {
        color: var(--aw-steel, #3f474c);
        font-size: 14px;
        font-weight: 700;
    }

    .sc-category-sort label {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
        color: var(--aw-steel, #3f474c);
        font-size: 14px;
        font-weight: 700;
    }

    .sc-category-sort select {
        box-sizing: border-box;
        width: 100%;
        height: 38px;
        padding: 0 36px 0 12px;
        color: var(--aw-black, #111417);
        font: inherit;
        background: #f8fafb;
        border: 1px solid var(--aw-border, #dfe3e7);
        border-radius: 8px;
    }

    .sc-category-product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .sc-category-page .aw-product-card {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 100%;
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--aw-border-soft, #e6e8eb);
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(17, 20, 23, .04);
    }

    .aw-product-card-image {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 230px;
        padding: 18px;
        color: var(--aw-muted, #697178);
        text-decoration: none;
        background: #fafafa;
        border-bottom: 1px solid var(--aw-border, #dfe3e7);
    }

    .aw-product-card-image img {
        display: block;
        max-width: 100%;
        max-height: 220px;
        object-fit: contain;
    }

    .aw-product-card-body {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 18px;
    }

    .aw-product-card h3 {
        margin: 0 0 14px;
        font-size: 19px;
        line-height: 1.25;
    }

    .aw-product-card h3 a {
        color: var(--aw-black, #111417);
        text-decoration: none;
    }

    .aw-product-card-bottom {
        display: grid;
        gap: 12px;
        margin-top: auto;
    }

    .aw-product-card-price-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: end;
        min-width: 0;
    }

    .aw-product-card-price {
        min-width: 0;
        font-size: 22px;
        font-weight: 900;
        letter-spacing: -.04em;
    }

    .aw-product-card-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 620px) {
    .sc-category-page {
        padding-top: 18px;
    }

    .sc-category-product-grid {
        grid-template-columns: 1fr;
    }
}
