/* Product Page Styles */

/* Breadcrumbs */
.breadcrumbs {
  padding: 15px 0;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: #666;
}

.breadcrumbs__link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
  color: var(--primary-red);
}

.breadcrumbs__separator {
  margin: 0 3px;
  color: #666;
}

.breadcrumbs__current {
  color: #666;
  font-weight: 500;
}

/* Product Title */
.product-title {
  padding: 10px 0 10px;
  margin-right: 75px;
}

.product-title__text {
  font-family: var(--font-primary);
  font-size: 34px;
  font-weight: 700;
  color: #242424;
  line-height: 1.47;
}

/* Product Content */
.product-content {
  background: #fff;
  padding-bottom: 30px;
  position: relative;
}

.product-content::before,
.product-content::after {
  content: '';
  position: absolute;
  top: 0;
  width: 370px;
  height: 100%;
  background: url('/images/templates/grunge-wall.png') repeat-y;
  background: url('../css/images/templates/grunge-wall.png') repeat-y;
  opacity: 0.5;
  pointer-events: none;
}

.product-content::before {
  left: 0;
}

.product-content::after {
  right: 0;
}

/* Product Article */
.product-article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: var(--dark-footer);
  border-radius: 10px;
  margin-bottom: 30px;
}

.product-article__text {
  font-family: var(--font-primary);
  font-size: 33px;
  font-weight: 700;
  color: #ebebeb;
}
.product-article__text span{
  text-transform: uppercase;
}
.product-article__btn {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(90deg, var(--primary-red) 0%, #242424 100%);
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  transform: translate(0%, 0%);
}

.product-article__btn:hover {
  opacity: 0.9;
}
.product-article__btn svg {
  position: absolute;
  left: 0;
  top: 0;
  fill: none;
  stroke: #fff;
  stroke-dasharray: 150 480;
  stroke-dashoffset: 150;
  transition: 1s ease-in-out;
  border-radius: 10px;
}

.product-article__btn:hover {
  transition: 1s ease-in-out;
  background: #ea3636;
}

.product-article__btn:hover svg {
  stroke-dashoffset: -480;
}

.product-article__btn span {
  color: white;
  font-size: 18px;
  font-weight: 100;
}


/* Product Main */
.product-main {
  display: flex;
  gap: 30px;
}

/* Product Gallery */
.product-gallery {
  flex: 0 0 689px;
  max-width: 689px;
}

.product-gallery__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-gallery__arrow {
  width: 47px;
  height: 47px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.product-gallery__arrow:hover {
  opacity: 1;
}

.product-gallery__image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 333px;
}

.product-gallery__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: flex;
  gap: 24px;
}

.product-gallery__thumb {
  width: 86px;
  height: 86px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease, border 0.3s ease;
}

.product-gallery__thumb--active,
.product-gallery__thumb:hover {
  opacity: 1;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 55px;
  align-items: end;
}

.product-info__row {
  display: flex;
  gap: 20px;
}

/* Product OEM */
.product-oem {
  background: #ebebeb;
  border-radius: 10px;
  padding: 15px 20px;
  flex: 0 0 367px;
}

.product-oem__title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  color: #242424;
  margin-bottom: 10px;
}

.product-oem__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-oem__list li {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 500;
  color: #242424;
  text-align: right;
  line-height: 1.75;
}

/* Product Progress */
.product-progress {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 10px;
}

.product-progress__dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--primary-red) 0%, #242424 100%);
}

/* Product Question Button */
.product-question-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 30px;
  background: var(--primary-red);
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
  max-width: 318px;
}

.product-question-btn:hover {
  background: #a51420;
}

/* Product Install Button */
.product-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  background: linear-gradient(90deg, var(--primary-red) 0%, #242424 100%);
  border-radius: 15px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  max-width: 180px;
}

/* Product Side Slider */
.product-side-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: absolute;
  right: 60px;
  top: 200px;
}

.product-side-slider__arrow {
  width: 47px;
  height: 47px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.product-side-slider__arrow:hover {
  opacity: 1;
}

.product-side-slider__arrow--up img {
  transform: rotate(-90deg);
}

.product-side-slider__arrow--down img {
  transform: rotate(90deg);
}

.product-side-slider__thumb {
  width: 121px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.product-side-slider__thumb--active,
.product-side-slider__thumb:hover {
  opacity: 1;
  border: 2px solid var(--primary-red);
}

.product-side-slider__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Specs */
.product-specs {
  background: var(--dark-footer);
  padding-top: 30px;
  border-radius: 10px;
  margin: 0 20px 30px;
}

.product-specs__wrapper {
  max-width: 1050px;
  margin: 0 auto;
}

.product-specs__columns {
  display: flex;
  gap: 80px;
}

.product-specs__column {
  flex: 1;
}

.product-specs__title {
  font-family: var(--font-primary);
  font-size: 27px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 40px;
  padding-left: 15px;
}

.product-specs__table {
  display: flex;
  flex-direction: column;
  row-gap: 5px;
}

.product-specs__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
  padding-left: 15px;
  height: 32px;
  padding-right: 15px;
}

.product-specs__row--light {
  background: #fbfcfe;
}

.product-specs__row--dark {
  background: #efefef;
}

.product-specs__label {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 500;
  color: #696565;
}

.product-specs__value {
  font-family: var(--font-primary);
  font-size: 25px;
  font-weight: 500;
  color: #242424;
}

/* Product Certificates */
.product-certificates {
  padding: 30px 0;
}

.product-certificates__grid {
  display: flex;
  gap: 38px;
  margin-bottom: 40px;
  justify-content: center;
  margin-top: 40px;
}

.product-certificate {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  background: #fbfcfe;
  border: 1px solid var(--primary-red);
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.product-certificate:hover {
  box-shadow: 0 5px 15px rgba(195, 22, 37, 0.2);
}

.product-certificate__icon {
  width: 37px;
  height: 48px;
  object-fit: contain;
}

.product-certificate__info {
  display: flex;
  flex-direction: column;
}

.product-certificate__name {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 500;
  color: var(--primary-red);
  line-height: 1.75;
}

.product-certificate__size {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 500;
  color: #242424;
  line-height: 1.75;
}

.product-logo {
  display: flex;
  justify-content: flex-end;
}

.product-logo img {
  max-width: 328px;
}

/* Product Bottom */
.product-bottom {
  padding: 40px 0;
  margin-left:100px ;
}

.product-bottom__wrapper {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.product-description {
  max-width: 616px;
}

.product-description__title {
  font-family: var(--font-primary);
  font-size: 27px;
  font-weight: 500;
  color: #242424;
  margin-bottom: 15px;
}

.product-description__content p {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 500;
  color: #666;
  line-height: 1.9;
  margin: 0;
}

/* Product Actions */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.product-actions__btn {
  padding: 10px 30px;
  background: linear-gradient(90deg, var(--primary-red) 0%, #242424 100%);
  border: none;
  border-radius: 15px;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease;
  min-width: 180px;
}

.product-actions__btn:hover {
  opacity: 0.9;
}

/* Recently Viewed */
.recently-viewed {
  padding: 40px 0 60px;
  background: #f5f5f5;
}

.recently-viewed__title {
  font-family: var(--font-primary);
  font-size: 29px;
  font-weight: 500;
  color: #000;
  margin-bottom: 40px;
}

.recently-viewed__slider {
  display: flex;
  align-items: center;
  gap: 30px;
}

.recently-viewed__grid {
  display: flex;
  gap: 40px;
  flex: 1;
}

.recently-viewed__card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  max-width: 266px;
  margin: 10px;
}
.recently-viewed__card:hover {
  box-shadow: 2.71px 3.61px 3.61px 2.71px #00000040;
}
.recently-viewed__card a {
  text-decoration: none;
}

.recently-viewed__image {
  margin-bottom: 20px;
}

.recently-viewed__image img {
  max-height: 211px;
  object-fit: contain;
}

.recently-viewed__name {
  font-family: var(--font-primary);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--primary-red);
  line-height: 1.56;
}

.recently-viewed__arrow {
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.recently-viewed__arrow:hover {
  opacity: 1;
}
.product-main__oem{
  display: none;
}
.product-info__row{
  display: block;
}
/* Responsive */
@media (max-width: 1200px) {
  .product-main {
    flex-direction: column;
  }

  .product-gallery {
    flex: none;
    max-width: 100%;
  }

  .product-side-slider {
    position: static;
    flex-direction: row;
    margin-top: 20px;
  }

  .product-side-slider__arrow--up img {
    transform: rotate(180deg);
  }

  .product-side-slider__arrow--down img {
    transform: rotate(0);
  }

  .product-specs__columns {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .product-title__text {
    font-size: 28px;
  }

  .product-article {
    gap: 15px;
    text-align: center;
  }

  .product-article__text {
    font-size: 24px;
  }

  .product-info__row {
    flex-direction: column;
  }

  .product-oem {
    flex: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    column-gap: 20px;
    flex-wrap: wrap;
  }

  .product-certificates__grid {
    flex-direction: column;
  }

  .product-bottom__wrapper {
    flex-direction: column;
  }

  .product-actions {
    flex-direction: row;
  }
  .product-certificates__grid{
    gap: 10px;
  }
  .product-specs{
    margin-bottom: 0;
  }
  .product-bottom{
    margin-left: 50px;
  }
}

@media (max-width: 768px) {
  .product-title{
    margin: 0;
  }
  .product-main__oem{
    display: flex;
    padding-left: 15px;
    padding-right: 15px;
  }
  .product-info__row{
    display: none;
  }
  .product-article{
    margin-bottom: 0;
    padding: 10px 15px;
    flex-wrap: wrap;
    column-gap: 50px;
    align-items: center;
    justify-content: center;
  }
  .product-title__text {
    font-size: 22px;
  }
  .product-article__text {
    font-size: 20px;
  }
  .product-gallery__thumbs {
    flex-wrap: wrap;
    justify-content: center;
  }

  .product-specs__title {
    font-size: 22px;
  }

  .product-specs__label,
  .product-specs__value {
    font-size: 16px;
  }

  .product-description__title {
    font-size: 22px;
  }

  .product-description__content p {
    font-size: 16px;
  }

  .product-oem__title {
    margin-bottom: 0;
  }
  .product-oem__list{
    display: flex;
    column-gap: 20px;
  }
  .product-question-btn{
    display: flex;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding: 16px 35px;
  }
}

@media (max-width: 576px) {
  .product-gallery__arrow {
    width: 35px;
    height: 35px;
  }

  .product-gallery__thumb {
    width: 60px;
    height: 60px;
  }

  .product-actions {
    flex-direction: column;
    width: 100%;
  }

  .product-actions__btn {
    width: 100%;
  }

  .recently-viewed__card {
    width: 100%;
    max-width: 100%;
  }
}
.recently-viewed__slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.recently-viewed__grid {
  display: flex;
  transition: transform 0.3s ease-in-out; /* Для плавного скроллинга */
}

.recently-viewed__card {
  flex: 0 0 auto;
  width: 300px; /* Устанавливаем ширину для каждой карточки */
}

.recently-viewed__image img {
  height: 150px;
  width: 150px;
  display: block;
  margin: 0 auto;
}

.recently-viewed__arrow {
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.recently-viewed__arrow--prev {
  left: -10px;
}

.recently-viewed__arrow--next {
  right: -10px;
}

.recently-viewed__name {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
}
@media (max-width: 576px) {
  .recently-viewed__card {
    width: 200px;
    margin-right: 10px;
  }
}
@media (max-width: 400px) {
  .recently-viewed__card {
    width: 150px;
    margin-right: -10px;
  }
}