.product-detail-page {
  background: #fff;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 26px max(32px, calc((100vw - 1480px) / 2));
  color: #8b8082;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.product-breadcrumb a {
  color: #6f555d;
}

.product-breadcrumb b {
  color: #2d2628;
  font-weight: 600;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
  gap: 54px;
  align-items: start;
  padding: 54px max(32px, calc((100vw - 1480px) / 2)) 76px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-areas: "thumbs main";
  gap: 16px;
  direction: ltr;
}

html[dir="rtl"] .product-gallery {
  grid-template-columns: minmax(0, 1fr) 96px;
  grid-template-areas: "main thumbs";
}

.product-gallery__main {
  position: relative;
  grid-area: main;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf8;
  box-shadow: 0 26px 54px rgba(139, 30, 63, .1);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
  object-fit: cover;
}

.product-gallery__main span {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  color: #fff;
  background: var(--burgundy);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.product-gallery__thumbs {
  grid-area: thumbs;
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-gallery__thumbs button {
  width: 96px;
  height: 96px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-gallery__thumbs button.is-active {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 2px rgba(139, 30, 63, .12);
}

.product-gallery__thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-purchase {
  position: sticky;
  top: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.product-purchase__badge {
  --badge-bg: var(--burgundy);
  --badge-color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-inline-start: 8px;
  padding: 0 11px;
  color: var(--badge-color);
  background: var(--badge-bg);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.product-purchase h1 {
  margin: 8px 0 0;
  color: #2d2628;
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.08;
}

.product-purchase__metal {
  margin: 14px 0 0;
  color: #9b8d90;
  font-size: 14px;
}

.product-purchase__description {
  margin: 18px 0 0;
  color: #6f6467;
  font-size: 15px;
  line-height: 1.9;
}

.product-purchase__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 24px;
}

.product-purchase__price small {
  color: #b4a6a8;
  text-decoration: line-through;
}

.product-purchase__price strong {
  color: #1f1c1d;
  font-size: 24px;
}

.product-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .72fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.product-options__choices {
  display: grid;
  gap: 18px;
}

.product-options label {
  display: block;
  margin-bottom: 10px;
  color: #6f555d;
  font-size: 13px;
  font-weight: 700;
}

.product-options__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-options__sizes button,
.product-quantity button,
.product-quantity span {
  min-width: 42px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #6f555d;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

.product-options__sizes button.is-active {
  color: #fff;
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.product-quantity {
  display: inline-grid;
  grid-template-columns: repeat(3, 42px);
}

.product-quantity span {
  border-inline: 0;
  border-radius: 0;
}

.product-quantity button:first-child {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.product-quantity button:last-child {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.product-delivery-estimate {
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(139, 30, 63, .14);
  border-radius: 12px;
  background: #fffaf8;
}

.product-delivery-estimate label {
  margin-bottom: 6px;
}

.product-delivery-estimate strong {
  display: block;
  color: #2d2628;
  font-size: 18px;
  font-weight: 900;
}

.product-delivery-estimate span {
  display: block;
  margin-top: 5px;
  color: #75696c;
  font-size: 12px;
  line-height: 1.7;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  margin-top: 26px;
}

.product-actions form {
  display: contents;
}

.product-actions .btn {
  width: 100%;
  min-height: 48px;
}

.product-actions__wish {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--burgundy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.product-actions__wish svg,
.product-actions .btn svg {
  width: 18px;
  height: 18px;
}

.product-guest-note {
  margin: 14px 0 0;
  color: #75696c;
  font-size: 12px;
  line-height: 1.8;
}

.product-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  background: transparent;
}

.product-assurance article {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 142px;
  padding: 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(139, 30, 63, .12);
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(215, 191, 134, .18), transparent 34%),
    #fffaf8;
  box-shadow: 0 14px 30px rgba(45, 32, 38, .06);
}

.product-assurance article::after {
  content: "";
  position: absolute;
  width: 88px;
  height: 88px;
  inset-inline-end: -42px;
  bottom: -42px;
  border: 1px solid rgba(139, 30, 63, .12);
  border-radius: 50%;
}

.product-assurance svg {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--burgundy);
  border: 1px solid rgba(139, 30, 63, .14);
  border-radius: 12px;
  background: #fff;
}

.product-assurance h3 {
  margin: 0;
  color: #2d2628;
  font-size: 14px;
  line-height: 1.5;
}

.product-assurance p {
  margin: 6px 0 0;
  color: #75696c;
  font-size: 12px;
  line-height: 1.8;
}

.product-info {
  display: grid;
  gap: 0;
  padding: 72px max(32px, calc((100vw - 1480px) / 2));
  background:
    linear-gradient(90deg, rgba(139, 30, 63, .06) 1px, transparent 1px),
    #fffdf9;
  background-size: 76px 76px, auto;
}

.product-info__tabs {
  display: inline-flex;
  justify-self: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px;
  border: 1px solid rgba(139, 30, 63, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 18px 44px rgba(45, 32, 38, .07);
}

.product-info__tabs button {
  min-height: 42px;
  padding: 0 22px;
  color: #6f555d;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
}

.product-info__tabs button.is-active {
  color: #fff;
  background: var(--burgundy);
  box-shadow: 0 12px 24px rgba(139, 30, 63, .18);
}

.product-info__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1fr);
  gap: 46px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(139, 30, 63, .13);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 24px 68px rgba(45, 32, 38, .08);
}

.product-info__panel[hidden] {
  display: none;
}

.product-info h2 {
  max-width: 620px;
  margin: 8px 0 24px;
  color: #2d2628;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.18;
}

.product-info__panel > div:first-child > p {
  max-width: 640px;
  margin: 0;
  color: #75696c;
  font-size: 16px;
  line-height: 1.9;
}

.product-info__text-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 0;
  border-top: 1px solid rgba(139, 30, 63, .14);
}

.product-info__text-list p {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 0;
  min-height: 58px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(139, 30, 63, .14);
  color: #75696c;
  background: transparent;
  line-height: 1.8;
}

.product-info__text-list strong {
  color: #8b8082;
  font-size: 13px;
  font-weight: 700;
}

.product-info__text-list span {
  color: #2d2628;
  font-size: 18px;
  font-weight: 800;
}

.product-info__notes p {
  color: #75696c;
  line-height: 1.9;
}

.product-info__notes {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: 14px;
  background: #fffaf8;
}

.product-info__notes p {
  position: relative;
  margin: 0;
  padding-inline-start: 22px;
}

.product-info__notes p::before {
  content: "";
  position: absolute;
  top: .82em;
  inset-inline-start: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--burgundy);
}

.product-reviews {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.product-reviews__score,
.product-reviews__quote {
  padding: 24px;
  border: 1px solid rgba(139, 30, 63, .14);
  border-radius: 14px;
  background: #fffaf8;
}

.product-reviews__score strong {
  display: block;
  color: var(--burgundy);
  font-size: 58px;
  line-height: 1;
}

.product-reviews__score span,
.product-reviews__quote small {
  color: #75696c;
  font-weight: 800;
}

.product-reviews__quote p {
  margin: 0 0 14px;
  color: #2d2628;
  font-size: 18px;
  line-height: 1.9;
}

.product-reviews__quote {
  position: relative;
  min-height: 176px;
}

.product-reviews__quote article {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

.product-reviews__quote article.is-active {
  opacity: 1;
  transform: translateY(0);
}

.product-reviews__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-reviews__author span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .32), transparent 28%),
    linear-gradient(135deg, var(--burgundy), #64102c);
  box-shadow: 0 12px 24px rgba(139, 30, 63, .22);
  font-size: 18px;
  font-weight: 900;
}

.product-reviews__author small {
  color: #2d2628;
  font-size: 13px;
  font-weight: 900;
}

.product-reviews__dots {
  position: absolute;
  inset-inline-end: 22px;
  bottom: 18px;
  display: flex;
  gap: 6px;
}

.product-reviews__dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(139, 30, 63, .24);
}

.product-reviews__dots span.is-active {
  width: 20px;
  background: var(--burgundy);
}

.product-review-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, .7fr) 160px minmax(0, 1.7fr);
  gap: 18px;
  align-items: start;
  margin-top: 6px;
  padding: 28px;
  border: 1px solid rgba(139, 30, 63, .14);
  border-radius: 16px;
  background: #fff;
}

.product-review-form h3 {
  margin: 0;
  color: #2d2628;
  font-size: 22px;
  line-height: 1.4;
}

.product-review-form__head {
  padding-top: 28px;
}

.product-review-form__head p {
  margin: 8px 0 0;
  color: #75696c;
  font-size: 13px;
  line-height: 1.7;
}

.product-review-form__grid {
  display: contents;
}

.product-review-form label {
  display: grid;
  gap: 8px;
  color: #6f555d;
  font-size: 13px;
  font-weight: 800;
}

.product-review-form label.is-wide {
  grid-column: auto;
}

.product-review-form input,
.product-review-form select,
.product-review-form textarea {
  width: 100%;
  margin-top: 0;
  border: 1px solid rgba(139, 30, 63, .18);
  border-radius: 12px;
  color: #2d2628;
  background: #fffaf8;
  outline: 0;
  font: inherit;
}

.product-review-form input,
.product-review-form select {
  height: 46px;
  padding: 0 14px;
}

.product-review-form textarea {
  min-height: 76px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.8;
}

.product-review-form .btn {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 160px;
  min-height: 46px;
  border: 0;
}

.product-review-login {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 6px;
  padding: 24px;
  border: 1px solid rgba(139, 30, 63, .14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(139, 30, 63, .06), transparent 46%),
    #fff;
}

.product-review-login h3 {
  margin: 0;
  color: #2d2628;
  font-size: 22px;
}

.product-review-login p {
  margin: 6px 0 0;
  color: #75696c;
  line-height: 1.8;
}

.product-review-login .btn {
  min-width: 170px;
}

.product-related {
  padding: 76px max(32px, calc((100vw - 1480px) / 2)) 88px;
}

.product-related__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 30px;
}

.product-related__head h2 {
  margin: 8px 0 0;
  color: #2d2628;
  font-size: clamp(28px, 3vw, 46px);
}

.product-related__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 18px;
}

.product-related__grid .product-card {
  flex-basis: auto;
  border-radius: 8px;
}

.product-related__grid .product-card img {
  width: calc(100% - 18px);
  height: 168px;
  min-height: 168px;
}

.product-related__grid .product-card > div {
  min-height: 220px;
  padding: 16px 14px 14px;
}

.product-related__grid .product-card h3 {
  font-size: 15px;
}

.product-related__grid .product-card .desc {
  min-height: 48px;
  -webkit-line-clamp: 3;
}

html[dir="ltr"] .product-breadcrumb,
html[dir="ltr"] .product-purchase,
html[dir="ltr"] .product-info,
html[dir="ltr"] .product-related__head {
  text-align: left;
}

@media (max-width: 1180px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-info__panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-purchase {
    position: static;
  }

  .product-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-breadcrumb,
  .product-detail,
  .product-related {
    padding-inline: 18px;
  }

  .product-detail {
    gap: 28px;
    padding-top: 34px;
  }

  .product-gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "thumbs";
  }

  .product-gallery__thumbs {
    display: flex;
    overflow-x: auto;
  }

  .product-gallery__main,
  .product-gallery__main img {
    min-height: 380px;
  }

  .product-purchase {
    padding: 24px 20px;
  }

  .product-options {
    grid-template-columns: 1fr;
  }

  .product-assurance {
    grid-template-columns: 1fr;
  }

  .product-assurance article {
    min-height: 0;
  }

  .product-info {
    padding-inline: 18px;
  }

  .product-info__tabs {
    width: 100%;
    justify-self: stretch;
    overflow-x: auto;
    border-radius: 16px;
  }

  .product-info__tabs button {
    flex: 1 0 max-content;
  }

  .product-info__panel {
    padding: 22px;
    border-radius: 14px;
  }

  .product-info__text-list {
    grid-template-columns: 1fr;
  }

  .product-info__text-list p {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .product-reviews {
    grid-template-columns: 1fr;
  }

  .product-review-form__grid {
    grid-template-columns: 1fr;
  }

  .product-review-form {
    grid-template-columns: 1fr;
  }

  .product-review-form__grid {
    display: grid;
  }

  .product-review-login {
    display: grid;
  }

  .product-review-form .btn {
    width: 100%;
  }

  .product-review-login .btn {
    width: 100%;
  }

  .product-related__head,
  .product-related__grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
