/* =========================
   БАЗОВО ДЛЯ ОПЦІЙ
   (:is(.t-store,.t-catalog) — працює і зі старим блоком каталогу, і з новим ST340)
========================= */
:is(.t-store,.t-catalog) label.t-product__option-item{
  position:relative;
}




/* =========================
   РОЗМІР — виправлення позиції
========================= */
:is(.t-store,.t-catalog) label.t-product__option-item.t-product__option-item_simple{
  position:relative !important;
  overflow:visible !important;
}

:is(.t-store,.t-catalog) label.t-product__option-item.t-product__option-item_simple.t-product__option-item_active::after{
  content:"";
  position:absolute;
  top:-7px !important;
  right:-7px !important;
  left:auto !important;
  bottom:auto !important;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#BBB2E9;
  z-index:20;
}

:is(.t-store,.t-catalog) label.t-product__option-item.t-product__option-item_simple.t-product__option-item_active::before{
  content:"";
  position:absolute;
  top:-7px !important;
  right:-7px !important;
  left:auto !important;
  bottom:auto !important;
  width:18px;
  height:18px;
  background-image:url("https://demox-000-13.site-x.pro/Media/demox-000-03/check-white.svg");
  background-repeat:no-repeat;
  background-position:center;
  background-size:10px;
  z-index:21;
}

/* щоб кружок не обрізався */
:is(.t-store,.t-catalog) .t-product__option-variants,
:is(.t-store,.t-catalog) .t-product__option-variants_buttons,
:is(.t-store,.t-catalog) .t-product__option-variants_buttons .t-product__option-item{
  overflow:visible !important;
}




/* =========================
   КОЛІР — обводка ТІЛЬКИ на головній/каталозі
========================= */
:is(.t-store,.t-catalog) .t-product__option-item_color{
  position:relative !important;
}

/* кругла форма */
:is(.t-store,.t-catalog) .t-product__option-item_color .t-product__option-checkmark_color{
  border-radius:50% !important;
}

/* активний колір — обводка */
:is(.t-store,.t-catalog) .t-product__option-item_color.t-product__option-item_active .t-product__option-checkmark_color{
  box-shadow:0 0 0 1.5px #fff, 0 0 0 3px #BBB2E9 !important;
}

/* ВИМИКАЄМО обводку у popup-карточці товару */
.t-popup .t-product__option-item_color.t-product__option-item_active .t-product__option-checkmark_color,
.t-store__prod-popup .t-product__option-item_color.t-product__option-item_active .t-product__option-checkmark_color{
  box-shadow:none !important;
}

/* недоступні кольори */
:is(.t-store,.t-catalog) .t-product__option-item_color.t-product__option-item_disabled .t-product__option-checkmark_color,
:is(.t-store,.t-catalog) .t-product__option-item_color:has(input[disabled]) .t-product__option-checkmark_color{
  opacity:0.4 !important;
  cursor:not-allowed !important;
}

/* лінія для недоступного кольору */
:is(.t-store,.t-catalog) .t-product__option-item_color.t-product__option-item_disabled::after,
:is(.t-store,.t-catalog) .t-product__option-item_color:has(input[disabled])::after{
  content:'';
  position:absolute;
  top:50%;
  left:50%;
  width:28px;
  height:1px;
  background:#888;
  transform:translate(-50%, -50%) rotate(-45deg);
  pointer-events:none;
  z-index:5;
}




/* =========================
   БЛОК РОЗМІРНОЇ СІТКИ
========================= */
.size-params-box{
  display:block !important;
  margin-top:12px !important;
  padding:10px 16px !important;
  background:#ead3de !important;
  border:none !important;
  border-radius:0 !important;
  color:#3b3136 !important;
  font-size:16px !important;
  line-height:1.4 !important;
  width:100% !important;
  box-sizing:border-box !important;
  font-family:var(--t-text-font,Arial) !important;
}
.size-params-box *{
  font-family:inherit !important;
}
/* на комп'ютері плашка не тягнеться на всю колонку, а по ширині тексту */
@media screen and (min-width:961px){
  .size-params-box{
    width:fit-content !important;
    max-width:100% !important;
    padding:10px 18px !important;
  }
}




/* =========================
   НЕАКТИВНІ РОЗМІРИ
========================= */
:is(.t-store,.t-catalog) label.t-product__option-item.t-product__option-item_simple{
  overflow:hidden;
}

:is(.t-store,.t-catalog) label.t-product__option-item.t-product__option-item_simple:has(input[disabled]),
:is(.t-store,.t-catalog) label.t-product__option-item.t-product__option-item_simple.t-product__option-item_disabled{
  opacity:0.65 !important;
}

:is(.t-store,.t-catalog) label.t-product__option-item.t-product__option-item_simple:has(input[disabled])::after,
:is(.t-store,.t-catalog) label.t-product__option-item.t-product__option-item_simple.t-product__option-item_disabled::after{
  content:"";
  position:absolute;
  top:50%;
  left:10%;
  width:80%;
  height:1px;
  background:rgba(0,0,0,0.35);
  transform:rotate(-35deg);
  pointer-events:none;
  z-index:3;
}

:is(.t-store,.t-catalog) label.t-product__option-item.t-product__option-item_simple:has(input[disabled]) .t-product__option-title,
:is(.t-store,.t-catalog) label.t-product__option-item.t-product__option-item_simple.t-product__option-item_disabled .t-product__option-title{
  color:#999 !important;
}


/* =========================
   НОВА ПОШТА — стилі віджета корзини
   знаходяться в HTML-коді для вставки у HEAD
========================= */


/* =========================
   НОВИЙ БЛОК КАТАЛОГУ ST340 — вирівнювання зі старим
========================= */
/* бейджики притиснуті до лівого краю фото (у новому блоці є свій відступ 10px) */
.t-catalog__card__mark-wrapper{
  margin:0 !important;
}
/* проміжок між кнопками «Детальніше» і «Додати в корзину» — як у старому блоці */
.t-catalog__card__btns-wrapper{
  row-gap:18px !important;
}
/* кнопки в картці на комп'ютері/планшеті: в один ряд на всю ширину картки, більші
   (на телефоні нічого не змінюється) */
@media screen and (min-width:641px){
  .t-catalog__card__btns-wrapper{
    width:100% !important;
    flex-wrap:wrap !important;
    column-gap:10px !important;
    row-gap:10px !important;
  }
  .t-catalog__card__btns-wrapper > .t-catalog__card__btn{
    flex:1 1 150px !important;
    min-width:0 !important;
    height:50px !important;
    padding:0 12px !important;
    box-sizing:border-box !important;
    justify-content:center !important;
    font-size:15px !important;
  }
}
/* хлібні крихти каталогу ховаємо лише у списку товарів (зверху є свої);
   у картці товару вони інші (.t-catalog__prod-popup__breadcrumbs) і лишаються */
.t-catalog__breadcrumbs.t-catalog__breadcrumbs_position_above_title:not(.t-catalog__prod-popup__breadcrumbs *){
  display:none !important;
}

/* ---- перемикання сторінок каталогу ---- */
/* службовий елемент після останньої картки давав зайвий «ряд» + 90px порожнечі */
#allrecords .t-catalog .t-catalog__card-list::after{
  display:none !important;
}
#allrecords .t-catalog .t-catalog__pagination{
  flex-wrap:wrap !important;
  justify-content:center !important;
  align-items:center !important;
  gap:8px !important;
  margin:40px 0 0 !important;
  padding:26px 0 0 !important;
  border-top:1px solid #e8e8e8 !important;
}
/* підпис «Сторінка 2 з 3» */
#allrecords .t-catalog .t-catalog__pagination::before{
  content:"Сторінка " attr(data-active-page) " з " attr(data-total-pages);
  flex:0 0 100%;
  text-align:center;
  font-family:var(--t-text-font,Arial);
  font-size:13px;
  letter-spacing:.02em;
  color:#8c8c8c;
  margin-bottom:8px;
}
#allrecords .t-catalog .t-catalog__pagination .t-catalog__pagination__item{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid #d9d9d9 !important;
  border-radius:2px !important;
  background:#fff !important;
  color:#070707 !important;
  opacity:1 !important;
  font-size:15px !important;
  line-height:1 !important;
  cursor:pointer;
}
#allrecords .t-catalog .t-catalog__pagination .t-catalog__pagination__item:hover{
  border-color:#070707 !important;
}
#allrecords .t-catalog .t-catalog__pagination .t-catalog__pagination__item_active{
  background:#070707 !important;
  border-color:#070707 !important;
  color:#fff !important;
}
/* «…» між номерами — без рамки */
#allrecords .t-catalog .t-catalog__pagination .t-catalog__pagination__item:not([data-page-num]):not([data-control-type]){
  border-color:transparent !important;
  cursor:default;
}
/* на комп'ютері — по центру колонки з товарами, а не під лівою панеллю */
@media screen and (min-width:961px){
  #allrecords .t-catalog .t-catalog__cont-w-filter:has(.t-catalog__sidebar) > .t-catalog__pagination{
    margin-left:270px !important;
  }
}
