

/* Start:/local/templates/joser_new/components/bitrix/news.list/home_categories_slider/style.css?17791230373702*/
/* === Слайдер с категориями === */

.home-categories-slider {
    padding-block: 8px;
    overflow: hidden;
}

.home-categories-slider__track {
    display: flex;
    gap: 0;                          /* без зазоров → 2-й слайд кончается ровно на 50% (по линии grid других секций) */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

/* Snap только на мобиле, где пользователь свайпает руками.
   На десктопе scroll-driven через JS — snap создавал бы рывки. */
@media (max-width: 767px) {
    .home-categories-slider__track {
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }
}

.home-categories-slider__track::-webkit-scrollbar {
    display: none;
}

.home-categories-slider__slide {
    flex: 0 0 25%;                   /* 4 видимых на десктопе */
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    /* Внутренний padding создаёт зазор между картинками (по 4px слева/справа = 8px
       суммарно), не сдвигая layout: правый край 2-го слайда всё ещё на 50%. */
    padding-inline: 4px;
}

@media (max-width: 767px) {
    .home-categories-slider__slide {
        scroll-snap-align: start;
    }
}

@media (max-width: 1439px) {
    .home-categories-slider__slide {
        flex-basis: 33.3333%;
    }
}

@media (max-width: 767px) {
    .home-categories-slider__slide {
        flex-basis: 100%;
    }
}

.home-categories-slider__media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.home-categories-slider__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-categories-slider__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #000;
    z-index: 2;
}

.home-categories-slider__title {
    margin: 0;
    font-family: 'SangBleu Kingdom', Georgia, serif;
    font-size: 1.125rem;            /* 18px */
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-categories-slider__subtitle {
    margin: 0;                      /* по аналогии с footer-слайдером — без зазора */
    font-size: 1rem;                /* 16px */
    font-weight: 400;
    line-height: 1.2;
}

/* Кастомный скроллбар-индикатор: видим только на mobile, поверх нижнего края карточек */
.home-categories-slider__scrollbar {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 3;
}

@media (max-width: 767px) {
    .home-categories-slider__scrollbar {
        display: block;
    }
}

.home-categories-slider__scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: rgba(0, 0, 0, 0.6);
    will-change: transform, width;
}

/* Для абсолютного позиционирования скроллбара секция должна быть relative */
.home-categories-slider {
    position: relative;
}

.home-categories-slider-pin {
    /* без растяжения — оборачивает только для скрипта */
}

/* End */


/* Start:/local/templates/joser_new/components/bitrix/news.list/home_product_sections/style.css?17791970075544*/
/* === Home Product Sections === */

.home-product-sections {
    display: block;
}

/* Контейнер секции — две колонки на десктопе, без боковых отступов */
.home-product-section {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;        /* фото и карточка одной высоты — без пустот по бокам */
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .home-product-section {
        grid-template-columns: 1fr 1fr;
    }
    .home-product-section--image-left  .home-product-section__image-link { order: 1; }
    .home-product-section--image-left  .home-product-section__card       { order: 2; }
    .home-product-section--image-right .home-product-section__image-link { order: 2; }
    .home-product-section--image-right .home-product-section__card       { order: 1; }
}

/* Большое фото */
.home-product-section__image-link {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.home-product-section__image {
    display: block;
    width: 100%;
    height: 100%;
}

.home-product-section__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover на большом фото (только если есть hover-картинка) */
.home-product-section__image-link--hoverable .home-product-section__image--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .home-product-section__image-link--hoverable:hover .home-product-section__image--hover {
        opacity: 1;
    }
}

/* Заголовок-оверлей поверх фото */
.home-product-section__overlay-title {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    color: #000;
    font-family: 'SangBleu Kingdom', Georgia, serif;
    font-size: 1.125rem;       /* 18px */
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    z-index: 2;
}

/* Серый фон карточки (опц. через свойство CARD_BG=Y) */
.home-product-section__card--bg-gray {
    background-color: #F7F7F7;
}

/* Продуктовая карточка */
.home-product-section__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;   /* heading сверху, товар по центру, ссылка внизу */
    gap: 48px;
    padding: 64px 24px 38px;          /* нижний отступ = bottom overlay-title в фото-колонке */
    text-align: center;
}

@media (min-width: 768px) {
    .home-product-section__card {
        padding: 64px 32px 38px;
    }
}

@media (min-width: 1440px) {
    .home-product-section__card {
        padding: 96px 48px 38px;
    }
}

.home-product-section__product-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;                 /* product-link ↔ description */
    width: 100%;
}

.home-product-section__product-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;                 /* миниатюра ↔ название товара */
    text-decoration: none;
    color: inherit;
}

.home-product-section__thumb-wrap {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.home-product-section__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.home-product-section__thumb--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

@media (hover: hover) {
    .home-product-section__product-link--hoverable:hover .home-product-section__thumb--hover {
        opacity: 1;
    }
    .home-product-section__product-link--hoverable:hover .home-product-section__thumb--main {
        opacity: 0;
    }
}

.home-product-section__thumb--main {
    transition: opacity 0.45s ease;
}

.home-product-section__product-name {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.home-product-section__description {
    max-width: 480px;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.home-product-section__description p:last-child {
    margin-bottom: 0;
}

.home-product-section__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.home-product-section__cta:hover {
    text-decoration: underline;
}

/* Заголовок и подзаголовок над миниатюрой товара */
.home-product-section__heading-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 32px;       /* в дополнение к gap карточки даёт ~80px до миниатюры */
}

.home-product-section__heading {
    font-family: 'SangBleu Kingdom', Georgia, serif;
    font-size: 1.125rem;      /* 18px */
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-product-section__subheading {
    font-family: 'SangBleu Kingdom', Georgia, serif;
    font-size: 1.25rem;       /* fs-5 = 20px */
    font-weight: 400;
    line-height: 1.2;
    font-style: italic;
}

/* End */


/* Start:/local/templates/joser_new/components/bitrix/news.list/home_specials/style.css?17791276661465*/
/* === Joser Specials === */

.home-specials {
    padding-top: 80px;
    padding-bottom: 57px;
}

.home-specials__title {
    margin: 0 0 80px;
    font-family: 'SangBleu Kingdom', Georgia, serif;
    font-size: 1.5rem;          /* fs-4 = 24px */
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
}

.home-specials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 57px 8px;              /* row × col — единый отступ для mobile и desktop */
}

@media (min-width: 768px) {
    .home-specials__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.home-specials__card {
    display: flex;
    flex-direction: column;
    gap: 38px;                  /* картинка ↔ текст-блок */
    color: inherit;
    text-decoration: none;
}

.home-specials__card:hover {
    text-decoration: none;
}

.home-specials__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.home-specials__text {
    text-align: center;
}

.home-specials__title-text {
    margin: 0;
    font-family: 'SangBleu Kingdom', Georgia, serif;
    font-size: 1.125rem;        /* 18px */
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-specials__subtitle-text {
    margin: 6px 0 0;            /* заголовок ↔ подзаголовок */
    font-size: 0.875rem;        /* fs-7 = 14px */
    line-height: 1.4;
}

/* End */
/* /local/templates/joser_new/components/bitrix/news.list/home_categories_slider/style.css?17791230373702 */
/* /local/templates/joser_new/components/bitrix/news.list/home_product_sections/style.css?17791970075544 */
/* /local/templates/joser_new/components/bitrix/news.list/home_specials/style.css?17791276661465 */
