/* =========================
   Карточка товара: название + цена + наличие
   ========================= */

/* Общая обертка текста карточки */
.t-catalog__card__textwrapper {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 4px 12px !important;
}

/* Название товара */
.t-catalog__card .js-product-name,
.t-catalog__card .t-store__card__title {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: calc(100% - 110px) !important;
  margin: 0 !important;

  white-space: normal !important;
  overflow: visible !important;
  text-overflow: initial !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;

  text-align: left !important;
}

.t1002__product-amount, .t1002__product-amount--portion {
    margin-right: 25px;
}

/* Цена */
.t-catalog__card__price-wrapper {
  order: 2 !important;
  flex: 0 0 auto !important;
  max-width: 110px !important;
  margin: 0 !important;

  white-space: nowrap !important;
  text-align: right !important;
}

/* Нет в наличии — отдельной строкой */
.t-catalog__card__sold-out-msg {
  order: 3 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;

  display: block !important;
  margin: 2px 0 0 0 !important;

  white-space: normal !important;
  text-align: left !important;
}

/* Артикул скрываем, если он не нужен */
.t-catalog__card__sku {
  display: none !important;
}


.t-catalog__empty-part-msg-wrapper,
.t-catalog__error-msg-wrapper,
.t-catalog__empty-part-msg-wrapper *,
.t-catalog__error-msg-wrapper * {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.t-catalog__empty-part-msg-wrapper,
.t-catalog__error-msg-wrapper {
  background-color: #F1BDCF !important;
  border-radius:20px;
}


/* Иконки соцсетей только в блоке rec2436299071 */
#rec2439145761 .t-sociallinks__item a {
  width: 44px !important;
  height: 44px !important;
}

.t-sociallinks__item a {
  transition: transform 0.2s ease !important;
  transform-origin: center center !important;
}

#rec2439145761 .t-sociallinks__svg {
  width: 44px !important;
  height: 44px !important;
}

/* Расстояние между иконками */
#rec2439145761 .t-sociallinks__item {
  margin-right: 10px !important;
}

/* При наведении увеличиваем на 10% */
.t-sociallinks__item a:hover {
  transform: scale(1.1) !important;
}
#rec2439405781 .t420__logo {
   max-width: 130px !important;
}

/* Иконки соцсетей только в блоке rec2439405781 */
#rec2439145761 .t-sociallinks__item a {
  width: 40px !important;
  height: 40px !important;
  transition: transform 0.2s ease !important;
  transform-origin: center center !important;
}

#rec2439145761 .t-sociallinks__svg {
  width: 40px !important;
  height: 40px !important;
}

/* Расстояние между иконками */
#rec2439405781 .t-sociallinks__item {
  margin-right: 10px !important;
}

.t420 ul.t-sociallinks__wrapper {
    max-width: 180px;
}

#rec2439145761 .t-sociallinks__item {
    margin-bottom: 10px !important;
}



.t-checkbox__labeltext, .t-checkbox__labeltext div {
    font-size: 12px !important;
}


.t-checkbox__indicator, .t-radio__indicator {
    border-radius: 3px !important;
    border-color: #f1bdcf !important;
}

.t-menu-base__logowrapper {
    max-width: 300px !important;
}
/* Кнопка формы личного кабинета — по ширине полей */
[class*="member"] form .t-form__submit,
[class*="login"] form .t-form__submit,
.t-buyer-dashboard__form .t-form__submit {
  display: block !important;
  width: 100% !important;
}

/* Сама кнопка */
[class*="member"] form .t-submit,
[class*="login"] form .t-submit,
.t-buyer-dashboard__form .t-submit {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}


/* Блок «Доставка» — исходная пропорция 3:2 */
@media screen and (max-width: 960px) {
.t478__blockimg {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
}
}

.t-radio__indicator:after {
    background: #f1bdcf !important;
}

.t-form__errorbox-wrapper {
   background: #f1bdcf !important;
}

#rec2433822801 .t-form__successbox, #rec2433822801 .t-form__errorbox-wrapper {
    border-radius: 10px !important;
}

.t706__auth {
   border-radius: 10px !important;
}


.t-catalog__breadcrumbs-item {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* =========================
   Единые стили Mikogami — заголовки и текст
   Отступы этим блоком не изменяются
   ========================= */

/* Главная: единый цвет и насыщенность секционных заголовков */
#rec2433400431 h2,
#rec2433865611 h2,
#rec2434275611 h2,
#rec2433458811 h2 {
  color: #212121 !important;
  font-weight: 600 !important;
}

/* Главная: ответы FAQ читаются так же, как основной текст сайта */
#rec2433458811 .t1119__text {
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: #212121 !important;
}

/* Доставка: основной текст без лишней полужирности */
#rec2475885431 .t-text,
#rec2475885431 .t-descr,
#rec2476070071 .t-text,
#rec2476070071 .t-descr {
  font-weight: 400 !important;
}

/* Контакты: H1 как на остальных внутренних страницах */
#rec2440038101 h1 {
  color: #212121 !important;
  font-weight: 600 !important;
}

@media screen and (min-width: 981px) {
  #rec2433400431 h2,
  #rec2434275611 h2,
  #rec2433458811 h2 {
    font-size: 48px !important;
    line-height: 1.23 !important;
  }

  #rec2440038101 h1 {
    font-size: 56px !important;
    line-height: 1.23 !important;
  }
}

@media screen and (max-width: 980px) {
  #rec2433865611 h2,
  #rec2434275611 h2,
  #rec2433458811 h2 {
    font-size: 38px !important;
    line-height: 1.23 !important;
  }
}

/* Значение характеристики после двоеточия */
.t-typography__characteristics .mkgm-char-value {
  opacity: 0.8;
}


/* Карточки товаров: отдельная типографика названия и цены */
.t-catalog__card .t-catalog__card__title,
.t-catalog__card .t-catalog__card__price-wrapper,
.t-catalog__card .t-catalog__card__price-item,
.t-catalog__card .t-catalog__card__price-value,
.t-catalog__card .t-catalog__card__price-currency {
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

@media screen and (max-width: 640px) {
  .t-catalog__card .t-catalog__card__title,
  .t-catalog__card .t-catalog__card__price-wrapper,
  .t-catalog__card .t-catalog__card__price-item,
  .t-catalog__card .t-catalog__card__price-value,
  .t-catalog__card .t-catalog__card__price-currency {
    font-size: 14px !important;
  }
}

/* Карточки товаров: отдельная типографика названия и цены */
.t-catalog__card .t-catalog__card__title,
.t-catalog__card .t-catalog__card__price-wrapper,
.t-catalog__card .t-catalog__card__price-item,
.t-catalog__card .t-catalog__card__price-value,
.t-catalog__card .t-catalog__card__price-currency {
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

@media screen and (max-width: 640px) {
  .t-catalog__card .t-catalog__card__title,
  .t-catalog__card .t-catalog__card__price-wrapper,
  .t-catalog__card .t-catalog__card__price-item,
  .t-catalog__card .t-catalog__card__price-value,
  .t-catalog__card .t-catalog__card__price-currency {
    font-size: 14px !important;
  }
}

/* Catalog card typography */
.t-catalog__card .t-catalog__card__title,
.t-catalog__card .t-catalog__card__price-wrapper,
.t-catalog__card .t-catalog__card__price-item,
.t-catalog__card .t-catalog__card__price-value,
.t-catalog__card .t-catalog__card__price-currency {
  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}
@media screen and (max-width: 640px) {
  .t-catalog__card .t-catalog__card__title,
  .t-catalog__card .t-catalog__card__price-wrapper,
  .t-catalog__card .t-catalog__card__price-item,
  .t-catalog__card .t-catalog__card__price-value,
  .t-catalog__card .t-catalog__card__price-currency {
    font-size: 14px !important;
  }
}

/* Заголовок товара на мобильных */
@media screen and (max-width: 640px) {
  .t-catalog__prod-popup__name,
  .t-catalog__prod-popup__name.t-name,
  h1.t-catalog__prod-popup__name {
    font-family: "DrukTextWideTT", Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }
}

/* Заголовки раскрывающихся вкладок в товаре */
.t-catalog__tabs__item-title {
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
}

@media screen and (max-width: 640px) {
  .t-catalog__tabs__item-title {
    font-size: 14px !important;
  }
}

.js-product .t-product__option-item_radio.t-product__option-item_active .t-product__option-input:checked+.t-product__option-checkmark:after  {
    background-color:#f1bdcf !important;
}

.js-product .t-product__option-item_radio.t-product__option-item_active .t-product__option-input+.t-product__option-checkmark:before {
    border: 1px solid #f1bdcf !important;
}


/* Убираем скругление главного фото товара только на мобильном */
@media screen and (max-width: 640px) {
  .t-catalog__prod-popup__slider .t-slds__main {
    border-radius: 0 !important;
  }
  
  #rec2433822801 .t706__cartwin-content {
   border-radius: 0 !important;
}
}


.t-catalog .t-catalog__tabs__content img {
    height: auto;
    max-width: 100%;
    cursor: zoom-in;
}

/* Затемнение */
.mkgm-image-zoom {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;

    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Открытое состояние */
.mkgm-image-zoom.is-open {
    opacity: 1;
    visibility: visible;
}

/* Увеличенное изображение */
.mkgm-image-zoom img {
    display: block;
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    cursor: zoom-out;
}

/* Запрещаем прокрутку страницы */
body.mkgm-zoom-open {
    overflow: hidden;
}
.t706__carticon-counter {
    background-color: #f1bdcf !important;
}
.t1002__wishlisticon-counter {
    background-color: #f1bdcf !important;
}

.t-menuwidgeticons__icon-counter {
    background-color: #f1bdcf !important;
}

    .t-catalog__filter__range_bg {
        background-color: #f1bdcf !important;
    }
}

/* Все кнопки размеров */
.t-product__option-variants.t-product__option-variants_buttons
.t-product__option-item.t-product__option-item_buttons,
.t-product__option-variants.t-product__option-variants_buttons
.t-product__option-item.t-product__option-item_buttons
.t-product__option-checkmark {
    border-radius: 6px !important;
}

.t-product__option-variants.t-product__option-variants_buttons
.t-product__option-item.t-product__option-item_buttons {
    overflow: hidden !important;
    border-radius: 5px !important;
}

.t-product__option-variants.t-product__option-variants_buttons
.t-product__option-item.t-product__option-item_buttons.t-product__option-item_active {
    border-color: #F1BDCF !important;
    box-shadow: 0 0 0 1px #F1BDCF inset !important;
}

.uc-seo-h1 {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.t-checkbox__indicator, .t-radio__indicator {
    margin-top: 3px !important;
}

.t-slds__bgimg-contain {
    background-size: cover !important;
}

.t-catalog__card__sold-out-msg {
    color: #F1BDCF !important;
}


.mkgm-color-picker {
  margin-top: 18px;
}

.mkgm-color-picker__title {
  margin-bottom: 8px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
}

.mkgm-color-picker__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mkgm-color-picker__item {
  width: 68px;
  color: inherit !important;
  text-align: center;
  text-decoration: none !important;
}

.mkgm-color-picker__preview {
  display: block;
  width: 68px;
  height: 82px;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  background: #f4f4f4;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mkgm-color-picker__item:hover .mkgm-color-picker__preview {
  border-color: #F1BDCF;
  transform: translateY(-1px);
}

.mkgm-color-picker__item.is-active .mkgm-color-picker__preview {
  border: 2px solid #F1BDCF;
}

.mkgm-color-picker__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mkgm-color-picker__label {
  display: block;
  margin-top: 5px;
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
}

.mkgm-color-source-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .mkgm-color-picker {
    margin-top: 14px;
  }

  .mkgm-color-picker__title {
    font-size: 14px;
  }

  .mkgm-color-picker__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 1px 1px 4px;
    scrollbar-width: none;
  }

  .mkgm-color-picker__list::-webkit-scrollbar {
    display: none;
  }

  .mkgm-color-picker__item,
  .mkgm-color-picker__preview {
    width: 58px;
  }

  .mkgm-color-picker__preview {
    height: 70px;
  }

  .mkgm-color-picker__label {
    font-size: 12px;
  }
}

/* Заголовок «Цвет» полностью как «Размер» */
.mkgm-color-picker__title {
  margin: 0 !important;
  padding: 0 0 3px 0 !important;

  font-family: "IBM Plex Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 24.8px !important;
  letter-spacing: normal !important;

  color: #212121 !important;
  opacity: 1 !important;
}

/* Цвет подписей под превью */
.mkgm-color-picker__label {
  color: #212121 !important;
  opacity: 1 !important;
}

/* На мобильном заголовок тоже остаётся 16px */
@media (max-width: 640px) {
  .mkgm-color-picker__title {
    font-size: 16px !important;
    line-height: 24.8px !important;
  }
}
</style>