.product-detail-page {
  --pp-text: #42424c;
  --pp-surface: #f9f9fa;
  --pp-card-bg: #ffffff;
  --pp-border: #eef0f3;
  --pp-muted: #9ca3af;
  --pp-details-width: 316px;
  --pp-side-width: 298px;
  --pp-info-gap: 16px;
  --pp-info-width: calc(var(--pp-details-width) + var(--pp-info-gap) + var(--pp-side-width));
}

.product-detail-page .page-header__title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pp-product {
  padding-bottom: 80px;
}

.pp-product__layout {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--pp-info-width);
  gap: 20px;
  align-items: start;
}

.pp-gallery {
  width: 630px;
  min-width: 0;
}

.pp-gallery__stage {
  position: relative;
  box-sizing: border-box;
  width: 630px;
  height: 533px;
  padding: 10px;
  overflow: hidden;
  background: var(--pp-card-bg);
}

.pp-gallery__image {
  position: absolute;
  inset: 10px;
  display: block;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  object-position: center;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.pp-gallery__item--hidden {
  opacity: 0;
  pointer-events: none;
}

.pp-cart-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  box-sizing: border-box;
  max-width: calc(100% - 32px);
  min-height: 56px;
  padding: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 24px;
  background: #ffffff;
  color: var(--pp-text);
  font-family: 'Raleway', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.pp-cart-toast--visible {
  opacity: 1;
  visibility: visible;
}

.pp-cart-toast__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background-color: #fe7250;
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20xmlns%3D%27http://www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M5%2012.5l4.4%204.4L19%207.3%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20xmlns%3D%27http://www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M5%2012.5l4.4%204.4L19%207.3%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

.pp-cart-toast__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-gallery__model {
  position: absolute;
  inset: 10px;
  isolation: isolate;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.pp-gallery__model-canvas {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.pp-gallery__model-watermark,
.pp-thumb__model-watermark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("../images/watermark.f8d202c5d473.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  user-select: none;
}

.pp-gallery__model-watermark::before,
.pp-thumb__model-watermark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-position: inherit;
  background-repeat: inherit;
  background-size: inherit;
}

.pp-gallery__model-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: block;
  width: 40px;
  height: 32px;
  pointer-events: none;
}

#babylonjsLoadingDiv,
[id^="babylonjsLoadingDiv-"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.pp-model-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  box-sizing: border-box;
  width: 150px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  background: rgba(249, 249, 250, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

.pp-model-hint__arrow {
  flex: 0 0 auto;
  display: block;
  width: 24px;
  height: 24px;
  background-color: #fe7250;
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20xmlns%3D%27http://www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M9%206l6%206-6%206%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20xmlns%3D%27http://www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M9%206l6%206-6%206%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

.pp-model-hint__arrow--left {
  transform: scaleX(-1);
}

.pp-model-hint__hand {
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}

.pp-gallery__model.pp-gallery__item--hidden {
  opacity: 0;
  pointer-events: none;
}

.pp-gallery__controls {
  box-sizing: border-box;
  width: 100%;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px 0 0;
}

.pp-gallery__chevrons {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pp-gallery__btn-nav {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f9f9fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pp-gallery__btn-nav:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.pp-gallery__btn-nav:active {
  transform: scale(0.96);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.pp-gallery__btn-nav::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-color: #fe7250;
  -webkit-mask-image: url('data:image/svg+xml,%3Csvg%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20xmlns%3D%27http://www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M9%206l6%206-6%206%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E');
  mask-image: url('data:image/svg+xml,%3Csvg%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20xmlns%3D%27http://www.w3.org/2000/svg%27%3E%3Cpath%20d%3D%27M9%206l6%206-6%206%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 24px 24px;
  mask-size: 24px 24px;
}

.pp-gallery__btn-nav--prev::after {
  transform: scaleX(-1);
}

.pp-thumbs {
  width: 610px;
  height: 180px;
  margin-left: 10px;
  overflow: hidden;
}

.pp-thumbs__track {
  display: flex;
  gap: 19px;
  transition: transform 0.2s ease;
  will-change: transform;
}

.pp-thumb {
  box-sizing: border-box;
  flex: 0 0 calc((610px - 38px) / 3);
  width: calc((610px - 38px) / 3);
  height: 180px;
  padding: 0;
  border: 1px solid #9ca3af;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.pp-thumb--model {
  position: relative;
  isolation: isolate;
}

.pp-thumb:hover,
.pp-thumb:focus-visible {
  outline: none;
}

.pp-thumb__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.pp-thumb__model-preview {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #f9f9fa;
}

.pp-thumb__model-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: block;
  width: 40px;
  height: 32px;
  pointer-events: none;
}

.pp-gallery__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pp-muted);
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 150%;
}

.pp-product__info {
  width: var(--pp-info-width);
  min-width: 0;
}

.pp-title-card {
  box-sizing: border-box;
  width: var(--pp-info-width);
  min-height: 120px;
  padding: 24px 28px;
  border-radius: 24px 24px 0 24px;
  background: #f9f9fa;
  display: flex;
  align-items: flex-start;
}

.pp-title {
  margin: 0;
  max-width: 560px;
  color: var(--pp-text);
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 112%;
}

.pp-meta {
  display: grid;
  width: var(--pp-info-width);
  grid-template-columns: var(--pp-details-width) var(--pp-side-width);
  column-gap: var(--pp-info-gap);
  row-gap: 15px;
  align-items: start;
}

.pp-meta-card {
  background: #f9f9fa;
}

.pp-meta-card--details {
  grid-column: 1;
  grid-row: 1;
  box-sizing: border-box;
  width: var(--pp-details-width);
  height: 222px;
  margin-top: 20px;
  padding: 20px 19px 50px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pp-meta-card--sku {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  position: relative;
  box-sizing: border-box;
  width: var(--pp-side-width);
  min-height: 92px;
  padding: 14px 28px;
  border-radius: 0 0 24px 24px;
}

.pp-meta-card--sku::before {
  content: "";
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 0 100%, transparent 12px, #f9f9fa 12px);
  pointer-events: none;
}

.pp-meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pp-meta-item__label {
  color: var(--pp-text);
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

.pp-meta-item__value {
  color: var(--pp-text);
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 130%;
}

.pp-meta-card--details .pp-meta-item {
  width: 278px;
  gap: 8px;
}

.pp-meta-card--details .pp-meta-item__label {
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
}

.pp-meta-card--details .pp-meta-item__value {
  font-size: 22px;
  font-weight: 700;
  line-height: 130%;
}

.pp-meta-card--sku .pp-meta-item {
  width: 82px;
  gap: 8px;
}

.pp-meta-card--sku .pp-meta-item__label {
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
}

.pp-meta-card--sku .pp-meta-item__value {
  font-size: 22px;
  font-weight: 700;
  line-height: 130%;
}

.pp-actions {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  width: var(--pp-side-width);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pp-order-button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--pp-side-width);
  height: 53px;
  padding: 16px;
  border: 1px solid #fe7250;
  border-radius: 16px;
  background: #fe7250;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 130%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pp-order-button:hover,
.pp-order-button:focus-visible {
  background: #ffffff;
  color: #fe7250;
  outline: none;
}

.pp-view-buttons {
  width: var(--pp-side-width);
  display: flex;
  justify-content: space-between;
}

.pp-view-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 59px;
  padding: 0;
  border: 1px solid #9ca3af;
  border-radius: 16px;
  background: transparent;
  color: var(--pp-text);
  font-family: 'Raleway', sans-serif;
  font-feature-settings: 'pnum' on, 'lnum' on;
  font-variant-numeric: proportional-nums lining-nums;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.pp-view-button:hover,
.pp-view-button:focus-visible {
  border-color: #fe7250;
  outline: none;
}

.pp-view-button--disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.pp-description {
  box-sizing: border-box;
  width: var(--pp-info-width);
  height: 425px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 24px;
  background: #f9f9fa;
}

.pp-description__inner {
  width: 590px;
  height: 385px;
}

.pp-description__title {
  margin: 0 0 24px;
  color: var(--pp-text);
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 125%;
}

.pp-description__text {
  width: 590px;
  color: var(--pp-text);
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
}

.pp-description__text p {
  margin: 0;
}

.pp-size-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.pp-size-value__unit {
  font-size: 18px;
  line-height: 1;
}

.pp-size-value__separator {
  margin: 0 6px;
}

.pp-mobile-data-card {
  display: none;
}

@media (max-width: 1100px) {
  .pp-product__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pp-product__info {
    order: -1;
  }
}

@media (max-width: 767px) {
  .pp-product {
    padding-bottom: 48px;
  }

  .pp-product__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "image"
      "actions"
      "thumbs"
      "data"
      "description";
    gap: 12px;
  }

  .pp-product__info,
  .pp-gallery,
  .pp-meta {
    display: contents;
  }

  .product-detail-page button,
  .product-detail-page a,
  .pp-thumb,
  .pp-order-button,
  .pp-view-button {
    -webkit-tap-highlight-color: transparent;
    animation: none;
    transition: none;
    user-select: none;
  }

  .product-detail-page button:active,
  .product-detail-page a:active,
  .pp-thumb:hover,
  .pp-thumb:focus-visible,
  .pp-thumb:active,
  .pp-order-button:hover,
  .pp-order-button:focus-visible,
  .pp-order-button:active,
  .pp-view-button:hover,
  .pp-view-button:focus-visible,
  .pp-view-button:active {
    outline: none;
    transform: none;
  }

  .pp-order-button:hover,
  .pp-order-button:focus-visible,
  .pp-order-button:active {
    background: #fe7250;
    color: #ffffff;
  }

  .pp-view-button:hover,
  .pp-view-button:focus-visible,
  .pp-view-button:active {
    border-color: #9ca3af;
  }

  .pp-title-card {
    grid-area: title;
    order: 1;
    width: 100%;
    min-height: 90px;
    margin: 0;
    padding: 16px;
    border-radius: 24px;
  }

  .pp-title {
    max-width: 311px;
    font-size: 22px;
    font-weight: 700;
    line-height: 130%;
  }

  .pp-gallery__stage {
    grid-area: image;
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 343 / 229;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
  }

  .pp-cart-toast {
    max-width: min(78%, 268px);
    min-height: 40px;
    padding: 10px 12px;
    gap: 6px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 20px;
  }

  .pp-cart-toast__icon {
    width: 18px;
    height: 18px;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
  }

  .pp-gallery__image {
    top: 10px;
    left: 50%;
    right: auto;
    bottom: auto;
    width: calc(100% - 26px);
    height: calc(100% - 36px);
    transform: translateX(-50%);
  }

  .pp-gallery__model {
    inset: 10px 13px 26px;
  }

  .pp-gallery__model-icon {
    display: none;
  }

  .pp-gallery__controls {
    display: none;
  }

  .pp-actions {
    --pp-action-small-width: clamp(48px, calc((100vw - 32px) * 0.1574), 64px);

    grid-area: actions;
    order: 3;
    grid-column: auto;
    align-self: auto;
    width: 100%;
    height: 38px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }

  .pp-order-button {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
  }

  .pp-view-buttons {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
  }

  .pp-view-button {
    flex: 0 0 var(--pp-action-small-width);
    width: var(--pp-action-small-width);
    height: 38px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
  }

  .pp-thumbs {
    grid-area: thumbs;
    order: 4;
    width: 100%;
    height: 90px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .pp-thumbs::-webkit-scrollbar {
    display: none;
  }

  .pp-thumbs__track {
    width: max-content;
    gap: 8px;
    transform: none !important;
  }

  .pp-thumb {
    flex: 0 0 98px;
    width: 98px;
    height: 90px;
    border-radius: 12px;
  }

  .pp-thumb__model-icon {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 26px;
  }

  .pp-meta-card--details,
  .pp-meta-card--sku {
    display: none;
  }

  .pp-mobile-data-card {
    grid-area: data;
    order: 5;
    box-sizing: border-box;
    width: 100%;
    min-height: 148px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #f9f9fa;
  }

  .pp-mobile-data-card__size {
    width: 100%;
    min-height: 52px;
  }

  .pp-mobile-data-card__label,
  .pp-mobile-data-card__value {
    display: block;
    color: var(--pp-text);
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 150%;
  }

  .pp-mobile-data-card__label {
    margin-bottom: 4px;
    font-weight: 400;
  }

  .pp-mobile-data-card__value {
    font-weight: 700;
  }

  .pp-mobile-data-card .pp-size-value {
    display: flex;
  }

  .pp-mobile-data-card .pp-size-value__unit,
  .pp-mobile-data-card .pp-size-value__separator {
    font-size: 16px;
    line-height: 150%;
  }

  .pp-mobile-data-card__row {
    min-height: 52px;
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
  }

  .pp-mobile-data-card__sku {
    flex: 0 0 auto;
    margin-right: 28px;
  }

  .pp-mobile-data-card__age {
    min-width: 0;
  }

  .pp-description {
    grid-area: description;
    order: 6;
    width: 100%;
    min-height: 313px;
    height: auto;
    padding: 16px;
    border-radius: 16px;
  }

  .pp-description__inner,
  .pp-description__text {
    width: 100%;
  }

  .pp-description__inner {
    height: auto;
  }

  .pp-description__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 130%;
  }

  .pp-description__text {
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
  }
}
