/* Premium product detail page */

#pdpWishlistBtn.is-active {
  border-color: var(--color-text);
  background: var(--color-text);
  color: #fff;
}

#pdpWishlistBtn.is-active svg {
  fill: currentColor;
}

.pdp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding: 1rem 0 .25rem;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.pdp-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.pdp-breadcrumb a:hover {
  color: var(--color-text);
}

.pdp-breadcrumb__current {
  color: var(--color-text);
}

.pdp-hero {
  padding: .5rem 0 clamp(2.5rem, 6vw, 5rem);
}

.pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* ── Gallery: thumbs left, main right ── */
.pdp-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.pdp-gallery__grid.has-thumbs {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.pdp-thumbs-col {
  position: sticky;
  top: calc(80px + 1rem);
  display: flex;
  flex-direction: column;
  gap: .65rem;
  max-height: calc(100vh - 120px);
}

.pdp-thumbs-label {
  margin: 0;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding-left: .15rem;
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: min(72vh, 620px);
  padding-right: .15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 18, 18, .25) transparent;
}

.pdp-thumbs::-webkit-scrollbar {
  width: 4px;
}

.pdp-thumbs::-webkit-scrollbar-thumb {
  background: rgba(18, 18, 18, .2);
  border-radius: 4px;
}

.pdp-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 1px solid rgba(18, 18, 18, .1);
  background: #f7f5f1;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .2s;
}

.pdp-thumb::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-text);
  transform: scaleY(0);
  transition: transform .25s ease;
  z-index: 2;
}

.pdp-thumb.is-active {
  border-color: var(--color-text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.pdp-thumb.is-active::before {
  transform: scaleY(1);
}

.pdp-thumb:hover:not(.is-active) {
  border-color: rgba(18, 18, 18, .35);
  transform: translateX(2px);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.pdp-thumb:hover img {
  transform: scale(1.04);
}

.pdp-thumb__index {
  position: absolute;
  right: 5px;
  bottom: 5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .92);
  color: var(--color-text);
  border: 1px solid rgba(18, 18, 18, .08);
}

.pdp-thumb.is-active .pdp-thumb__index {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.pdp-main-col {
  min-width: 0;
}

.pdp-main-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #faf8f5 0%, #ece7df 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 24px 60px rgba(0, 0, 0, .06);
}

.pdp-main {
  position: relative;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
}

.pdp-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease, transform .4s ease;
}

.pdp-main-img.is-active {
  opacity: 1;
  position: relative;
}

.pdp-zoom-lens {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(0, 0, 0, .12);
  background: rgba(255, 255, 255, .22);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.pdp-gallery__ui {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.pdp-gallery__counter {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  padding: .45rem .75rem;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(18, 18, 18, .08);
  backdrop-filter: blur(8px);
}

.pdp-gallery__arrows {
  pointer-events: auto;
  display: inline-flex;
  gap: .4rem;
}

.pdp-gallery__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .9);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.pdp-gallery__arrow:hover {
  background: #fff;
  transform: scale(1.05);
}

.pdp-fullscreen-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .88);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .2s, transform .2s;
}

.pdp-fullscreen-btn:hover {
  background: #fff;
  transform: scale(1.04);
}

/* ── Buy panel card ── */
.pdp-buy {
  position: sticky;
  top: calc(80px + 1rem);
}

.pdp-buy__card {
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: #fff;
  border: 1px solid rgba(18, 18, 18, .08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .05);
}

.pdp-brand {
  display: inline-block;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8a7148;
  margin-bottom: .75rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid rgba(138, 113, 72, .25);
}

.pdp-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  color: inherit;
  text-decoration: none;
}

.pdp-rating:hover .pdp-rating__text {
  color: var(--color-text);
}

.pdp-stars {
  color: #b8955a;
  letter-spacing: .08em;
}

.pdp-rating__text {
  color: var(--color-text-soft);
}

.pdp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .65rem .85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(18, 18, 18, .08);
}

.pdp-price__current {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 500;
}

.pdp-price__compare {
  font-size: 1rem;
  color: var(--color-text-soft);
  text-decoration: line-through;
}

.pdp-price__badge {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: #9a2e2e;
  padding: .25rem .5rem;
}

.pdp-sku {
  font-size: .75rem;
  color: var(--color-text-soft);
  margin: 0 0 1.5rem;
  letter-spacing: .04em;
}

.pdp-sku span {
  color: var(--color-text);
  font-weight: 500;
}

.pdp-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(18, 18, 18, .06);
}

.pdp-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.pdp-label {
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 600;
}

.pdp-variant-picker__selected,
.pdp-size-selected {
  font-size: .82rem;
  color: var(--color-text-soft);
}

.pdp-size-selected strong {
  color: var(--color-text);
  font-weight: 500;
}

.pdp-size-guide {
  border: 0;
  background: none;
  padding: 0;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pdp-size-guide:hover {
  color: var(--color-text);
}

.pdp-variant-cards {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.pdp-variant-cards.is-loading {
  opacity: .55;
  pointer-events: none;
}

.pdp-variant-card {
  flex: 0 0 auto;
  width: 84px;
  padding: 0;
  border: 1px solid rgba(18, 18, 18, .12);
  background: #faf9f7;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.pdp-variant-card:hover:not(.is-active):not(.is-oos) {
  border-color: rgba(18, 18, 18, .35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.pdp-variant-card.is-active {
  border-color: var(--color-text);
  box-shadow: 0 0 0 1px var(--color-text);
}

.pdp-variant-card.is-oos {
  opacity: .5;
}

.pdp-variant-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
}

.pdp-variant-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-variant-card__name {
  display: block;
  font-size: .66rem;
  padding: .4rem .25rem .1rem;
  line-height: 1.3;
}

.pdp-variant-card__stock {
  display: block;
  font-size: .6rem;
  color: var(--color-text-soft);
  padding: 0 .25rem .4rem;
}

.pdp-size-field:not(.is-ready) .pdp-sizes {
  opacity: .5;
  pointer-events: none;
}

.pdp-sizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: .5rem;
}

.pdp-size {
  min-height: 48px;
  padding: 0 .5rem;
  border: 1px solid rgba(18, 18, 18, .14);
  background: #fff;
  color: var(--color-text);
  font-size: .82rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}

.pdp-size:hover:not(.is-disabled):not(.is-active) {
  border-color: var(--color-text);
  transform: translateY(-1px);
}

.pdp-size.is-active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.pdp-size.is-disabled {
  opacity: .3;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #f7f7f7;
}

.pdp-size-oos-msg,
.pdp-stock-hint {
  font-size: .82rem;
  margin: .5rem 0 0;
}

.pdp-stock-hint {
  color: #9a2e2e;
}

.pdp-size-oos-msg {
  color: #9a2e2e;
}

.pdp-actions {
  display: grid;
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.pdp-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pdp-qty__label {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
}

.pdp-qty__control {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(18, 18, 18, .14);
  background: #faf9f7;
}

.pdp-qty__control button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .2s;
}

.pdp-qty__control button:hover {
  background: rgba(18, 18, 18, .05);
}

.pdp-qty__control input {
  width: 52px;
  height: 44px;
  border: 0;
  border-left: 1px solid rgba(18, 18, 18, .1);
  border-right: 1px solid rgba(18, 18, 18, .1);
  text-align: center;
  font-size: .9rem;
  background: #fff;
  -moz-appearance: textfield;
}

.pdp-qty__control input::-webkit-outer-spin-button,
.pdp-qty__control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp-cart-form {
  margin: 0;
}

.pdp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  min-height: 54px;
  padding: .9rem 1.5rem;
  border: 1px solid var(--color-text);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}

.pdp-btn--primary {
  background: var(--color-text);
  color: #fff;
  box-shadow: 0 8px 24px rgba(18, 18, 18, .18);
}

.pdp-btn--primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 18, 18, .22);
}

.pdp-btn--ghost {
  background: transparent;
  color: var(--color-text);
  box-shadow: none;
}

.pdp-btn--ghost:hover {
  background: #f5f3f0;
}

.pdp-soldout {
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9a2e2e;
  border: 1px solid rgba(154, 46, 46, .2);
  background: rgba(154, 46, 46, .04);
}

.pdp-trust {
  list-style: none;
  margin: 0;
  padding: 1.15rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  font-size: .76rem;
  color: var(--color-text-soft);
  border-top: 1px solid rgba(18, 18, 18, .06);
}

.pdp-trust li {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.pdp-trust__icon {
  font-size: .4rem;
  color: #b8955a;
}

/* Details */
.pdp-details {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(18, 18, 18, .08);
  background: linear-gradient(180deg, #faf9f7 0%, #fff 100%);
}

.pdp-accordions {
  max-width: 800px;
}

.pdp-accordion {
  border-bottom: 1px solid rgba(18, 18, 18, .1);
}

.pdp-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 0;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
}

.pdp-accordion summary::-webkit-details-marker {
  display: none;
}

.pdp-accordion__body {
  padding: 0 0 1.35rem;
  font-size: .94rem;
  line-height: 1.75;
  color: var(--color-text-soft);
}

.pdp-rich-text > :first-child {
  margin-top: 0;
}

.pdp-rich-text > :last-child {
  margin-bottom: 0;
}

.pdp-rich-text p {
  margin: 0 0 .85rem;
}

.pdp-rich-text ul,
.pdp-rich-text ol {
  margin: 0 0 .85rem;
  padding-left: 1.25rem;
}

.pdp-rich-text li + li {
  margin-top: .35rem;
}

.pdp-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 500;
  margin: 0 0 1.5rem;
}

.pdp-related {
  padding-top: 0;
}

.pdp-reviews {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(18, 18, 18, .08);
}

.pdp-review-avg {
  display: block;
  min-width: 6.5rem;
}

.pdp-review-avg > span {
  color: var(--color-text-soft);
}

.pdp-review-avg em {
  display: block;
  margin-top: .35rem;
  font-style: normal;
  font-size: .78rem;
  color: var(--color-text-soft);
}

.pdp-review-stars {
  color: #b8955a;
  letter-spacing: .04em;
}

.pdp-review-form {
  max-width: 36rem;
  margin-top: 2rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid var(--color-border);
  background: #fff;
}

.pdp-review-form h3 {
  margin: 0 0 .4rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.pdp-review-form__hint,
.pdp-review-note {
  margin: 0 0 1rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}

.pdp-review-note a {
  color: var(--color-text);
}

.pdp-star-pick {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: .15rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.pdp-star-pick legend {
  margin-bottom: .45rem;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.pdp-star-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pdp-star-pick label {
  font-size: 1.55rem;
  line-height: 1;
  color: #d5cfc6;
  cursor: pointer;
}

.pdp-star-pick input:checked ~ label,
.pdp-star-pick label:hover,
.pdp-star-pick label:hover ~ label {
  color: #b8955a;
}

.pdp-review-field {
  display: grid;
  gap: .4rem;
  margin-bottom: .9rem;
}

.pdp-review-field span {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.pdp-review-field input,
.pdp-review-field textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--color-border);
  background: #fff;
  font: inherit;
  color: var(--color-text);
}

.pdp-review-field textarea {
  resize: vertical;
  min-height: 110px;
}

.pdp-review-form .pdp-btn {
  width: auto;
  min-width: 12rem;
}

.pdp-review-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.pdp-review-avg strong {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 500;
}

.pdp-bar-row {
  display: grid;
  grid-template-columns: 32px 1fr 28px;
  gap: .65rem;
  align-items: center;
  font-size: .78rem;
  margin-bottom: .35rem;
}

.pdp-bar {
  height: 4px;
  background: #e8e4de;
  overflow: hidden;
}

.pdp-bar span {
  display: block;
  height: 100%;
  background: var(--color-text);
}

.pdp-review-item {
  border-bottom: 1px solid rgba(18, 18, 18, .08);
  padding: 1.25rem 0;
}

.pdp-review-head {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  margin-bottom: .5rem;
}

.pdp-verified {
  font-size: .68rem;
  background: #edf5ee;
  color: #2d6b3a;
  padding: .2rem .45rem;
}

.pdp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, .94);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdp-lightbox[hidden] {
  display: none !important;
}

.pdp-lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
}

.pdp-lightbox-close,
.pdp-lightbox-prev,
.pdp-lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: .85;
}

.pdp-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.pdp-lightbox-prev {
  left: 1rem;
  top: 50%;
}

.pdp-lightbox-next {
  right: 1rem;
  top: 50%;
}

@media (max-width: 720px) {
  .pdp-review-summary {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 1024px) {
  .pdp-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pdp-buy {
    position: static;
  }

  .pdp-gallery__grid.has-thumbs {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .pdp-thumbs-col {
    position: static;
    max-height: none;
    order: -1;
  }

  .pdp-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: .25rem;
    scrollbar-width: none;
  }

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

  .pdp-thumb {
    width: 72px;
    flex: 0 0 72px;
  }

  .pdp-thumb::before {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
    transform: scaleX(0);
  }

  .pdp-thumb.is-active::before {
    transform: scaleX(1);
  }

  .pdp-thumb:hover:not(.is-active) {
    transform: translateY(-2px);
  }
}

@media (max-width: 640px) {
  .pdp-breadcrumb {
    font-size: .62rem;
    letter-spacing: .08em;
    padding: .75rem 0 .15rem;
  }

  .pdp-breadcrumb__current {
    display: none;
  }

  .pdp-title {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
    line-height: 1.18;
    margin-bottom: .75rem;
  }

  .pdp-brand {
    font-size: .58rem;
    letter-spacing: .18em;
    margin-bottom: .55rem;
  }

  .pdp-main {
    aspect-ratio: 1 / 1.08;
  }

  .pdp-gallery__ui {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
  }

  .pdp-gallery__arrow {
    width: 36px;
    height: 36px;
  }

  .pdp-gallery__counter {
    font-size: .62rem;
    letter-spacing: .12em;
    padding: .4rem .65rem;
  }

  .pdp-buy__card {
    padding: 1.15rem;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }

  .pdp-variant-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .35rem;
    scrollbar-width: none;
  }

  .pdp-variant-cards::-webkit-scrollbar {
    display: none;
  }

  .pdp-variant-card {
    min-width: 80px;
  }

  .pdp-sizes {
    grid-template-columns: repeat(4, 1fr);
  }
}
