/* Product detail page (PDP) */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.pdp-gallery {
  position: sticky;
  top: calc(var(--site-header-height, 5rem) + 12px);
  min-width: 0;
  max-width: 100%;
}

.pdp-gallery__stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-sizing: border-box;
}

html[data-theme="light"] .pdp-gallery__stage {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(26, 16, 36, 0.1);
}

.pdp-gallery__main {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  display: block;
  background: rgba(12, 6, 18, 0.35);
}

html[data-theme="light"] .pdp-gallery__main {
  background: rgba(26, 16, 36, 0.04);
}

.pdp-gallery__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.pdp-gallery__main:not(.pdp-gallery__main--empty) .pdp-gallery__placeholder {
  display: none;
}

.pdp-gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
  background: transparent;
}

.pdp-gallery__zoom {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(12, 6, 18, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}

.pdp-gallery__zoom:hover {
  background: rgba(251, 113, 133, 0.88);
  transform: scale(1.03);
}

.pdp-lightbox {
  border: none;
  padding: 0;
  width: min(96vw, 1200px);
  max-width: 96vw;
  max-height: 96vh;
  background: transparent;
  overflow: visible;
}

.pdp-lightbox::backdrop {
  background: rgba(8, 4, 12, 0.88);
  backdrop-filter: blur(6px);
}

.pdp-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.pdp-lightbox__img {
  display: block;
  max-width: 96vw;
  max-height: calc(96vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.pdp-lightbox__caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  text-align: center;
}

.pdp-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.pdp-lightbox__close:hover {
  background: rgba(251, 113, 133, 0.9);
}

.pdp-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(12, 6, 18, 0.65);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}

.pdp-gallery__nav:hover {
  background: rgba(251, 113, 133, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.pdp-gallery__nav--prev { left: 0.65rem; }
.pdp-gallery__nav--next { right: 0.65rem; }

.pdp-gallery__counter {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(12, 6, 18, 0.7);
  color: #fff;
}

.pdp-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.pdp-thumb {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pdp-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}

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

.pdp-buy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.pdp-buy__panel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
}

html[data-theme="light"] .pdp-buy__panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88));
  border-color: rgba(26, 16, 36, 0.1);
}

.pdp-buy h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.pdp-intro {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  color: var(--text);
  font-size: 0.98rem;
}

.pdp-about {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.35rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  max-width: 100%;
}

.pdp-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.pdp-about__main {
  min-width: 0;
}

.pdp-about__sidebar {
  min-width: 0;
  display: grid;
  gap: 0.85rem;
}

.pdp-sidebar-card {
  background: color-mix(in srgb, var(--surface, #111) 92%, var(--text, #fff) 8%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
}

.pdp-sidebar-card--trust {
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent, #c9a227) 12%, transparent), color-mix(in srgb, var(--surface, #111) 96%, var(--text, #fff) 4%));
}

.pdp-sidebar-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.pdp-highlights li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

.pdp-highlights li::before {
  content: "✓";
  color: var(--accent, #c9a227);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.pdp-specs {
  margin: 0;
  display: grid;
  gap: 0;
}

.pdp-specs > div {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.pdp-specs > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pdp-specs dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.pdp-specs dd {
  margin: 0;
  text-align: right;
  color: var(--text);
  font-weight: 500;
}

.pdp-sidebar-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.pdp-sidebar-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.pdp-sidebar-trust a {
  color: var(--accent, #c9a227);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

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

.pdp-about h2 {
  margin: 0.35rem 0 0.85rem;
  font-size: var(--text-h3, 1.35rem);
}

.pdp-desc--full {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.96rem;
  max-width: none;
}

@media (max-width: 900px) {
  .pdp-about__grid {
    grid-template-columns: 1fr;
  }

  .pdp-about__sidebar {
    order: 2;
  }
}

.pdp-desc--rich p + p {
  margin-top: 1rem;
}

.pdp-desc--rich a {
  color: var(--accent, #c9a227);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.pdp-buy .product-price {
  font-size: 1.35rem;
  margin: 0.25rem 0 0.75rem;
}

.pdp-desc {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
  font-size: 0.95rem;
}

.pdp-options {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.pdp-option label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.pdp-option {
  min-width: 0;
}

.pdp-option select,
.pdp-option input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 6, 18, 0.65);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.pdp-option select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  background-color: rgba(12, 6, 18, 0.65);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e9d5ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.25rem;
  cursor: pointer;
}

.pdp-option select option {
  background: #1a1024;
  color: #f5f0fa;
}

.pdp-option select:hover,
.pdp-option select:focus {
  border-color: rgba(251, 113, 133, 0.45);
  background-color: rgba(22, 12, 32, 0.92);
}

html[data-theme="light"] .pdp-option select,
html[data-theme="light"] .pdp-option input {
  background: #fff;
  border-color: rgba(26, 16, 36, 0.15);
  color: var(--text);
  color-scheme: light;
}

html[data-theme="light"] .pdp-option select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c4d6e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}

html[data-theme="light"] .pdp-option select option {
  background: #fff;
  color: #1a1024;
}

html[data-theme="light"] .pdp-option select:hover,
html[data-theme="light"] .pdp-option select:focus {
  background-color: #fff;
}

.pdp-options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.pdp-addons {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.pdp-addons__heading {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-addons__hint {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
  opacity: 0.85;
}

.pdp-addons__list {
  display: grid;
  gap: 0.55rem;
}

.pdp-addon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 6, 18, 0.45);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: normal;
  font-weight: normal;
  font-size: inherit;
  color: inherit;
}

.pdp-addon:hover {
  border-color: rgba(251, 113, 133, 0.35);
}

.pdp-addon:has(.pdp-addon__check:checked) {
  border-color: rgba(251, 113, 133, 0.55);
  background: rgba(251, 113, 133, 0.08);
}

.pdp-addon__check {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--accent, #fb7185);
}

.pdp-addon__body {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.pdp-addon__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pdp-addon__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

.pdp-addon__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
}

.pdp-addon__price {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, #fb7185);
  white-space: nowrap;
}

.pdp-price-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

html[data-theme="light"] .pdp-addon {
  background: #fff;
  border-color: rgba(26, 16, 36, 0.12);
}

html[data-theme="light"] .pdp-addon:has(.pdp-addon__check:checked) {
  background: rgba(251, 113, 133, 0.06);
  border-color: rgba(190, 74, 111, 0.35);
}

.pdp-tryon-promo {
  margin-top: 1.25rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md, 14px);
  border: 1px solid rgba(196, 132, 255, 0.35);
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.18) 0%, rgba(107, 0, 49, 0.12) 100%);
  display: grid;
  gap: 0.85rem;
}

html[data-theme="light"] .pdp-tryon-promo {
  background: linear-gradient(145deg, rgba(237, 233, 254, 0.95) 0%, rgba(252, 231, 243, 0.9) 100%);
  border-color: rgba(107, 0, 49, 0.2);
}

.pdp-tryon-promo__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(216, 180, 254, 0.95);
}

html[data-theme="light"] .pdp-tryon-promo__eyebrow {
  color: rgba(107, 0, 49, 0.75);
}

.pdp-tryon-promo__title {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.pdp-tryon-promo__text {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.pdp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.pdp-actions .btn {
  width: 100%;
  margin: 0;
  justify-content: center;
}

.pdp-actions .btn-buy-now {
  font-weight: 700;
  border: 1.5px solid rgba(196, 132, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.pdp-actions .btn-buy-now:hover {
  border-color: rgba(216, 180, 254, 0.75);
  background: rgba(139, 45, 120, 0.18);
  color: #fff;
}

html[data-theme="light"] .pdp-actions .btn-buy-now {
  background: #fff;
  border-color: rgba(107, 0, 49, 0.38);
  color: #6b0031;
  box-shadow: 0 2px 10px rgba(107, 0, 49, 0.1);
}

html[data-theme="light"] .pdp-actions .btn-buy-now:hover {
  background: rgba(107, 0, 49, 0.06);
  border-color: rgba(107, 0, 49, 0.55);
  color: #4a0022;
}

.pdp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.pdp-reviews {
  margin-top: var(--space-2xl, 3rem);
  padding: var(--space-lg, 1.5rem);
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .pdp-reviews {
  background: rgba(255, 255, 255, 0.92);
}

.pdp-reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pdp-reviews__score {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}

.pdp-review-list {
  display: grid;
  gap: 1rem;
}

.pdp-review {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .pdp-review {
  background: #fff;
}

.pdp-review strong {
  display: block;
  margin-bottom: 0.25rem;
}

.pdp-review span {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .pdp {
    grid-template-columns: 1fr;
  }

  .pdp-gallery {
    position: static;
  }
}

@media (max-width: 540px) {
  .pdp-options-row,
  .pdp-actions {
    grid-template-columns: 1fr;
  }

  .pdp-buy__panel {
    padding: 1.1rem 1rem;
  }
}
