/* 1. Ширина блока товара на странице */
.t-product__container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
.t-product__gallery,
.t-product__descr {
    width: 100%;
}
.t-product__gallery img,
.t-product__gallery .t-slds__img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
@media screen and (max-width: 1200px) {
    .t-product__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 2. Ширина попапа (окна с подробностями товара) */
.t-popup.t-popup_show .t-popup__container {
    max-width: 1200px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}





/* Растягиваем контейнер попапа */
.t-popup_show .t-popup__container {
  max-width: 1200px !important;
  width: 90% !important;
}

/* Ограничиваем высоту слайдера */
.t-popup_show .t-slds__main {
  max-height: 500px !important;
}

.t-popup_show .t-slds__bgimg {
  background-size: cover !important;
  background-position: center !important;
}





/* 4. Оформление опций (возраст, продолжительность) */
/* Родительский блок каждой опции — относительное позиционирование и вертикальные отступы */
.js-product-edition-option {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0 !important;
    margin-bottom: 8px !important;   /* расстояние между опциями */
}

/* Название опции (текст слева) — отступ под иконку + 5px до текста */
.js-product-edition-option-name {
    padding-left: 21px !important;    /* 16px (иконка) + 5px отступ */
    font-size: 16px !important;
    line-height: 1.4;
}

/* Значение опции (текст справа) */
.t-product__option-title_buttons {
    font-size: 16px !important;
    font-weight: 500;
}

/* Иконки – общий стиль */
.js-product-controls-wrapper .js-product-edition-option:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Иконка для возраста (первая опция) */
.js-product-controls-wrapper .js-product-edition-option:nth-child(1):before {
    background-image: url("https://static.tildacdn.com/tild3638-6663-4633-a361-303862373736/baby.svg");
}

/* Иконка для продолжительности (вторая опция) */
.js-product-controls-wrapper .js-product-edition-option:nth-child(2):before {
    background-image: url("https://static.tildacdn.com/tild6138-3732-4463-b332-666264373730/hourglass.svg");
}


/* При необходимости иконка для календаря (третья опция) */
/* .js-product-controls-wrapper .js-product-edition-option:nth-child(3):before {
    background-image: url("https://static.tildacdn.com/tild6638-6363-4332-a234-656265383531/calendar.svg");
} */

/* Адаптация опций в попапе для планшетов */
@media screen and (max-width: 768px) {
    .t-popup_show .js-product-edition-option-name,
    .t-popup_show .t-product__option-title_buttons {
        font-size: 14px !important;
    }
    .t-popup_show .js-product-edition-option-name {
        padding-left: 20px !important;
    }
}

/* Адаптация опций в попапе для телефонов */
@media screen and (max-width: 480px) {
    .t-popup_show .js-product-edition-option-name,
    .t-popup_show .t-product__option-title_buttons {
        font-size: 14px !important;
    }
    .t-popup_show .js-product-edition-option-name {
        padding-left: 18px !important;
    }
    .t-popup_show .js-product-edition-option {
        margin-bottom: 6px !important;
    }
}
}










/* 5. Дополнительные корректировки отступов (по желанию) */
.t-store__card__textwrapper {
    margin-bottom: 0px !important;
}
.t-store__prod-popup__price-wrapper {
    margin-bottom: 15px !important;
}

/* Увеличиваем размер названия товара в попапе до 30px */
.t-store__prod-popup__name {
    font-size: 30px !important;
}

.t-store__relevants__title {
    font-size: 30px !important;
}

/* Размер шрифта для полного описания тура */
.js-store-prod-all-text {
    font-size: 18px !important;
}

/* Размер шрифта для цены в попапе (основная цена, валюта, старая цена) */
.t-store__prod-popup__price,
.t-store__prod-popup__price .t-store__prod-popup__price-value,
.t-store__prod-popup__price .t-store__prod-popup__price-currency,
.t-store__prod-popup__price_old {
    font-size: 25px !important;
}

/* Размер шрифта для содержимого вкладок (например, "Программа", "Стоимость" и т.д.) */
.t-store__tabs__content {
    font-size: 18px !important;
}

 /* Заголовок товара **только в попапе** */
.t-store__prod-popup .js-store-prod-name,
.t-store__prod-popup .t-store__card__title {
    font-size: 30px !important;  /* размер заголовка в попапе */
    line-height: 1.2;            /* можно подправить межстрочный интервал */
}

/* Адаптация для планшетов (ширина до 768px) */
@media screen and (max-width: 768px) {
    .t-store__prod-popup__name {
        font-size: 24px !important;
    }
    .t-store__relevants__title {
        font-size: 24px !important;
    }
    .js-store-prod-all-text {
        font-size: 16px !important;
    }
    .t-store__prod-popup__price,
    .t-store__prod-popup__price .t-store__prod-popup__price-value,
    .t-store__prod-popup__price .t-store__prod-popup__price-currency,
    .t-store__prod-popup__price_old {
        font-size: 20px !important;
    }
    .t-store__tabs__content {
        font-size: 16px !important;
    }
}

/* Адаптация для телефонов (ширина до 480px) */
@media screen and (max-width: 480px) {
    .t-store__prod-popup__name {
        font-size: 20px !important;
    }
    .t-store__relevants__title {
        font-size: 20px !important;
    }
    .js-store-prod-all-text {
        font-size: 14px !important;
    }
    .t-store__prod-popup__price,
    .t-store__prod-popup__price .t-store__prod-popup__price-value,
    .t-store__prod-popup__price .t-store__prod-popup__price-currency,
    .t-store__prod-popup__price_old {
        font-size: 16px !important;
    }
    .t-store__tabs__content {
        font-size: 14px !important;
    }
}

/* Растягиваем и вертикально ставим только основные кнопки в попапе */
.t-popup_show .t-store__card__btns-wrapper.js-store-buttons-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
}

.t-popup_show .t-store__card__btns-wrapper.js-store-buttons-wrapper .t-btn {
    width: 100% !important;
    margin: 0 !important;
}
