/* Extracted from store/templates/store/category_products.html — block 1 */
* {
    box-sizing: border-box;
}

.category-page {
    background: var(--bm-cream);
    min-height: 100vh;
    color: var(--bm-text);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

.catalog-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:34px 0 10px}.catalog-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:112px;min-height:44px;padding:0 18px;border:1px solid var(--bm-border);border-radius:12px;background:#fff;color:var(--bm-coral-dark);font-weight:850;text-decoration:none}.catalog-pagination a:hover{background:var(--bm-coral-dark);color:#fff}.catalog-pagination span{color:#667269;font-size:13px;font-weight:750}

.category-shell {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

.category-hero {
    padding: 24px 0;
    background:linear-gradient(135deg,var(--bm-cream),var(--bm-coral-soft));
    border-bottom: 1px solid var(--bm-border);
}

.category-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.category-eyebrow {
    display: inline-block;
    color: var(--bm-coral);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.category-hero h1,
.category-heading h2,
.category-toolbar h2 {
    margin: 0;
    line-height: 1.08;
}

.category-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.category-hero p,
.category-heading p {
    max-width: 680px;
    margin: 0;
    color: #667069;
    line-height: 1.6;
}

.category-product-count {
    color: #758078;
    font-size: 13px;
    font-weight: 750;
}

.category-coming-soon {
    padding: clamp(42px, 7vw, 88px) 0;
}

.category-coming-soon-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(22px, 4vw, 48px);
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--bm-border);
    border-radius: 28px;
    background: linear-gradient(135deg, #fffdfb, var(--bm-coral-soft));
    box-shadow: var(--bm-shadow-md);
}

.category-coming-soon-mark {
    display: grid;
    width: clamp(88px, 12vw, 132px);
    aspect-ratio: 1;
    place-items: center;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(232, 111, 88, .22);
    background: #fff;
}

.category-coming-soon-mark img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
}

.category-coming-soon-eyebrow {
    color: #e96f59;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}

.category-coming-soon-card h2 {
    margin: 8px 0 10px;
    color: var(--bm-text);
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1;
}

.category-coming-soon-card p {
    max-width: 620px;
    margin: 0 0 22px;
    color: #617067;
    font-size: 17px;
    line-height: 1.6;
}

.category-coming-soon-card a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 0 20px;
    border-radius: 13px;
    background: var(--bm-coral);
    color: #fff;
    font-weight: 850;
    text-decoration: none;
}

.category-top-picks,
.category-catalogue {
    padding: 30px 0;
}

.category-heading {
    margin-bottom: 20px;
}

.category-heading h2,
.category-toolbar h2 {
    font-size: clamp(28px, 3vw, 40px);
}

.top-picks-scroll {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-catalogue {
    background: var(--bm-surface);
}

.category-toolbar {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    justify-content: stretch;
    align-items: end;
    gap: 24px;
    margin-bottom: 24px;
}

.category-controls {
    display: grid;
    grid-template-columns: minmax(210px, 1.35fr) repeat(4, minmax(155px, 1fr)) minmax(145px, auto);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.category-filter-trigger,
.category-filter-backdrop,
.filter-sheet-header,
.filter-clear {
    display: none;
}

.filter-field,
.filter-sheet-actions {
    display: contents;
}

.filter-field label {
    display: none;
}

.category-controls input,
.category-controls select,
.category-controls button {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--bm-border);
    background: #fff;
    padding: 0 13px;
    font: inherit;
}

.category-controls input {
    width: 100%;
    min-width: 0;
}

.category-controls select {
    width: 100%;
    min-width: 0;
}

.category-controls button {
    border: none;
    background: var(--bm-coral);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    padding: 0 20px;
    white-space: nowrap;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bm-border);
    border-radius: 20px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.category-product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bm-shadow-md);
}

.category-product-image {
    position: relative;
    display: flex;
    height: 260px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(145deg,var(--bm-surface),var(--bm-cream-alt));
    text-decoration: none;
}

.category-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-placeholder {
    font-size: 74px;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.bestseller-badge {
    background: var(--bm-coral-soft);
    color: var(--bm-coral-dark);
}

.featured-badge {
    background: var(--bm-coral-soft);
    color: var(--bm-coral-dark);
}

.category-product-body {
    padding: 18px;
}

.category-product-brand {
    display: block;
    margin-bottom: 7px;
    color: #718078;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.category-product-body h3 {
    min-height: 48px;
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.45;
}

.category-product-body h3 a {
    color: var(--bm-text);
    text-decoration: none;
}

.product-life-stage {
    display: block;
    margin-bottom: 9px;
    color: #69736d;
}

.category-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
}

.category-price-row strong {
    font-size: 21px;
}

.category-price-row del {
    color: #939a95;
    font-size: 12px;
}

.product-stock-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 9px 0 15px;
    color: #5f6b64;
    font-size: 12px;
}

.stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #2d8b57;
}

.category-shop-btn {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--bm-coral);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.category-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
}

.category-empty span {
    font-size: 60px;
}


/* Tablet */
@media (max-width: 1350px) {

    .top-picks-scroll,
    .category-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-toolbar {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .category-controls {
        width: 100%;
    }

    .category-controls input {
        flex: 1;
        min-width: 0;
    }
}


/* Mobile */
@media (max-width: 768px) {

    .category-shell {
        width: min(100% - 24px, 1400px);
    }

    .category-hero {
        padding: 17px 0;
    }

    .category-hero-inner {
        align-items: center;
        flex-direction: row;
        min-width: 0;
    }

    .category-hero-inner > div:first-child,
    .category-heading,
    .category-toolbar,
    .category-controls {
        min-width: 0;
        max-width: 100%;
    }

    .category-hero h1 {
        font-size: 30px;
    }

    .category-top-picks,
    .category-catalogue {
        padding: 22px 0;
    }

    .category-toolbar {
        display: flex;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .category-toolbar h2 {
        margin: 0;
        font-size: clamp(20px, 6vw, 26px);
    }

    .category-filter-trigger {
        display: inline-flex;
        min-width: max-content;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 14px;
        border: 1px solid #cfd8cf;
        border-radius: 13px;
        background: #fff;
        color: var(--bm-coral-dark);
        font: inherit;
        font-size: 13px;
        font-weight: 850;
        cursor: pointer;
    }

    .category-filter-trigger svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

    .top-picks-scroll {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        max-width: 100%;
    }

    .category-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: stretch;
    }

    .category-product-card {
        display: flex;
        height: 100%;
        flex-direction: column;
    }

    .category-product-image {
        height: 180px;
        padding: 12px;
    }

    .category-product-body {
        display: flex;
        min-width: 0;
        flex: 1;
        flex-direction: column;
        padding: 13px;
    }

    .category-product-body h3 {
        min-height: 57px;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 14px;
        line-height: 1.35;
    }

    .category-price-row { min-height: 28px; flex-wrap: nowrap; }
    .category-price-row strong,
    .category-price-row del { white-space: nowrap; }
    .product-stock-line { min-height: 18px; }
    .category-shop-btn {
        width: 100%;
        min-height: 44px;
        margin-top: auto;
    }

    .category-price-row strong {
        font-size: 18px;
    }

    .category-controls {
        position: fixed;
        z-index: 12001;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        width: 100%;
        max-width: 100%;
        max-height: 85dvh;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
        border: 1px solid var(--bm-border);
        border-bottom: 0;
        border-radius: 24px 24px 0 0;
        background: var(--bm-surface);
        box-shadow: 0 -24px 60px rgba(14, 35, 25, .22);
        visibility: hidden;
        transform: translateY(105%);
        transition: transform .28s ease, visibility 0s linear .28s;
        overscroll-behavior: contain;
    }

    .category-controls.is-open {
        visibility: visible;
        transform: translateY(0);
        transition: transform .28s ease;
    }

    .category-filter-backdrop {
        position: fixed;
        z-index: 12000;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(9, 25, 17, .55);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .22s ease, visibility 0s linear .22s;
    }

    .category-filter-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity .22s ease;
    }

    body.bm-filter-sheet-open {
        overflow: hidden;
        touch-action: none;
    }

    .filter-sheet-header {
        position: sticky;
        top: -18px;
        z-index: 2;
        display: flex;
        min-height: 54px;
        align-items: center;
        justify-content: space-between;
        margin: -18px -18px 0;
        padding: 14px 18px;
        border-bottom: 1px solid var(--bm-border);
        background: var(--bm-surface);
    }

    .filter-sheet-header h3 {
        margin: 0;
        color: var(--bm-text);
        font-size: 21px;
    }

    .category-controls .filter-sheet-close {
        width: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        border: 1px solid var(--bm-border);
        border-radius: 50%;
        background: var(--bm-cream-alt);
        color: var(--bm-coral-dark);
        font-size: 27px;
        font-weight: 500;
    }

    .filter-field {
        display: block;
        width: 100%;
    }

    .filter-field label {
        display: block;
        margin: 0 0 7px;
        color: var(--bm-text);
        font-size: 13px;
        font-weight: 800;
    }

    .category-controls input,
    .category-controls select {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        border-radius: 13px;
        background: #fff;
    }

    .filter-sheet-actions {
        position: sticky;
        bottom: calc(-18px - env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
        gap: 10px;
        margin: 2px -18px calc(-18px - env(safe-area-inset-bottom));
        padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--bm-border);
        background: var(--bm-surface);
    }

    .filter-clear,
    .category-controls .filter-submit {
        display: inline-flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        border-radius: 13px;
        font-size: 13px;
        font-weight: 850;
        text-decoration: none;
    }

    .filter-clear {
        border: 1px solid #ccd6ce;
        color: var(--bm-coral-dark);
        background: #fff;
    }

    .category-controls .filter-submit {
        width: 100%;
        border: 0;
        background: var(--bm-coral);
        color: #fff;
    }

    .catalog-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
}


/* Small phones */
@media (max-width: 420px) {

    .category-coming-soon-card {
        grid-template-columns: 1fr;
        padding: 24px;
        border-radius: 22px;
    }

    .category-coming-soon-mark {
        width: 76px;
        border-radius: 20px;
    }

    .category-products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .category-product-image {
        height: 155px;
    }

    .category-product-body {
        padding: 11px;
    }

    .category-product-body h3 {
        font-size: 13px;
    }

    .category-shop-btn {
        min-height: 40px;
        font-size: 12px;
    }

    .product-badge {
        top: 8px;
        left: 8px;
        padding: 5px 7px;
        font-size: 8px;
    }
}
