/* Карточка и попап не перекрывают текст */
.t-store__card,
.t-store__prod-popup,
.js-store-product.js-product {
    position: relative;
    z-index: auto;
    overflow: visible;
}

/* Если значение data-product-inv ПУСТОЕ */
.t-store__card[data-product-inv=""]::after {
    content: "под запрос";
    font-family: 'Unbounded', sans-serif;
    font-size: 9px;
    color: #878787;
    position: relative;
    display: block;
    margin-top: 4px;
}

/* Если значение есть */
.t-store__card:not([data-product-inv=""])::after {
    content: attr(data-product-inv) " шт минимальный тираж";
    font-family: 'Unbounded', sans-serif;
    font-size: 9px;
    color: #878787;
    position: relative;
    display: block;
    margin-top: 4px;
}

/* Кнопки под карточкой */
.t-storecardbtns-wrapper {
    margin-top: 40px !important;
}

/* Скрываем sold-out */
.js-store-prod-sold-out {
    display: none;
}

/* Подписи в попапе: под запрос */
.js-store-product.js-product[data-product-inv=""]::before {
    content: "под запрос";
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    color: #000;
    background-color: #ededed;
    padding: 3px 8px;
    display: inline-block;
    position: relative;
    margin-top: 5px;
    margin-right: 20px;
    z-index: 10;
}

/* Подписи в попапе: минимальный тираж */
.js-store-product.js-product:not([data-product-inv=""])::before {
    content: attr(data-product-inv) " шт минимальный тираж";
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    color: #000;
    background-color: #ededed;
    padding: 3px 8px;
    display: inline-block;
    position: relative;
    margin-top: 5px;
    margin-right: 20px;
    z-index: 10;
}

/* Заголовок попапа */
.t-storeprod-popupname {
    margin-top: 5px;
}

/* Смещения в разных режимах */
.js-store-product.js-product.t-store__product-snippet::before {
    margin-left: calc(50% + 20px);
}

@media screen and (max-width: 1240px) {
  .js-store-product.js-product::before {
      margin-left: 5px;
  }
  .js-store-product.js-product.t-store__product-snippet::before {
      margin-left: calc(50% - 10px);
  }
}

@media screen and (max-width: 980px) {
  .js-store-product.js-product.t-store__product-snippet::before {
      margin-left: calc(50% - 60px);
      top: -20px;
  }
}

@media screen and (max-width: 640px) {
  .js-store-product.js-product::before {
      margin-left: 5px;
      position: relative;
      top: 0;
      margin-left: 100px;
      transform: translateX(-50%);
  }
  .t-storeprod-popupslider.js-store-prod-slider {
      padding-top: 30px;
  }
}