.product_link_card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  background-color: #fafafa;
  border: none;
  text-decoration: none;
  transition: border 0.75s ease-out;
  /*  */
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  border-radius: 8px;
}

.product_link_card:hover {
  text-decoration: none;
  box-shadow: 0px 0px 8px #999;
}

.product_card_item_top {
  min-height: 300px;
}

.product_card_title {
  width: 100%;
  margin: 16px 0 0;
  padding: 0 16px 0;
  color: #444;
  text-decoration: none;
  font-size: 1.05rem;
}
/* обрезка текста */
.product_card_title,
.product_card_description,
.our-works-list li h4,
.our-works-list li p{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.product_card_title,
.our-works-list li h4{
  -webkit-line-clamp: 3; /* Обрезать текст до 3 строк */
}
.product_card_description,
.our-works-list li p{
  -webkit-line-clamp: 3; /* Обрезать текст до 3 строк */
}
/**/
p.selected_option{
  color: #444;
  margin: 5px 0 5px 0;
  font-size: 16px;
}
.product_card_description {
  margin: 8px 0 0;
  padding: 0 16px;
  overflow: hidden;
  color: #444;
  font-size: 16px;
}

.product_card_price {
  display: block;
  /*height: 45px;*/
  margin: 0;
  line-height: 26px;
  font-size: 19px;
  font-weight: bold;
  color: #000;
}
.product_link_card:hover .product_card_price {
  color: var(--main-active-red-color);
}
.product_card_price del{
  color: var(--main-active-red-color);
  font-size: 0.8em !important;
}
.product_card_price span{
  /*line-height: 45px;*/
}
.product_card_item_bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  /*align-items: center;*/
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 0;
  padding: 0 16px 16px;
}

.product_state {
  position: relative;
  display: block;
  width: 100%;
  height: 16px;
  margin: 0;
  padding-left: 24px;
  color: #000;
}

.product_state::after {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
}

.product_card_button {
  right: 0;
  width: 30px;
  height: 30px;
  padding: 6px 5px 0px 4px;
  background-color: transparent;
  border: 1px solid;
  border-radius: 50%;
  transition: transform 0.1s ease-in;
}

.product_state_default {
  border-color: #136acb;
}

.product_state_default svg {
  fill: #136acb;
}

.product_state_available {
  border-color: #419403;
}

.product_state_available svg {
  fill: #419403;
}

.product_state_none {
  border-color: #c0c0c0;
}

.product_state_none svg {
  fill: #c0c0c0;
}

.product_state_expected {
  border-color: rgba(255, 132, 1, 0.85);
}

.product_state_expected svg {
  fill: rgba(255, 132, 1, 0.85);
}

.product_card_button svg {
  width: 16px;
  height: 16px;
  -webkit-transition: -webkit-transform 0.25s ease-out;
  transition: -webkit-transform 0.25s ease-out;
  -o-transition: -o-transform 0.25s ease-out;
  -moz-transition: transform 0.25s ease-out, -moz-transform 0.25s ease-out;
  transition: transform 0.25s ease-out;
  transition: transform 0.25s ease-out, -webkit-transform 0.25s ease-out,
    -moz-transform 0.25s ease-out, -o-transform 0.25s ease-out;
}

.product_card_button:hover {
  border-color: var(--main-active-red-color);
  transform: scale(1.3);
}

.product_card_button:hover svg {
  fill: var(--main-active-red-color);
  cursor: pointer;
}

.product_card_image {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
}
.product_card_image:after {
  display: block;
  padding-top: 100%;
}

.product_card_image_content {
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
}

.product_card_image img {
  flex: 1 0 auto;
  width: 55%;
  height: 55%;
  margin-right: 4px;
}

.video-as-img {
  position: relative;
  flex: 1 0 auto;
  width: 55%;
  height: auto;
  margin-right: 4px;
}

.card-video {
  position: absolute;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.card-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-info {
  position: relative;
  flex: 1 0 auto;
  width: 55%;
  height: auto;
  background-color: #fff;
}

.card-info img {
  width: 100%;
  height: 100%;
}

.card-info-content {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fafafa;
}

@media screen and (min-width: 429px) {
  .product_card_image img {
    width: 100%;
    height: 100%;
    margin-right: 0;
  }
  .video-as-img {
    width: 100%;
    margin-right: 0;
  }
  .card-info,
  .card-video {
    width: 100%;
    height: 100%;
  }
  .product_card_title {
    margin: 8px 0 0;
    padding: 16px 16px 0;
  }
}

@media screen and (min-width: 768px) {
  /* Show as string */
  .row_string_btn {
    display: block;
    width: 23px;
    height: 23px;
    margin: 4px 0 0;
    background-size: 21px;
    background-repeat: no-repeat;
    border: none;
    text-decoration: none;
    cursor: pointer;
  }
  .product_card_list.as_string li {
    width: 100%;
    height: 148px;
  }
  .as_string .product_link_card {
    flex-direction: row;
  }
  .as_string .product_card_item_top {
    display: flex;
    flex-wrap: wrap;
    min-height: auto;
  }
  .as_string .product_card_image {
    position: absolute;
    width: 148px;
  }
  .as_string .product_card_item_top img {
    position: absolute;
    width: 148px;
    border-radius: 8px 0 0 8px;
  }
  .as_string .product_card_title,
  .as_string .product_card_description {
    padding-left: 172px;
  }
  .as_string .product_card_item_bottom {
    flex-direction: column;
    flex-shrink: 0;
  }
}

@media screen and (min-width: 1024px) and (hover) {
  .info-layer,
  .img-layer {
    position: relative;
    z-index: 3;
    width: 100%;
    opacity: 0.5;
  }
  .info-layer::after,
  .img-layer::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 0%;
    height: 4px;
    margin-left: 5%;
    background-color: #fff;
    border-radius: 3px;
  }
  .info-layer:hover::after,
  .img-layer:hover::after {
    background-color: red;
  }
  .product_card_image:after {
    content: "";
  }
  .product_card_image_content {
    position: absolute;
  }
  .product_link_card:hover .info-layer::after,
  .product_link_card:hover .img-layer::after {
    width: 95%;
  }
  .product_link_card:hover button {
    animation: card-cart-btn-wawe 1s ease;
  }
  .layer-0:hover ~ .el-0 {
    z-index: 2;
  }
  .layer-1:hover ~ .el-1 {
    visibility: visible;
    z-index: 2;
  }
  .layer-2:hover ~ .el-2 {
    visibility: visible;
    z-index: 2;
  }
  .layer-3:hover ~ .el-3 {
    visibility: visible;
    z-index: 2;
  }
  .layer-4:hover ~ .el-4 {
    visibility: visible;
    z-index: 2;
  }
  .layer-5:hover ~ .el-5 {
    visibility: visible;
    z-index: 2;
  }
  .info-layer:hover ~ .card-info {
    visibility: visible;
    z-index: 2;
  }
  .product_card_image img {
    position: absolute;
  }
  .page-content-bottom .product_card_image img {
    position: relative;
  }
  .card-info,
  .el-1,
  .el-2,
  .el-3,
  .el-4,
  .el-5 {
    visibility: hidden;
  }
  .video-as-img {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  .card-video {
    position: absolute;
  }
  .card-info {
    position: absolute;
    height: 100%;
  }
}

@keyframes card-cart-btn-wawe {
  0% {
    transform: scaleX(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scaleX(1);
  }
}
