.product-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-info > div {
  font-size: 20px;
  margin-bottom: 10px;
}

.before-after {
  position: relative;
  width: 300px;
  height: 400px;
  background: url('https://thumb.tildacdn.com/tild6464-3666-4630-a466-333230663661/-/resize/467x/-/format/webp/teeth-2.jpg') no-repeat center;
  background-size: cover; /* чтобы изображение полностью покрывало область */
}

.before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* начальное положение */
  height: 100%;
  background: url('path_to_before_image.jpg') no-repeat center;
  z-index: 2;
}

.slider {
  position: absolute;
  top: 0;
  left: 50%; /* начальное положение */
  width: 5px;
  height: 100%;
  background: white;
  cursor: ew-resize;
  z-index: 3;
}

.price-container {
  display: flex;
  justify-content: space-between;
}

/* и другие стили для деталей продукта */


    .t-store__card::after {
    content: attr(data-product-inv) " шт на складе";
    font-family: 'Roboto',Arial,sans-serif;
    font-size: 12px;
    color: #878787;
    position: absolute;
    margin-top: 4px;
    width: 250px;
}
.t-store__card__btns-wrapper {
    margin-top: 40px !important;
}
.js-store-prod-sold-out {
    display: none;
}

.js-store-product.js-product::before {
    content: attr(data-product-inv) " шт на складе";
    font-family: 'Roboto',Arial,sans-serif;
    font-size: 14px;
    color: #000;
    background-color: #ededed;
    margin-left: 20px;
    padding: 3px 8px;
    position: absolute;
    top: -5px;
}
.t-store__prod-popup__name{
    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: 0px;
    left: 50%;
    transform: translateX(-50%);
}
.t-store__prod-popup__slider.js-store-prod-slider {
    padding-top: 30px;
}
}

    

