.yb-category-page { display: none; }

@media (max-width: 1199.98px) {
    .yb-category-original { display: none !important; }

    .yb-category-page {
        display: block;
        width: 100%;
        max-width: 640px;
        margin-inline: auto;
        padding: 12px 16px calc(88px + env(safe-area-inset-bottom));
        color: #272328;
    }

    .yb-category-header {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        margin-bottom: 12px;
    }

    .yb-category-header h1 {
        margin: 0;
        color: inherit;
        font-size: clamp(22px, 5.5vw, 30px);
        font-weight: 700;
        letter-spacing: -.035em;
        line-height: 1.15;
    }

    .yb-category-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 10px;
    }

    .yb-category-card, .yb-category-row, .yb-category-back {
        color: inherit;
        text-decoration: none;
    }

    .yb-category-card {
        display: grid;
        gap: 6px;
        align-content: start;
        text-align: center;
        font-size: clamp(12px, 3.5vw, 15px);
        font-weight: 650;
        overflow-wrap: anywhere;
        line-height: 1.25;
    }

    .yb-category-card:focus-visible, .yb-category-row:focus-visible,
    .yb-category-back:focus-visible, #yb-explore-categories-track a:focus-visible {
        outline: 2px solid #e50056;
        outline-offset: 2px;
        color: #9b003b;
        text-decoration: none;
    }

    .yb-category-art {
        position: relative;
        display: grid;
        place-items: center;
        isolation: isolate;
        overflow: hidden;
        background: var(--tile-color, #f5efea);
        color: #695761;
        border-radius: 12px;
        aspect-ratio: 1;
    }

    .yb-category-art i { font-size: 1.35rem; }
    .yb-category-art i[hidden] { display: none !important; }

    .yb-category-art .yb-category-photo {
        position: absolute;
        inset: 7%;
        width: 86%;
        height: 86%;
        object-fit: contain;
        mix-blend-mode: multiply;
    }

    .yb-category-rose { --tile-color: #f8e9ee; }
    .yb-category-sage { --tile-color: #edf3e9; }
    .yb-category-sand { --tile-color: #f6efe3; }
    .yb-category-lilac { --tile-color: #f1ecf7; }
    .yb-category-sky { --tile-color: #eaf2f7; }
    .yb-category-peach { --tile-color: #faeee7; }

    .yb-category-rows {
        overflow: hidden;
        border: 1px solid #eee7e2;
        border-radius: 14px;
    }

    .yb-category-row {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 10px;
        align-items: center;
        gap: 12px;
        min-height: 60px;
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
    }

    .yb-category-row + .yb-category-row { border-top: 1px solid #eee7e2; }
    .yb-category-explore { background: #f9f2eb; }
    .yb-category-row .yb-category-art { border-radius: 8px; }

    .yb-category-chevron {
        display: block;
        width: 7px;
        height: 7px;
        border-top: 1.5px solid currentColor;
        border-right: 1.5px solid currentColor;
        transform: rotate(45deg);
    }

    .yb-category-back {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        background: #f6f1ed;
        border-radius: 50%;
    }

    .yb-category-back .yb-category-chevron {
        width: 9px;
        height: 9px;
        transform: rotate(-135deg);
    }

    [dir="rtl"] .yb-category-chevron { transform: rotate(-135deg); }
    [dir="rtl"] .yb-category-back .yb-category-chevron { transform: rotate(45deg); }

    .yb-explore-categories-row.yb-category-product-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .yb-category-product-controls .yb-explore-categories-arrow { display: none; }

    #yb-explore-categories-track.yb-category-product-rail {
        gap: 4px;
        padding-block: 4px 7px;
        scroll-snap-type: x proximity;
        overscroll-behavior-x: contain;
    }

    #yb-explore-categories-track.yb-category-product-rail > a {
        scroll-snap-align: start;
    }

    .yb-category-product-rail .yb-category-art {
        width: min(100%, 64px);
        margin-inline: auto;
    }

    .yb-category-product-rail > a > span:last-child {
        font-size: 12px !important;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
}
