.product-detail-page {
  min-height: 70vh;
  padding: 116px 0 100px;
  color: #23221e;
  background:
    radial-gradient(ellipse at 3% 14%, rgba(194, 166, 111, 0.1), transparent 30%),
    #faf9f6;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 34px;
  color: #888379;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.product-breadcrumbs a {
  color: #716c62;
  text-decoration: none;
  transition: color 160ms ease;
}

.product-breadcrumbs a:hover {
  color: #a77b3f;
}

.product-breadcrumbs i {
  color: #b8b2a7;
  font-size: 8px;
}

.product-breadcrumbs span {
  overflow: hidden;
  color: #36342e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.86fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: start;
}

.detail-gallery {
  min-width: 0;
}

.detail-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 2px 1px 5px;
}

.detail-thumbnail {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  background: #e8e6df;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.detail-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumbnail:hover,
.detail-thumbnail.active {
  border-color: #9b7547;
  opacity: 1;
}

.detail-thumbnail:focus-visible {
  outline: 2px solid #9b7547;
  outline-offset: 2px;
}

.product-detail-page .detail-image {
  position: relative;
  display: grid;
  aspect-ratio: 0.96;
  overflow: hidden;
  place-items: center;
  background: #e8e6df;
}

.detail-image::after {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  content: "";
  pointer-events: none;
}

.product-detail-page .detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-detail-page .detail-image:hover img {
  transform: scale(1.025);
}

.detail-image-badges {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-badge,
.detail-discount {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: #30352f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.detail-discount {
  color: #885235;
  background: rgba(255, 255, 255, 0.93);
}

.image-zoom {
  position: absolute;
  z-index: 2;
  right: 23px;
  bottom: 23px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(25, 25, 22, 0.54);
  cursor: zoom-in;
  transition: color 180ms ease, background 180ms ease;
}

.image-zoom:hover {
  color: #24221d;
  background: #e2c38f;
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  color: #8b867b;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.detail-copy {
  min-width: 0;
  padding-top: 19px;
}

.detail-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #9b7547;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.detail-eyebrow span {
  width: 24px;
  height: 1px;
  background: #bb9663;
}

.detail-copy h1 {
  max-width: 650px;
  margin: 0 0 19px;
  color: #201f1a;
  font: 500 clamp(42px, 5vw, 68px) / 0.98 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.04em;
}

.detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #77736a;
  font-size: 11px;
  text-decoration: none;
}

.detail-rating strong {
  color: #37352e;
  font-size: 11px;
}

.detail-stars {
  display: inline-flex;
  gap: 2px;
  color: #b88b4e;
  font-size: 11px;
}

.detail-description {
  max-width: 520px;
  margin: 24px 0 20px;
  color: #706c64;
  font-size: 14px;
  line-height: 1.85;
}

.product-detail-page .detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: #201f1a;
  font: 600 26px/1.2 "DM Sans", sans-serif;
}

.product-detail-page .detail-price strong {
  font-weight: 700;
}

.product-detail-page .detail-price del {
  color: #a49e93;
  font-size: 14px;
  font-weight: 400;
}

.detail-saving {
  color: #6a755b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.detail-price-note {
  margin: 7px 0 21px;
  color: #928c81;
  font-size: 10px;
}

.detail-assurance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 17px 0;
  border-top: 1px solid rgba(34, 32, 27, 0.12);
  border-bottom: 1px solid rgba(34, 32, 27, 0.12);
}

.detail-assurance span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #656158;
  font-size: 10px;
  line-height: 1.4;
}

.detail-assurance i {
  color: #a77b3f;
  font-size: 15px;
}

.detail-purchase {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 48px;
  gap: 10px;
  margin: 22px 0 15px;
}

.quantity-control {
  display: grid;
  min-height: 52px;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  border: 1px solid #d8d4ca;
  background: #fff;
}

.quantity-control button {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 0;
  color: #49463f;
  background: transparent;
  font-size: 15px;
  cursor: pointer;
}

.quantity-control input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: #282620;
  background: transparent;
  font: 600 12px "DM Sans", sans-serif;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.quantity-control:focus-within {
  outline: 2px solid rgba(167, 123, 63, 0.36);
  outline-offset: 2px;
}

.detail-add-cart {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #24231e;
  color: #fff;
  background: #24231e;
  font: 600 10px/1 "DM Sans", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.detail-add-cart:hover {
  border-color: #a77b3f;
  color: #171511;
  background: #e2c38f;
}

.detail-add-cart i {
  font-size: 15px;
}

.detail-favorite {
  display: grid;
  width: 48px;
  min-height: 52px;
  place-items: center;
  border: 1px solid #d8d4ca;
  color: #48453e;
  background: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.detail-favorite:hover,
.detail-favorite.saved {
  border-color: #a7593f;
  color: #fff;
  background: #a7593f;
}

.detail-favorite:focus-visible,
.detail-add-cart:focus-visible,
.quantity-control button:focus-visible,
.image-zoom:focus-visible {
  outline: 2px solid #a77b3f;
  outline-offset: 3px;
}

.detail-help {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  color: #777168;
  text-decoration: none;
}

.detail-help > i:first-child {
  color: #9c7949;
}

.detail-help span {
  flex: 1;
  font-size: 10px;
}

.detail-help strong {
  margin-left: 4px;
  color: #35332d;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(167, 123, 63, 0.55);
  text-underline-offset: 3px;
}

.detail-help > i:last-child {
  color: #a49d91;
  font-size: 12px;
}

.detail-accordions {
  margin-top: 16px;
  border-top: 1px solid rgba(34, 32, 27, 0.14);
}

.detail-accordions details {
  border-bottom: 1px solid rgba(34, 32, 27, 0.14);
}

.detail-accordions summary {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #35332d;
  font: 500 17px "Cormorant Garamond", Georgia, serif;
  cursor: pointer;
  list-style: none;
}

.detail-accordions summary::-webkit-details-marker {
  display: none;
}

.detail-accordions summary i {
  color: #9c7949;
  font-size: 13px;
  transition: transform 180ms ease;
}

.detail-accordions details[open] summary i {
  transform: rotate(45deg);
}

.detail-accordions details p {
  max-width: 500px;
  margin: -1px 24px 17px 0;
  color: #777168;
  font-size: 11px;
  line-height: 1.8;
}

.detail-accordions details a {
  display: inline-block;
  margin: -5px 0 17px;
  color: #8d6738;
  font-size: 11px;
  text-underline-offset: 3px;
}

.related-products {
  margin-top: clamp(70px, 9vw, 118px);
  padding-top: 34px;
  border-top: 1px solid rgba(34, 32, 27, 0.14);
}

.related-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.related-heading .eyebrow {
  margin: 0 0 9px;
  color: #9b7547;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.related-heading h2 {
  margin: 0;
  color: #201f1a;
  font: 500 clamp(34px, 4vw, 48px)/1 "Cormorant Garamond", Georgia, serif;
}

.related-heading h2 em {
  color: #a77b3f;
  font-weight: 500;
}

.related-heading > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: #47443d;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.related-heading > a:hover {
  color: #9a7039;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.related-grid .product-card {
  opacity: 1;
  transform: none;
}

.related-grid .product-visual {
  position: relative;
}

.related-grid .product-media {
  aspect-ratio: 0.92;
}

.product-lightbox {
  position: fixed;
  width: min(90vw, 850px);
  max-width: none;
  max-height: 90dvh;
  padding: 18px;
  border: 1px solid rgba(226, 195, 143, 0.36);
  background: #f3f0e8;
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.34);
}

.product-lightbox::backdrop {
  background: rgba(14, 15, 13, 0.82);
  backdrop-filter: blur(5px);
}

.product-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(90dvh - 36px);
  object-fit: contain;
}

.product-lightbox button {
  position: absolute;
  z-index: 1;
  top: 25px;
  right: 25px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(20, 20, 18, 0.2);
  color: #25231f;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.mobile-buy-bar {
  display: none;
}

@media (max-width: 900px) {
  .product-detail-page {
    padding-top: 103px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.88fr);
    gap: 34px;
  }

  .detail-copy {
    padding-top: 8px;
  }

  .product-detail-page .detail-copy h1 {
    font-size: clamp(39px, 5.4vw, 52px);
  }

  .detail-purchase {
    grid-template-columns: 105px minmax(0, 1fr) 44px;
    gap: 7px;
  }

  .quantity-control {
    grid-template-columns: 31px minmax(0, 1fr) 31px;
  }

  .detail-favorite {
    width: 44px;
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .product-detail-page {
    padding: 46px 0 100px;
  }

  .product-breadcrumbs {
    gap: 7px;
    margin-bottom: 18px;
    font-size: 9px;
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .product-detail-page .detail-image {
    aspect-ratio: 0.96;
  }

  .detail-image-badges {
    top: 15px;
    left: 15px;
  }

  .image-zoom {
    right: 16px;
    bottom: 16px;
    width: 38px;
    height: 38px;
  }

  .gallery-caption {
    padding-top: 10px;
    font-size: 7px;
    letter-spacing: 0.11em;
  }

  .detail-copy {
    padding-top: 2px;
  }

  .detail-eyebrow {
    margin-bottom: 11px;
    font-size: 9px;
  }

  .product-detail-page .detail-copy h1 {
    max-width: 100%;
    margin-bottom: 13px;
    font-size: clamp(42px, 11vw, 58px);
  }

  .detail-description {
    margin: 18px 0 15px;
    font-size: 13px;
  }

  .product-detail-page .detail-price {
    gap: 9px;
    font-size: 23px;
  }

  .product-detail-page .detail-price del {
    font-size: 12px;
  }

  .detail-price-note {
    margin-bottom: 16px;
  }

  .detail-assurance {
    padding: 13px 0;
  }

  .detail-assurance span {
    gap: 6px;
    font-size: 9px;
  }

  .detail-purchase {
    grid-template-columns: 108px minmax(0, 1fr) 46px;
    gap: 7px;
    margin-top: 17px;
  }

  .quantity-control,
  .detail-add-cart,
  .detail-favorite {
    min-height: 49px;
  }

  .detail-favorite {
    width: 46px;
  }

  .detail-add-cart {
    gap: 7px;
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .detail-help {
    min-height: 44px;
  }

  .detail-accordions {
    margin-top: 12px;
  }

  .related-products {
    margin-top: 58px;
    padding-top: 25px;
  }

  .related-heading {
    align-items: flex-start;
  }

  .related-heading h2 {
    font-size: 36px;
  }

  .related-heading > a {
    gap: 4px;
    padding-top: 19px;
    font-size: 8px;
    letter-spacing: 0.07em;
    white-space: nowrap;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 11px;
  }

  .related-grid .quick-add {
    opacity: 1;
    transform: none;
  }

  .mobile-buy-bar {
    position: fixed;
    z-index: 48;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: calc(68px + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(38, 35, 28, 0.14);
    background: rgba(250, 249, 246, 0.97);
    box-shadow: 0 -8px 28px rgba(35, 32, 26, 0.08);
    backdrop-filter: blur(14px);
  }

  .mobile-buy-bar > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-buy-bar > div span {
    color: #8b857a;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.16em;
  }

  .mobile-buy-bar > div strong {
    color: #201f1a;
    font-size: 15px;
  }

  .mobile-buy-bar > button {
    display: inline-flex;
    min-width: 158px;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    color: #fff;
    background: #24231e;
    font: 600 9px "DM Sans", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

@media (max-width: 360px) {
  .product-detail-page .container {
    width: calc(100% - 28px);
  }

  .detail-assurance {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-purchase {
    grid-template-columns: 88px minmax(0, 1fr) 42px;
    gap: 5px;
  }

  .quantity-control {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
  }

  .detail-favorite {
    width: 42px;
  }

  .mobile-buy-bar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .mobile-buy-bar > button {
    min-width: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-detail-page *,
  .product-lightbox,
  .product-lightbox * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
