/* Product pages: shared House palette, with a dedicated editorial hierarchy. */
.pd-page {
  --pd-line: #17233524;
  --pd-muted: #58616a;
  overflow-wrap: anywhere;
}
.pd-page .pd-hero {
  padding-top: 32px;
  padding-bottom: 56px;
}
.pd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-size: 12px;
}
.pd-breadcrumb a {
  text-decoration: none;
}
.pd-page .product-detail {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
.pd-gallery {
  min-width: 0;
}
.pd-image-stage {
  position: relative;
  background: #eee9df;
}
.pd-image-stage > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8/9;
  object-fit: contain;
}
.pd-image-placeholder {
  min-height: 340px;
  display: grid;
  align-content: center;
  gap: 12px;
  text-align: center;
  font: 32px var(--serif);
}
.pd-image-placeholder span {
  font:
    14px Arial,
    sans-serif;
}
.pd-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  max-width: calc(100% - 40px);
  z-index: 1;
  background: var(--paper);
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--pd-line);
}
.pd-zoom-open {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--pd-line);
  background: var(--paper);
  color: var(--navy);
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  cursor: pointer;
}
.pd-zoom-open span {
  font-size: 22px;
  line-height: 1;
}
.pd-gallery-bottom {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.pd-page .thumbnails {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  padding: 3px;
  gap: 8px;
}
.pd-page .thumbnails button {
  width: 62px;
  flex: 0 0 62px;
  border: 1px solid transparent;
  background: #eee9df;
  cursor: pointer;
}
.pd-page .thumbnails button[aria-pressed="true"] {
  border-color: var(--navy);
  outline: 1px solid var(--paper);
  outline-offset: -4px;
}
.pd-page .thumbnails img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.pd-image-count {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--pd-muted);
  letter-spacing: 0.14em;
}
.pd-page .product-info > .eyebrow {
  margin: 4px 0 16px;
  line-height: 1.7;
}
.pd-page .product-info > .eyebrow span {
  margin: 0 8px;
}
.pd-page .product-info h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.pd-page .pd-summary {
  line-height: 1.8;
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--pd-muted);
}
.pd-glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0 0 24px;
  padding: 20px 0;
  border-block: 1px solid var(--pd-line);
}
.pd-glance dt,
.pd-specifications dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-bottom: 6px;
}
.pd-glance dd {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.pd-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.pd-page .product-price {
  font-size: 25px;
  color: var(--navy);
  margin: 0;
}
.pd-currency {
  color: var(--pd-muted);
  font-size: 11px;
}
.pd-page .compare-price {
  font-size: 15px;
  margin: 0;
}
.pd-price-note {
  font-size: 11px;
  color: var(--pd-muted);
  margin: 5px 0 22px;
}
.pd-option-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}
.pd-option-label label {
  margin: 0;
  font-size: 12px;
}
.pd-option-label a {
  font-size: 10px;
  color: var(--pd-muted);
  text-underline-offset: 4px;
}
.pd-page #variant {
  min-height: 50px;
  background-color: transparent;
  margin: 0;
  font-size: 14px;
}
.pd-page .quantity-add {
  margin-top: 14px;
  gap: 12px;
  align-items: stretch;
}
.pd-quantity {
  border: 1px solid var(--pd-line);
  display: flex;
  align-items: stretch;
  flex: 0 0 118px;
}
.pd-quantity button {
  flex: 1;
  min-width: 34px;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 20px;
  color: var(--navy);
  cursor: pointer;
}
.pd-quantity button:disabled {
  opacity: 0.35;
  cursor: default;
}
.pd-page .quantity {
  margin: 0;
  width: 46px;
  flex: 0 0 46px;
  display: flex;
}
.pd-page .quantity input {
  padding: 0;
  margin: 0;
  border: 0;
  width: 100%;
  min-height: 50px;
  background: transparent;
  appearance: textfield;
}
.pd-quantity input::-webkit-inner-spin-button,
.pd-quantity input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.pd-page .quantity-add .btn {
  min-width: 0;
  min-height: 54px;
  padding: 12px;
}
.pd-page .product-availability {
  margin: 12px 0 0;
  border: 0;
  padding: 0;
}
.pd-page #variant-availability {
  font-size: 11px;
  font-weight: 400;
  color: var(--pd-muted);
  margin: 0;
}
.pd-page #stock-alert-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--pd-line);
}
.pd-service-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  margin: 12px 0 0;
  border-bottom: 1px solid var(--pd-line);
  font-size: 11px;
}
.pd-page .pd-concierge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 0;
  padding: 18px 0;
  border: 0;
  text-decoration: none;
  background: transparent;
}
.pd-concierge-mark {
  border: 1px solid #a68a5566;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  font: 13px var(--serif);
}
.pd-concierge strong {
  font: 19px var(--serif);
  display: block;
  margin-bottom: 5px;
}
.pd-concierge span span {
  font-size: 11px;
  color: var(--pd-muted);
  display: block;
}
.pd-concierge > span:last-child {
  margin-left: auto;
}
.pd-detail-wrap {
  max-width: var(--width);
  padding: 0 28px;
  margin: 0 auto;
}
.pd-section-nav {
  display: flex;
  gap: clamp(16px, 4vw, 52px);
  border-block: 1px solid var(--pd-line);
  padding: 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pd-section-nav a {
  font-size: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  min-height: 66px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.pd-section-nav a:hover,
.pd-section-nav a:focus-visible {
  border-color: var(--gold);
}
.pd-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: clamp(24px, 6vw, 90px);
  padding: 62px 4px;
  border-bottom: 1px solid var(--pd-line);
  scroll-margin-top: 205px;
}
.pd-section h2,
.pd-related h2 {
  font: 400 clamp(28px, 3vw, 40px)/1.15 var(--serif);
  letter-spacing: -0.025em;
  margin: 12px 0 0;
}
.pd-section h3 {
  font: 400 22px/1.3 var(--serif);
  margin: 0 0 14px;
}
.pd-section .eyebrow {
  margin: 0;
}
.pd-prose {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.85;
  color: var(--pd-muted);
  margin: 0 0 22px;
}
.pd-overview-copy {
  font-size: 17px;
  color: var(--ink);
}
.pd-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.pd-benefits li {
  border-top: 1px solid var(--pd-line);
  padding: 13px 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
}
.pd-benefits li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.pd-specifications {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--pd-line);
  margin: 0;
}
.pd-specifications dd {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.pd-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.pd-steps li {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 19px 0;
  border-bottom: 1px solid var(--pd-line);
}
.pd-steps li:first-child {
  padding-top: 0;
}
.pd-steps span {
  flex: 0 0 38px;
  font: 28px var(--serif);
  color: #806a3e;
}
.pd-steps p {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  white-space: pre-line;
}
.pd-ingredients,
.pd-delivery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.pd-ingredients article,
.pd-delivery article {
  padding: 26px;
  background: #eee9df;
}
.pd-card-number {
  display: block;
  color: #806a3e;
  font: 16px var(--serif);
  margin-bottom: 22px;
}
.pd-ingredients p,
.pd-delivery p {
  color: var(--pd-muted);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
  margin: 0;
}
.pd-ingredients article:only-child {
  grid-column: 1/-1;
}
.pd-delivery a {
  font-size: 12px;
  display: inline-block;
  margin-top: 20px;
  text-underline-offset: 5px;
}
.pd-contact-link {
  font-size: 12px;
  line-height: 1.8;
}
.pd-ingredient-list {
  padding-top: 0;
}
.pd-page summary {
  font: 18px/1.5 var(--serif);
  gap: 20px;
}
.pd-page summary:after {
  flex-shrink: 0;
}
.pd-care {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.pd-care h3 {
  font-size: 19px;
}
.pd-care p {
  font-size: 13px;
}
.pd-faqs details:first-child {
  padding-top: 0;
}
.pd-related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.pd-related-heading a {
  font-size: 12px;
  text-underline-offset: 5px;
}
.pd-page .pd-related {
  padding-top: 64px;
}
.pd-page a:focus-visible,
.pd-page button:focus-visible,
.pd-gallery-dialog button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}
.pd-gallery-dialog {
  border: 0;
  width: min(1120px, 96vw);
  max-width: 96vw;
  height: min(940px, 94dvh);
  max-height: 94dvh;
  padding: 0;
  color: var(--navy);
  background: var(--paper);
}
.pd-gallery-dialog[open] {
  display: flex;
  flex-direction: column;
}
.pd-gallery-dialog::backdrop {
  background: #0b1830ba;
}
.pd-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  gap: 16px;
  border-bottom: 1px solid #17233524;
}
.pd-dialog-header h2 {
  font: 22px var(--serif);
  margin: 0;
}
.pd-gallery-dialog button {
  color: var(--navy);
  background: transparent;
  border: 1px solid #17233524;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  cursor: pointer;
}
.pd-gallery-dialog .pd-dialog-close {
  border: 0;
  font-size: 28px;
}
.pd-zoom-canvas {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #eee9df;
}
.pd-zoom-canvas img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
}
.pd-zoom-canvas.is-zoomed img {
  width: 200%;
  height: 200%;
}
.pd-dialog-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  font-size: 12px;
}
body.pd-gallery-open {
  overflow: hidden;
}
.pd-sticky-buy[hidden],
.pd-page [hidden],
.pd-gallery-dialog [hidden] {
  display: none !important;
}
.pd-sticky-buy {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  align-items: center;
  gap: 24px;
  padding: 14px max(28px, calc((100vw - var(--width)) / 2 + 28px));
  background: var(--paper);
  border-top: 1px solid #17233524;
  box-shadow: 0 -6px 30px #0b183009;
}
.pd-sticky-buy > div {
  flex: 1;
  min-width: 0;
}
.pd-sticky-buy span {
  display: block;
  font: 20px var(--serif);
}
.pd-sticky-buy small {
  font-size: 11px;
  color: #58616a;
}
.pd-sticky-buy strong {
  font-size: 17px;
  white-space: nowrap;
}
.pd-sticky-buy .btn {
  min-width: 180px;
  min-height: 48px;
}
@media (min-width: 901px) {
  .storefront:has(.pd-sticky-buy) {
    padding-bottom: 82px;
  }
  .storefront:has(.pd-sticky-buy:not([hidden])) .toast {
    bottom: 100px;
  }
}
@media (max-width: 900px) {
  .pd-page .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .pd-page .product-info h1 {
    font-size: 34px;
  }
  .pd-detail-wrap {
    padding: 0 24px;
  }
  .pd-section {
    grid-template-columns: 1fr 1.6fr;
    gap: 30px;
  }
  .pd-specifications {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-ingredients article,
  .pd-delivery article {
    padding: 20px;
  }
  .pd-sticky-buy {
    bottom: calc(var(--app-tabs-height) + env(safe-area-inset-bottom));
    padding: 12px 18px;
    gap: 12px;
  }
  .pd-sticky-buy span {
    font:
      13px/1.4 Arial,
      sans-serif;
    max-width: 36vw;
  }
  .pd-sticky-buy .btn {
    min-width: 0;
    padding-inline: 16px;
    font-size: 12px;
  }
  .pd-sticky-buy strong {
    font-size: 13px;
  }
}
@media (max-width: 700px) {
  .pd-page .pd-hero {
    padding: 20px 20px 34px;
  }
  .pd-breadcrumb {
    margin-bottom: 20px;
    font-size: 10px;
    gap: 7px;
  }
  .pd-page .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pd-image-stage > img {
    aspect-ratio: 1;
  }
  .pd-badge {
    left: 14px;
    top: 14px;
    max-width: calc(100% - 28px);
  }
  .pd-page .thumbnails button {
    flex-basis: 54px;
    width: 54px;
  }
  .pd-page .product-info h1 {
    font-size: 38px;
  }
  .pd-page .pd-summary {
    font-size: 14px;
  }
  .pd-glance {
    gap: 16px;
    padding-block: 18px;
  }
  .pd-price-note {
    line-height: 1.7;
  }
  .pd-detail-wrap {
    padding: 0 20px;
  }
  .pd-section {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 0;
    scroll-margin-top: 160px;
  }
  .pd-section-nav {
    gap: 26px;
  }
  .pd-section-nav a {
    min-height: 56px;
    font-size: 11px;
  }
  .pd-section h2,
  .pd-related h2 {
    font-size: 32px;
  }
  .pd-overview-copy {
    font-size: 16px;
  }
  .pd-benefits {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pd-benefits li {
    padding-block: 12px;
  }
  .pd-ingredients,
  .pd-delivery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pd-care {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pd-related-heading {
    display: block;
  }
  .pd-related-heading > a {
    display: inline-block;
    margin-top: 18px;
  }
  .pd-page .pd-related {
    padding: 40px 20px;
  }
  .pd-gallery-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }
  .pd-dialog-header h2 {
    font-size: 19px;
  }
  .pd-dialog-controls {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .pd-sticky-buy .btn:disabled {
    white-space: normal;
    max-width: 45vw;
  }
}
@media print {
  .pd-sticky-buy,
  .pd-zoom-open,
  .pd-section-nav,
  .pd-gallery-dialog {
    display: none !important;
  }
  .pd-section {
    break-inside: avoid;
  }
}
