/* =============================================================================
   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; 

} 



/* =============================================================================
   2. МУЛЬТИОПЦИИ В ПОПАПЕ ТОВАРА
   (дополнительные ингредиенты / добавки с картинками и галочками)
============================================================================= */

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

    --iconChecked: url(https://static.tildacdn.com/tild3239-6363-4532-b461-633536376137/check.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: #ffffff;
}

/* Сетка карточек опций — автоматически подстраивается под ширину */
.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;
}

/* Карточка опции: flex-колонка с картинкой и текстом */
.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: #FFFFFF;
    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; /* скрыта */
}

/* Скрываем нативный input[type=checkbox] */
.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);
}

/* Общий стиль блока изображения в карточке опции (псевдоэлемент :before) */
.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="Бекон жареный (20г)"]):before {
    background-image: url(https://static.tildacdn.com/tild3735-3233-4163-b166-343334643861/photo.png);
}
.js-product-multioption .t-checkbox__control:has(input[name="Котлета говяжья (100г)"]):before {
    background-image: url(https://static.tildacdn.com/tild3866-3833-4563-a639-356437663162/photo.png);
}
.js-product-multioption .t-checkbox__control:has(input[name="Лук красный (20г)"]):before {
    background-image: url(https://static.tildacdn.com/tild6232-6366-4030-a536-636434326563/_.png);
}
.js-product-multioption .t-checkbox__control:has(input[name="Маринованные огурцы (20г)"]):before {
    background-image: url(https://static.tildacdn.com/tild6666-6533-4461-a636-346663633833/_.png);
}
.js-product-multioption .t-checkbox__control:has(input[name="Помидор свежий (30г)"]):before {
    background-image: url(https://static.tildacdn.com/tild3034-3138-4833-a335-376564323065/_.png);
}
.js-product-multioption .t-checkbox__control:has(input[name="Яйцо куриное (1 шт)"]):before {
    background-image: url(https://static.tildacdn.com/tild3730-3639-4063-b935-313535353738/__.png);
}
.js-product-multioption .t-checkbox__control:has(input[name="Сыр Чеддер (25г)"]):before {
    background-image: url(https://static.tildacdn.com/tild3961-3963-4465-a264-623562396563/photo.png);
}
.js-product-multioption .t-checkbox__control:has(input[name="Перец Халапеньо (10г)"]):before {
    background-image: url(https://static.tildacdn.com/tild3861-3735-4166-b165-653664646336/photo.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;
}

/* Мобильная адаптация мультиопций (до 480px) */
@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 .t-product__option {
    margin-bottom: 20px;
}
}

/* Порядок элементов в попапе: кнопка «В корзину» поднята выше блока опций */
/*.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;
}




/* =============================================================================
   3. ХЛЕБНЫЕ КРОШКИ (.t758) — АДАПТИВНАЯ ШИРИНА КОНТЕЙНЕРА
============================================================================= */

/* Ширина контейнера крошек на экранах от 1360px */
@media screen and (min-width: 1360px) {
    .t758 .t-container {
        width: 1320px !important;
        max-width: 1320px;
    }
    .t758 .t-col ul {
        margin-bottom: -5px !important;
    }
}

/* 1200–1359px */
@media screen and (min-width: 1200px) and (max-width: 1359px) {
    .t758 .t-container {
        width: 1160px !important;
        max-width: 1160px;
    }
    .t758 .t-col ul {
        margin-bottom: -5px !important;
    }
}

/* 960–1199px */
@media screen and (min-width: 960px) and (max-width: 1199px) {
    .t758 .t-container {
        width: 940px !important;
        max-width: 940px;
    }
    .t758 .t-col ul {
        margin-bottom: -5px !important;
    }
}

/* 640–959px + уменьшаем верхний отступ секции */
@media screen and (min-width: 640px) and (max-width: 959px) {
    .t758 .t-container {
        width: 640px !important;
        max-width: 640px;
    }
    .t758 .t-col ul {
        margin-bottom: -5px !important;
    }
    .t-rec_pt_30 {
        padding-top: 20px !important;
    }
}




/* =============================================================================
   4. ВАРИАНТЫ ТОВАРА В ПОПАПЕ (кнопки размеров / объёмов)
============================================================================= */

/* Скругление и отступы кнопок вариантов */
.js-product .t-product__option-variants_buttons .t-product__option-item_simple {
    padding: 10px 15px;
    border-radius: 6px;
}

/* Активная (выбранная) кнопка варианта */
.t-product__option-item.t-product__option-item_active {
    background-color: #FFD375 !important;
    border-color: #FFE6CA !important;
    color: #FFFFFF !important;
}

/* Шрифт текста на кнопках */
.t-product__option-variants_buttons .t-product__option-item span {
    font-weight: 400;
    font-size: 14px;
}

/* Отступ под заголовком блока вариантов */
.t-store .t-product__option-title {
    padding-bottom: 12px;
}

/* Мобильная адаптация (до 639px) */
@media screen and (max-width: 639px) {
    .js-product .t-product__option-variants_buttons .t-product__option-item_simple {
        padding: 10px 12px;
    }
    .t-product__option-variants_buttons .t-product__option-item span {
        font-size: 12px;
    }
    .t-store .t-product__option-title {
        padding-bottom: 14px;
    }
}




/* =============================================================================
   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: #303032 !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: #303032;
        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) */
    .t-slds__items-wrapper.t-slds_animated-none.t-slds__nocycle {
        height: 465px !important;
    }
    /* Ширина активного слайда */
    .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: #303032;
        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 */
    .t-slds__items-wrapper.t-slds_animated-none.t-slds__nocycle {
        height: 390px !important;
    }
    .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: #303032;
        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 */
    .t-slds__items-wrapper.t-slds_animated-none.t-slds__nocycle {
        height: 330px !important;
    }
    .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: #303032;
        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: #303032;
        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: #FFFFFF;
        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: #FFFFFF;
        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: #FFFFFF;
        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: #FFFFFF;
        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: #FFFFFF;
        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: #ffffff;
    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);
}
