/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */

/* Breadcrumb */
.breadcrumb {
  padding: var(--space-md) 0;
  border-bottom: var(--border-width) solid var(--color-gray-200);
  background: var(--color-white);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-gray-600);
}

.breadcrumb__link {
  color: var(--color-gray-600);
  transition: var(--transition-fast);
}

.breadcrumb__link:hover {
  color: var(--color-dusty-rose);
}

.breadcrumb__current {
  color: var(--color-charcoal);
}

.breadcrumb__separator {
  color: var(--color-gray-200);
}

/* ========================================
    PRODUCT (HERO) SECTION
    Media on the left — a thumbnail rail and a large stage —
    and a sticky buy box on the right, so the purchase controls
    never fall off the screen while the shopper studies the photos.
    ======================================== */
.pdp {
  padding: var(--space-lg) 0 var(--space-xl);
  background: var(--color-white);
}

.pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.pdp__aside {
  min-width: 0;
}

/* ========================================
   GALLERY
   ======================================== */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "main" "thumbs";
  gap: var(--space-sm);
}

.gallery__main {
  grid-area: main;
  /* The stage borrows the primary photograph's shape once script knows it,
     so a 3:2 fabric photo no longer pays for the frame in empty canvas. */
  aspect-ratio: var(--stage-aspect, var(--aspect-square));
  background: var(--gradient-canvas);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
  touch-action: pan-y;
}

.gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(0.5rem, 3%, 2rem);
  transition: opacity 0.2s ease;
}

.gallery__main-img--fading {
  opacity: 0.5;
}

.gallery__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--color-terracotta-strong);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.gallery__main-placeholder {
  width: 200px;
  height: 200px;
  color: var(--color-dusty-rose);
  opacity: var(--opacity-icon-soft);
}

/* Image counter */
.gallery__image-counter {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(45, 45, 45, 0.7);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

/* Hover controls */
.gallery__zoom,
.gallery__arrow {
  position: absolute;
  width: 42px;
  height: 42px;
  background: rgba(254, 254, 254, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  box-shadow: var(--shadow-btn);
  transition: var(--transition-fast);
  z-index: 2;
  opacity: 0;
}

.gallery__main:hover .gallery__zoom,
.gallery__main:hover .gallery__arrow,
.gallery__zoom:focus-visible,
.gallery__arrow:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .gallery__zoom,
  .gallery__arrow {
    opacity: 1;
  }
}

.gallery__zoom {
  bottom: var(--space-md);
  right: var(--space-md);
}

.gallery__zoom:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-btn-hover);
}

.gallery__arrow {
  top: 50%;
  transform: translateY(-50%);
}

.gallery__arrow--prev {
  left: var(--space-sm);
}

.gallery__arrow--next {
  right: var(--space-sm);
}

.gallery__arrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-btn-hover);
}

/* Thumbnails: a rail beside the stage on wide screens, a strip under it otherwise */
.gallery__thumbs {
  grid-area: thumbs;
  display: flex;
  flex-direction: row;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery__thumbs li {
  flex-shrink: 0;
}

.gallery__thumb {
  width: 72px;
  height: 72px;
  background: var(--color-canvas);
  border: var(--border-width-focus) solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  overflow: hidden;
  padding: 0;
}

.gallery__thumb:hover,
.gallery__thumb--active {
  border-color: var(--color-dusty-rose);
}

.gallery__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb:focus-visible {
  outline: 3px solid var(--color-dusty-rose);
  outline-offset: 2px;
}

/* ========================================
   BUY BOX
   ======================================== */
.buybox {
  position: relative;
  background: var(--color-white);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(var(--space-sm), 2vw, var(--space-md)) clamp(var(--space-md), 2.2vw, var(--space-lg));
  display: grid;
  gap: 1.05rem;
}

.buybox__head {
  padding-right: 44px; /* keep the title clear of the wishlist button */
}

.buybox__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-dusty-rose-strong);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-md);
  margin-bottom: var(--space-xs);
  transition: var(--transition-fast);
}

.buybox__eyebrow:hover {
  color: var(--color-terracotta-strong);
}

.buybox__title {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem);
  color: var(--color-charcoal);
  line-height: var(--line-height-tight);
}

.buybox__wish {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border-width) solid var(--color-gray-200);
  background: var(--color-white);
  color: var(--color-dusty-rose-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 1;
}

.buybox__wish:hover {
  border-color: var(--color-dusty-rose);
  transform: scale(1.06);
}

.buybox__wish.is-active {
  color: var(--color-terracotta-strong);
}

.buybox__wish.is-active svg {
  fill: currentColor;
}

/* Rating row */
.buybox__rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.9rem;
  color: var(--color-charcoal);
  width: fit-content;
}

.buybox__rating:hover .buybox__rating-count {
  color: var(--color-terracotta-strong);
}

.buybox__rating strong {
  font-size: 0.95rem;
}

.buybox__rating-count {
  color: var(--color-gray-600);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--color-gray-300);
}

/* Layered text stars: the filled copy is clipped to the average score. */
.stars {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.15em;
  color: var(--color-gray-300);
}

.stars > span {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--stars-fill, 100%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--color-warning);
}

/* Price */
.buybox__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.price__current {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem);
  font-weight: var(--font-weight-medium);
  color: var(--color-charcoal);
  line-height: 1.1;
}

.price__old {
  font-size: 1.15rem;
  color: var(--color-gray-600);
  text-decoration: line-through;
}

.price__discount {
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-terracotta-strong);
  background: rgba(193, 114, 91, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Stock pill — the dot is a pseudo-element so script text updates keep it alive */
.buybox__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-success) 12%, white);
  color: var(--color-success-strong);
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
}

.buybox__stock::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.buybox__stock--low {
  background: color-mix(in srgb, var(--color-warning) 18%, white);
  color: var(--color-charcoal);
}

.buybox__stock:empty {
  display: none;
}

.buybox__excerpt {
  font-size: 0.93rem;
  color: var(--color-gray-600);
  line-height: var(--line-height-normal);
}

/* ========================================
   PRODUCT OPTIONS
   ======================================== */
.product-options {
  display: grid;
  gap: var(--space-md);
}

.option-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.option-group__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
  padding: 0;
}

.option-group__selected {
  font-weight: var(--font-weight-regular);
  color: var(--color-gray-600);
}

.option-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.option-item {
  min-width: 60px;
  padding: 10px 18px;
  background: var(--color-canvas);
  border: var(--border-width-focus) solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-charcoal);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.option-item:hover {
  border-color: var(--color-dusty-rose);
}

.option-item--active {
  border-color: var(--color-dusty-rose);
  background: rgba(212, 165, 165, 0.12);
}

.option-item--disabled {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
}

.option-item--disabled:hover {
  border-color: var(--color-gray-200);
}

/* Color swatches */
.color-swatch {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  box-shadow: inset 0 0 0 1px var(--color-gray-200);
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.color-swatch::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--swatch-color, var(--color-gray-200));
}

.color-swatch--active {
  border-color: var(--color-charcoal);
}

.color-swatch--disabled {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
}

.color-swatch:not(.color-swatch--disabled):hover {
  border-color: var(--color-gray-600);
}

/* ========================================
   PRODUCT ACTIONS
   ======================================== */
.product-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-sm);
}

.quantity {
  display: flex;
  align-items: center;
  background: var(--color-canvas);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity__btn {
  width: 42px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--color-charcoal);
  transition: var(--transition-fast);
  cursor: pointer;
}

.quantity__btn:hover:not(:disabled) {
  background: var(--color-cream-dark);
}

.quantity__btn:disabled {
  opacity: var(--opacity-disabled);
  cursor: not-allowed;
}

.quantity__input {
  width: 44px;
  height: 48px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  text-align: center;
  color: var(--color-charcoal);
}

.quantity__input:focus {
  outline: none;
}

/* Remove spinner arrows from number input */
.quantity__input::-webkit-inner-spin-button,
.quantity__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity__input[type=number] {
  -moz-appearance: textfield;
}

.product-actions__cta {
  min-height: 48px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
}

/* Assurances: the quiet facts that close the sale — delivery, free shipping,
   returns, certification — quoted from the same sources as the checkout. */
.buybox__assurances {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  padding: var(--space-sm) 0 0;
  border-top: var(--border-width) dashed var(--color-gray-300);
}

.buybox__assurances li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-gray-800);
}

.buybox__assurances svg {
  color: var(--color-dusty-rose-strong);
  flex-shrink: 0;
  margin-top: 1px;
}

.buybox__assurances a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--color-gray-300);
}

.buybox__assurances a:hover {
  color: var(--color-terracotta-strong);
  text-decoration-color: currentColor;
}

/* SKU + share */
.buybox__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding-top: 0.6rem;
  border-top: var(--border-width) solid var(--color-gray-200);
  font-size: 0.8rem;
  color: var(--color-gray-600);
}

.buybox__share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: var(--color-gray-600);
  background: var(--color-white);
  transition: var(--transition-fast);
}

.buybox__share:hover {
  border-color: var(--color-dusty-rose);
  color: var(--color-charcoal);
}

.buybox__share.is-done {
  border-color: var(--color-success);
  color: var(--color-success-strong);
}

/* ========================================
   STICKY MOBILE PURCHASE BAR
   Mirrors the buy box once it scrolls away, and hands every
   click back to the real controls — it owns no state itself.
   ======================================== */
.pdp-stickybar {
  display: none;
}

@media (max-width: 1023.98px) {
  .pdp-stickybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(59px + env(safe-area-inset-bottom, 0px));
    z-index: calc(var(--z-header) - 1);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.7rem var(--space-sm);
    background: var(--color-white);
    border-top: var(--border-width) solid var(--color-gray-200);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(130%);
    /* Hidden but still in the layout: visibility keeps its buttons out of
       the tab order, the transition keeps the slide-out smooth. */
    visibility: hidden;
    transition: transform var(--transition-smooth), visibility var(--transition-smooth);
  }

  .pdp-stickybar.is-visible {
    transform: translateY(0);
    visibility: visible;
  }

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

  .pdp-stickybar__price {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-charcoal);
    line-height: 1.15;
  }

  .pdp-stickybar__note {
    display: block;
    font-size: 0.72rem;
    color: var(--color-gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pdp-stickybar__cta {
    margin-left: auto;
    flex: 0 1 auto;
    min-height: 46px;
    padding: 0.7rem 1.3rem;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
  }
}

/* ========================================
   ZOOM OVERLAY
   ======================================== */
.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.zoom-overlay[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}

.zoom-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 45, 0.85);
  backdrop-filter: blur(8px);
}

.zoom-overlay__content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.zoom-overlay[aria-hidden="false"] .zoom-overlay__content {
  transform: scale(1);
}

.zoom-overlay__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: none;
  cursor: pointer;
  color: var(--color-charcoal);
  border-radius: 50%;
  transition: var(--transition-fast);
  z-index: 1;
  box-shadow: var(--shadow-btn);
}

.zoom-overlay__close:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-btn-hover);
}

.zoom-overlay__image-wrapper {
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.zoom-overlay__image-wrapper:active {
  cursor: grabbing;
}

.zoom-overlay__image {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.zoom-overlay__thumbs {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================
   PRODUCT DETAILS TABS
   ======================================== */
.details {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--color-cream);
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

.tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  background: var(--color-white);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-600);
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

.tab:hover {
  color: var(--color-charcoal);
}

.tab--active {
  color: var(--color-charcoal);
  background: var(--color-cream);
  box-shadow: var(--shadow-light);
}

.tabs [role="tab"]:focus-visible,
.gallery__thumb:focus-visible {
  outline: 3px solid var(--color-terracotta);
  outline-offset: 3px;
}

.tab-content {
  background: var(--color-white);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-md), 3vw, var(--space-lg));
}

.tab-content[hidden],
.zoom-overlay[hidden] {
  display: none;
}

#reviews,
#review-form {
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

.tab-content__title {
  font-size: 1.25rem;
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

.tab-content__text {
  color: var(--color-gray-600);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-md);
}

.tab-content__text:last-child {
  margin-bottom: 0;
}

/* The description reads as a column of prose with a "proof" column of
   certification, care and specification marks beside it on wide screens. */
.panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

/* Imported descriptions are their own block-level document, so they bring their own
   paragraphs and must not inherit the wrapper's bottom margin. */
.tab-content__text--rich > :first-child {
  margin-top: 0;
}

.tab-content__text--rich > :last-child {
  margin-bottom: 0;
}

.tab-content__text--rich p {
  margin-bottom: var(--space-sm);
}

.tab-content__text--rich strong {
  color: var(--color-charcoal);
  font-weight: var(--font-weight-medium);
}

.tab-content__text--rich a {
  color: var(--color-terracotta-strong);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.tab-content__text--rich a:hover {
  color: var(--color-terracotta-dark);
}

.tab-content__text--rich ul,
.tab-content__text--rich ol {
  margin: 0 0 var(--space-sm);
  padding-left: var(--space-md);
}

.tab-content__text--rich li {
  margin-bottom: var(--space-xs);
}

/* Certification marks and care symbols are deliberately small and sit inline with the
   paragraph they belong to; a full-width image would push the text off the screen. */
.tab-content__text--rich img {
  max-width: 100%;
  height: auto;
  margin: var(--space-xs) var(--space-xs) var(--space-xs) 0;
  border-radius: var(--radius-sm);
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
}

.spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-canvas);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}

.spec__label {
  color: var(--color-gray-600);
  font-size: 0.9rem;
}

.spec__value {
  font-weight: var(--font-weight-medium);
  color: var(--color-charcoal);
  font-size: 0.9rem;
  text-align: right;
}

/* Delivery tab: three quoted facts and a door to the full policy page. */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
}

.delivery-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--color-canvas);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}

.delivery-card > div {
  display: grid;
  gap: 0.2rem;
}

.delivery-card svg {
  color: var(--color-dusty-rose-strong);
  flex-shrink: 0;
  margin-top: 2px;
}

.delivery-card strong {
  font-size: 0.95rem;
  color: var(--color-charcoal);
}

.delivery-card span {
  font-size: 0.85rem;
  color: var(--color-gray-600);
}

.delivery-card--link {
  color: var(--color-charcoal);
}

.delivery-card--link:hover {
  border-color: var(--color-dusty-rose);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* ========================================
   REVIEWS
   ======================================== */
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-canvas);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
}

.reviews-summary__score {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: var(--space-sm);
  row-gap: 0.35rem;
  align-items: center;
}

.reviews-summary__value {
  grid-row: 1 / -1;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--color-charcoal);
}

.reviews-summary__note {
  font-size: 0.85rem;
  color: var(--color-gray-600);
}

.review-form {
  display: grid;
  gap: var(--space-md);
  max-width: 680px;
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  background: var(--color-canvas);
}

.review-form h3,
.review-form p,
.review-card p {
  margin-top: 0;
}

.review-form__hint,
.review-eligibility,
.review-card time {
  color: var(--color-gray-600);
}

.review-message {
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
}

.review-message:empty {
  display: none;
}

.review-message--success {
  background: color-mix(in srgb, var(--color-success) 14%, white);
  color: var(--color-charcoal);
}

.review-message--error:not(:empty) {
  border: 1px solid var(--color-terracotta);
  background: color-mix(in srgb, var(--color-terracotta) 10%, white);
}

.reviews-panel__header,
.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.review-list {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.review-card {
  padding: var(--space-md) var(--space-lg);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  background: var(--color-canvas);
}

.review-card__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 0.25rem;
  font-weight: var(--font-weight-semibold);
}

.review-card__verified {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--color-dusty-rose-light);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.review-card__rating {
  color: var(--color-terracotta-strong);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.review-card__response {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-left: 3px solid var(--color-dusty-rose);
  background: var(--color-cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ========================================
   PRODUCT PROOF COLUMN
   Certification marks, care symbols and specification tables, rendered from
   structured rows instead of being painted into the description where Mozello
   dropped them.
   ======================================== */
.product-proof {
  display: grid;
  gap: var(--space-lg);
  align-content: start;
}

.product-proof__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gray-600);
  margin-bottom: var(--space-sm);
}

.product-proof__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-proof__item {
  background: var(--color-white);
  border: var(--border-width) solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
}

.product-proof__item img {
  display: block;
  max-width: 100%;
  height: auto;
}

.product-proof__list--care {
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.product-proof__list--specs {
  gap: var(--space-sm);
}

.product-proof__item--wide {
  width: 100%;
}

.product-proof__item--wide img {
  max-width: min(100%, 420px);
}

.product-proof__caption {
  color: var(--color-gray-600);
  font-size: 0.85rem;
  line-height: var(--line-height-normal);
  margin-top: var(--space-xs);
}

/* ========================================
   RELATED PRODUCTS
   ======================================== */
.related-products {
  padding: var(--space-xl) 0 var(--space-2xl);
  background: var(--color-white);
}

.related-products__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.related-products__header .section__label,
.related-products__header .section__title {
  text-align: left;
}

/* NOTE: `.section__header` intentionally NOT styled here — the storefront
   definition in site.css (centered, stacked label + title) is the single
   source of truth. A previous unscoped flex override here leaked onto the
   homepage and broke its section headers. */

.section__link {
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-dusty-rose-strong);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: var(--transition-fast);
}

.section__link:hover {
  color: var(--color-terracotta-strong);
}

.section__link svg {
  transition: transform var(--transition-fast);
}

.section__link:hover svg {
  transform: translateX(3px);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  /* Shared with the homepage grid and the product blocks, which keep their
     old two-column rhythm below the desktop breakpoint. */
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pdp__grid {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 29vw, 430px);
    gap: clamp(var(--space-lg), 3vw, var(--space-xl));
  }

  /* A stage with a rail beside it: the strip of thumbnails becomes a column. */
  .gallery:has(.gallery__thumbs) {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas: "thumbs main";
  }

  .gallery:has(.gallery__thumbs) .gallery__thumbs {
    flex-direction: column;
    align-self: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 2px;
  }

  .buybox {
    position: sticky;
    top: calc(var(--header-height) + var(--space-sm));
    max-height: calc(100vh - var(--header-height) - var(--space-sm));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  /* Prose and proof stand side by side once there is room for both. */
  .panel-body:has(.product-proof) {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: var(--space-xl);
  }

  .product-proof {
    padding-left: var(--space-lg);
    border-left: var(--border-width) solid var(--color-gray-200);
  }
}

@media (max-width: 768px) {
  .pdp {
    padding: var(--space-md) 0 var(--space-xl);
  }

  .buybox__price {
    align-items: baseline;
  }

  .gallery__main {
    border-radius: var(--radius-xl);
  }
}

@media (max-width: 480px) {
  .breadcrumb__list {
    font-size: 0.8rem;
  }

  .product-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .quantity {
    justify-content: space-between;
  }

  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .zoom-overlay {
    padding: var(--space-md);
  }

  .zoom-overlay__image-wrapper {
    max-height: 60vh;
    border-radius: var(--radius-xl);
  }

  .zoom-overlay__image {
    max-height: 60vh;
  }
}

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

@media (max-width: 560px) {
  .review-form,
  .review-card {
    padding: var(--space-md);
  }

  .review-card__header {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .products__grid {
    gap: var(--space-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-stickybar,
  .gallery__zoom,
  .gallery__arrow,
  .delivery-card--link,
  .buybox__wish {
    transition: none;
  }
}
