.gallery-h1 {
  font-size: 35px;
  font-family: Bold;
  line-height: 130%;
  color: #ffffff;
  width: 100%;
  padding: 0 0 10px 0;
  margin: 0;
}

.gallery-h1::after {
  content: none;
}

.gallery-subtitle {
  font-size: 18px;
  line-height: 130%;
}

.border-bottom {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #B58352;
  background: linear-gradient(90deg, rgba(181, 131, 82, 0) 0%, #B58352 100%);
}

.container {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  padding: 160px 20px 0 20px;
}

:root {
  --imgHeight: 260px;
}

.img-background {
  position: absolute;
  top: 70px;
  left: 0;
  max-width: 1920px;
  width: 100%;
  height: var(--imgHeight);
  background: url(../img/bg.webp);
}

.product-head {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1370px;
  margin: 0 auto;
}
.product-head .text-section {
  max-width: 632px;
  width: max-content;
}

.img-section {
  max-width: 660px;
  width: 100%;
  display: flex;
  gap: 10px;
}

.img-sidebar {
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.img-sidebar img {
  max-width: 100px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.img-sidebar img:hover {
  cursor: pointer;
}

.shown-img {
  position: relative;
  aspect-ratio: 1;
  width: calc(100% - 110px);
}
.shown-img img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shown-img .currentImg {
  z-index: 6;
}

.img-animation-start {
  animation-name: img-appearence;
  animation-duration: 500ms;
}

.img-animation-const {
  animation-name: img-transition;
  animation-duration: 1s;
}

@keyframes img-appearence {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes img-transition {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.plashka-info {
  top: 0;
  left: 0;
  font-family: Bold;
}

.property-title {
  font-size: 18px;
  font-family: SemiBold;
  line-height: 130%;
  margin-bottom: 10px;
}

.text-section-row {
  margin: 20px 0 48px 0;
  display: flex;
  align-items: center;
}
.text-section-row .presence {
  display: flex;
  align-items: center;
  color: #ffffff;
}
.text-section-row .presence svg {
  width: 16px;
  height: 16px;
  margin: 1px 5px 0 0;
}

.sku {
  color: #ffffff;
  margin-right: 32px;
}

.product-property {
  margin: 15px 0;
}

.property-text {
  display: flex;
  flex-wrap: wrap;
  font-size: 18px;
  line-height: 130%;
}

.property-value {
  width: 100%;
  position: relative;
  margin-left: 24px;
}
.property-value::before {
  position: absolute;
  content: "";
  width: 8px;
  min-width: 8px;
  height: 8px;
  background-color: #B58352;
  margin-left: -14px;
  top: 8px;
}

.price {
  font-size: 25px;
  font-family: Bold;
  line-height: 130%;
  margin: 41px 0 46px 0;
}
.price span {
  font-size: 18px;
  font-family: Regular;
  color: #878E91;
}

.btn-section {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.btn-section button {
  justify-content: center;
  width: 100%;
}

.btn-section button:last-child {
  background: none;
  border: 2px solid #B58352;
}
.btn-section button:last-child span {
  color: #B58352;
}
.btn-section button:last-child svg {
  fill: #B58352;
}

.dot {
  margin: 0 6px;
}

.gallery {
  max-width: 1620px;
  margin: 100px auto;
}

.gallery-container {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}

.gallery-head {
  width: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #F9FAFB;
  z-index: 2;
  min-height: 610px;
  position: relative;
}
.gallery-head::before {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: 3500px;
  min-height: 610px;
  background: #F9FAFB;
  content: "";
}

.gallery-body {
  width: 60%;
}

.gallery-subheader {
  max-width: 240px;
  line-height: 1.25;
}

.gallery-slide {
  position: relative;
  width: fit-content !important;
}
.gallery-slide video {
  width: 400px;
  aspect-ratio: 4/6;
  object-fit: cover;
}

.gallery-navigation {
  align-self: end;
  margin-top: 204px;
  display: flex;
}

.scrollbar-wrapper {
  width: 50vw;
  background-color: red;
  position: relative;
  margin-left: 52vw;
}

.plashka-video {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #212121;
  opacity: 30%;
  transition: ease 0.5s;
  z-index: 2;
}

.icon-play {
  position: absolute;
  width: 71px;
  height: 68px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 1;
  transition: ease 0.5s;
}
.icon-play svg {
  width: 100%;
  height: 100%;
  fill: #ffffff;
}

.plashka-video.hidden, .icon-play.hidden {
  opacity: 0;
  transition: ease 0.5s;
}

.plashka-video.disabled, .icon-play.disabled {
  display: none;
}

@media (max-width: 1200px) {
  .gallery-container {
    flex-direction: column;
  }
  .gallery-body {
    width: 100%;
  }
  .gallery-head {
    width: 100%;
    min-height: unset;
    margin-bottom: 32px;
    padding: 0;
    align-items: center;
  }
  .gallery-head::before {
    display: none;
  }
  .h2 {
    margin-bottom: 32px;
  }
  .gallery-subheader {
    max-width: unset;
  }
  .gallery-navigation {
    display: none;
  }
}
@media (max-width: 768px) {
  .container:nth-child(6) {
    margin: 50px 0;
    padding: 0 16px;
  }
  .gallery-col:last-child {
    padding-right: 0;
    padding: 0 0 32px 0;
  }
}
.product-description {
  max-width: 1400px;
  margin: 100px auto 0 auto;
}
.product-description button {
  float: bottom;
  margin: 0 auto;
}

.description-title {
  width: 100%;
  display: flex;
}

.title-tab {
  position: relative;
  flex: 1 1 auto;
  padding: 0 10px 24px 10px;
  text-align: center;
  font-size: 25px;
  font-family: Bold;
  line-height: 130%;
  transition: ease 0.5s;
}
.title-tab .border-bottom {
  height: 4px;
  background: #B58352;
  transition: ease 0.5s;
}

.title-tab.disabled {
  transition: ease 0.5s;
  color: #CED2D1;
}
.title-tab.disabled span {
  transition: ease 0.5s;
  background: #CED2D1;
}

.title-tab:hover {
  cursor: pointer;
}

.description-text {
  position: relative;
  margin: 50px 0;
}
.description-text li {
  position: relative;
  list-style-type: none;
  line-height: 130%;
  margin: 12px 0;
  padding: 0 0 0 20px;
}
.description-text li::before {
  position: absolute;
  top: 10px;
  left: 0;
  content: "";
  width: 12px;
  height: 12px;
  background: #B58352;
}
.description-text p {
  font-size: 16px;
  line-height: 130%;
}

.description-text-inner {
  background: #F9FAFB;
  z-index: 5;
  width: 100%;
  height: max-content;
  opacity: 0%;
  transition: opacity ease 0.5s;
}
.description-text-inner figure {
  width: 100%;
  margin: 50px 0;
  aspect-ratio: 14/6;
}
.description-text-inner figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-features-container {
  display: none;
  background: #F9FAFB;
  z-index: 5;
  width: calc(100% + 20px);
  line-height: 130%;
  opacity: 0%;
}

.description-text-inner.shown, .product-features-container.shown {
  right: 0;
  z-index: 7;
  opacity: 100%;
  transition: ease 0.5s;
}

.features-title {
  margin: 0 0 30px 0;
  font-size: 18px;
  font-family: Bold;
}

.feature-point {
  display: flex;
  gap: 100px;
  font-size: 16px;
  margin: 20px 0;
}

.feature-name {
  max-width: 131px;
  width: 100%;
  color: #878E91;
}

.feature-text {
  width: max-content;
}

@media (max-width: 768px) {
  .description-text-inner figure {
    margin: 32px 0;
  }
}
@media (max-width: 480px) {
  .description-text-inner figure {
    margin: 16px 0;
  }
}
.similar-products {
  max-width: 1400px;
  margin: 92px auto 200px auto;
}
.similar-products a {
  margin: 0 auto;
}
.similar-products .title {
  position: relative;
  width: max-content;
  padding: 0 50px 13px 0;
  font-size: 40px;
  font-family: Bold;
  line-height: 130%;
}
.similar-products .border-bottom {
  left: unset;
  right: 0;
  width: 232px;
}

.similar-products-inner {
  display: flex;
  flex-wrap: wrap;
  margin: 50px 0;
  gap: 50px;
}

.catalog-item {
  display: block;
  position: relative;
  max-width: calc((100% - 150px) / 4);
  box-sizing: border-box;
}
.catalog-item-inner {
  height: 100%;
  overflow: hidden;
  position: relative;
  color: #000;
  text-decoration: none;
}
.catalog-item .title {
  width: 100%;
  margin: 24px 0;
  font-size: 20px;
  font-family: Bold;
}
.catalog-item .presence {
  font-size: 18px;
  font-family: regular;
  margin-top: -12px;
  display: flex;
  align-items: center;
}
.catalog-item .presence svg {
  width: 16px;
  height: 16px;
  margin: 0 5px 0 0;
}
.catalog-item .price {
  font-family: Bold;
  margin: 24px 0 82px 0;
}
.catalog-item .sale-price {
  color: #FE2E15;
}
.catalog-item .sale-price span {
  margin: 0 0 0 24px;
  font-family: Regular;
  color: #85888A;
  text-decoration: line-through;
}
.catalog-item .btn {
  position: absolute;
  width: 100%;
  bottom: 0;
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  opacity: 0;
  transition: ease 0.5s;
}

.svg-available {
  fill: #B58352;
}

.svg-on-order {
  fill: #B58352;
}

.catalog-item-img {
  aspect-ratio: 1;
  overflow: hidden;
}
.catalog-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: ease 0.5s;
}

.catalog-item:hover {
  cursor: pointer;
}
.catalog-item:hover .catalog-item-img img {
  transform: scale(1.1);
}
.catalog-item:hover .btn {
  cursor: pointer;
  bottom: 0;
  opacity: 100%;
  transform: translateY(0%);
  transition: ease 0.5s;
}

@media (max-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  .product-head {
    align-items: center;
  }
  .img-section {
    flex-direction: column-reverse;
  }
  .img-sidebar {
    width: 100%;
    height: max-content;
    flex-direction: row;
  }
  .shown-img {
    width: 100%;
  }
  .btn-section button {
    width: calc((100% - 20px) / 2);
  }
  .img-background {
    display: none;
  }
  .sku {
    position: relative;
  }
  .sku::before {
    position: absolute;
    content: "";
    width: 1500px;
    height: 1200px;
    z-index: -1;
    background: url(../img/bg.webp);
    bottom: -26px;
    left: -750px;
  }
  .swiper-scrollbar {
    transform: translateX(-25%);
  }
}
@media (max-width: 1200px) {
  .product-head .text-section {
    max-width: 50%;
  }
  .gallery-h1 {
    font-size: 30px;
  }
  .price {
    margin: 20px 0;
  }
  .btn-section button {
    padding: 14px 16px;
  }
  .similar-products-inner {
    gap: 20px;
  }
  .catalog-item {
    max-width: calc((100% - 60px) / 4);
  }
}
@media (max-width: 1000px) {
  .catalog-item {
    position: relative;
    max-width: calc((100% - 40px) / 3);
  }
}
@media (max-width: 768px) {
  .container {
    padding: 88px 16px 0 16px;
  }
  .product-head {
    flex-direction: column;
    gap: 0;
  }
  .product-head .text-section {
    max-width: 100%;
    margin: 20px 0 0 0;
  }
  .product-head .btn-section {
    gap: 12px;
  }
  .product-head .btn-section button {
    padding: 20px 20px;
  }
  .product-gallery {
    margin: 100px 0;
    padding-bottom: 32px;
  }
  .gallery-h1 {
    color: #212121;
    font-size: 24px;
    line-height: 1.15;
  }
  .text-section-row {
    margin: 4px 0 28px 0;
    font-size: 16px;
  }
  .text-section-row .presence {
    color: #212121;
  }
  .text-section-row .presence svg {
    width: 14px;
    height: 14px;
  }
  .sku {
    color: #212121;
  }
  .sku::before {
    display: none;
  }
  .title-tab {
    font-size: 20px;
  }
  .similar-products-inner {
    flex-direction: column;
    margin: 25px 0;
  }
  .similar-products {
    margin-bottom: 100px;
  }
  .similar-products .title {
    font-size: 24px;
  }
  .catalog-item {
    max-width: 100%;
  }
  .catalog-item .price {
    margin: 24px 0 42px 0;
  }
  .catalog-item .btn {
    position: static;
    transform: none;
    opacity: 100%;
  }
  .catalog-item:hover .catalog-item-img img {
    transform: none;
  }
  .img-section {
    gap: 6px;
  }
  .img-sidebar {
    gap: 6px;
  }
  .property-text {
    flex-direction: column;
    font-size: 16px;
  }
  .property-value::before {
    top: 50%;
    transform: translateY(-50%);
  }
  .property-title {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .feature-point {
    gap: 30px;
  }
}
@media (max-width: 480px) {
  .btn-section {
    flex-direction: column;
  }
  .btn-section button {
    width: 100%;
  }
  .title-tab {
    font-size: 18px;
  }
  .product-description button {
    padding: 16px 20px;
  }
  .product-description button span {
    margin: 0;
  }
  .description-text {
    margin-top: 20px;
  }
  .gallery-subtitle {
    margin-bottom: 30px;
  }
  .catalog-item .title {
    font-size: 18px;
  }
  .catalog-item .presence {
    font-size: 16px;
  }
  .similar-products .title {
    font-size: 18px;
  }
}