/* =============================================================================
   Стилизация мультиопций (дополнительных вариантов товара) в попапе карточки
   Источник: https://dsgnmax.ru/useful/additional-options
   -----------------------------------------------------------------------------
   В этом блоке описаны:
   — переменные :root для оформления опций;
   — сетка расположения чекбоксов;
   — внешний вид карточек опций с изображениями;
   — оформление галочек при выборе;
   — индивидуальные изображения опций по названию;
   — отображение цены на опциях;
   — адаптивные стили под мобильные;
   — изменение порядка элементов (поднятие кнопки вверх).
============================================================================= */

:root {
    /*Стили карточек опций*/
    --bgColorOption: #F5F5F5; /*Фоновый цвет*/
    --paddingOption: 14px; /*Внутренние отступы у карточки*/
    --gapOption: 15px;  /*Отступ между текстом и фото*/
    --borderRadiusOption: 12px; /*Скругление углов*/
    --outlineOption: 2px solid #FF6E1D; /*Цвет обводки выбранной карточки*/

    /*Иконка галочки при выбранной опции*/
    --iconChecked: url(https://static.tildacdn.com/tild3933-6264-4362-a561-383736663263/checkmark.svg);
    --iconWidthChecked: 20px;
    --topIconChecked: 10px;
    --rightIconChecked: 10px;
}


/* Заголовок блока опций */
.js-product-multioption .js-product-option-name {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    color: #000000;
}


/* Сетка карточек */
.js-product-multioption .t-product__checkbox-wrap {
    margin: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}


/* Скрываем стандартный чекбокс */
.js-product-multioption .t-checkbox__indicator {
    display: none;
}


/* Карточка опции */
.js-product-multioption .t-checkbox__control {
    display: flex;
    flex-direction: column;
    gap: var(--gapOption);
    margin: 0 !important;
    padding: var(--paddingOption);
    background-color: var(--bgColorOption);
    border-radius: var(--borderRadiusOption);
    position: relative;
}


/* Текст в карточке */
.js-product-multioption .t-checkbox__control span {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.3px;
    color: #000000;
    text-align: center;
}


/* Галочка */
.js-product-multioption .t-checkbox__control:after {
    content: "";
    position: absolute;
    top: var(--topIconChecked);
    right: var(--rightIconChecked);
    display: block;
    width: var(--iconWidthChecked);
    aspect-ratio: 1 / 1;
    background-image: var(--iconChecked);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.2s ease-in;
    transform-origin: center;
    scale: 0;
}

.js-product-multioption .t-checkbox {
    scale: 0 !important;
}

.js-product-multioption .t-checkbox__control:has(.t-checkbox:checked):after {
    scale: 1;
}

.js-product-multioption .t-checkbox__control:has(.t-checkbox:checked) {
    outline: var(--outlineOption);
}


/* Общая настройка изображений */
.js-product-multioption .t-checkbox__control:before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover !important;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box !important;
}


/* ИНДИВИДУАЛЬНЫЕ ИЗОБРАЖЕНИЯ ДЛЯ ОПЦИЙ — ниже блок можно дополнять */
.js-product-multioption .t-checkbox__control:has(input[name="Российский сыр 50г"]):before{ 
    background-image: url(https://static.tildacdn.com/tild3536-3439-4566-b032-383133623665/_.png);
}

.js-product-multioption .t-checkbox__control:has(input[name="Моцарелла 50г"]):before{
    background-image: url(https://static.tildacdn.com/tild6666-6435-4231-b631-393737383061/_.png);
}

.js-product-multioption .t-checkbox__control:has(input[name="Пармезан 50г"]):before{
    background-image: url(https://static.tildacdn.com/tild3764-3834-4830-a339-346332623431/_.png);
}

.js-product-multioption .t-checkbox__control:has(input[name="Маринованные огурцы 30г"]):before{
    background-image: url(https://static.tildacdn.com/tild6661-3034-4537-b937-363964336436/_.png);
}

.js-product-multioption .t-checkbox__control:has(input[name="Лук Марс 10г"]):before{
    background-image: url(https://static.tildacdn.com/tild3533-3835-4766-b765-613061666464/_.png);
}

.js-product-multioption .t-checkbox__control:has(input[name="Шампиньоны 30г"]):before{
    background-image: url(https://static.tildacdn.com/tild3866-3863-4038-a366-313561333230/photo.png);
}

.js-product-multioption .t-checkbox__control:has(input[name="Свежие томаты 50г"]):before{
    background-image: url(https://static.tildacdn.com/tild3764-6530-4565-b136-613164316336/_.png);
}



/* ЦЕННИК в карточках */
.priceOption {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FFC256;
    border-radius: 100px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
    color: #15470A;
}


/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media screen and (max-width: 480px) {
    .js-product-multioption .t-product__checkbox-wrap {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 10px;
    }

    .js-product-multioption .t-checkbox__control span {
        font-size: 12px;
        letter-spacing: -0.2px;
        overflow-wrap: anywhere;
    }
}


/* ИЗМЕНЕНИЕ ПОРЯДКА КНОПОК и ОПЦИЙ в попапе */
.t-store__prod-popup__info {
    display: flex;
    flex-direction: column;
}

.t-store__prod-popup__btn-wrapper.js-store-buttons-wrapper {
    order: 2;
}

.js-product-controls-wrapper {
    order: 3;
}




/* Порядок элементов в карточке товара:
   кнопка «В корзину» поднимается выше блока опций */

.t-store__prod-popup__info {
    display: flex !important;
    flex-direction: column !important;
}

/* Кнопка / количество / избранное */
.t-store__prod-popup__btn-wrapper {
    order: 2 !important;
}

/* Опции товара */
.js-product-controls-wrapper {
    order: 3 !important;
}





/* =============================================================================
   1. СКРУГЛЕНИЕ ИЗОБРАЖЕНИЯ В КАРТОЧКЕ ТОВАРА
============================================================================= */

/* Скругление картинки и отступ внутри карточки товара в каталоге */
/*.t-store__card .t-store__card__bgimg {*/
/*    border-radius: 8px !important;*/
/*    margin: 10px;*/
/*}*/

 /* Скругление самой картинки */ 
.t-store__card .t-store__card__bgimg { 
border-radius: 8px !important; 
margin: 8px; 

} 





/* =============================================================================
   5. АДАПТИВНАЯ СЕТКА КАТАЛОГА ТОВАРОВ
============================================================================= */

/* --- Переменные сетки для каждого брейкпоинта --- */
:root {
    /* ≥1360px: 3 колонки, картинки 280px */
    --grid1360: 1fr 1fr 1fr;
    --gap1360: 20px;
    --heightImg1920: 280px !important;

    /* 1200–1359px: 3 колонки, картинки 260px */
    --gridDesktop: 1fr 1fr 1fr;
    --gapDesktop: 20px;
    --heightImgDesktop: 260px !important;

    /* 960–1199px: 3 колонки, картинки 200px */
    --gridTabletLarge: 1fr 1fr 1fr;
    --gapTabletLarge: 20px;
    --heightImgTabletLarge: 200px !important;
    --fontSizeTitleTabletLarge: 18px;
    --fontSizeDescrTabletLarge: 16px;
    --fontSizePriceTabletLarge: 20px;
    --fontSizeOldPriceTabletLarge: 14px;

    /* 640–959px: 2 колонки, картинки 210px */
    --gridTabletSmall: 1fr 1fr;
    --gapTabletSmall: 15px;
    --heightImgTabletSmall: 210px !important;
    --fontSizeTitleTabletSmall: 18px;
    --fontSizeDescrTabletSmall: 15px;
    --fontSizePriceTabletSmall: 18px;
    --fontSizeOldPriceTabletSmall: 14px;

    /* до 640px: 1 колонка, картинки 280px */
    --gridMobile: 1fr;
    --gapMobile: 18px !important;
    --heightImgMobile: 280px !important;
    --fontSizeTitleMobile: 20px;
    --fontSizeDescrMobile: 16px;
    --fontSizePriceMobile: 24px;
    --fontSizeOldPriceMobile: 10px;
}

/* --- Базовый сброс стандартной вёрстки карточек Тильды --- */
.js-store-grid-cont:before {
    display: none; /* убираем лишний псевдоэлемент */
}
.t-store__card__wrap_all {
    height: 100% !important; /* растягиваем карточку на всю высоту ячейки */
}
.t-store__grid-separator {
    display: none; /* убираем разделитель строк */
}
.js-product:not(.js-product-relevant),
.t-store__stretch-col {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.js-store-grid-cont .t-store__card-list {
    width: 100%;
    box-sizing: border-box;
}

/* ≥1360px — 3 колонки */
@media screen and (min-width: 1360px) {
    .js-store-grid-cont {
        max-width: 1360px;
        padding: 0 20px;
        box-sizing: border-box;
        margin: 0 auto;
    }
    .js-store-grid-cont .t-store__card-list {
        display: grid !important;
        grid-template-columns: var(--grid1360);
        grid-gap: var(--gap1360);
        row-gap: var(--gap1360) !important;
        column-gap: var(--gap1360) !important;
    }
    .t-store__card__imgwrapper {
        height: var(--heightImg1920);
        padding-bottom: 0 !important;
    }
}

/* 1200–1359px — 3 колонки */
@media (min-width: 1200px) and (max-width: 1359px) {
    .js-store-grid-cont {
        padding: 0 20px;
        box-sizing: border-box;
        margin: 0 auto;
    }
    .js-store-grid-cont .t-store__card-list {
        display: grid !important;
        grid-template-columns: var(--gridDesktop);
        grid-gap: var(--gapDesktop);
        row-gap: var(--gapDesktop) !important;
        column-gap: var(--gapDesktop) !important;
    }
    .t-store__card__imgwrapper {
        height: var(--heightImgDesktop);
        padding-bottom: 0 !important;
    }
}

/* 960–1199px — 3 колонки, уменьшаем шрифты */
@media (min-width: 960px) and (max-width: 1199px) {
    .js-store-grid-cont {
        padding: 0 15px;
        box-sizing: border-box;
        margin: 0 auto;
    }
    .js-store-grid-cont .t-store__card-list {
        display: grid !important;
        grid-template-columns: var(--gridTabletLarge);
        grid-gap: var(--gapTabletLarge);
        row-gap: var(--gapTabletLarge) !important;
        column-gap: var(--gapTabletLarge) !important;
    }
    .t-store__card__imgwrapper {
        height: var(--heightImgTabletLarge);
        padding-bottom: 0 !important;
    }
    .js-store-prod-name        { font-size: var(--fontSizeTitleTabletLarge) !important; }
    .js-store-prod-descr       { font-size: var(--fontSizeDescrTabletLarge) !important; }
    .js-product-price,
    .t-store__card__price-currency { font-size: var(--fontSizePriceTabletLarge) !important; }
    .t-store__card__price_old  { font-size: var(--fontSizeOldPriceTabletLarge) !important; }
}

/* 640–959px — 2 колонки */
@media (min-width: 640px) and (max-width: 959px) {
    .js-store-grid-cont {
        padding: 0 10px;
        box-sizing: border-box;
        margin: 0 auto;
    }
    .js-store-grid-cont .t-store__card-list {
        display: grid !important;
        grid-template-columns: var(--gridTabletSmall);
        grid-gap: var(--gapTabletSmall);
        row-gap: var(--gapTabletSmall) !important;
        column-gap: var(--gapTabletSmall) !important;
    }
    .t-store__card__imgwrapper {
        height: var(--heightImgTabletSmall);
        padding-bottom: 0 !important;
    }
    .js-store-prod-name        { font-size: var(--fontSizeTitleTabletSmall) !important; }
    .js-store-prod-descr       { font-size: var(--fontSizeDescrTabletSmall) !important; }
    .js-product-price,
    .t-store__card__price-currency { font-size: var(--fontSizePriceTabletSmall) !important; }
    .t-store__card__price_old  { font-size: var(--fontSizeOldPriceTabletSmall) !important; }
}

/* до 640px — 1 колонка */
@media screen and (max-width: 639px) {
    .js-store-grid-cont {
        padding: 0 10px;
        box-sizing: border-box;
        margin: 0 auto;
    }
    .js-store-grid-cont .t-store__card-list {
        display: grid !important;
        grid-template-columns: var(--gridMobile);
        grid-gap: var(--gapMobile);
        row-gap: var(--gapMobile) !important;
        column-gap: var(--gapMobile) !important;
    }
    .t-store__card__imgwrapper {
        height: var(--heightImgMobile);
        padding-bottom: 0 !important;
    }
    .js-store-prod-name   { font-size: var(--fontSizeTitleMobile) !important; }
    .js-store-prod-descr  { font-size: var(--fontSizeDescrMobile) !important; }
    .t-store__card__price { font-size: var(--fontSizePriceMobile) !important; }
    .t-store__card__price_old { font-size: var(--fontSizeOldPriceMobile) !important; }
}

/* Отдельное уточнение размера заголовка карточки на мобильном */
@media (max-width: 640px) {
    .js-store-grid-cont a .t-store__card__title {
        font-size: 20px !important;
    }
}




/* =============================================================================
   6. СЧЁТЧИК КОЛИЧЕСТВА ТОВАРА В ПОПАПЕ
============================================================================= */

/* Отступы и выравнивание блока +/- количества */
.js-store div .t-store__prod__quantity {
    margin-right: 4px;
    margin-bottom: 0px;
    padding-left: 6px;
    padding-right: 6px;
}




/* =============================================================================
   7. СЕКЦИЯ «ОБРАТИТЕ ВНИМАНИЕ | Смотритетакже» — чистый CSS с нуля
============================================================================= */

/* --- Фон и скругление карточек --- */
.t-store__relevants__container .t-store__card__wrap_all {
    background-color: #FFFFFF !important;
    border-radius: 16px !important;
}

.t-store__relevants__container .t-store__card__imgwrapper {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    overflow: hidden !important;
}

.t-store .t-store__card__wrap_all .store__card__wrap_txt-and-opts {
    padding-bottom: 22px !important;
}

/* =============================================================================
   ≥960px — 3 карточки в ряд, grid, без скролла
============================================================================= */
@media screen and (min-width: 960px) {

    /* Убираем паддинги контейнеров Tilda */
    .t-store__relevants__container .t-col {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .t-store__relevants__container .js-store-grid-cont {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: none !important;
    }

    /* Grid 3 в ряд */
    .t-store__relevants__container .t-store__card-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        column-gap: 24px !important;
        row-gap: 30px !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }

    /* Карточки занимают ячейку grid полностью */
    .t-store__relevants__container .js-product-relevant {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
}

/* =============================================================================
   960px — контент 940px (20px отступы t-col)
============================================================================= */
@media screen and (min-width: 960px) and (max-width: 1199px) {
    .t-store__relevants__container .t-container {
        max-width: 940px !important;
    }
    .t-store__relevants__container .t-col {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* =============================================================================
   1200px — контент 1160px (20px отступы t-col)
============================================================================= */
@media screen and (min-width: 1200px) and (max-width: 1359px) {
    .t-store__relevants__container .t-container {
        max-width: 1160px !important;
    }
}

/* =============================================================================
   1360px — контент 1320px, убираем боковые отступы
============================================================================= */
@media screen and (min-width: 1360px) {
    .t-store__relevants__container .t-container {
        max-width: 1320px !important;
    }
    .t-store__relevants__container .js-store-grid-cont {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =============================================================================
   640–959px — горизонтальный скролл, 2 карточки видно
============================================================================= */
/* 640–959px — планшет вертикальный: видна 1 карточка + ~2/3 следующей */
@media screen and (min-width: 640px) and (max-width: 959px) {
    .t-store__relevants__container .t-store__card-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding-bottom: 8px !important;
    }

    .t-store__relevants__container .js-product-relevant {
        flex: 0 0 56% !important;
        min-width: 0 !important;
        max-width: none !important;
        scroll-snap-align: start !important;
        margin: 0 !important;
    }
}

/* =============================================================================
   <640px — горизонтальный скролл, 1 карточка
============================================================================= */
/* <640px — мобильный: карточка почти на всю ширину */
@media screen and (max-width: 639px) {
    .t-store__relevants__container .t-store__card-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding-bottom: 8px !important;
    }

    .t-store__relevants__container .js-product-relevant {
        flex: 0 0 88% !important;
        min-width: 0 !important;
        max-width: none !important;
        scroll-snap-align: start !important;
        margin: 0 !important;
    }
}

/* =============================================================================
   <640px — боковые отступы
============================================================================= */
@media (max-width:639px){

 /* Col */
 .t-store .t-container > .t-col{
  padding-left:0px;
  padding-right:0px;
 }
 
}

/* =============================================================================
   <960px — убираем подсказку скролла
============================================================================= */
@media screen and (max-width: 959px) {
    .t-store__relevants__container .t-store__scroll-icon-wrapper {
        display: none !important;
    }
}

/* =============================================================================
   Скругление и отступу у картинки в карточке
============================================================================= */
/* Product img */
.js-store-relevants-grid-cont a .js-product-img{
 margin-left:8px;
 margin-right:8px;
 margin-top:8px;
 border-top-left-radius:8px !important;
 border-top-right-radius:8px !important;
 border-bottom-left-radius:8px !important;
 border-bottom-right-radius:8px !important;
}

/* =============================================================================
   Настройка заголовка "СМОТРИТЕ ТАКЖЕ"
============================================================================= */
@media screen and (min-width: 1360px) {
/* Отступы */
.t-store .t-col .t-uptitle{
 margin-top:50px;
 margin-bottom:25px;
 margin-left:15px;
}
 /* Размер шрифта */
 .t-store .t-col .t-uptitle{
  font-size:30px !important;
 }
}

@media screen and (min-width: 1200px) and (max-width: 1359px) {
/* Отступы */
.t-store .t-col .t-uptitle{
 margin-top:50px;
 margin-bottom:25px;
 margin-left:15px;
}
 /* Размер шрифта */
 .t-store .t-col .t-uptitle{
  font-size:30px !important;
 }
}

@media screen and (min-width: 960px) and (max-width: 1199px) {
/* Отступы */
.t-store .t-col .t-uptitle{
 margin-top:40px;
 margin-bottom:25px;
 margin-left:15px;
}
 /* Размер шрифта */
 .t-store .t-col .t-uptitle{
  font-size:26px !important;
 }
}

@media screen and (min-width: 640px) and (max-width: 959px) {
/* Отступы */
.t-store .t-col .t-uptitle{
 margin-top:40px;
 margin-bottom:25px;
 margin-left:5px;
}
 /* Размер шрифта */
 .t-store .t-col .t-uptitle{
  font-size:24px !important;
 }
}

@media (max-width:639px){
/* Отступы */
.t-store .t-col .t-uptitle{
 margin-top:30px;
 margin-bottom:20px;
 margin-left:5px;
}
 /* Размер шрифта */
 .t-store .t-col .t-uptitle{
  font-size:22px !important;
 }
}




/* =============================================================================
   10. БЕЙДЖ «SALE» НА КАРТОЧКЕ ТОВАРА
============================================================================= */

/* Скругление и ширина метки скидки */
.t-store__card__mark {
    border-radius: 12px;
    width: 65px;
}


/* =============================================================================
   КАРТОЧКА ТОВАРА НА ОТДЕЛЬНОЙ СТРАНИЦЕ (сниппет)
   -----------------------------------------------------------------------------
   Стили для страницы /tproduct/... когда товар открывается не как попап,
   а как полноценная отдельная страница.

   Цвета:
   — Фон страницы:              #41382f
   — Фон карточки (плашка):     #fff2e4
   — Цвет цены:                 #41382f
   — Фон характеристик:         #ffffff
   — Соотношение сторон фото:   4 × 3
============================================================================= */


/* =============================================================================
   КОНТЕЙНЕР КАРТОЧКИ: фон, отступы, скругление — по брейкпоинтам
============================================================================= */

/* ≥1360px */
@media (min-width: 1360px) {
    /* Фон страницы и отступы вокруг плашки */
    .t-store__prod-snippet__container {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    /* Плашка с картинкой и описанием */
    .t-store .js-store-product .t-container {
        background-color: #FFFFFF;
        max-width: 1320px;
        padding-top: 20px;
        padding-bottom: 20px;
        border-radius: 16px;
    }
    /* Колонка со слайдером */
    .t-store__prod-popup__col-left.t-col_6 {
        max-width: 620px !important;
    }
    /* Высота обёртки слайдов (4×3 от ширины 620px) */
    .js-store-prod-slider .t-slds__items-wrapper.t-slds_animated-none.t-slds__nocycle {
        height: 465px !important;
    }
    /* Ширина активного слайда */
    .js-store-prod-slider .t-slds__item.t-slds__item-loaded.t-slds__item_active {
        width: 620px !important;
    }
}

/* 1200–1359px */
@media (min-width: 1200px) and (max-width: 1359px) {
    .t-store__prod-snippet__container {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .t-store .js-store-product .t-container {
        background-color: #FFFFFF;
        max-width: 1160px;
        padding-top: 20px;
        padding-bottom: 20px;
        border-radius: 30px;
    }
    .t-store__prod-popup__col-left.t-col_6 {
        max-width: 520px !important;
    }
    /* 4×3 от ширины 520px */
    .js-store-prod-slider .t-slds__items-wrapper.t-slds_animated-none.t-slds__nocycle {
        height: 390px !important;
    }
    .js-store-prod-slider .t-slds__item.t-slds__item-loaded.t-slds__item_active {
        width: 520px !important;
    }
}

/* 960–1199px */
@media (min-width: 960px) and (max-width: 1199px) {
    .t-store__prod-snippet__container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .t-store .js-store-product .t-container {
        background-color: #FFFFFF;
        max-width: 920px;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 25px;
    }
    .t-store__prod-popup__col-left.t-col_6 {
        max-width: 440px !important;
    }
    /* 4×3 от ширины 440px */
    .js-store-prod-slider .t-slds__items-wrapper.t-slds_animated-none.t-slds__nocycle {
        height: 330px !important;
    }
    .js-store-prod-slider .t-slds__item.t-slds__item-loaded.t-slds__item_active {
        width: 440px !important;
    }
}

/* 640–959px */
@media (min-width: 640px) and (max-width: 959px) {
    .t-store__prod-snippet__container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .t-store .js-store-product .t-container {
        background-color: #FFFFFF;
        max-width: 620px;
        padding-top: 20px;
        padding-bottom: 20px;
        border-radius: 25px;
    }
}

/* до 639px */
@media (max-width: 639px) {
    .t-store__prod-snippet__container {
        padding-top: 20px;
        padding-bottom: 30px;
        padding-left: 3%;
        padding-right: 3%;
    }
    .t-store .js-store-product .t-container {
        background-color: #FFFFFF;
        max-width: 620px;
        padding-top: 0px;
        padding-bottom: 0px;
        border-radius: 20px;
    }
}


/* =============================================================================
   ИЗОБРАЖЕНИЕ ТОВАРА: скругление на мобильном
============================================================================= */

/*@media screen and (max-width: 640px) {*/
    /* Отступ вокруг картинки */
/*    .t-slds__imgwrapper.t-zoomable {*/
/*        margin: 10px;*/
/*    }*/
    /* Скругление самой картинки */
/*    .t-slds__bgimg {*/
/*        border-radius: 12px;*/
/*        overflow: hidden;*/
/*    }*/
/*}*/

@media (max-width:639px){
 
 /* Division */
 .js-store-product div .js-store-prod-slider > div{
  margin-left:8px;
  margin-right:8px;
  margin-top:8px;
 }
 
}


/* =============================================================================
   ТЕКСТОВАЯ ЧАСТЬ: заголовок, описание, цена — по брейкпоинтам
============================================================================= */

/* ≥1360px */
@media (min-width: 1360px) {
    /* Ширина правой колонки с текстом */
    .t-col_6 {
        max-width: 580px;
    }
    /* Заголовок товара */
    .t-store__prod-popup__col-right .t-store__prod-popup__title-wrapper h1 {
        font-size: 34px !important;
    }
    /* Верхний отступ заголовка */
    .js-store-product .t-store__prod-popup__title-wrapper {
        padding-top: 20px;
    }
    /* Описание товара */
    .js-store-product .js-store-prod-text {
        font-size: 18px;
    }
    /* Убираем лишний отступ у кнопок */
    .js-store-product .t-col .t-store__prod-popup__btn-wrapper > div {
        margin-left: 0px !important;
    }
    /* Цена */
    .js-store-price-wrapper .t-store__prod-popup__price-item .js-store-prod-price-val {
        color: #151515;
        font-size: 26px;
    }
    /* Убираем смещение цифр цены */
    #allrecords .t-store__prod-popup__price-wrapper .js-store-prod-price-val {
        position: static !important;
        top: auto !important;
    }
}

/* 1200–1359px */
@media (min-width: 1200px) and (max-width: 1359px) {
    .t-store__prod-popup__col-right .t-store__prod-popup__title-wrapper h1 {
        font-size: 30px !important;
    }
    .js-store-product .t-store__prod-popup__title-wrapper {
        padding-top: 20px;
    }
    .js-store-product .js-store-prod-text {
        font-size: 17px;
    }
    .js-store-product .t-col .t-store__prod-popup__btn-wrapper > div {
        margin-left: 0px !important;
    }
    .js-store-price-wrapper .t-store__prod-popup__price-item .js-store-prod-price-val {
        color: #151515;
        font-size: 22px;
    }
    #allrecords .t-store__prod-popup__price-wrapper .js-store-prod-price-val {
        position: static !important;
        top: auto !important;
    }
}

/* 960–1199px */
@media (min-width: 960px) and (max-width: 1199px) {
    .t-store__prod-popup__col-right .t-store__prod-popup__title-wrapper h1 {
        font-size: 26px !important;
    }
    .js-store-product .t-store__prod-popup__title-wrapper {
        padding-top: 10px;
    }
    .js-store-product .js-store-prod-text {
        font-size: 17px;
    }
    .js-store-product .t-col .t-store__prod-popup__btn-wrapper > div {
        margin-left: 0px !important;
    }
    .js-store-price-wrapper .t-store__prod-popup__price-item .js-store-prod-price-val {
        color: #151515;
        font-size: 22px;
    }
    #allrecords .t-store__prod-popup__price-wrapper .js-store-prod-price-val {
        position: static !important;
        top: auto !important;
    }
}

/* 640–959px */
@media (min-width: 640px) and (max-width: 959px) {
    .t-store__prod-popup__col-right .t-store__prod-popup__title-wrapper h1 {
        font-size: 26px !important;
    }
    .js-store-product .js-store-prod-text {
        font-size: 17px;
    }
    .js-store-product .t-col .t-store__prod-popup__btn-wrapper > div {
        margin-left: 0px !important;
    }
    .js-store-price-wrapper .t-store__prod-popup__price-item .js-store-prod-price-val {
        color: #151515;
        font-size: 22px;
    }
    #allrecords .t-store__prod-popup__price-wrapper .js-store-prod-price-val {
        position: static !important;
        top: auto !important;
    }
}

/* до 639px */
@media (max-width: 639px) {
    .t-store__prod-popup__col-right .t-store__prod-popup__title-wrapper h1 {
        font-size: 24px !important;
    }
    .js-store-product .js-store-prod-text {
        font-size: 16px;
    }
    .js-store-product .t-col .t-store__prod-popup__btn-wrapper > div {
        margin-left: 0px !important;
    }
    .js-store-price-wrapper .t-store__prod-popup__price-item .js-store-prod-price-val {
        color: #151515;
        font-size: 22px;
    }
    #allrecords .t-store__prod-popup__price-wrapper .js-store-prod-price-val {
        position: static !important;
        top: auto !important;
    }
    .t-name_md {
        font-size: 20px;
    }
}


/* =============================================================================
   КНОПКА «В КОРЗИНУ»: размеры
============================================================================= */

@media (min-width: 480px) {
    /* Размер шрифта кнопки */
    .t-btn tr .js-store-prod-popup-buy-btn-txt {
        font-size: 16px;
    }
    /* Ширина кнопки */
    .js-store-product div .t-btn {
        width: 294px;
    }
}

/* Ширина кнопки на десктопе */
@media (min-width: 1360px) {
    .js-store-product div .t-store__prod-popup__btn {
        width: 180px;
    }
}


/* =============================================================================
   БЛОК ХАРАКТЕРИСТИК ТОВАРА (состав, вес и т.д.)
============================================================================= */

.js-store-prod-text .js-store-prod-all-charcs .js-store-prod-charcs {
    background-color: #FDF4EB;
    padding: 10px 10px 10px 15px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 15px;
}


/* =============================================================================
   ССЫЛКИ-КНОПКИ В ОПИСАНИИ ТОВАРА
   (на случай если появятся — пока белый фон, чёрный текст)
============================================================================= */

.t-store__prod-desc .js-store-prod-all-text a,
.t-store__prod-descr .js-store-prod-all-text a,
.t-store__prod-about .js-store-prod-all-text a,
.t-store__prod-popup__text .js-store-prod-all-text a {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    padding: 6px 12px !important;
    border-radius: 16px !important;
    margin-bottom: 5px !important;
    text-decoration: none !important;
    transition: 0.2s ease-out !important;
}

/* Hover — чуть темнее фон */
.t-store__prod-desc .js-store-prod-all-text a:hover,
.t-store__prod-descr .js-store-prod-all-text a:hover,
.t-store__prod-about .js-store-prod-all-text a:hover,
.t-store__prod-popup__text .js-store-prod-all-text a:hover {
    background-color: #f0f0f0 !important;
    color: #000000 !important;
}


/* === Перемещаем блок с кнопками "В корзину" вниз в карточке товара на новой странице === */
.t-store__prod-popup__info {
    display: flex;
    flex-direction: column;
}

.t-store__prod-popup__btn-wrapper {
    order: 99; /* ставим большим числом, чтобы он ушёл в самый низ */
}


/* =============================================================================
   Карточки при наведении
============================================================================= */

/* Анимация при наведении на карточку */
.js-product.t-store__card.t-col.t-col_4.t-align_left.t-item {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Эффект уменьшения карточки при наведении */
.js-product.t-store__card.t-col.t-col_4.t-align_left.t-item:hover {
    transform: scale(0.99);
}



/* Цена в блоке «Смотреть также» */
.t-store__relevants__container .t-store__card__price {
    color: #151515 !important;
    font-weight: 600 !important;
}
