/* ===== видос в карточке товара (страница отдельная) ===== */


/* Обертка видео на месте последней фотографии */
.uc-card-block .rough-card-video-wrap {
  --rough-video-bg: #e9e9e9;
  --rough-video-padding-y: 20px;

  position: relative !important;
  display: block !important;
  width: 100% !important;

  /* Формат на десктопе — 3:2 */
  aspect-ratio: 3 / 2 !important;

  overflow: hidden !important;
  background-color: var(--rough-video-bg) !important;
}

/* Старая последняя картинка больше НЕ держит высоту */
.uc-card-block .rough-card-video-wrap .rough-card-video-placeholder {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Само видео вместо картинки */
.uc-card-block .rough-card-video-wrap .rough-card-video {
  display: block !important;

  position: absolute !important;
  left: 0 !important;
  top: var(--rough-video-padding-y) !important;

  width: 100% !important;
  height: calc(100% - var(--rough-video-padding-y) * 2) !important;

  object-fit: contain !important;
  object-position: center center !important;

  background-color: var(--rough-video-bg) !important;
  pointer-events: none !important;
}

/* На всякий случай убираем zoom-поведение именно у видео-заглушки */
.uc-card-block .rough-card-video-wrap,
.uc-card-block .rough-card-video-wrap * {
  cursor: default !important;
}

/* Мобилка / планшет до 960px:
   убираем формат, серый фон и поля — видео встает как обычный файл */
@media screen and (max-width: 959px) {
  .uc-card-block .rough-card-video-wrap {
    aspect-ratio: auto !important;
    overflow: visible !important;
    background-color: transparent !important;
  }

  .uc-card-block .rough-card-video-wrap .rough-card-video-placeholder {
    display: none !important;
  }

  .uc-card-block .rough-card-video-wrap .rough-card-video {
    position: static !important;

    width: 100% !important;
    height: auto !important;

    object-fit: contain !important;
    object-position: center center !important;

    background-color: transparent !important;
  }
}



/* ===== T760: кнопка "В корзину" + лайк для отдельной страницы ===== */

/* Убираем большой искусственный отступ снизу */
.uc-card-block .t760__textwrapper {
    position: relative;
    padding-bottom: 0 !important;
}

/* Контейнер кнопок */
.uc-card-block .t1002__btns-wrapper {
    position: static !important;
    display: flex !important;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin: 32px 0 0 0 !important;
}

/* Кнопка "В корзину" */
.uc-card-block .t760__btn {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 54px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 20px !important;
    font-family: 'Monoid', Arial, sans-serif;
    font-weight: 400 !important;
    font-size: 20px !important;
    line-height: 95% !important;
    overflow: visible !important;
}

/* Текст внутри кнопки */
.uc-card-block .t760__btn .t-btnflex__text,
.uc-card-block .js-store-prod-buy-btn-txt {
    max-width: none !important;
    width: auto !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: nowrap !important;
    font-family: 'Monoid', Arial, sans-serif;
    font-weight: 400 !important;
    font-size: 20px !important;
    line-height: 95% !important;
}

/* Кнопка лайка */
.uc-card-block .t1002__addBtn {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    border-radius: 50%;
    background: #fff;
    padding: 0 !important;
    box-sizing: border-box;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Иконка сердца */
.uc-card-block .t1002__addBtn svg {
    width: 22px;
    height: 20px;
    display: block;
}

.uc-card-block .t1002__addBtn svg path {
    fill: #000;
    stroke: none;
}

/* Hover / active */
.uc-card-block .t1002__addBtn:hover,
.uc-card-block .t1002__addBtn_active {
    background: #000;
}

.uc-card-block .t1002__addBtn:hover svg path,
.uc-card-block .t1002__addBtn_active svg path {
    fill: #fff;
}

/* Мобилка */
@media (max-width: 560px) {
    .uc-card-block .t1002__btns-wrapper {
        margin-top: 28px !important;
        gap: 12px;
    }

    .uc-card-block .t760__btn {
        height: 54px !important;
        font-size: 20px !important;
        padding: 0 16px !important;
    }

    .uc-card-block .t760__btn .t-btnflex__text,
    .uc-card-block .js-store-prod-buy-btn-txt {
        font-size: 20px !important;
    }

    .uc-card-block .t1002__addBtn {
        flex-basis: 54px !important;
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
    }
}








/* ===== Инверсия горизонтальная в карточке товара, чтобы сначала текст а потом фотки ===== */

@media screen and (max-width: 960px) {
  .uc-card-block .t760 .t-container {
    display: flex !important;
    flex-direction: column !important;
  }

  .uc-card-block .t760__flexcolumn {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }

  .uc-card-block .t760__flexcolumn:has(.js-store-single-product-info) {
    order: 1 !important;
  }

  .uc-card-block .t760__flexcolumn:has(.t760__img) {
    order: 2 !important;
  }

  .uc-card-block .t760__floatable {
    position: static !important;
    top: auto !important;
    transform: none !important;
  }
}



/*цвет текста в кнопках в карточке товара*/

.t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn,
.t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn:link,
.t-store__prod-popup__btn-wrapper .t-store__prod-popup__btn:visited {
    color: #ffffff !important;
}




/*@media (min-width: 480px) {*/
  .t-store__card__textwrapper {
    text-align: right !important;
  }




  .img-zoom-123 {
    border-radius: 0px;
    overflow: hidden;
    border: 1.5px solid #ffffff; /* Переносим сюда */
    box-sizing: border-box; /* Обязательно, чтобы рамка не влияла на размер */
}

.img-zoom-123 .tn-atom {
    border-radius: 0px;
    transition: transform 400ms ease-in-out;
}

.img-zoom-123:hover .tn-atom {
    transform: scale(1.05);
}



.t886__wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap; /* Важное изменение */
}

.t886__btn-wrapper {
    order: -1;
    margin-right: 20px;
    flex-shrink: 0; /* Не даем кнопке сжиматься */
}

.t886__text {
    flex-grow: 1; /* Заставляем текст занимать всё оставшееся место */
}


/* Модификация карточки товара*/


/* бейджик со скидкой побольше */
.t-store__card__mark-wrapper {
    /*width: 64px;*/
    /*height: 15px;*/
}
.t-store__card__mark {
    /*font-size: 8px;
    /*font-weight: bold;
    /*height: 30px;
    /*padding-top: 3px;*/
    border-radius: 150px;
    font-family: 'Monoid', Arial, sans-serif;
}
.t-store__card__price-value {
    font-style: italic;
    padding-right: 2px;
    word-spacing: -0.55em;
}

/* Карточка товара */
.t-store__prod-popup__info {
    padding-bottom: 185px;
}
.t-store__prod-popup__name {
    font-weight: 400 !important;
    font-size: 22.5px;
    text-transform: lowercase;
    width: calc(50% - 10px);
}
.t-store__prod-popup__price-wrapper {
    position: absolute;
    top: -3px;
    left: 50%;
}
.t-store__prod-popup__price {
    font-size: 32px !important;
    font-weight: 400 !important;
    font-style: italic !important;
    white-space: nowrap;
}
.t-store__prod-popup__price-value {
    word-spacing: -0.55em;
}
.js-product-controls-wrapper {
    margin-bottom: 16px;
}

/* Кастомный дропдаун с размером */
.t-product__option {
    margin: 0 !important;
}
.t-product__option-select, .t-product__option-title  {
    display: none;
}
.t-product__option-variants:after {
    display: none;
}

/* Иконки */
.t-product__option[data-edition-option-id="Размер"] .variant-display:before {
    background-image: url("https://static.tildacdn.com/tild3835-6366-4232-a234-336534353831/01.svg");
}

.t-product__option[data-edition-option-id="Цвет"] .variant-display:before {
    background-image: url("https://static.tildacdn.com/tild3261-6561-4334-b837-396638643362/02.svg");
}

.t-product__option[data-edition-option-id="Вставка"] .variant-display:before {
    background-image: url("https://static.tildacdn.com/tild3336-3466-4632-b662-663030626338/03.svg");
}

.variant-display:before {
    content: "";
    background-repeat: no-repeat;
    background-size: 17.05px;
    background-position-y: center;
    position: absolute;
    height: 100%;
    width: 17.05px;
    top: 0;
    left: 0;
}
.variant-display {
    width: fit-content;
    font-family: 'Monoid', Arial, sans-serif;
    font-size: 13.5px;
    position: relative;
    padding-left: 22px;
    padding-right: 25px;
    padding-top: 11.83px;
    padding-bottom: 11.83px;
    cursor: pointer;
}
.variant-display:after {
    content: "";
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iNyIgdmlld0JveD0iMCAwIDEzIDciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjYzNjIgMC4wNzY2NjAxTDEyLjU1OTEgMC45NTg0OTZMNy4xNjU1MyA2LjY4MDE4TDYuMjQyNjggNi42ODAxOEwwLjg0OTEyMSAwLjk1ODQ5NkwxLjc3MTk3IDAuMDc2NjU5Nkw2LjY1MjgzIDUuMzE2NDFMNi43NTUzNyA1LjMxNjQxTDExLjYzNjIgMC4wNzY2NjAxWiIgZmlsbD0iIzExMTExMSIvPjwvc3ZnPg==");
    background-repeat: no-repeat;
    background-size: 15px;
    background-position-y: center;
    position: absolute;
    height: 100%;
    width: 15px;
    top: 0;
    right: 0;
}
.t-product__option-variants {
    font-family: 'Monoid', Arial, sans-serif;
}
.variant-dropdown {
    overflow: auto !important;
    position: absolute;
    color: white;
    background-color: black;
    font-size: 14px;
    z-index: 2;
    max-height: 310px;
    scrollbar-width: 0;
    -ms-overflow-style: none;
}
.variant-dropdown::-webkit-scrollbar {
    width: 0;
}
.variant-dropdown:not(.opened) {
    height: 0;
}
.variant-option {
    padding: 10px 20px;
    line-height: 110%;
    cursor: pointer;
}
.variant-option:first-child {
    margin-top: 10px;
}
.variant-option:last-child {
    margin-bottom: 10px;
}
.variant-option:hover {
    color: black;
    background: white;
}

.t-store__prod-popup__btn-wrapper {
    position: absolute;
    bottom: 0;
    margin: 0 !important;
    display: flex;
    align-items: center;
}
.t-store__prod-popup__btn {
    height: 56px;
    font-weight: 400;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 95%;
    text-wrap: auto;
}
.js-store-prod-popup-buy-btn-txt {
    font-weight: 400;
    font-size: 20px;
    line-height: 95%;
}


.js-store-prod-all-text strong {
    font-weight: 400 !important;
}

/* Смотреть так же по силовой линии */
.t-store__relevants__container .t-slds__main {
    max-width: unset;
}
.t-store__relevants__container .t__slds-wrapper {
    display: flex;
}
.t-store__relevants__container .t-store__card {
    margin-left: 10px;
    margin-right: 10px;
    max-width: unset;
}
.t-store__relevants__container .t-slds__arrow_wrapper-right {
    right: 4px;
}
.t-store__relevants__container .t-slds__arrow_wrapper-left {
    left: 4px;
}



@media (max-width: 980px) {
    .t-store__prod-popup__info {
        position: relative;
        padding-bottom: 0;
    }
    .t-store__prod-popup__btn-wrapper {
        position: unset;
        width: unset;
    }
    .t-store__prod-popup__price-wrapper {
        top: 22px;
    }
}
@media (max-width: 560px) {
    .t-store__prod-popup__price-wrapper {
        top: 27px;
    }
}
