/* =========================================================
   CATEGORY PRODUCTS PAGE
========================================================= */

.category-page {
    --category-orange: #ff7417;
    --category-orange-dark: #df5d08;
    --category-green: #20bd78;
    --category-red: #ff4141;
    --category-blue: #2563eb;
    --category-violet: #7c3aed;
    --category-lime: #a8dc13;

    --category-text: #101827;
    --category-muted: #7d8490;

    --category-page-background: #f3f4f7;
    --category-sidebar-background: #eceff3;
    --category-card-background: #ffffff;

    --category-border: #cfd3d8;
    --category-soft-border: #e1e4e8;

    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0 0 50px;

    overflow-x: hidden;

    color: var(--category-text);
    background: var(--category-page-background);
}

.category-page *,
.category-page *::before,
.category-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.category-page .category-page__container {
    width: min(1640px, calc(100% - 40px));

    margin: 0 auto;
    padding: 0;
}

/* =========================================================
   SIMPLE CATEGORY HEADER
========================================================= */

.category-page .category-page__top,
.category-page .category-page__top.has-banner {
    width: 100%;
    min-height: 52px !important;

    margin: 0 !important;
    padding: 7px 0 8px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 20px;

    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid #dde0e5;
    border-left: 0;
    border-radius: 0 !important;

    color: var(--category-text) !important;

    background: transparent !important;
    background-image: none !important;

    box-shadow: none !important;
}

.category-page .category-page__top h1,
.category-page .category-page__top.has-banner h1 {
    margin: 0 !important;

    color: var(--category-text) !important;

    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;

    text-align: left;
}

.category-page .category-page__description {
    display: none !important;
}

.category-page .category-page__breadcrumb,
.category-page .category-page__top.has-banner .category-page__breadcrumb {
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;

    color: var(--category-text) !important;

    font-size: 12px;
    line-height: 1.4;
}

.category-page .category-page__breadcrumb a,
.category-page .category-page__top.has-banner .category-page__breadcrumb a {
    color: var(--category-muted) !important;

    text-decoration: none;

    transition: color 160ms ease;
}

.category-page .category-page__breadcrumb a:hover,
.category-page .category-page__breadcrumb a:focus-visible {
    color: var(--category-orange) !important;

    outline: none;
}

/* =========================================================
   MAIN LAYOUT — GAP FIX
========================================================= */

.category-page .category-page__layout {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    display: grid !important;

    grid-template-columns: 290px minmax(0, 1fr);
    grid-template-areas: "category-sidebar category-content";

    align-items: start !important;
    align-content: start !important;
    justify-items: stretch;

    gap: 18px;

    position: relative;
    top: auto !important;

    transform: none !important;
}

.category-page .category-page__layout.is-sidebar-hidden {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "category-content";
}

.category-page .category-page__sidebar {
    grid-area: category-sidebar;

    width: 100%;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;

    align-self: start !important;

    position: relative !important;
    top: auto !important;

    overflow: hidden;

    background: var(--category-sidebar-background);

    transform: none !important;
}

.category-page .category-page__content {
    grid-area: category-content;

    width: 100%;
    min-width: 0;
    min-height: 0;

    margin: 0 !important;
    padding: 0 !important;

    align-self: start !important;

    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    transform: none !important;
}

.category-page .category-page__layout.is-sidebar-hidden .category-page__sidebar {
    display: none !important;
}

/* =========================================================
   FILTER PANEL
========================================================= */

.category-page .category-filter {
    width: 100%;

    margin: 0;
    padding: 0 0 14px;

    background: var(--category-sidebar-background);
}

.category-page .category-filter__box {
    width: 100%;

    margin: 0 0 5px;
    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 5px;

    background: #ffffff;
}

/* =========================================================
   FILTER TITLE
========================================================= */

.category-page .category-filter__title {
    position: relative;

    width: 100%;
    min-height: 58px;

    margin: 0;
    padding: 17px 14px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border: 0;
    border-bottom: 1px solid transparent;

    color: var(--category-text);
    background: #ffffff;

    font-family: inherit;

    text-align: left;

    cursor: pointer;
}

.category-page .category-filter__box.is-open .category-filter__title {
    border-bottom-color: #dfe2e6;
}

.category-page .category-filter__title::after {
    content: "";

    position: absolute;

    left: 14px;
    bottom: -1px;

    width: 61px;
    height: 2px;

    background: var(--category-orange);
}

.category-page .category-filter__title h3 {
    margin: 0;

    color: #0d1726;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;

    letter-spacing: 0.45px;

    text-transform: uppercase;
}

.category-page .category-filter__title svg {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transform: rotate(-90deg);

    transition: transform 180ms ease;
}

.category-page .category-filter__title svg.is-open {
    transform: rotate(0deg);
}

/* =========================================================
   COLLAPSIBLE FILTER CONTENT
========================================================= */

.category-page .category-filter__collapsible {
    display: grid;

    grid-template-rows: 0fr;

    transition: grid-template-rows 220ms ease;
}

.category-page .category-filter__box.is-open .category-filter__collapsible {
    grid-template-rows: 1fr;
}

.category-page .category-filter__collapsible-inner {
    min-height: 0;

    overflow: hidden;
}

.category-page .category-filter__options {
    margin: 0;
    padding: 13px 14px 18px;

    display: grid;

    gap: 11px;
}

/* =========================================================
   FILTER CHECKBOX
========================================================= */

.category-page .category-filter__checkbox {
    position: relative;

    margin: 0;

    display: flex;
    align-items: center;

    gap: 9px;

    color: #303743;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;

    cursor: pointer;

    transition: color 160ms ease;
}

.category-page .category-filter__checkbox input {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;
}

.category-page .category-filter__custom-checkbox {
    position: relative;

    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    border: 1px solid #c1c6ce;
    border-radius: 4px;

    background: #ffffff;

    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.category-page .category-filter__checkbox input:checked+.category-filter__custom-checkbox {
    border-color: var(--category-orange);

    background: var(--category-orange);

    box-shadow:
        0 0 0 3px rgba(255, 116, 23, 0.12);
}

.category-page .category-filter__checkbox input:checked+.category-filter__custom-checkbox::after {
    content: "";

    position: absolute;

    top: 1px;
    left: 4px;

    width: 5px;
    height: 9px;

    border: solid #ffffff;
    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}

.category-page .category-filter__checkbox:hover {
    color: var(--category-orange);
}

.category-page .category-filter__checkbox-label {
    min-width: 0;
}

.category-page .category-filter__checkbox small {
    color: #73809a;

    font-size: inherit;
}

/* =========================================================
   PRICE RANGE
========================================================= */

.category-page .price-filter {
    margin: 0;
    padding: 17px 20px 24px;
}

.category-page .price-filter__values {
    margin: 0 0 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    color: var(--category-text);

    font-size: 13px;
    font-weight: 500;
}

.category-page .price-filter__slider {
    position: relative;

    height: 25px;
}

.category-page .price-filter__line {
    position: absolute;

    top: 9px;
    right: 7px;
    left: 7px;

    height: 5px;

    border-radius: 20px;

    background:
        linear-gradient(to right,
            #d7dade 0%,
            #d7dade var(--range-start),
            var(--category-orange) var(--range-start),
            var(--category-orange) var(--range-end),
            #d7dade var(--range-end),
            #d7dade 100%);
}

.category-page .price-filter__slider input[type="range"] {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 25px;

    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    background: transparent;

    pointer-events: none;
}

.category-page .price-filter__slider input[type="range"]::-webkit-slider-thumb {
    width: 19px;
    height: 19px;

    appearance: none;
    -webkit-appearance: none;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: var(--category-orange);

    box-shadow:
        0 2px 5px rgba(15, 23, 42, 0.24);

    cursor: pointer;

    pointer-events: auto;
}

.category-page .price-filter__slider input[type="range"]::-moz-range-thumb {
    width: 17px;
    height: 17px;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: var(--category-orange);

    cursor: pointer;

    pointer-events: auto;
}

/* =========================================================
   FILTER FOOTER
========================================================= */

.category-page .category-filter__footer {
    margin: 0;
    padding: 13px 14px 1px;
}

.category-page .category-filter__clear {
    width: 100%;
    min-height: 41px;

    margin: 0;
    padding: 8px 12px;

    border: 1px solid var(--category-orange);
    border-radius: 4px;

    color: var(--category-orange);
    background: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.category-page .category-filter__clear:hover,
.category-page .category-filter__clear:focus-visible {
    color: #ffffff;

    background: var(--category-orange);

    box-shadow:
        0 5px 12px rgba(255, 116, 23, 0.2);

    outline: none;
}

/* =========================================================
   PRODUCTS TOOLBAR — GAP FIX
========================================================= */

.category-page .category-toolbar {
    width: 100%;
    min-height: 65px;

    margin: 0 0 18px !important;
    padding: 11px 12px !important;

    display: flex;
    align-items: center;

    gap: 10px;

    position: relative !important;
    top: auto !important;

    border: 1px solid #dde1e6;
    border-radius: 5px;

    background: #ffffff;

    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.035);

    transform: none !important;
}

.category-page .category-toolbar__sidebar-toggle,
.category-page .category-toolbar__filter-button {
    min-height: 40px;

    margin: 0;
    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid var(--category-orange);
    border-radius: 4px;

    color: var(--category-orange);
    background: #ffffff;

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.2px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.category-page .category-toolbar__sidebar-toggle:hover,
.category-page .category-toolbar__filter-button:hover,
.category-page .category-toolbar__sidebar-toggle:focus-visible,
.category-page .category-toolbar__filter-button:focus-visible {
    color: #ffffff;

    background: var(--category-orange);

    box-shadow:
        0 4px 11px rgba(255, 116, 23, 0.18);

    outline: none;
}

.category-page .category-toolbar__sidebar-toggle svg,
.category-page .category-toolbar__filter-button svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-page .category-toolbar__filter-button {
    display: none;
}

.category-page .category-toolbar__result-count {
    color: var(--category-muted);

    font-size: 13px;
}

.category-page .category-toolbar__result-count strong {
    color: var(--category-text);

    font-weight: 700;
}

.category-page .category-toolbar__sort {
    margin: 0 0 0 auto;

    display: flex;
    align-items: center;

    gap: 9px;
}

.category-page .category-toolbar__sort label {
    color: var(--category-text);

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.category-page .category-toolbar select {
    min-height: 40px;

    margin: 0;
    padding: 8px 37px 8px 12px;

    border: 1px solid #d2d7de;
    border-radius: 4px;

    color: #273044;
    background-color: #ffffff;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;

    outline: none;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.category-page .category-toolbar select:hover,
.category-page .category-toolbar select:focus {
    border-color: var(--category-orange);

    box-shadow:
        0 0 0 3px rgba(255, 116, 23, 0.09);
}

.category-page .category-toolbar__count {
    min-width: 114px;

    color: var(--category-orange) !important;
}

/* =========================================================
   PRODUCT GRID
========================================================= */

.category-page .category-products-grid {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    align-items: stretch;
    align-content: start;

    gap: 14px;

    position: relative !important;
    top: auto !important;

    transform: none !important;
}

.category-page .category-page__layout.is-sidebar-hidden .category-products-grid {
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
}

/* =========================================================
   PRODUCT CARD
========================================================= */

.category-page .category-product-card {
    position: relative;

    min-width: 0;
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid var(--category-border);
    border-radius: 5px;

    background: var(--category-card-background);

    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.035);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.category-page .category-product-card:hover {
    border-color:
        rgba(255, 116, 23, 0.62);

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.1);

    transform: translateY(-2px);
}

/* =========================================================
   PRODUCT IMAGE AREA
========================================================= */

.category-page .category-product-card__media {
    position: relative;

    width: 100%;
    height: 250px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #ffffff;
}

.category-page .category-product-card__image-link {
    position: absolute;

    inset: 0;

    margin: 0;
    padding: 42px 9px 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: inherit;

    text-decoration: none;
}

.category-page .category-product-card__image-link:focus-visible {
    outline:
        3px solid rgba(255, 116, 23, 0.36);

    outline-offset: -3px;
}

.category-page .category-product-card__image-link img {
    display: block;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    max-width: 100%;
    max-height: 100%;

    margin: 0;

    object-fit: contain;
    object-position: center;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;

    transform: scale(1);

    transition:
        transform 220ms ease,
        filter 220ms ease;
}

.category-page .category-product-card:hover .category-product-card__image-link img {
    transform: scale(1.025);

    filter:
        drop-shadow(0 7px 9px rgba(15, 23, 42, 0.08));
}

/* =========================================================
   PRODUCT BADGES
========================================================= */

.category-page .category-product-card__badge,
.category-page .category-product-card__discount {
    position: absolute;

    top: 12px;

    z-index: 10;

    min-height: 21px;

    margin: 0;
    padding: 6px 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 4px;

    color: #ffffff;

    box-shadow:
        0 3px 9px rgba(15, 23, 42, 0.13);

    font-size: 8px;
    font-weight: 700;
    line-height: 1;

    text-overflow: ellipsis;
    white-space: nowrap;

    pointer-events: none;
}

.category-page .category-product-card__badge {
    left: 12px;

    max-width: calc(100% - 92px);
}

.category-page .category-product-card__discount {
    right: 12px;

    max-width: 76px;

    background: var(--category-green);
}

.category-page .category-product-card__badge--offer,
.category-page .category-product-card__badge--new {
    background: var(--category-orange);
}

.category-page .category-product-card__badge--best {
    background: var(--category-red);
}

.category-page .category-product-card__badge--recommended {
    background: var(--category-violet);
}

.category-page .category-product-card__badge--featured {
    background: var(--category-blue);
}

/* =========================================================
   PRODUCT CONTENT
========================================================= */

.category-page .category-product-card__content {
    flex: 1;

    min-width: 0;

    margin: 0;
    padding: 10px 8px 8px;

    display: flex;
    flex-direction: column;

    border-top: 1px solid #eceef1;
}

.category-page .category-product-card__brand {
    display: block;

    margin: 0 0 5px;

    overflow: hidden;

    color: #8d96a5;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: 0.25px;

    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.category-page .category-product-card__name {
    min-height: 43px;

    margin: 0;

    display: -webkit-box;

    overflow: hidden;

    color: var(--category-text);

    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

    text-decoration: none;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    transition: color 160ms ease;
}

.category-page .category-product-card__name:hover,
.category-page .category-product-card__name:focus-visible {
    color: var(--category-orange);

    outline: none;
}

/* =========================================================
   PRODUCT PRICES
========================================================= */

.category-page .category-product-card__prices {
    margin: 6px 0 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 4px 8px;
}

.category-page .category-product-card__price {
    color: var(--category-orange);

    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.category-page .category-product-card__old-price {
    color: #92979f;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

/* =========================================================
   SAVING AMOUNT
========================================================= */

.category-page .category-product-card__saving-row {
    min-height: 28px;

    margin: 7px 0 0;
}

.category-page .category-product-card__saving {
    display: inline-flex;
    align-items: center;

    padding: 4px 7px;

    border-radius: 20px;

    color: #172000;

    background: var(--category-lime);

    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}

/* =========================================================
   ADD TO CART
========================================================= */

.category-page .category-product-card__cart {
    width: 100%;
    min-height: 41px;

    margin: auto 0 0;
    padding: 8px 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px solid var(--category-orange);
    border-radius: 4px;

    color: var(--category-orange);
    background: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;

    cursor: pointer;

    transition:
        color 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.category-page .category-product-card__cart svg {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-page .category-product-card__cart:hover,
.category-page .category-product-card__cart:focus-visible {
    color: #ffffff;

    background: var(--category-orange);

    box-shadow:
        0 5px 13px rgba(255, 116, 23, 0.2);

    outline: none;
}

.category-page .category-product-card__cart.is-added {
    border-color: #16a34a;

    color: #ffffff;

    background: #16a34a;
}

.category-page .category-product-card__cart.is-unavailable {
    border-color: #dc2626;

    color: #dc2626;

    background: #ffffff;
}

.category-page .category-product-card__cart:disabled {
    cursor: not-allowed;

    opacity: 0.65;

    box-shadow: none;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.category-page .category-page__empty {
    min-height: 350px;

    margin: 0;
    padding: 50px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid #dfe2e6;
    border-radius: 5px;

    background: #ffffff;

    text-align: center;
}

.category-page .category-page__empty h2 {
    margin: 0 0 8px;

    color: var(--category-text);

    font-size: 21px;
}

.category-page .category-page__empty p {
    margin: 0 0 20px;

    color: var(--category-muted);
}

.category-page .category-page__empty button {
    min-height: 40px;

    padding: 9px 18px;

    border: 0;
    border-radius: 4px;

    color: #ffffff;

    background: var(--category-orange);

    font-family: inherit;

    cursor: pointer;
}

/* =========================================================
   MOBILE FILTER OVERLAY
========================================================= */

.category-page+.mobile-filter-overlay,
.mobile-filter-overlay {
    position: fixed;

    inset: 0;

    z-index: 1000;

    padding: 0;

    border: 0;

    background:
        rgba(15, 23, 42, 0.48);

    opacity: 0;
    visibility: hidden;

    cursor: default;

    transition:
        opacity 230ms ease,
        visibility 230ms ease;
}

.mobile-filter-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
   MOBILE FILTER DRAWER
========================================================= */

.mobile-filter-drawer {
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    z-index: 1001;

    width: min(320px, 88vw);

    display: flex;
    flex-direction: column;

    background: var(--category-sidebar-background, #eceff3);

    box-shadow:
        12px 0 30px rgba(15, 23, 42, 0.18);

    transform: translateX(-105%);

    transition: transform 270ms ease;
}

.mobile-filter-drawer.is-open {
    transform: translateX(0);
}

.mobile-filter-drawer__header {
    min-height: 61px;

    padding: 12px 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #e1e3e6;

    background: #ffffff;
}

.mobile-filter-drawer__header h2 {
    margin: 0;

    color: #101827;

    font-size: 19px;
}

.mobile-filter-drawer__header button {
    width: 36px;
    height: 36px;

    padding: 0;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    color: #101827;

    background: #f4f5f7;

    cursor: pointer;
}

.mobile-filter-drawer__header svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
}

.mobile-filter-drawer__body {
    flex: 1;

    overflow-y: auto;

    overscroll-behavior: contain;
}

.mobile-filter-drawer__footer {
    padding: 12px;

    border-top: 1px solid #dddddd;

    background: #ffffff;
}

.mobile-filter-drawer__footer button {
    width: 100%;
    min-height: 43px;

    border: 0;
    border-radius: 4px;

    color: #ffffff;

    background: #ff7417;

    font-family: inherit;
    font-weight: 600;

    cursor: pointer;
}

/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1500px) {
    .category-page .category-page__layout {
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .category-page .category-products-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .category-page .category-page__layout.is-sidebar-hidden .category-products-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }
}

/* =========================================================
   MEDIUM DESKTOP
========================================================= */

@media (max-width: 1499px) {
    .category-page .category-page__container {
        width: calc(100% - 28px);
    }

    .category-page .category-page__layout {
        grid-template-columns: 275px minmax(0, 1fr);

        gap: 15px;
    }

    .category-page .category-products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .category-page .category-page__layout.is-sidebar-hidden .category-products-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
    .category-page {
        padding-bottom: 38px;
    }

    .category-page .category-page__container {
        width: calc(100% - 24px);
    }

    .category-page .category-page__layout,
    .category-page .category-page__layout.is-sidebar-hidden {
        display: block !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .category-page .category-page__sidebar {
        display: none !important;
    }

    .category-page .category-page__content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .category-page .category-toolbar {
        margin-top: 0 !important;
    }

    .category-page .category-toolbar__sidebar-toggle {
        display: none;
    }

    .category-page .category-toolbar__filter-button {
        display: inline-flex;
    }

    .category-page .category-products-grid,
    .category-page .category-page__layout.is-sidebar-hidden .category-products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .category-page .category-product-card__media {
        height: 235px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .category-page {
        padding-bottom: 32px;
    }

    .category-page .category-page__container {
        width: calc(100% - 12px);
    }

    .category-page .category-page__top,
    .category-page .category-page__top.has-banner {
        min-height: 49px !important;

        margin: 0 !important;
        padding: 7px 0 !important;

        flex-direction: row !important;
    }

    .category-page .category-page__top h1,
    .category-page .category-page__top.has-banner h1 {
        font-size: 18px;
    }

    .category-page .category-page__breadcrumb {
        gap: 5px;

        font-size: 10px;
    }

    .category-page .category-page__layout {
        margin: 0 !important;
        padding: 0 !important;
    }

    .category-page .category-page__content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .category-page .category-toolbar {
        min-height: auto;

        margin: 0 0 13px !important;
        padding: 8px !important;

        display: grid;

        grid-template-columns:
            auto minmax(0, 1fr) auto;

        gap: 7px;
    }

    .category-page .category-toolbar__filter-button {
        min-height: 37px;

        padding: 7px 9px;

        font-size: 10px;
    }

    .category-page .category-toolbar__result-count {
        display: none;
    }

    .category-page .category-toolbar__sort {
        width: 100%;

        margin: 0;
    }

    .category-page .category-toolbar__sort label {
        display: none;
    }

    .category-page .category-toolbar__sort select {
        width: 100%;
    }

    .category-page .category-toolbar select {
        min-width: 0;

        padding: 7px 27px 7px 8px;

        font-size: 10px;
    }

    .category-page .category-toolbar__count {
        width: 84px;
        min-width: 84px;
    }

    .category-page .category-products-grid,
    .category-page .category-page__layout.is-sidebar-hidden .category-products-grid {
        margin: 0 !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .category-page .category-product-card {
        border-radius: 5px;
    }

    .category-page .category-product-card:hover {
        transform: none;
    }

    .category-page .category-product-card__media {
        height: auto;

        aspect-ratio: 1 / 1;
    }

    .category-page .category-product-card__image-link {
        padding: 31px 4px 4px;
    }

    .category-page .category-product-card__badge,
    .category-page .category-product-card__discount {
        top: 6px;

        min-height: 19px;

        padding: 5px;

        font-size: 7px;
    }

    .category-page .category-product-card__badge {
        left: 6px;

        max-width: calc(100% - 67px);
    }

    .category-page .category-product-card__discount {
        right: 6px;

        max-width: 61px;
    }

    .category-page .category-product-card__content {
        padding: 8px 6px 6px;
    }

    .category-page .category-product-card__brand {
        margin-bottom: 3px;

        font-size: 8px;
    }

    .category-page .category-product-card__name {
        min-height: 39px;

        font-size: 11px;
        line-height: 1.55;
    }

    .category-page .category-product-card__prices {
        margin-top: 4px;

        gap: 3px 5px;
    }

    .category-page .category-product-card__price {
        font-size: 14px;
    }

    .category-page .category-product-card__old-price {
        font-size: 9px;
    }

    .category-page .category-product-card__saving-row {
        min-height: 23px;

        margin-top: 5px;
    }

    .category-page .category-product-card__saving {
        padding: 3px 5px;

        font-size: 7px;
    }

    .category-page .category-product-card__cart {
        min-height: 35px;

        padding: 6px 3px;

        gap: 4px;

        font-size: 9px;
    }

    .category-page .category-product-card__cart svg {
        width: 13px;
        height: 13px;

        flex-basis: 13px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {
    .category-page .category-page__container {
        width: calc(100% - 8px);
    }

    .category-page .category-page__top h1 {
        font-size: 16px;
    }

    .category-page .category-page__breadcrumb {
        max-width: 55%;

        overflow: hidden;

        white-space: nowrap;
    }

    .category-page .category-page__breadcrumb span:last-child {
        overflow: hidden;

        text-overflow: ellipsis;
    }

    .category-page .category-toolbar__filter-button {
        width: 38px;

        padding: 0;
    }

    .category-page .category-toolbar__filter-button span {
        display: none;
    }

    .category-page .category-products-grid,
    .category-page .category-page__layout.is-sidebar-hidden .category-products-grid {
        gap: 6px;
    }

    .category-page .category-product-card__badge {
        max-width: 63px;
    }

    .category-page .category-product-card__cart {
        font-size: 8px;
    }
}

/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none),
(pointer: coarse) {
    .category-page .category-product-card:hover {
        transform: none;

        box-shadow:
            0 2px 6px rgba(15, 23, 42, 0.035);
    }

    .category-page .category-product-card:hover .category-product-card__image-link img {
        transform: none;

        filter: none;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .category-page .category-filter__collapsible,
    .category-page .category-filter__title svg,
    .category-page .category-product-card,
    .category-page .category-product-card__image-link img,
    .category-page .category-product-card__cart,
    .mobile-filter-overlay,
    .mobile-filter-drawer {
        transition: none;
    }
}