.product-page-body {
  padding-bottom: 0;
  background: #fbfaf7;
}

.pdp-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  min-height: 82px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 249, 246, 0.94);
  backdrop-filter: blur(16px);
}

.pdp-header > nav {
  display: flex;
  gap: clamp(18px, 2.5vw, 38px);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pdp-header > nav a,
.pdp-header__actions button {
  transition: opacity 160ms ease;
}

.pdp-header > nav a:hover,
.pdp-header__actions button:hover {
  opacity: 0.55;
}

.pdp-header .wordmark {
  justify-self: center;
}

.pdp-menu {
  display: none;
}

.pdp-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.pdp-header__actions button,
.pdp-menu {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
}

.pdp-header__actions i,
.product-mobile-nav i {
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.57rem;
  font-style: normal;
}

.breadcrumbs {
  display: flex;
  max-width: 1540px;
  align-items: center;
  gap: 9px;
  margin: 0 auto;
  padding: 22px clamp(22px, 4vw, 68px);
  color: #766e68;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pdp-shell {
  display: grid;
  width: min(100%, 1540px);
  grid-template-columns: minmax(0, 1.45fr) minmax(380px, 0.68fr);
  align-items: start;
  gap: clamp(35px, 5vw, 84px);
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 68px) clamp(80px, 9vw, 140px);
}

.pdp-gallery {
  display: grid;
  min-width: 0;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 15px;
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-thumb {
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid transparent;
  background: var(--ivory);
  opacity: 0.55;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.pdp-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pdp-thumb:hover,
.pdp-thumb.is-active {
  border-color: var(--ink);
  opacity: 1;
}

.pdp-main-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ivory);
}

.pdp-main-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.pdp-main-image:hover img {
  transform: scale(1.012);
}

.pdp-main-image > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 13px;
  background: rgba(251, 249, 246, 0.91);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.pdp-copy {
  position: sticky;
  top: 112px;
  min-width: 0;
  padding-top: clamp(6px, 1vw, 20px);
}

.pdp-copy > .eyebrow {
  color: var(--rosewood);
}

.pdp-title-row,
.pdp-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pdp-title-row {
  margin-top: 12px;
}

.pdp-title-row h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.15vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.93;
}

.pdp-title-row button {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.45rem;
}

.pdp-title-row button.is-active {
  border-color: var(--rosewood);
  background: var(--rosewood);
  color: white;
}

.pdp-price-row {
  align-items: center;
  margin-top: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pdp-price-row > strong {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.pdp-price-row > span {
  color: #a97842;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.pdp-price-row small {
  color: #776f69;
  letter-spacing: 0;
}

.pdp-description {
  max-width: 620px;
  margin: 21px 0 25px;
  color: #5d5650;
  font-family: var(--serif);
  font-size: 1.03rem;
  line-height: 1.75;
}

.pdp-options {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.pdp-options legend {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pdp-options legend strong {
  color: #756e68;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.pdp-options legend button {
  min-height: 32px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.pdp-swatches,
.pdp-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pdp-swatch {
  width: 31px;
  height: 31px;
  padding: 0;
  border: 5px solid var(--paper);
  border-radius: 50%;
  outline: 1px solid var(--line);
  background: var(--swatch);
}

.pdp-swatch:hover,
.pdp-swatch.is-active {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.pdp-size {
  min-width: 50px;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.72rem;
}

.pdp-size:hover,
.pdp-size.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.pdp-size:disabled {
  color: #aaa19a;
  cursor: not-allowed;
  text-decoration: line-through;
}

.pdp-stock {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  margin: 6px 0 13px;
  padding: 9px 12px;
  background: #f6eee7;
  font-size: 0.72rem;
}

.pdp-stock i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rosewood);
  box-shadow: 0 0 0 0 rgba(154, 95, 100, 0.5);
  animation: stock-pulse 1.8s infinite;
}

.pdp-add {
  justify-content: space-between;
}

.pdp-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 22px;
}

.pdp-social a {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.pdp-social a:first-child {
  background: #173f33;
  color: white;
}

.pdp-copy details {
  border-top: 1px solid var(--line);
}

.pdp-copy details:last-child {
  border-bottom: 1px solid var(--line);
}

.pdp-copy summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  list-style: none;
  text-transform: uppercase;
}

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

.pdp-copy details p {
  margin: -2px 0 18px;
  color: #665e58;
  font-size: 0.78rem;
  line-height: 1.7;
}

.product-story {
  display: grid;
  min-height: 440px;
  place-content: center;
  padding: 90px 24px;
  background:
    linear-gradient(rgba(19, 15, 12, 0.54), rgba(19, 15, 12, 0.62)),
    url("assets/hero-campaign.jpg") center 43% / cover;
  color: white;
  text-align: center;
}

.product-story h2 {
  margin: 15px 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.product-story > p:last-child {
  max-width: 570px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--serif);
}

.related-products {
  padding: clamp(70px, 8vw, 120px) clamp(18px, 4vw, 68px);
}

.related-products > div:first-child {
  margin-bottom: 30px;
  text-align: center;
}

.related-products h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
}

.related-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.related-card a {
  display: block;
  overflow: hidden;
}

.related-card a:hover img {
  transform: scale(1.025);
}

.related-card h3 {
  margin: 13px 0 5px;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
}

.related-card p {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-mobile-nav {
  display: none;
}

.page-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(19, 15, 12, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.page-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.page-cart {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  display: flex;
  width: min(92vw, 450px);
  height: 100dvh;
  flex-direction: column;
  padding: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 350ms var(--ease);
}

.page-cart.is-open {
  transform: translateX(0);
}

.page-cart > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.page-cart h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.page-cart header button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
}

[data-page-cart-lines] {
  flex: 1;
  overflow: auto;
}

.page-cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.page-cart-line img {
  width: 84px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.page-cart-line h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 400;
}

.page-cart-line p,
.page-cart-line strong {
  display: block;
  margin: 0 0 4px;
  color: #6c645e;
  font-size: 0.67rem;
}

.page-cart-line button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
}

.page-cart-empty {
  padding: 50px 0;
  color: #706761;
  font-family: var(--serif);
  text-align: center;
}

.page-cart__footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-cart__footer p {
  display: flex;
  justify-content: space-between;
}

.page-cart__continue {
  display: block;
  min-height: 44px;
  padding: 13px 5px 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.page-zoom {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 80px 25px 25px;
  background: rgba(244, 239, 232, 0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.page-zoom.is-open {
  opacity: 1;
  pointer-events: auto;
}

.page-zoom > div {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-zoom button,
.page-zoom output {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
}

.page-zoom img {
  max-width: min(86vw, 850px);
  max-height: calc(100dvh - 110px);
  object-fit: contain;
  transition: transform 250ms ease;
}

@media (max-width: 980px) {
  .product-page-body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .pdp-header {
    min-height: 68px;
    grid-template-columns: 1fr auto 1fr;
    padding: 0 16px;
  }

  .pdp-header > nav {
    display: none;
  }

  .pdp-menu {
    display: grid;
    place-items: center;
  }

  .pdp-header__actions button:first-child {
    display: none;
  }

  .breadcrumbs {
    overflow: hidden;
    padding: 15px 16px;
    white-space: nowrap;
  }

  .pdp-shell {
    display: block;
    padding: 0 0 70px;
  }

  .pdp-gallery {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .pdp-thumbs {
    overflow-x: auto;
    flex-direction: row;
    gap: 7px;
    padding: 0 16px 8px;
    scrollbar-width: none;
  }

  .pdp-thumb {
    flex: 0 0 65px;
  }

  .pdp-main-image {
    border-radius: 0;
  }

  .pdp-main-image > span {
    right: 12px;
    bottom: 12px;
  }

  .pdp-copy {
    position: static;
    padding: 30px 18px 0;
  }

  .pdp-title-row h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .pdp-description {
    font-size: 1rem;
  }

  .related-products {
    padding: 65px 10px;
  }

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

  .product-mobile-nav {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(64px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 3px env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(251, 249, 246, 0.97);
    backdrop-filter: blur(18px);
  }

  .product-mobile-nav a,
  .product-mobile-nav button {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.55rem;
  }

  .product-mobile-nav span {
    font-size: 1.02rem;
  }

  .product-mobile-nav i {
    top: 0;
    right: calc(50% - 22px);
  }

  .product-story {
    min-height: 400px;
    background-position: center;
  }
}

@media (max-width: 600px) {
  .announcement {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.53rem;
    text-align: center;
  }

  .announcement__meta {
    display: none;
  }

  .pdp-header .wordmark span {
    font-size: 1.75rem;
  }

  .pdp-social {
    grid-template-columns: 1fr;
  }

  .page-cart {
    width: 100%;
    padding: 20px 17px calc(20px + env(safe-area-inset-bottom));
  }

  .page-zoom {
    padding: 75px 10px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-main-image img,
  .related-card img,
  .page-cart,
  .page-zoom,
  .page-backdrop {
    transition: none;
  }
}
