/* ДЕСКТОП: сдвиг каталога без уезда вправо */
@media (min-width: 981px) {
  .t-store__grid-cont_col-width_stretch {
    font-size: 0;
    box-sizing: border-box;
    width: calc(100% - 18%);   /* 14% слева + 4% справа */
    margin-left: 14%;
    margin-right: 4%;
  }
  .t-store__stretch-col_33 {
    width: calc((100% - 8%) / 3); /* 3 карточки + 2 промежутка по 4% */
    margin-left: 0;
    margin-right: 4%;
  }
  .t-store__stretch-col_33:nth-child(3n) {
    margin-right: 0;
  }
}
/* МОБИЛЬНЫЙ СБРОС */
@media (max-width: 980px) {
  .t-container_100,
  .t-store__grid-cont_col-width_stretch {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }
  .t-store__stretch-col_33 {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}
/* YAKOR: единый стиль бейджа "Наше ⚓" (и любых бейджей на карточках) */
:root{
  --yakor-blue: #354154; /* фирменный синий как на главной */
}

/* Универсально для разных store-блоков Tilda */
.t-store__card__mark,
.t776__mark, .t778__mark, .t786__mark{
  background: #fff !important;
  color: var(--yakor-blue) !important;
  border: 1px solid rgba(53,65,84,.25) !important;
}

/* если внутри бейджа есть вложенные элементы */
.t-store__card__mark *{
  color: inherit !important;
}

/* чуть аккуратнее на мобилке */
@media screen and (max-width: 960px){
  .t-store__card__mark,
  .t776__mark, .t778__mark, .t786__mark{
    border-width: 1px !important;
  }
}

/* Empty desktop cart badge in the shared header. */
@media (min-width: 1200px) {
  #rec512364127 [data-elem-id="1667818691153"]:has(+ .mycount .tn-atom:empty) > .tn-atom::after {
    content: "0";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font: 700 12px/1 var(--t-text-font, Arial), sans-serif;
    pointer-events: none;
  }
}

/* Mobile header spacing shared by all pages. */
@media(max-width:1199px) {
 #rec511226433 {padding-bottom:94px!important;}
 #rec511226433 .t282__container {height:auto!important;min-height:94px;}
 #rec511226433 .t282__menu__content {height:auto!important;min-height:94px;box-sizing:border-box;padding-top:12px!important;padding-bottom:12px!important;align-items:center;}
}
@media(min-width:1200px) { #rec511226433 {display:none!important;} }

/* Compact catalog cards; native shop controls keep their event handlers. */
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card-list {row-gap:32px!important;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__mark-wrapper {top:8px!important;left:8px!important;right:auto!important;max-width:calc(100% - 60px);}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__mark {
 display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap!important;
 width:auto!important;min-width:0!important;max-width:100%;height:24px!important;min-height:0!important;
 padding:0 8px!important;border-radius:5px!important;font-size:11px!important;line-height:22px!important;
 font-weight:500!important;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;
}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t1002__addBtn {
 width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;
 top:0!important;right:0!important;margin:0!important;padding:0!important;border:0!important;
 display:flex!important;align-items:center;justify-content:center;background:transparent!important;box-shadow:none!important;border-radius:0!important;
}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t1002__addBtn svg {width:22px!important;height:22px!important;filter:drop-shadow(0 0 1px white);}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t1002__addBtn:focus-visible {outline:2px solid #00225f;outline-offset:-3px;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__textwrapper {padding-top:10px!important;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__title {font-size:15px!important;line-height:1.3!important;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__price-wrapper {margin-top:6px!important;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__descr {margin-top:6px!important;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__prod-controls-wrapper {padding-top:8px!important;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-product__option {margin:4px 0!important;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-product__option-item_simple {padding:6px!important;margin:0 4px 4px 0!important;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__btns-wrapper {margin-top:8px!important;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont :is(.t-store__card__btn,.t-store__prod__quantity) {min-height:40px!important;height:40px!important;margin-bottom:0!important;box-sizing:border-box;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__btn {padding-top:7px!important;padding-bottom:7px!important;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__prod__quantity-input {height:100%!important;}
@media(max-width:1199px) {
 #allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card-list {row-gap:28px!important;}
 #allrecords:not([data-product-page="y"]) .js-store-grid-cont .t1002__addBtn {width:44px!important;height:44px!important;}
 #allrecords:not([data-product-page="y"]) .js-store-grid-cont :is(.t-store__card__btn,.t-store__prod__quantity) {min-height:44px!important;height:44px!important;}
 #allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-product__option-item_simple {min-height:32px;box-sizing:border-box;}
}
@media(max-width:639px) {
 #allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__title {font-size:14px!important;}
}

#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card {display:flex;flex-direction:column;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__wrap_txt-and-btns {display:flex;flex-direction:column;flex:1;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .store__card__wrap_txt-and-opts {flex:1;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__btns-wrapper {margin-top:auto!important;padding-top:8px;}
#allrecords:not([data-product-page="y"]) .js-store-grid-cont .t-store__card__title {overflow-wrap:anywhere;}
