/* === Зефир: шрифты корзины и избранного (Onest вместо Soyuz Grotesk) === */

/* база — весь текст корзины/избранного на Onest */
.t706 .t-name,.t706 .t-descr,.t706 .t-text,.t706 .t-input,.t706 .t-btn,.t706 .t-submit,
.t1002 .t-name,.t1002 .t-descr,.t1002 .t-text,.t1002 .t-input,.t1002 .t-btn,.t1002 .t-submit{
  font-family:'Onest',sans-serif !important;
}

/* большие заголовки: ваш заказ / корзина / избранное — Onest SemiBold 36, строчные */
.t706__cartpage-heading,.t706__sidebar-heading,.t1002__wishlistwin-heading{
  font-family:'Onest',sans-serif !important;
  font-weight:600 !important;
  font-size:36px !important;
  line-height:1.1 !important;
  text-transform:lowercase !important;
}

/* название товара — как заголовок карточки (Onest 500, #1D1D1D) */
.t706__product-title,.t1002__product-title{
  font-family:'Onest',sans-serif !important;
  font-weight:500 !important;
  color:#1D1D1D !important;
}

/* цена товара — как цена на карточке (Onest 500, малиновый) */
.t706__product-amount,.t1002__product-amount{
  font-family:'Onest',sans-serif !important;
  font-weight:500 !important;
  color:#DA0368 !important;
}

/* итоговая сумма */
.t706__cartpage-prodamount,.t706__cartwin-prodamount-wrap,.t706__sidebar-prodamount-wrap{
  font-family:'Onest',sans-serif !important;
  font-weight:600 !important;
}

/* поля формы оформления — как форма на главной (Onest 400) */
.t706 .t-input{ font-family:'Onest',sans-serif !important; font-weight:400 !important; }

/* кнопки — Onest SemiBold */
.t706 .t-btn,.t706 .t-submit,.t1002 .t-btn,.t1002 .t-submit{
  font-family:'Onest',sans-serif !important;
  font-weight:600 !important;
}

/* мобилка: заголовки чуть меньше, чтобы влезали */
@media(max-width:640px){
  .t706__cartpage-heading,.t706__sidebar-heading,.t1002__wishlistwin-heading{ font-size:28px !important; }
}


/* === Зефир: высота CTA-кнопок корзины и избранного на мобилке = 40px === */
@media(max-width:640px){
  .t706 .t-btn,
  .t706 .t-submit,
  .t706__btn,
  .t1002 .t-btn,
  .t1002 .t-submit{
    height:45px !important;
    min-height:45px !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
  }
}


/* Плашка «ДОСТАВИМ ЗА ЧАС» — прямоугольная, в одну строку, под высоту иконки избранного */
.t-catalog__card__mark-wrapper{
  width:auto !important;
  max-width:none !important;
}
.t-catalog__card__mark{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;          /* по содержимому, не фикс. ширина */
  min-width:0 !important;
  height:40px !important;         /* = высота иконки избранного */
  padding:0 12px !important;
  font-size:12px !important;
  line-height:1 !important;
  white-space:nowrap !important;  /* без переносов слов */
  border-radius:8px !important;   /* небольшое скругление вместо пилюли */
  box-sizing:border-box !important;
}


/* поле «Время» тем же шрифтом, что и остальные поля */
.t706 .t-select,
.t706 select{ font-family:'Onest', sans-serif !important; font-weight:400 !important; }


/* текст «вернуться назад» в попапе — Onest вместо Soyuz Grotesk */
.t-catalog__prod-popup__close-txt-wr,
.t-catalog__prod-popup__close-txt,
.js-catalog-close-text{
  font-family:'Onest', sans-serif !important;
  font-weight:500 !important;   /* medium */
  font-size:16px !important;
}
@media(max-width:640px){
  .t-catalog__prod-popup__close-txt-wr,
  .t-catalog__prod-popup__close-txt,
  .js-catalog-close-text{
    font-size:13px !important;   /* мобилка 12–14px */
  }
}
/* === Зефир: размеры букета кнопками S · M · L (карточки каталога + окно товара) === */
/* подпись «Размер» в превью не нужна — кнопки говорят сами за себя */
.t-catalog__card .js-product-edition-option-name,
.t-catalog__card .t-product__option > .t-product__option-title{ display:none !important; }
.t-catalog__card .js-product-controls-wrapper{ margin-top:10px !important; }
.t-catalog__card .t-product__option{ margin:0 !important; }

/* ряд кнопок вместо столбика радио-кнопок с миниатюрами */
.js-product .t-product__option .t-product__option-variants_custom.t-product__option-variants_image{ display:flex !important; flex-direction:row !important; flex-wrap:wrap !important; gap:6px; margin:0 !important; }
.js-product .t-product__option-variants_custom .t-product__option-item.t-product__option-item_image{ position:relative; width:auto !important; min-height:0 !important; margin:0 !important; padding:0 !important; display:inline-flex !important; cursor:pointer; }
.t-product__option-item_image .t-product__option-input{ position:absolute !important; opacity:0 !important; width:1px; height:1px; pointer-events:none; }
.t-product__option-item_image .t-product__option-checkmark{ display:none !important; }
.t-product__option-item_image .t-product__option-title_image{
  margin:0 !important; padding:6px 10px !important;
  border:1px solid #eadfe4; border-radius:8px; background:#fff;
  font-family:'Onest',sans-serif !important; font-size:12px !important; font-weight:500 !important; line-height:1 !important;
  color:#7a6d73 !important; transition:border-color .15s ease, color .15s ease, background-color .15s ease;
}
.t-product__option-item_image:hover .t-product__option-title_image{ border-color:#da0368; color:#da0368 !important; }
.t-product__option-item_image.t-product__option-item_active .t-product__option-title_image{ border-color:#da0368; color:#da0368 !important; background:#fff5f9; }
.t-product__option-item_image .t-product__option-input:focus-visible ~ .t-product__option-title_image{ outline:2px solid #da0368; outline-offset:2px; }

/* в открытой карточке товара кнопки чуть крупнее */
.t-catalog__product-popup .t-product__option-item_image .t-product__option-title_image,
.t-popup .t-product__option-item_image .t-product__option-title_image{ padding:10px 16px !important; font-size:14px !important; }

/* «от» перед ценой, пока выбран самый маленький размер (по умолчанию) */
.t-catalog__card:has(.t-product__option-item_image:first-child.t-product__option-item_active) .t-catalog__card__price-value::before{ content:"от "; font-weight:400; }

@media (prefers-reduced-motion:reduce){ .t-product__option-item_image .t-product__option-title_image{ transition:none; } }
