/* ══════════════════════════════════════════════════════════════════════
   SELAKA BALI · pdp.css — dynamic product pages (functions/p/[slug].js)
   only. TWO passes: layout (pass 1) then editorial overrides (pass 2,
   Phase 2A) — pass 2 intentionally overrides pass 1, order is
   load-bearing. Loads AFTER base.css. Split from styles.css in batch 1D.
══════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════
   PDP GALLERY FOCUS STATES
══════════════════════════════════════════════════════════════════════ */
.pdp-gallery-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -8px;
}


/* ══════════════════════════════════════════════════════════════════════
   PDP — LAYOUT (pass 1; pass 2 below intentionally overrides)
══════════════════════════════════════════════════════════════════════ */

.pdp-crumbs {
  max-width: var(--max-w);
  margin: 88px auto 0;
  padding: 0 var(--pad);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}
.pdp-crumbs a { color: var(--stone); text-decoration: none; }
.pdp-crumbs a:hover { color: var(--charcoal); }
.pdp-crumbs [aria-current="page"] { color: var(--charcoal); }

.pdp-section { padding: 32px 0 96px; }
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.pdp-media { margin: 0; }
.pdp-gallery {
  position: relative;
  background: var(--ivory-2);
  overflow: hidden;
}
.pdp-img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--ivory-2);
}
.pdp-image-placeholder {
  min-height: min(72vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--stone);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
}
.pdp-image-placeholder[hidden] { display: none; }
.pdp-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(248,246,242,.82);
  color: var(--charcoal);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.pdp-gallery-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.04);
}
.pdp-gallery-prev { left: 14px; }
.pdp-gallery-next { right: 14px; }
.pdp-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  min-height: 44px;
  margin-top: 4px;
}
.pdp-gallery-dot {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.pdp-gallery-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stone);
  opacity: .55;
  transform: translate(-50%, -50%);
  transition: opacity .22s, background .22s, transform .22s;
}
.pdp-gallery-dot.active::before {
  background: var(--gold);
  opacity: 1;
}
.pdp-gallery-dot:hover::before {
  opacity: .82;
  transform: translate(-50%, -50%) scale(1.15);
}
.pdp-body { display: flex; flex-direction: column; }
.pdp-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
}
.pdp-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--charcoal);
  margin: 0 0 18px;
}
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pdp-price {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--charcoal);
}
.pdp-avail {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.pdp-avail--oos { color: var(--stone); border-color: var(--line-2); }
.pdp-desc p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.pdp-detail-section { margin-top: 26px; }
.pdp-section-h {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 28px 0 10px;
}
.pdp-dims {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.pdp-specs {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pdp-specs div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.pdp-specs dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}
.pdp-specs dd {
  margin: 0;
  font-size: 13px;
  color: var(--charcoal);
  text-align: right;
}
.pdp-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pdp-features li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.pdp-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.pdp-trust-band {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pdp-trust-band span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 0;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.pdp-trust-band span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  flex: 0 0 auto;
}
.pdp-trust-band span + span { border-top: 1px solid var(--line); }
.pdp-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}
.pdp-ctas .btn { width: 100%; }
.pdp-mobile-buy-bar { display: none; }
.pdp-backlink {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pdp-backlink a {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.pdp-backlink a:hover { color: var(--charcoal); border-bottom-color: var(--charcoal); }
.pdp-status {
  padding: 132px 0 96px;
}
.pdp-status .wrap {
  max-width: 620px;
}
.pdp-status-copy,
.pdp-status-detail {
  color: var(--stone);
  line-height: 1.7;
}
.pdp-status-detail {
  font-size: 12px;
}

@media (min-width: 640px) {
  .pdp-trust-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pdp-trust-band span {
    align-items: flex-start;
    padding: 14px 16px;
  }
  .pdp-trust-band span:first-child { padding-left: 0; }
  .pdp-trust-band span + span {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body.pdp-page {
    padding-bottom: calc(98px + env(safe-area-inset-bottom));
  }
  .pdp-mobile-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 540;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
    background: rgba(248,246,242,.96);
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -8px 28px rgba(28,28,26,.08);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
  }
  .pdp-mobile-buy-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  .pdp-mobile-buy-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 19px;
    line-height: 1.05;
    color: var(--charcoal);
  }
  .pdp-mobile-buy-price {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .05em;
    color: var(--stone);
  }
  .pdp-mobile-buy-bar .btn {
    min-width: 112px;
    padding: 13px 16px;
  }
}

@media (min-width: 860px) {
  .pdp-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
  .pdp-ctas { flex-direction: row; }
  .pdp-ctas .btn { width: auto; flex: 1; }
}

/* ══════════════════════════════════════════════════════════════════════
   PDP — EDITORIAL OVERRIDES (pass 2, Phase 2A redesign; order load-bearing)
══════════════════════════════════════════════════════════════════════ */
.pdp-crumbs {
  margin-top: 32px;
  color: var(--stone);
}

.pdp-section { padding: 24px 0 42px; }
.pdp-hero-section { padding-bottom: 46px; }

.pdp-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}

.pdp-media-region,
.pdp-buy-panel {
  min-width: 0;
}

.pdp-media {
  margin: 0;
}

.pdp-gallery {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(201,169,110,.11), rgba(255,255,255,0) 42%),
    var(--ivory-2);
  border: 1px solid rgba(28,28,26,.06);
  border-radius: var(--r);
  box-shadow: 0 18px 48px rgba(28,28,26,.08);
}

.pdp-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: var(--ivory-2);
}

.pdp-image-placeholder {
  min-height: 0;
  height: 100%;
  border-radius: var(--r);
}

.pdp-gallery-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(28,28,26,.12);
  background: rgba(248,246,242,.78);
  box-shadow: 0 8px 24px rgba(28,28,26,.08);
  color: var(--ink-2);
  font-size: 22px;
  opacity: .88;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.pdp-gallery-btn:hover {
  background: rgba(255,255,255,.94);
  border-color: rgba(128,101,47,.28);
  color: var(--charcoal);
  opacity: 1;
  transform: translateY(-50%);
}

.pdp-gallery-prev { left: 16px; }
.pdp-gallery-next { right: 16px; }

.pdp-gallery-dots {
  align-items: center;
  gap: 2px;
  margin-top: 8px;
}

.pdp-gallery-dot::before {
  width: 6px;
  height: 6px;
}

.pdp-buy-panel {
  display: flex;
  flex-direction: column;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-2);
}

.pdp-type,
.pdp-kicker {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
}

.pdp-type { margin-bottom: 10px; }

.pdp-name {
  max-width: 9.5em;
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 52px;
  line-height: .96;
  letter-spacing: 0;
  color: var(--charcoal);
  text-wrap: balance;
}

.pdp-price-row {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.pdp-price {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--charcoal);
}
.pdp-currency-control {
  justify-self: start;
}

.pdp-avail {
  justify-self: start;
  max-width: 34ch;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.55;
  color: var(--ink-2);
}

.pdp-avail--oos {
  color: var(--stone);
}

.pdp-panel-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 6px 0 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pdp-panel-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.pdp-panel-trust span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .72;
  flex: 0 0 auto;
}

.pdp-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.pdp-ctas .btn {
  width: 100%;
}

.pdp-ctas .btn-light {
  background: transparent;
  border-color: var(--line-2);
  color: var(--charcoal);
}

.pdp-ctas .btn-light:hover {
  background: var(--ivory-2);
  color: var(--charcoal);
  border-color: var(--line-3);
}

.pdp-ctas .btn.is-disabled {
  background: var(--ivory-3);
  border-color: var(--line-2);
  color: var(--stone);
  opacity: .74;
}

.pdp-buy-panel--sold-out .pdp-secondary-cta {
  background: var(--white);
  border-color: var(--line-3);
}

.pdp-editorial-region {
  padding: 42px 0 44px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.32);
}

.pdp-story-panel {
  max-width: 780px;
}

.pdp-editorial-title {
  max-width: 11em;
  margin: 10px 0 22px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--charcoal);
}

.pdp-info-panel .pdp-editorial-title {
  max-width: 12em;
  margin-bottom: 18px;
  font-size: 30px;
}

.pdp-desc {
  max-width: 720px;
}

.pdp-desc p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.76;
  color: var(--ink-2);
}

.pdp-desc p:first-child {
  font-size: 17px;
  color: var(--charcoal);
}

.pdp-details-support-region {
  padding: 48px 0 88px;
}

.pdp-module-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.pdp-module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.pdp-info-panel {
  min-width: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}

.pdp-module-title {
  margin: 8px 0 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--charcoal);
}

.pdp-module-copy {
  max-width: 42ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.pdp-detail-section {
  margin-top: 24px;
}

.pdp-section-h {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone);
}

.pdp-dims {
  max-width: 48ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

.pdp-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pdp-features li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

.pdp-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

.pdp-specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 22px;
  margin: 0;
  padding: 0;
  border: 0;
}

.pdp-specs div {
  display: grid;
  gap: 5px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line);
}

.pdp-specs div + div {
  border-top: 0;
}

.pdp-specs dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}

.pdp-specs dd {
  margin: 0;
  font-size: 13px;
  color: var(--charcoal);
  text-align: left;
}

.pdp-care-list,
.pdp-ordering-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pdp-care-list li,
.pdp-ordering-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

.pdp-care-list li::before,
.pdp-ordering-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 7px;
  height: 1px;
  background: var(--gold);
}

.pdp-support-action {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pdp-support-action p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--stone);
}

.pdp-support-link {
  display: inline-flex;
  align-self: start;
  margin-top: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color .2s, border-color .2s;
}

.pdp-support-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,169,110,.08);
}

.pdp-backlink {
  margin-top: 34px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pdp-backlink a {
  color: var(--stone);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}

.pdp-backlink a:hover {
  color: var(--charcoal);
  border-bottom-color: var(--charcoal);
}

.pdp-status {
  padding: 132px 0 96px;
}

.pdp-status .wrap {
  max-width: 620px;
}

.pdp-status-copy,
.pdp-status-detail {
  color: var(--stone);
  line-height: 1.7;
}

.pdp-status-detail {
  font-size: 12px;
}

@media (max-width: 640px) {
  body.pdp-page {
    --pdp-mobile-buy-clearance: 90px;
    padding-bottom: calc(var(--pdp-mobile-buy-clearance) + env(safe-area-inset-bottom, 0px));
  }

  .pdp-crumbs {
    margin-top: 22px;
    font-size: 10px;
  }

  .pdp-section {
    padding-top: 22px;
  }

  .pdp-hero-section {
    padding-bottom: 36px;
  }

  .pdp-gallery-prev { left: 10px; }
  .pdp-gallery-next { right: 10px; }

  .pdp-buy-panel {
    padding-top: 20px;
  }

  .pdp-name {
    max-width: 100%;
    font-size: 46px;
  }

  .pdp-editorial-region {
    padding: 36px 0 38px;
  }

  .pdp-details-support-region {
    padding: 40px 0 72px;
  }

  .pdp-mobile-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 540;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px var(--pad) calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(248,246,242,.94);
    border-top: 1px solid rgba(28,28,26,.11);
    box-shadow: 0 -6px 22px rgba(28,28,26,.055);
    backdrop-filter: blur(16px) saturate(1.12);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
  }

  .pdp-mobile-buy-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  .pdp-mobile-buy-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    line-height: 1.08;
    letter-spacing: 0;
    color: var(--charcoal);
  }

  .pdp-mobile-buy-price {
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .06em;
    color: var(--stone);
  }

  .pdp-mobile-buy-bar .btn {
    min-width: 106px;
    min-height: 44px;
    padding: 11px 14px;
    box-shadow: none;
    letter-spacing: .12em;
  }

  .pdp-mobile-buy-bar .btn:hover,
  .pdp-mobile-buy-bar .btn:active {
    transform: none;
    box-shadow: none;
  }

  .pdp-mobile-buy-bar .btn.is-disabled {
    background: rgba(232,228,222,.72);
    border-color: var(--line-2);
    color: var(--stone);
    cursor: default;
    opacity: 1;
    pointer-events: none;
  }
}

@media (min-width: 700px) {
  .pdp-gallery {
    aspect-ratio: 11 / 10;
    max-height: min(74vh, 640px);
    background:
      radial-gradient(circle at 50% 50%, rgba(255,255,255,.56), rgba(240,237,232,.94) 68%),
      var(--ivory-2);
  }

  .pdp-img {
    object-fit: cover;
    object-position: center center;
    background:
      radial-gradient(circle at 50% 50%, rgba(255,255,255,.56), rgba(240,237,232,.94) 68%),
      var(--ivory-2);
  }

  .pdp-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
  }

  .pdp-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .pdp-crumbs {
    margin-top: 48px;
  }

  .pdp-hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 52px;
  }

  .pdp-buy-panel {
    position: sticky;
    top: 88px;
    padding-top: 28px;
  }

  .pdp-ctas {
    flex-direction: column;
  }

  .pdp-ctas .btn {
    width: 100%;
    flex: initial;
  }

  .pdp-module-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr);
    gap: 54px;
  }

  .pdp-module--details {
    grid-row: span 3;
  }

  .pdp-name {
    font-size: 66px;
  }

  .pdp-editorial-title {
    font-size: 52px;
  }

  .pdp-info-panel .pdp-editorial-title {
    font-size: 38px;
  }

  .pdp-module-title {
    font-size: 34px;
  }
}

@media (min-width: 1160px) {
  .pdp-hero-layout {
    gap: 66px;
  }

  .pdp-name {
    font-size: 72px;
  }
}

