/* ==========================================================================
   Dutchess Beauty & Butters: shop (shop.html) and product (product.html) pages
   Loads after css/styles.css and css/site.css. Adds page classes only; the
   shared components (.product-card, .choices, .qty, .accordion …) are reused
   as they are.
   ========================================================================== */

/* ---- Shared --------------------------------------------------------------- */

.page--shop [id],
.page--product [id] { scroll-margin-top: calc(var(--header-h) + 28px); }

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

/* Loading placeholders (shown until data/products.json arrives) */
.skel {
  display: block;
  background: rgba(58, 38, 28, 0.07);
  animation: skel-pulse 1.6s ease-in-out infinite;
}
.skel--media { aspect-ratio: 4 / 5; background: var(--tile); }
.skel--line { height: 12px; }
.skel--title { height: 22px; }
@keyframes skel-pulse { 50% { opacity: 0.55; } }

/* Centred message (empty results, not found, load error) */
.notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-block: clamp(48px, 8vw, 104px);
  text-align: center;
}
.notice .botanical { --size: clamp(84px, 9vw, 120px); --tint: var(--olive); opacity: 0.75; }
.notice__title {
  max-width: 16em;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.notice__title em { font-style: italic; }
.notice__text {
  max-width: 34em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.notice__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin-top: 8px;
}

/* ==========================================================================
   SHOP PAGE
   ========================================================================== */

/* ---- Title band ------------------------------------------------------------ */

.shop-intro {
  position: relative;
  overflow: hidden;
}
.shop-intro__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  align-items: end;
  gap: 32px 72px;
  padding-block: clamp(44px, 6.4vw, 96px) clamp(30px, 3.4vw, 50px);
}
.shop-intro__copy { position: relative; z-index: 1; }
.shop-intro__title { margin-top: clamp(14px, 1.6vw, 22px); }
.shop-intro__lede { margin-top: clamp(18px, 1.8vw, 26px); max-width: 33em; }
.shop-intro__art {
  position: absolute;
  top: clamp(4px, 1vw, 18px);
  right: calc(var(--gutter) - clamp(24px, 3vw, 48px));
  --size: clamp(150px, 19vw, 280px);
  --tint: var(--olive);
  opacity: 0.2;
  pointer-events: none;
  transform: rotate(-8deg);
}

/* Search: an underlined, editorial field */
.shop-search {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.shop-search__icon {
  position: absolute;
  left: 2px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  pointer-events: none;
}
.shop-search__input {
  width: 100%;
  height: 54px;
  padding: 4px 44px 0 36px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.shop-search__input::placeholder { color: rgba(58, 42, 32, 0.52); font-style: italic; }
.shop-search__input::-webkit-search-cancel-button,
.shop-search__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.shop-search__input:hover { border-bottom-color: var(--brown); }
.shop-search__input:focus { outline: none; }
.shop-search__input:focus-visible,
.shop-search__input:focus {
  border-bottom-color: var(--brown);
  box-shadow: 0 1px 0 0 var(--brown);
}
.shop-search__clear {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s ease;
}
.shop-search__clear:hover { color: var(--ink); }
.shop-search__clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* ---- Toolbar: category chips + sort ---------------------------------------- */

.shop-toolbar {
  padding-block: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule-soft);
}
.shop-filters { min-width: 0; }
.shop-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  min-height: 42px;
  padding: 10px clamp(12px, 1.1vw, 16px) 9px;
  box-shadow: inset 0 0 0 1px rgba(58, 38, 28, 0.24);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.filter-chip:hover { box-shadow: inset 0 0 0 1px var(--brown); }
.filter-chip:focus-visible { outline-offset: 3px; }
.filter-chip__count {
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--eyebrow);
  transition: color 0.2s ease;
}
.filter-chip[aria-current="page"] {
  background: var(--brown);
  color: var(--cream);
  box-shadow: none;
}
.filter-chip[aria-current="page"] .filter-chip__count { color: rgba(247, 239, 229, 0.72); }
.filter-chip.is-empty:not([aria-current]) { opacity: 0.42; }

.shop-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.shop-sort__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
  white-space: nowrap;
}
.shop-sort__select {
  height: 42px;
  padding: 2px 26px 0 2px;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 9px) 52% / 5px 5px no-repeat,
    linear-gradient(-45deg, transparent 50%, var(--ink) 50%) calc(100% - 4px) 52% / 5px 5px no-repeat;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.shop-sort__select:hover { border-bottom-color: var(--brown); }
.shop-sort__select:focus { outline: none; }
.shop-sort__select:focus-visible { outline: 2px solid var(--brown); outline-offset: 4px; }

/* ---- Results --------------------------------------------------------------- */

.shop-results { padding-bottom: clamp(64px, 9vw, 128px); }
.shop-results__bar {
  display: flex;
  flex-wrap: wrap; /* a long search summary pushes the sort onto its own row */
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding-block: 16px clamp(26px, 2.8vw, 40px);
}
.shop-results__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  min-width: 0;
}
.shop-results__bar .shop-sort { margin-left: auto; }
.shop-count {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.shop-count strong { font-weight: 500; color: var(--ink); }
.shop-reset {
  padding: 2px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  font: 400 15px/1.2 var(--serif);
  color: var(--brown);
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.shop-reset:hover { opacity: 0.65; }

/* Cards fade up as a result set appears (first dozen only) */
.shop-grid.is-animating > .product-card,
.shop-grid.is-animating > .shop-quote {
  animation: shop-card-in 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes shop-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.shop-grid[aria-busy="true"] .product-card { pointer-events: none; }

.card-skeleton { display: flex; flex-direction: column; gap: 10px; }
.card-skeleton .skel--media { margin-bottom: 8px; }
.card-skeleton .skel--line:nth-child(2) { width: 38%; height: 9px; }
.card-skeleton .skel--title { width: 82%; }
.card-skeleton .skel--line:nth-child(4) { width: 26%; }

/* Editorial review break inside the grid (full row) */
.shop-quote {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(44px, 6vw, 84px) clamp(20px, 6vw, 96px);
  background: var(--tile);
  text-align: center;
  overflow: hidden;
}
.shop-quote__art {
  position: absolute;
  --size: clamp(130px, 16vw, 230px);
  --tint: var(--olive);
  opacity: 0.16;
  pointer-events: none;
}
.shop-quote__art--left { left: clamp(-60px, -3vw, -20px); bottom: -24px; transform: rotate(12deg); }
.shop-quote__art--right { right: clamp(-60px, -3vw, -20px); top: -18px; transform: scaleX(-1) rotate(8deg); }
.shop-quote .quote { position: relative; max-width: 880px; }
.shop-quote .quote__text { font-size: clamp(24px, 2.5vw, 36px); text-wrap: balance; }
.shop-quote .link-arrow { position: relative; }

/* ---- Shop: tablet and mobile ---------------------------------------------- */

@media (max-width: 1023px) {
  .shop-intro__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .shop-search { max-width: 520px; }
  .shop-toolbar { border-top: 0; padding-top: 4px; } /* the search underline sits just above */
}

@media (max-width: 767px) {
  .shop-intro__inner { padding-block: 30px 24px; gap: 24px; }
  .shop-intro__art { --size: 150px; top: -40px; right: -46px; opacity: 0.13; }
  .shop-search { max-width: none; }
  .shop-search__input { font-size: 18px; height: 50px; }

  .shop-toolbar { padding-block: 0 14px; }
  /* chips scroll sideways on small screens, edge to edge */
  .shop-filters { margin-inline: calc(-1 * var(--gutter)); }
  .shop-filters__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    padding: 2px var(--gutter) 4px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .shop-filters__list::-webkit-scrollbar { display: none; }
  .shop-filters__list > li { flex: none; scroll-snap-align: start; }
  .filter-chip { min-height: 40px; padding: 9px 14px 8px; font-size: 16px; }

  .shop-sort { gap: 10px; }
  .shop-sort__label { letter-spacing: 0.16em; }
  .shop-sort__select { font-size: 16px; height: 40px; }
  .shop-results__bar { padding-block: 10px 22px; }
  .shop-quote { padding-inline: 18px; }
}

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

.pdp-breadcrumb { padding-block: clamp(18px, 2vw, 30px) clamp(18px, 2.4vw, 34px); }
.pdp-breadcrumb li:last-child { min-width: 0; }

.pdp-hero {
  /* the photo is as large as fits the first screen (4:5), within 380–640px */
  --media-w: clamp(380px, calc((100vh - var(--header-h) - 116px) * 0.8), 640px);
  --info-min: 400px;
  display: grid;
  /* the info column never drops below --info-min; the photo gives way first */
  grid-template-columns: minmax(0, var(--media-w)) minmax(min(100%, var(--info-min)), 1fr);
  align-items: start;
  gap: clamp(32px, 8vw, 128px);
  padding-bottom: clamp(56px, 7.5vw, 112px);
}
@supports (height: 100svh) {
  .pdp-hero { --media-w: clamp(380px, calc((100svh - var(--header-h) - 116px) * 0.8), 640px); }
}

/* ---- Gallery --------------------------------------------------------------- */

.pdp-gallery { width: 100%; min-width: 0; }
.pdp-gallery__main {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tile);
  isolation: isolate;
}
.pdp-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* white studio backgrounds melt into the tile */
  transition: opacity 0.3s ease;
}
.pdp-gallery__img.is-swapping { opacity: 0; }
/* legacy photos (real backgrounds): an inset print on the light tile, as on the cards */
.pdp-gallery--photo .pdp-gallery__main { padding: 7%; }
.pdp-gallery--photo .pdp-gallery__img {
  object-fit: contain;
  mix-blend-mode: normal;
  filter: drop-shadow(0 16px 20px rgba(35, 22, 15, 0.2));
}

.pdp-gallery__thumbs {
  display: grid;
  grid-auto-flow: column; /* one row under the photo; thumbnails shrink to fit */
  grid-auto-columns: minmax(0, 84px);
  gap: 10px;
  margin-top: 12px;
}
.pdp-gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  background: var(--tile);
  border: 0;
  box-shadow: inset 0 0 0 1px transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  opacity: 0.72;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}
.pdp-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pdp-gallery--photo .pdp-gallery__thumb { padding: 9%; }
.pdp-gallery--photo .pdp-gallery__thumb img { object-fit: contain; mix-blend-mode: normal; }
.pdp-gallery__thumb:hover { opacity: 1; }
.pdp-gallery__thumb[aria-current="true"] {
  opacity: 1;
  box-shadow: 0 0 0 1px var(--brown);
}
.pdp-gallery__thumb:focus-visible { outline-offset: 3px; }

/* desktop: thumbnails become a rail on the left so the main photo keeps its size */
@media (min-width: 900px) {
  .pdp-hero--thumbs {
    grid-template-columns: minmax(0, calc(var(--media-w) + 96px)) minmax(min(100%, var(--info-min)), 1fr);
  }
  .pdp-hero--thumbs .pdp-gallery {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  .pdp-hero--thumbs .pdp-gallery__thumbs {
    order: -1;
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 0;
  }
}

/* ---- Buy box --------------------------------------------------------------- */

.pdp-info {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: center;
  max-width: none; /* the buy box reaches the content edge on every product */
  padding-block: 12px;
}
.pdp-info__eyebrow { font-size: 12px; letter-spacing: 0.28em; }
.pdp-info__title {
  margin-top: 18px;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(38px, 3.7vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.pdp-info__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-top: 20px;
}
.pdp-info__size {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--rule-soft);
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
}
.pdp-info__size-label {
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.pdp-info__lede {
  max-width: 36em;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.pdp-info .chips { margin-top: 20px; }

.pdp-form { margin-top: 30px; }
.pdp-form > * + * { margin-top: 26px; }
/* sizes / scents: equal chips on one row (label over price; long scent names wrap inside) */
.pdp-option .choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 8px;
}
.pdp-option .choice { display: flex; }
.pdp-option .choice span {
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 8px;
  text-align: center;
  line-height: 1.2;
}
.pdp-option__hint { margin: -4px 0 12px; }
.pdp-option .field__error { margin-top: 10px; }
.pdp-option.is-invalid .choice span { box-shadow: inset 0 0 0 1px var(--error); }
.pdp-option.is-invalid .choice input:checked + span { box-shadow: none; }

.pdp-buy {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.pdp-buy .qty { flex: none; height: auto; min-height: 50px; }
.pdp-buy .pdp-buy__add {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: max(50px, calc(62 * var(--u)));
  gap: 14px;
  padding-inline: 22px;
  font-size: 18px; /* styles.css scales .btn up for the home hero on portrait screens */
}
.pdp-buy__sep {
  width: 1px;
  align-self: stretch;
  margin-block: 14px;
  background: rgba(247, 239, 229, 0.35);
}
.pdp-buy .pdp-buy__add > span { white-space: nowrap; }
.pdp-buy__total { font-variant-numeric: lining-nums; }
/* narrow info columns (tablet two-up, 360px phones): the price is right above, so the button just says "Add to bag" */
@media (min-width: 700px) and (max-width: 899px), (max-width: 379px) {
  .pdp-buy__sep,
  .pdp-buy__total { display: none; }
}

.pdp-delivery {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.55;
}
.pdp-delivery svg { margin-top: 1px; }
.pdp-delivery a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.pdp-delivery a:hover { opacity: 0.65; }

/* ---- Details band ---------------------------------------------------------- */

.pdp-details {
  border-top: 1px solid var(--rule-soft);
  padding-block: clamp(56px, 8vw, 116px);
}
.pdp-details__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 7.5vw, 128px);
  align-items: start;
}
.pdp-details__inner--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.pdp-details__title { margin-top: 16px; }
/* section headings stay a step below the product name (the H1) */
.page--product .pdp-details__title,
.page--product .pdp-related .section-title { font-size: clamp(30px, 3vw, 44px); }
.pdp-details__story .prose { margin-top: clamp(26px, 3vw, 40px); max-width: 40rem; font-size: 16.5px; }
.pdp-details__story .notes { margin-top: 36px; }
.pdp-details__specs > * + * { margin-top: 44px; }
.pdp-details__inner:not(.pdp-details__inner--single) .pdp-details__specs {
  position: sticky; /* stays beside a long description */
  top: calc(var(--header-h) + 32px);
}
.pdp-details__label {
  margin-bottom: 18px;
  font: 400 12px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.pdp-notes .notes {
  align-items: stretch; /* rows share their top rule; equal line boxes keep the baselines level */
  gap: 0;
  border-bottom: 1px solid var(--rule-soft);
}
.pdp-notes .notes dt { padding-right: 28px; }
.pdp-notes .notes dt,
.pdp-notes .notes dd {
  padding-block: 14px 13px;
  border-top: 1px solid var(--rule-soft);
  line-height: 25px;
}
.pdp-notes .notes dd { font-size: 18px; }
.pdp-details__specs .accordion__body a {
  color: var(--brown);
  border-bottom: 1px solid currentColor;
}

/* ---- Review band ----------------------------------------------------------- */

.pdp-review {
  position: relative;
  overflow: hidden;
  background: var(--tile);
  padding-block: clamp(56px, 7vw, 100px);
  text-align: center;
}
.pdp-review .quote { position: relative; max-width: 860px; margin-inline: auto; }
.pdp-review .quote__text { text-wrap: balance; }
.pdp-review .eyebrow { margin-bottom: 26px; }
.pdp-review__art {
  position: absolute;
  left: 50%;
  top: 50%;
  --size: clamp(260px, 30vw, 420px);
  --tint: var(--olive);
  opacity: 0.07;
  transform: translate(-50%, -50%) rotate(-6deg);
  pointer-events: none;
}

/* ---- Related ---------------------------------------------------------------- */

.pdp-related {
  border-top: 1px solid var(--rule-soft);
  padding-block: clamp(56px, 8vw, 116px) clamp(64px, 9vw, 128px);
}
.pdp-review + .pdp-related { border-top: 0; }
.pdp-related .section-head--split { align-items: flex-end; }

/* ---- Loading skeleton ------------------------------------------------------ */

.pdp-skeleton { padding-top: clamp(18px, 2vw, 30px); }
.pdp-skeleton .skel--crumb { width: 260px; max-width: 70%; height: 10px; margin-bottom: clamp(26px, 3vw, 44px); }
.pdp-skeleton__info { display: flex; flex-direction: column; gap: 16px; padding-top: 18px; }
.pdp-skeleton__info .skel--line:first-child { width: 34%; height: 10px; }
.pdp-skeleton__info .skel--title { width: 88%; height: 44px; }
.pdp-skeleton__info .skel--title + .skel--title { width: 64%; }
.pdp-skeleton__info .skel--price { width: 22%; height: 26px; margin-top: 8px; }
.pdp-skeleton__info .skel--para { height: 12px; }
.pdp-skeleton__info .skel--para:nth-last-child(2) { width: 78%; }
.pdp-skeleton__info .skel--btn { height: 54px; margin-top: 18px; }

/* ---- Product: tablet and mobile -------------------------------------------- */

.pdp-missing .notice__title { font-size: clamp(38px, 4.6vw, 64px); }
.notice .btn:not(.btn--sm) { height: 54px; gap: 20px; font-size: 18px; }

/* three-up related grid: show three, not 3 + 1 */
@media (min-width: 700px) and (max-width: 1099px) {
  .pdp-related .product-grid > :nth-child(n + 4) { display: none; }
}

@media (max-width: 899px) {
  .pdp-hero { --info-min: 330px; gap: 32px; }
  .pdp-info { position: static; align-self: start; padding-block: 0; }
  .pdp-info__title { font-size: clamp(32px, 4.6vw, 40px); }
  .pdp-details__inner { grid-template-columns: minmax(0, 1fr); }
  .pdp-details__inner .pdp-details__specs { position: static; }
  .pdp-details__story .prose { max-width: none; }
}

@media (max-width: 699px) {
  .pdp-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pdp-gallery { width: min(100%, 560px); justify-self: center; }
  .pdp-info { width: min(100%, 560px); max-width: none; justify-self: center; }
}

@media (max-width: 599px) {
  .pdp-breadcrumb { padding-block: 14px 16px; }
  /* phones: "Shop > Category" only (the logo links home; the H1 names the product) */
  .pdp-breadcrumb li:first-child,
  .pdp-breadcrumb li:last-child { display: none; }
  .pdp-breadcrumb li:nth-child(2)::before { display: none; }
  /* edge-to-edge photo on phones */
  .pdp-gallery { width: auto; margin-inline: calc(-1 * var(--gutter)); }
  .pdp-gallery__thumbs { padding-inline: var(--gutter); grid-auto-columns: minmax(0, 68px); }
  .pdp-info__title { margin-top: 14px; font-size: clamp(34px, 9.4vw, 44px); }
  .pdp-info__lede { margin-top: 20px; padding-top: 20px; font-size: 16px; }
  .pdp-buy .pdp-buy__add { padding-inline: 16px; gap: 12px; font-size: 17px; }
  .pdp-buy__sep { margin-block: 15px; }
  .pdp-related .section-head--split { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
  .shop-grid.is-animating > .product-card,
  .shop-grid.is-animating > .shop-quote { animation: none; }
  .pdp-gallery__img { transition: none; }
}

/* ==========================================================================
   404 PAGE (404.html reuses .notice)
   ========================================================================== */

.notfound .notice__title { font-size: clamp(38px, 4.6vw, 64px); }
.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
}
.notfound__links li { display: inline-flex; align-items: center; }
.notfound__links li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-inline: 16px;
  border-radius: 50%;
  background: var(--gold);
}
.notfound__links a { border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.notfound__links a:hover { border-bottom-color: currentColor; }
@media (max-width: 599px) {
  .notfound__links { gap: 10px 22px; }
  .notfound__links li + li::before { display: none; }
}
