﻿.product-page {
  background-color: #ffffff;
  padding-bottom: 60px;
}
.product-page__container {
  padding-top: 0;
}
.product-page__breadcrumbs {
  padding-top: 60px;
}
.product-page__title {
  margin-top: 23px;
  font-family: "Tilda", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: #1a1a1a;
  max-width: 1340px;
}
@media (max-width: 767px) {
  .product-page__title {
    font-size: 24px;
    margin-top: 16px;
  }
}
.product-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 432px;
  gap: 30px 48px;
  align-items: start;
  margin-top: 38px;
}
@media (max-width: 1439px) {
  .product-page__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 1023px) {
  .product-page__grid {
    grid-template-columns: 1fr;
  }
}
.product-page__main {
  display: grid;
  grid-template-columns: 433px minmax(0, 1fr);
  gap: 30px 48px;
  align-items: start;
  min-width: 0;
}
@media (max-width: 1439px) {
  .product-page__main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}
@media (max-width: 1023px) {
  .product-page__main {
    grid-template-columns: 1fr;
  }
}

.product-page__col {
  min-width: 0;
}
@media (max-width: 1439px) {
  .product-page__col--gallery {
    grid-column: 1/-1;
  }
}
.product-page__col--config {
  width: 100%;
}
@media (max-width: 1439px) {
  .product-page__col--config {
    grid-column: 1;
  }
}
@media (max-width: 1023px) {
  .product-page__col--config {
    grid-column: 1;
  }
}
.product-page__col--description {
  width: 100%;
  grid-column: 1/-1;
}
@media (max-width: 1439px) {
  .product-page__col--description {
    grid-column: 1/-1;
  }
}
.product-page__col--sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 1439px) {
  .product-page__col--sidebar {
    grid-column: 1;
  }
}
@media (max-width: 1023px) {
  .product-page__col--sidebar {
    grid-column: 1;
  }
}

.product-gallery {
  width: 100%;
  min-width: 0;
}
.product-gallery__main {
  background: #ffffff;
  border: 0.8px solid #cacccf;
  border-radius: 7px;
  height: 440px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery__main-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.product-gallery__main-img {
  width: auto;
  height: auto;
  object-fit: contain;
}
.product-gallery__thumbs.swiper {
  margin-top: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.product-gallery__thumbs .swiper-wrapper {
  align-items: stretch;
}
.product-gallery__thumbs.swiper .swiper-slide {
  width: auto;
}
.product-gallery__thumb-slide {
  width: 79px;
  flex-shrink: 0;
}
.product-gallery__thumb {
  flex: 0 0 79px;
  width: 79px;
  height: 79px;
  padding: 0;
  border: 0.8px solid #cacccf;
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-gallery__thumb--active {
  border-color: #ffd000;
  box-shadow: 0 0 0 1px #ffd000;
}
@media (hover: hover) {
  .product-gallery__thumb:hover {
    border-color: #ffd000;
  }
}

.product-features {
  list-style: none;
  margin: 50px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.product-features__item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.product-features__icon {
  flex-shrink: 0;
  width: 53px;
  height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-features__icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.product-features__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-features__title {
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
}
.product-features__desc {
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1;
}

.product-desc {
  margin-top: 24px;
}
.product-desc--empty {
  display: none;
}
.product-desc__title {
  font-family: "Tilda", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #232324;
  line-height: 1;
  margin: 0 0 10px;
}
.product-desc__text {
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #999999;
  line-height: 1.35;
  max-width: none;
  width: 100%;
}

.product-page__col--config {
  width: 100%;
}

.product-meta {
  margin: 0 0 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-meta__row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  width: 100%;
  margin: 0;
}
.product-meta__label {
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  color: #999999;
  font-weight: 400;
  white-space: nowrap;
}
.product-meta__value {
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  color: #232324;
  font-weight: 400;
  margin: 0;
}

.product-config__sizes-link {
  display: inline-block;
  margin-top: 17px;
  margin-bottom: 30px;
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffd000;
  text-decoration: underline;
  transition: var(--transition);
}
@media (hover: hover) {
  .product-config__sizes-link:hover {
    color: #ebc700;
  }
}

.product-config {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  width: 100%;
}
.product-config .product-chip__text,
.product-config .product-color__swatch,
.product-config .product-glazing__item {
  transition: none;
}

.product-option {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
}
.product-option:first-child {
  margin-top: 0;
}
.product-option__title {
  font-family: "Tilda", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #232324;
  margin-bottom: 10px;
  padding: 0;
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-chip {
  position: relative;
  cursor: pointer;
}
.product-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.product-chip__text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 9px;
  background: #f4f4f4;
  border: 1px solid transparent;
  box-sizing: border-box;
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: #000;
  white-space: nowrap;
  user-select: none;
}
input:checked + .product-chip__text {
  background: #ffd000;
  border-color: #ffd000;
  color: #ffffff;
  font-weight: 500;
}
@media (hover: hover) {
  .product-chip:hover .product-chip__text {
    background: #ffd000;
    color: #ffffff;
  }
}

.product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: none;
}

.product-color {
  position: relative;
  cursor: pointer;
}
.product-color input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.product-color__swatch {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1.5px solid #cacccf;
  box-sizing: border-box;
}
.product-color__swatch--rainbow {
  background: linear-gradient(90deg, #ff3131 0%, #ffb41d 14.88%, #e9ff46 35.57%, #64ff83 45.68%, #58f7ff 59.78%, #6348fc 78.79%, #e74aff 100%);
}
input:checked + .product-color__swatch, .product-color--active .product-color__swatch {
  border-color: #ffd000;
}

.product-glazing {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 366px;
}
.product-glazing__item {
  position: relative;
  width: 55px;
  height: 55px;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
}
.product-glazing__item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.product-glazing__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.product-glazing__item input:checked ~ img, .product-glazing__item--active img {
  outline: none;
}
.product-glazing__item input:checked, .product-glazing__item--active {
  border-color: #ffd000;
}

.product-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-services__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.product-services__checkbox {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #abb5be;
  border-radius: 2px;
  background: #fff;
  margin-top: 3px;
  position: relative;
  transition: var(--transition);
}
.product-services input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.product-services input:checked + .product-services__checkbox {
  background: #ffd000;
  border-color: #ffd000;
}
.product-services input:checked + .product-services__checkbox::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.product-services__text {
  font-family: var(--MontSerrat);
  font-size: 16px;
  color: #343a40;
  line-height: 1.4;
}

.product-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 170px;
  width: 130px;
}
.product-qty__btn {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f7f5f9;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
@media (hover: hover) {
  .product-qty__btn:hover {
    background: #ece8f0;
  }
}
.product-qty__btn--minus span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
}
.product-qty__btn--plus span:first-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 1px;
}
.product-qty__btn--plus span:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 10px;
  background: #1a1a1a;
  border-radius: 1px;
}
.product-qty__value {
  flex: 1;
  text-align: center;
  font-family: "Poppins", "Tilda", sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.5;
  min-width: 40px;
}

.product-card {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 30px;
  position: relative;
}
.product-card__badge {
  position: absolute;
  top: 30px;
  right: 30px;
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #8ec67a;
}
.product-card__price-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-card__price-label {
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  color: #232324;
}
.product-card__price {
  font-family: "Tilda", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
}
.product-card__qty-block {
  margin-top: 23px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-card__qty-label {
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  color: #232324;
}
.product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border-radius: 9px;
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  margin-top: 20px;
}
.product-card__btn--primary {
  background: #ffd000;
  color: #111111;
}
@media (hover: hover) {
  .product-card__btn--primary:hover {
    background: #ebc700;
  }
}
a.product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
.product-page__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 60px;
  font-family: "Tilda", sans-serif;
  font-size: 13px;
}
.product-page__breadcrumbs .breadcrumbs__link {
  color: #69727d;
  text-decoration: none;
}
.product-page__breadcrumbs .breadcrumbs__link:hover {
  color: #111;
}
.product-page__breadcrumbs .breadcrumbs__sep {
  color: #cacccf;
}
.product-card__btn--secondary {
  background: #fcfcfc;
  border: 1px solid #fff8d6;
  color: #ffd000;
  margin-top: 10px;
}
@media (hover: hover) {
  .product-card__btn--secondary:hover {
    background: #fff8d6;
  }
}
.product-card__heading {
  font-family: "Tilda", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #232324;
  margin-bottom: 19px;
  line-height: 1;
}
.product-card__addons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-card__total {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-card__total-label {
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  color: #232324;
}
.product-card__total-price {
  font-family: "Tilda", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1;
}
.product-card--pogonazh .product-card__btn, .product-card--hardware .product-card__btn {
  margin-top: 24px;
}
.product-card__phone-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-card__phone-label {
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  color: #232324;
}
.product-card__phone {
  font-family: "Tilda", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #ffd000;
  text-decoration: none;
  line-height: 1;
  transition: var(--transition);
}
@media (hover: hover) {
  .product-card__phone:hover {
    color: #ebc700;
  }
}
.product-card__social-label {
  margin-top: 18px;
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  color: #232324;
}
.product-card__socials {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.product-card__social {
  display: block;
  width: 50px;
  height: 50px;
  transition: var(--transition);
}
.product-card__social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (hover: hover) {
  .product-card__social:hover {
    opacity: 0.85;
    transform: translateY(-2px);
  }
}
.product-card__social--static {
  cursor: default;
}
@media (hover: hover) {
  .product-card__social--static:hover {
    opacity: 1;
    transform: none;
  }
}

.product-addon {
  display: grid;
  grid-template-columns: 99px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 0;
  align-items: start;
}
.product-addon__image {
  grid-row: 1/3;
  width: 99px;
  height: 99px;
  background: #ffffff;
  border: 1px solid #cacccf;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-addon__image img {
  max-width: 66px;
  max-height: 66px;
  object-fit: contain;
}
.product-addon__body {
  min-width: 0;
}
.product-addon__title {
  font-family: "Tilda", sans-serif;
  font-size: 16px;
  color: #232324;
  line-height: 1.25;
  margin: 0;
}
.product-addon__replace {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font-family: "Tilda", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffd000;
  text-decoration: underline;
  cursor: pointer;
  transition: var(--transition);
}
@media (hover: hover) {
  .product-addon__replace:hover {
    color: #ebc700;
  }
}
.product-addon .product-qty {
  margin-top: 8px;
}
.product-addon__price {
  grid-column: 3;
  grid-row: 2;
  font-family: "Tilda", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  align-self: end;
  margin: 0;
}

.fancybox__overlay {
  background: rgba(0, 0, 0, 0.1) !important;
}

.product-page {
  position: relative;
}
.product-page.is-loading {
  pointer-events: none;
}
.product-page.is-loading .product-page__loader {
  display: flex;
}
.product-page__loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(248, 248, 248, 0.55);
}
.product-page__loader-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #e6e6e6;
  border-top-color: #ffd000;
  border-radius: 50%;
  animation: product-spin 0.8s linear infinite;
}
.product-page__notice {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid #f3d0d0;
  font-family: "Tilda", sans-serif;
}
.product-page__notice--error {
  color: #7a1f1f;
}
.product-page__notice--warning {
  background: #fff9eb;
  border-color: #f0dfa0;
  color: #6b4f00;
}
.product-page__notice-detail {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
}
.product-page__notice-hint {
  margin-top: 12px;
  font-size: 14px;
}
.product-page__notice-hint code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
}

.product-chip.is-blocked,
.product-color.is-blocked,
.product-glazing__item.is-blocked {
  opacity: 0.45;
  pointer-events: none;
}

.product-glazing__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  text-align: center;
  padding: 4px;
}

.product-card__btn--in-cart {
  background: #ffffff;
  color: #ffd000;
  border: 1px solid #ffd000;
}

.product-card__btn--hidden,
.product-card__btn[data-action=quick-order][hidden] {
  display: none !important;
}

@keyframes product-spin {
  to {
    transform: rotate(360deg);
  }
}
