/*СКИДКА в карточке товара слева*/

.t-catalog__card__mark-wrapper {
    left: 20px !important;
    top: 20px !important;
}

.t-catalog__card__mark {
    border-radius: 0px !important;
    height: 24px !important;
    width: 44px !important;
    font-family: 'Unageo' !important;
    font-size: 13px !important;
}


/* Выравнивание заголовка и цены в карточке*/
/* ссылка товара */
.js-product .t-catalog_card_wrap-txt-and-opts > a {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-decoration: none !important;
}

/* строка: название + цена */
.js-product .t-catalog_card__textwrapper {
  display: table !important;
  width: 100% !important;
  table-layout: fixed !important;
}

/* название слева */
.js-product .js-catalog-prod-name {
  display: table-cell !important;
  width: 100% !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding-right: 12px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* цена справа */
.js-product .js-catalog-price-wrapper {
  display: table-cell !important;
  width: 1% !important;
  vertical-align: middle !important;
  text-align: right !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* внутренности цены в строку */
.js-product .js-catalog-price-wrapper > * {
  display: inline-block !important;
  vertical-align: baseline !important;
  margin: 0 !important;
}

/* если первым идет новая цена, а второй старая:
   визуально ставим старую перед новой */
.js-product .js-catalog-price-wrapper > *:first-child {
  margin-left: 10px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  color: #556b2f !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-left: 8px !important;
}

.js-product .js-catalog-price-wrapper > *:last-child {
  font-size: 14px !important;
  line-height: 1 !important;
  color: #9aa08c !important;
  text-decoration: line-through !important;  
}

/* разворачиваем порядок элементов внутри цены */
.js-product .js-catalog-price-wrapper {
  direction: rtl !important;
  text-align: right !important;
}

/* возвращаем нормальное направление текста у самих цен */
.js-product .js-catalog-price-wrapper > * {
  direction: ltr !important;
  display: inline-block !important;
  vertical-align: baseline !important;
}


/* Код написан с помощью cascad.cc */


.t-item .t-catalog__card__btns-wrapper{
     max-width:100%;
     flex-direction:row;
     display:grid;
     flex:1 1 0%;
     align-self:flex-start;
     float:left;
     grid-template-columns:1fr 1fr;
     column-gap:0px;
     clear:none;
     align-content:normal;
     justify-content:normal;
     margin-right:0px;
}

.js-product-img, .t-catalog__card__bgimg_second  {
    border: 1px solid #CFD7C7 !important;
}

#allrecords .t1291 .js-catalog .js-catalog-cont-w-filter .t-catalog__cont-wrapper .js-catalog-grid-cont .swiper-backface-hidden 
#swiper-wrapper-1d6cc83559106c7bd .t-item .t-catalog__card__wrap_txt-and-btns .t-catalog__card__btns-wrapper {
    grid-template-rows:auto !important;
    grid-template-columns:1fr 1fr !important;
}

.t-item .t-btnflex_type_button2{
    margin-right:0px;
}

.t-item .t-catalog__card__wrap_txt-and-btns .t-catalog__card__btns-wrapper .t-btnflex_type_button2 span{
    flex:0 1 auto !important;
}


@media (max-width:959px){

     .t-item .t-catalog__card__btns-wrapper{
          position:static !important;
          grid-template-columns:50% 50% !important;
          width:100% !important;
     }

#allrecords .t1291 .js-catalog .js-catalog-cont-w-filter .t-catalog__cont-wrapper .js-catalog-grid-cont .swiper-backface-hidden 
#swiper-wrapper-1d6cc83559106c7bd .t-item .t-catalog__card__wrap_txt-and-btns .t-catalog__card__btns-wrapper {
    grid-template-columns:50% 50% !important;
 }
}



.js-product-edition-option-name {
    display: none !important;
}

/* контейнер карточки */
.t-catalog__card {
    position: relative;
}

/* блок с размерами */
.js-product .t-product__option .t-product__option-variants_custom {
    -webkit-flex-wrap: nowrap !important;
    -ms-flex-wrap: nowrap !important;
    flex-wrap: nowrap !important;
}

.t-catalog__card .t-product__option {
    position: absolute;
    bottom: 120px !important;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(252, 255, 246, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid #949B87 !important;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.js-product .t-product__option-variants_buttons .t-product__option-item_simple {
    background-color: rgba(252, 255, 246, 0.0001) !important;
    /*border: 1px solid #4A5D2C;*/
    margin-bottom: 0px !important;
    min-height: 24px !important;
    min-width: 30px !important;
    padding: 7px;
}
.js-product .t-product__option-variants_buttons .t-product__option-item
 {
    margin-bottom: 0px !important;
    margin-right: 0px !important;
}

.t-catalog__card__prod-controls-wrapper:has(*) {
    padding-top: 0px !important;
}

.t-product__option-item {
    font-size: 14px !important;
    border: none !important;
    padding: 4px 6px;
    color: #2B3719 !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.t-product__option-item:hover {
    opacity: 0.6 !important;
    
}

.t-catalog__card:hover .t-product__option {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.t-product__option-item {
    white-space: nowrap !important;
    flex: 0 0 auto;
}


.t1291 .t-section__title {
    margin-bottom: 0px !important;
}


/*======================*/
/*================ИЗБРАННОЕ==============*/
.t1002__addBtn {
    background: transparent !important;
}