.pdp {
  --pd-ink: #0c0a09;
  --pd-ivory: #f4efe8;
  --pd-champagne: #d8c5ac;
  --pd-gold: #c8a96a;
  --pd-wine: #033816;
  --pd-muted: #b9ada0;
  --pd-line: rgba(200, 169, 106, 0.22);
  --pd-gap: clamp(1rem, 2.2vw, 2.5rem);

  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--pd-ink);
  color: var(--pd-ivory);
  padding: clamp(7.5rem, 15vh, 10rem) 0 clamp(5rem, 12vh, 9rem);
}

.pdp .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Background (same language as the hero) ---------- */
.pd-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      50% 30% at 88% 10%,
      rgba(90, 31, 46, 0.55) 0%,
      rgba(90, 31, 46, 0) 70%
    ),
    radial-gradient(
      45% 28% at 4% 60%,
      rgba(90, 31, 46, 0.32) 0%,
      rgba(90, 31, 46, 0) 70%
    ),
    radial-gradient(
      40% 20% at 50% 100%,
      rgba(200, 169, 106, 0.1) 0%,
      rgba(200, 169, 106, 0) 70%
    ),
    linear-gradient(180deg, #0c0a09 0%, #07120b 45%, #0c0a09 100%);
}

.pd-glow {
  position: absolute;
  width: 36vw;
  height: 36vw;
  right: 4%;
  top: 6%;
  background: radial-gradient(
    circle,
    rgba(200, 169, 106, 0.12),
    rgba(200, 169, 106, 0) 65%
  );
  filter: blur(30px);
  pointer-events: none;
}

.pd-ring {
  position: absolute;
  width: min(60vw, 760px);
  aspect-ratio: 1;
  right: -20%;
  top: 4%;
  border-radius: 50%;
  border: 1px dashed rgba(200, 169, 106, 0.22);
  pointer-events: none;
  animation: pd-spin 90s linear infinite;
}

.pd-ring::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pd-gold);
  top: 14%;
  left: 14%;
  box-shadow: 0 0 20px var(--pd-gold);
}

.pd-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.6'/></svg>");
}

@keyframes pd-spin {
  to {
    transform: rotate(360deg);
  }
}

.pd-inner {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- WooCommerce notices (added to bag, errors) ---------- */
.pdp .woocommerce-notices-wrapper:empty {
  display: none;
}

.pdp .woocommerce-notices-wrapper {
  margin-bottom: 1.6rem;
}

.pdp .woocommerce-message,
.pdp .woocommerce-error,
.pdp .woocommerce-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin: 0 0 1rem;
  padding: 1.1rem 1.4rem;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--pd-ivory);
  background: rgba(200, 169, 106, 0.08);
  border: 1px solid rgba(200, 169, 106, 0.5);
}

.pdp .woocommerce-message .button,
.pdp .pd-notice-link {
  order: 2;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pd-gold);
  border-bottom: 1px solid rgba(200, 169, 106, 0.5);
  padding-bottom: 0.2rem;
  background: none;
}

.pdp .woocommerce-message .button:hover,
.pdp .pd-notice-link:hover {
  border-bottom-color: var(--pd-gold);
}

/* ---------- Breadcrumb ---------- */
.pd-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  margin: 0 0 clamp(1.8rem, 4vh, 3rem);
  padding: 0;
  list-style: none;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-crumbs li + li::before {
  content: "/";
  margin: 0 0.9em;
  opacity: 0.5;
}

.pd-crumbs a {
  transition: color 0.4s ease;
}

.pd-crumbs a:hover,
.pd-crumbs a:focus-visible {
  color: var(--pd-gold);
  outline: none;
}

.pd-crumbs li[aria-current] {
  color: var(--pd-ivory);
}

/* ---------- Main layout ---------- */
.pd-main {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

/* ---------- Gallery ---------- */
.pd-gallery {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
}

.pd-gallery:not(:has(.pd-thumbs)) {
  grid-template-columns: minmax(0, 1fr);
}

.pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pd-thumb {
  display: block;
  padding: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a1a10;
  border: 1px solid transparent;
  opacity: 0.55;
  cursor: pointer;
  transition:
    opacity 0.4s ease,
    border-color 0.4s ease;
}

.pd-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-thumb:hover,
.pd-thumb:focus-visible {
  opacity: 0.9;
  outline: none;
}

.pd-thumb.is-active {
  opacity: 1;
  border-color: var(--pd-gold);
}

.pd-stage {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(200, 169, 106, 0.4);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(90, 31, 46, 0.25);
  overflow: hidden;
}

.pd-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.pd-track::-webkit-scrollbar {
  display: none;
}

.pd-track:focus-visible {
  outline: 1px solid var(--pd-gold);
  outline-offset: -4px;
}

.pd-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  scroll-snap-align: start;
  background: linear-gradient(170deg, #033816 0%, #0a1a10 50%, #6b4a2a 100%);
}

.pd-slide__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.pdp .pd-slide__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 1.6s var(--ease);
}

.pd-slide__ph {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      60% 40% at 50% 28%,
      rgba(200, 169, 106, 0.28),
      rgba(200, 169, 106, 0) 70%
    ),
    linear-gradient(170deg, #033816 0%, #0a1a10 50%, #6b4a2a 100%);
}

@media (hover: hover) and (pointer: fine) {
  .pd-slide__btn:hover .pd-slide__img {
    transform: scale(1.04);
  }
}

.pd-counter {
  position: absolute;
  z-index: 3;
  left: 1.2rem;
  bottom: 1.1rem;
  margin: 0;
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--pd-ivory);
  background: rgba(12, 10, 9, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Arrows (gallery and lightbox) */
.pd-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 3rem;
  height: 3rem;
  margin-top: -1.5rem;
  padding: 0;
  cursor: pointer;
  color: var(--pd-ivory);
  background: rgba(12, 10, 9, 0.55);
  border: 1px solid rgba(200, 169, 106, 0.45);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition:
    opacity 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease;
}

.pd-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.pd-arrow--prev {
  left: 1rem;
}
.pd-arrow--prev::after {
  transform: translate(-30%, -50%) rotate(-135deg);
}
.pd-arrow--next {
  right: 1rem;
}
.pd-arrow--next::after {
  transform: translate(-70%, -50%) rotate(45deg);
}

.pd-stage:hover .pd-arrow,
.pd-arrow:focus-visible,
.pd-lb .pd-arrow {
  opacity: 1;
}

.pd-arrow:hover,
.pd-arrow:focus-visible {
  background: var(--pd-gold);
  border-color: var(--pd-gold);
  color: var(--pd-ink);
  outline: none;
}

.pd-arrow:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

/* ---------- Summary ---------- */
.pd-summary {
  min-width: 0;
}

.pd-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--pd-gold);
}

.pd-eyebrow__line {
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--pd-gold);
}

.pd-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--pd-ivory);
}

.pd-sku {
  margin: 0.9rem 0 0;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-price {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--pd-ivory);
}

.pd-price .price,
.pd-price p {
  margin: 0;
}

.pd-price del {
  margin-right: 0.6em;
  font-size: 0.8em;
  opacity: 0.45;
}

.pd-price ins {
  text-decoration: none;
  color: var(--pd-gold);
}

.pd-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.1rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pd-gold);
}

.pd-status.is-out::before {
  background: transparent;
  border: 1px solid var(--pd-muted);
}

.pd-short {
  max-width: 32rem;
  margin-top: 1.6rem;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--pd-muted);
}

.pd-short p {
  margin: 0 0 0.8rem;
}

.pd-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--pd-muted);
}

/* ---------- Buy area (WooCommerce form, restyled) ---------- */
.pd-buy {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--pd-line);
}

.pd-buy > p.stock {
  display: none;
}

.pdp .variations {
  width: 100%;
  margin: 0 0 0.6rem;
  border: 0;
  border-collapse: collapse;
}

.pdp .variations tbody,
.pdp .variations tr,
.pdp .variations th,
.pdp .variations td {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
  background: none;
}

.pdp .variations tr {
  margin-bottom: 1.6rem;
}

.pdp .variations th.label {
  margin-bottom: 0.85rem;
}

.pdp .variations th.label label {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pd-gold);
}

.pd-sel {
  margin-left: 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--pd-ivory);
}

.pdp .variations td.value {
  position: relative;
}

/* Native dropdown stays in the page (WooCommerce uses it) but is visually hidden. */
.pdp .variations select.pd-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Fallback look if the buttons could not be built. */
.pdp .variations select:not(.pd-native) {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--pd-ivory);
  background: #07120b;
  border: 1px solid var(--pd-line);
  border-radius: 0;
}

.pd-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pd-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 3.1rem;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pd-ivory);
  background: transparent;
  border: 1px solid rgba(244, 239, 232, 0.22);
  cursor: pointer;
  transition:
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    opacity 0.4s ease;
}

.pd-opt:hover,
.pd-opt:focus-visible {
  border-color: var(--pd-gold);
  outline: none;
}

.pd-opt[aria-pressed="true"] {
  color: var(--pd-ink);
  background: var(--pd-gold);
  border-color: var(--pd-gold);
}

.pd-opts--color .pd-opt {
  padding: 0.5rem 1rem 0.5rem 0.55rem;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.08em;
}

.pd-opts--color .pd-opt i {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--sw);
  border: 1px solid rgba(244, 239, 232, 0.4);
}

.pd-opts--color .pd-opt[aria-pressed="true"] {
  color: var(--pd-ivory);
  background: transparent;
  border-color: var(--pd-gold);
  box-shadow: inset 0 0 0 1px var(--pd-gold);
}

.pd-opt:disabled,
.pd-opt.is-unavailable {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.pd-opt:disabled:hover {
  border-color: rgba(244, 239, 232, 0.22);
}

.pdp .reset_variations {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pd-gold);
  border-bottom: 1px solid rgba(200, 169, 106, 0.4);
}

/* Variation price is shown at the top once the script is running. */
.pdp.is-enhanced .woocommerce-variation-price {
  display: none;
}

.pdp .woocommerce-variation-description p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--pd-muted);
}

.pdp p.stock {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pdp p.stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pd-gold);
}

.pdp p.stock.out-of-stock::before {
  background: transparent;
  border: 1px solid var(--pd-muted);
}

/* Quantity + button row */
.pdp form.cart:not(.variations_form),
.pdp .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.pdp .quantity {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(244, 239, 232, 0.22);
}

.pdp .quantity input.qty {
  width: 3rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: center;
  color: var(--pd-ivory);
  background: transparent;
  border: 0;
  border-radius: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.pdp .quantity input.qty::-webkit-outer-spin-button,
.pdp .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pdp .quantity input.qty:focus-visible {
  outline: 1px solid var(--pd-gold);
}

.pd-qty__btn {
  width: 2.8rem;
  padding: 0;
  font-size: 1.1rem;
  color: var(--pd-ivory);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.pd-qty__btn:hover,
.pd-qty__btn:focus-visible {
  color: var(--pd-gold);
  outline: none;
}

.pdp .single_add_to_cart_button {
  flex: 1;
  min-height: 3.4rem;
  padding: 1.05rem 2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pd-ink);
  background: var(--pd-gold);
  border: 1px solid var(--pd-gold);
  border-radius: 0;
  cursor: pointer;
  transition:
    background 0.5s var(--ease),
    color 0.5s var(--ease),
    opacity 0.4s ease;
}

.pdp .single_add_to_cart_button:hover,
.pdp .single_add_to_cart_button:focus-visible {
  color: var(--pd-gold);
  background: transparent;
  outline: none;
}

.pdp .single_add_to_cart_button.disabled,
.pdp .single_add_to_cart_button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pdp .single_add_to_cart_button.disabled:hover {
  color: var(--pd-ink);
  background: var(--pd-gold);
}

.pdp .single_add_to_cart_button.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.pdp .single_add_to_cart_button.is-loading::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.8em;
  vertical-align: -0.1em;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pd-spin 0.8s linear infinite;
}

/* ---------- Details accordion ---------- */
.pd-info {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--pd-gap);
  margin-top: clamp(5rem, 12vh, 9rem);
  padding-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--pd-line);
}

.pd-info__head {
  grid-column: 1 / span 4;
}

.pd-acc {
  grid-column: 6 / -1;
  border-top: 1px solid var(--pd-line);
}

.pd-sec-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: var(--pd-ivory);
}

.pd-sec-title em {
  font-style: italic;
  color: var(--pd-gold);
}

.pd-acc__item {
  border-bottom: 1px solid var(--pd-line);
}

.pd-acc__title {
  margin: 0;
}

.pd-acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 400;
  text-align: left;
  color: var(--pd-ivory);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.4s ease;
}

.pd-acc__btn:hover,
.pd-acc__btn:focus-visible {
  color: var(--pd-gold);
  outline: none;
}

.pd-acc__btn i {
  position: relative;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-left: 1rem;
}

.pd-acc__btn i::before,
.pd-acc__btn i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}

.pd-acc__btn i::after {
  transform: rotate(90deg);
}

.is-open > .pd-acc__title .pd-acc__btn i::after {
  transform: rotate(0deg);
}

.pd-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows 0.6s var(--ease),
    visibility 0s linear 0.6s;
}

.is-open > .pd-acc__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.6s var(--ease);
}

.pd-acc__inner {
  min-height: 0;
  overflow: hidden;
}

.pd-acc__content {
  padding: 0 0 1.8rem;
  max-width: 38rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--pd-muted);
}

.pd-prose > :first-child {
  margin-top: 0;
}
.pd-prose p {
  margin: 0 0 1rem;
}

.pd-link {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pd-gold);
  border-bottom: 1px solid rgba(200, 169, 106, 0.4);
  padding-bottom: 0.25rem;
}

.pd-link:hover {
  border-bottom-color: var(--pd-gold);
}

.pdp .woocommerce-product-attributes {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pdp .woocommerce-product-attributes th,
.pdp .woocommerce-product-attributes td {
  padding: 0.7rem 0;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-top: 1px solid var(--pd-line);
  background: none;
}

.pdp .woocommerce-product-attributes th {
  width: 38%;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pd-gold);
}

.pdp .woocommerce-product-attributes td p {
  margin: 0;
}

/* ---------- Related products ---------- */
.pd-rel {
  margin-top: clamp(5rem, 12vh, 9rem);
}

.pd-rel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 4rem) var(--pd-gap);
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.pd-card {
  display: block;
  color: inherit;
}

.pd-card:focus-visible {
  outline: none;
}

.pd-card:focus-visible .pd-card__frame {
  outline: 1px solid var(--pd-gold);
  outline-offset: 5px;
}

.pd-card__frame {
  position: relative;
  aspect-ratio: 4 / 5.3;
  overflow: hidden;
  isolation: isolate;
  background: #0a1a10;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.pdp .pd-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 22%;
  transition:
    transform 1.6s var(--ease),
    opacity 0.9s ease;
}

.pdp .pd-card__img--alt {
  opacity: 0;
}

.pd-card__ph {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      60% 40% at 50% 28%,
      rgba(200, 169, 106, 0.28),
      rgba(200, 169, 106, 0) 70%
    ),
    linear-gradient(170deg, #033816 0%, #0a1a10 50%, #6b4a2a 100%);
}

.pd-card__frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 9, 0) 65%,
    rgba(12, 10, 9, 0.4) 100%
  );
}

.pd-rel__item.is-soldout .pd-card__img {
  opacity: 0.55;
}

.pd-card__meta {
  margin-top: 1.2rem;
}

.pd-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.pd-card__name {
  display: inline;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.2;
  color: var(--pd-ivory);
  background-image: linear-gradient(var(--pd-gold), var(--pd-gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition:
    background-size 0.7s var(--ease),
    color 0.5s ease;
}

.pd-card__price {
  font-size: 0.88rem;
  white-space: nowrap;
  color: var(--pd-ivory);
}

.pd-card__price del {
  margin-right: 0.5em;
  opacity: 0.45;
}

.pd-card__price ins {
  text-decoration: none;
  color: var(--pd-gold);
}

.pd-card__cat,
.pd-card__status {
  margin: 0.45rem 0 0;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-card__status {
  color: var(--pd-gold);
}

@media (hover: hover) and (pointer: fine) {
  .pd-card:hover .pd-card__img,
  .pd-card:focus-visible .pd-card__img {
    transform: scale(1.06);
  }
  .pd-card:hover .pd-card__img--alt,
  .pd-card:focus-visible .pd-card__img--alt {
    opacity: 1;
  }
  .pd-card:hover .pd-card__name,
  .pd-card:focus-visible .pd-card__name {
    background-size: 100% 1px;
    color: var(--pd-gold);
  }
}

/* ---------- Lightbox ---------- */
html.pd-lock {
  overflow: hidden;
}

.pd-lb {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1rem 2rem;
  background: rgba(8, 6, 6, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.pd-lb[hidden] {
  display: none;
}

.pd-lb__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.pd-lb__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.8rem;
  height: 2.8rem;
  background: none;
  border: 0;
  cursor: pointer;
}

.pd-lb__close span {
  position: absolute;
  left: 20%;
  top: 50%;
  width: 60%;
  height: 1px;
  background: var(--pd-ivory);
  transition: background 0.3s ease;
}

.pd-lb__close span:first-child {
  transform: rotate(45deg);
}
.pd-lb__close span:last-child {
  transform: rotate(-45deg);
}
.pd-lb__close:hover span,
.pd-lb__close:focus-visible span {
  background: var(--pd-gold);
}
.pd-lb__close:focus-visible {
  outline: 1px solid var(--pd-gold);
}

/* ---------- Sticky add-to-cart bar (mobile only) ---------- */
.pd-sticky {
  display: none;
}

/* ---------- Animation start state (JS only) ---------- */
.js .pd-crumbs,
.js .pd-gal-in,
.js .pd-in,
.js .pd-reveal {
  opacity: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .pd-rel__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-info__head {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
  }
  .pd-acc {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .pd-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }
  .pd-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd-thumbs {
    display: none;
  }
  .pd-arrow {
    display: none;
  }
  .pd-lb .pd-arrow {
    display: block;
  }
  .pd-slide {
    aspect-ratio: 4 / 5;
  }
  .pd-short {
    max-width: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .pdp {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
  }
  .pd-title {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
  }
  .pdp form.cart:not(.variations_form),
  .pdp .woocommerce-variation-add-to-cart {
    flex-wrap: wrap;
  }
  .pdp .single_add_to_cart_button {
    flex: 1 1 100%;
    order: 3;
  }
  .pd-rel__grid {
    gap: 2.4rem 0.9rem;
  }
  .pd-card__row {
    flex-direction: column;
    gap: 0.3rem;
  }
  .pd-card__name {
    font-size: 1.1rem;
  }
  .pd-card__cat,
  .pd-card__status {
    letter-spacing: 0.18em;
  }

  .pd-sticky {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem var(--gutter) calc(0.8rem + env(safe-area-inset-bottom));
    background: rgba(12, 10, 9, 0.92);
    border-top: 1px solid rgba(200, 169, 106, 0.4);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transform: translateY(110%);
    transition: transform 0.6s var(--ease);
  }
  .pd-sticky.is-visible {
    transform: translateY(0);
  }
  .pd-sticky__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .pd-sticky__name {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 1.05rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--pd-ivory);
  }
  .pd-sticky__price {
    font-size: 0.8rem;
    color: var(--pd-muted);
  }
  .pd-sticky__price .price,
  .pd-sticky__price p {
    margin: 0;
  }
  .pd-sticky__price ins {
    text-decoration: none;
    color: var(--pd-gold);
  }
  .pd-sticky__price del {
    margin-right: 0.4em;
    opacity: 0.5;
  }
  .pd-sticky__btn {
    flex: 0 0 auto;
    padding: 0.95rem 1.4rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pd-ink);
    background: var(--pd-gold);
    border: 1px solid var(--pd-gold);
    cursor: pointer;
  }
  .pd-sticky__btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-ring {
    animation: none;
  }
  .pdp .pd-slide__img,
  .pdp .pd-card__img,
  .pd-card__name,
  .pd-opt,
  .pd-arrow,
  .pd-thumb,
  .pd-acc__panel,
  .pd-acc__btn i::before,
  .pd-acc__btn i::after,
  .pd-sticky,
  .pdp .single_add_to_cart_button {
    transition: none;
  }
  .pdp .single_add_to_cart_button.is-loading::after {
    animation: none;
  }
}

/* =====================================================
 * PRODUCT IMAGE STYLING (arch, depth, glass tag)
 * ===================================================== */

.pd-gallery {
  position: relative;
  isolation: isolate;
}

/* Rotating dashed ring behind the image */
.pd-gallery::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 82%;
  aspect-ratio: 1;
  right: -22%;
  top: -6%;
  border-radius: 50%;
  border: 1px dashed rgba(200, 169, 106, 0.38);
  pointer-events: none;
  animation: pd-spin 80s linear infinite;
  translate: var(--rx, 0) var(--ry, 0);
  transition: translate 0.9s var(--ease);
}

.pd-gallery::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 9px;
  height: 9px;
  right: 6%;
  top: 4%;
  border-radius: 50%;
  background: var(--pd-gold);
  box-shadow: 0 0 20px var(--pd-gold);
  pointer-events: none;
}

.pd-thumbs {
  position: relative;
  z-index: 2;
}

/* The stage stops clipping, so the outline and tag can sit outside the image */
.pd-stage {
  position: relative;
  z-index: 1;
  overflow: visible;
  border: 0;
  box-shadow: none;
}

/* Gold outline sitting behind the image */
.pd-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid rgba(200, 169, 106, 0.45);
  border-radius: 999px 999px 0 0;
  transform: translate(16px, 16px);
  pointer-events: none;
  transition:
    transform 0.9s var(--ease),
    border-color 0.9s var(--ease);
}

.pd-stage:hover::before {
  transform: translate(22px, 22px);
  border-color: rgba(200, 169, 106, 0.8);
}

/* The arched image frame */
.pd-track {
  position: relative;
  z-index: 1;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(200, 169, 106, 0.6);
  background: #0a1a10;
  box-shadow:
    0 50px 90px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(90, 31, 46, 0.4);
  will-change: transform;
}

.pd-slide {
  background: linear-gradient(170deg, #033816 0%, #0a1a10 50%, #6b4a2a 100%);
}

/* Soft shade at the bottom of every photo */
.pd-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 9, 0) 62%,
    rgba(12, 10, 9, 0.5) 100%
  );
}

.pd-slide__btn {
  position: relative;
  z-index: 0;
}

/* Counter and arrows sit above the shade */
.pd-counter {
  z-index: 4;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  border: 1px solid rgba(200, 169, 106, 0.4);
}

.pd-arrow {
  z-index: 4;
}

/* Glass tag (same language as the hero card) */
.pd-tag {
  position: absolute;
  z-index: 4;
  right: -1.8rem;
  bottom: 14%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.4rem;
  background: rgba(244, 239, 232, 0.08);
  border: 1px solid rgba(244, 239, 232, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.pd-tag span {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pd-gold);
}

.pd-tag strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--pd-ivory);
}

/* Arched thumbnails */
.pd-thumb {
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(200, 169, 106, 0.25);
  transition:
    opacity 0.4s ease,
    border-color 0.4s ease,
    transform 0.5s var(--ease);
}

.pd-thumb:hover,
.pd-thumb:focus-visible {
  transform: translateY(-3px);
}

.pd-thumb.is-active {
  border-color: var(--pd-gold);
  box-shadow: 0 0 18px rgba(200, 169, 106, 0.3);
}

/* Related-product cards get the gold hairline too */
.pd-card__frame {
  border: 1px solid rgba(200, 169, 106, 0.4);
}

@media (max-width: 900px) {
  .pd-stage::before {
    transform: translate(10px, 10px);
  }
  .pd-stage:hover::before {
    transform: translate(10px, 10px);
  }
  .pd-gallery::before {
    width: 90%;
    right: -30%;
    top: -4%;
  }
  .pd-tag {
    right: 0.6rem;
    bottom: 9%;
    padding: 0.8rem 1.1rem;
  }
  .pd-tag strong {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-gallery::before {
    animation: none;
  }
  .pd-stage::before,
  .pd-thumb,
  .pd-gallery::before {
    transition: none;
  }
}

/* Move the dotted ring to the left side of the image */
.pd-gallery::before {
  right: auto;
  left: -26%;
  top: -6%;
}

/* Move the small gold dot with it */
.pd-gallery::after {
  right: auto;
  left: -4%;
  top: 6%;
}
