.category-rail {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 16px 0 8px;
}

.category-rail #categoryBlock {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 4px 2px 12px;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #c8d3e0 transparent;
}

.category-rail__item {
    display: flex;
    flex: 0 0 144px;
    margin: 0;
    scroll-snap-align: start;
}

.category-rail .category-rail__link {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 172px;
    padding: 14px 10px 12px;
    color: #30373d;
    background: #fff;
    border: 1px solid #e2e7ed;
    border-radius: 12px;
    font: 500 14px/19px Roboto, sans-serif;
    text-align: center;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.category-rail .category-rail__link:hover,
.category-rail .category-rail__link[aria-current] {
    color: #2867e8;
    background: #fff;
    border-color: #2867e8;
    box-shadow: 0 2px 8px rgba(40, 103, 232, .1);
}

.category-rail .category-rail__image {
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    margin: 0 0 2px;
    object-fit: contain;
}

.category-rail__name { flex: 1; }
.category-rail__price { color: #5b6572; font-size: 12px; line-height: 17px; }

.category-rail > button {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0 8px;
    padding: 0;
    border: 1px solid #d8e0e9;
    border-radius: 50%;
    background: #fff;
    color: #2867e8;
    cursor: pointer;
}

.category-rail > button[hidden] { display: none; }
.category-rail > button:disabled { color: #b1bbc8; background: #f5f7f9; cursor: default; }
.category-rail > button:hover:not(:disabled) { border-color: #2867e8; }
.category-rail a:focus-visible,
.category-rail button:focus-visible { outline: 2px solid #2867e8; outline-offset: 2px; }

/* Keep the existing delivery content and its dates together below the filters. */
.product-category .catalog__features {
    box-sizing: border-box;
    margin-top: 24px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e7ed;
    border-radius: 16px;
}

.product-category .catalog__features > .feature { margin: 0; padding: 0 !important; }
.product-category .catalog__features .feature > li { gap: 12px; margin: 0 !important; padding: 16px 0; }
.product-category .catalog__features .feature > li:first-child { padding-top: 0; }
.product-category .catalog__features .feature > li:last-child { padding-bottom: 0; }
.product-category .catalog__features .feature > li + li { border-top: 1px solid #edf0f4; }
.product-category .catalog__features .feature > li > div:first-child {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 2px 0 0 !important;
}
.product-category .catalog__features .feature > li > div:last-child { min-width: 0; }
.product-category .catalog__features .feature div:last-of-type p:first-of-type {
    margin: 0 0 6px !important;
    color: #30373d;
    font: 600 18px/22px FuturaPT, sans-serif;
}
.product-category .catalog__features .feature div:last-of-type p:last-of-type {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
}
.product-category .catalog__features .footer__btn-map { font-size: 13px; line-height: 20px; }

@media (max-width: 767px) {
    .category-rail { gap: 6px; margin: 12px 0 4px; }
    .category-rail__item { flex-basis: 124px; }
    .category-rail > button { flex-basis: 44px; width: 44px; height: 44px; border-radius: 50%; }
    .category-rail .category-rail__link { padding: 12px 8px; font-size: 13px; line-height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .category-rail .category-rail__link { transition: none; }
}
