/* Server-rendered collection pages (api/page.js + product.html). They reuse the home sheet and card
   styles from style.css; this file only undoes the home's fixed-viewport scroller and lays out the
   page chrome. A separate design pass will restyle these pages: keep the rules flat and scoped. */
html.ProductDoc, html.ProductDoc body{ height: auto; min-height: 100%; overflow: auto; overflow-x: hidden; scrollbar-width: auto; }
html.ProductDoc::-webkit-scrollbar{ display: initial; width: auto; height: auto; }
.ProductPage{ background: var(--bg); color: var(--fg); font-family: var(--font-default); }
.ProductPage a.link-plain::after{ content: none; }
.ShopRouteTransition{ animation: shopRouteEnter .42s var(--ease-lux) both; }
@keyframes shopRouteEnter{
  from{ opacity: 0; transform: translateY(10px); filter: blur(6px); }
  to{ opacity: 1; transform: translateY(0); filter: blur(0); }
}
.ShopLoading{ min-height: clamp(620px, 72vh, 920px); display: grid; align-content: start; gap: clamp(30px, 5vw, 58px); animation: shopRouteEnter .32s var(--ease-lux) both; }
.ShopLoading__head{ display: grid; justify-items: center; gap: 12px; padding: clamp(24px, 4vw, 52px) 0 0; position: relative; }
.ShopLoading__head::after{ content: ""; width: min(72vw, 620px); height: 1px; margin-top: 8px; background: linear-gradient(90deg, transparent, rgba(201,166,107,.42), transparent); }
.ShopLoading__loader{ padding: 18px 22px 14px; border-radius: 999px; border: 1px solid rgba(201,166,107,.26); background: radial-gradient(circle, rgba(201,166,107,.16), rgba(255,255,255,.025) 54%, transparent 78%); box-shadow: 0 0 34px rgba(201,166,107,.14), inset 0 0 24px rgba(201,166,107,.06); }
.ShopLoading__grid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.ShopLoading__card{ min-height: clamp(230px, 24vw, 330px); display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; gap: 18px; padding: clamp(18px, 2vw, 28px); border-radius: 8px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012) 42%, rgba(201,166,107,.035)); border: 1px solid rgba(255,255,255,.08); overflow: hidden; position: relative; box-shadow: inset 0 0 0 1px rgba(201,166,107,.05); }
.ShopLoading__card::before{ content: ""; position: absolute; inset: -35%; background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.04) 42%, rgba(201,166,107,.16) 50%, rgba(255,255,255,.04) 58%, transparent 100%); transform: translateX(-100%); animation: shopSkeletonSweep 1.65s ease-in-out infinite; }
.ShopLoading__card::after{ content: ""; position: absolute; inset: 18px; border: 1px solid rgba(201,166,107,.1); pointer-events: none; }
.ShopLoading__stone{ width: clamp(72px, 9vw, 118px); aspect-ratio: 1; display: grid; grid-template: 1fr 1fr / 1fr 1fr; transform: rotate(45deg); border: 1px solid rgba(201,166,107,.48); background: rgba(201,166,107,.055); box-shadow: 0 0 24px rgba(201,166,107,.08); position: relative; z-index: 1; }
.ShopLoading__facet{ border: 1px solid rgba(201,166,107,.16); background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(201,166,107,.045)); }
.ShopLoading__facet--top{ grid-column: 1 / -1; }
.ShopLoading__facet--left{ grid-column: 1; }
.ShopLoading__facet--right{ grid-column: 2; }
.ShopLoading__facet--bottom{ grid-column: 1 / -1; }
.ShopLoading__meta{ width: 100%; display: grid; justify-items: center; gap: 10px; position: relative; z-index: 1; }
.ShopLoading__line{ width: min(100%, 220px); height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(201,166,107,.16), rgba(255,255,255,.08)); }
.ShopLoading__line--title{ width: min(68vw, 360px); height: 12px; }
.ShopLoading__line--sub{ width: min(48vw, 240px); }
.ShopLoading__line--short{ width: min(70%, 150px); }
@keyframes shopSkeletonSweep{ to{ transform: translateX(100%); } }

.ProductBar{ position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 3vw, 40px); background: rgba(0,0,0,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-hair); }
.ProductBar__logo img{ width: 58px; height: auto; }
.ProductBar__nav{ display: flex; gap: 20px; font-size: 14px; }
.ProductBar__link{ color: var(--fg-muted); }
.ProductBar__link:hover, .ProductBar__link:focus-visible{ color: var(--fg); }
.ProductPage .ProductBar__cta{ position: static; margin-left: auto; }

.ProductMain{ width: 100%; max-width: 1360px; margin: 0 auto; padding: 20px clamp(16px, 3vw, 40px) 64px; }
.Crumbs__list{ display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 13px; color: var(--fg-muted); margin-bottom: 20px; }
.Crumbs__item + .Crumbs__item::before{ content: "/"; margin-right: 6px; opacity: .5; }
.Crumbs__link{ color: var(--fg-muted); }
.Crumbs__item[aria-current="page"]{ color: var(--fg); }

/* the piece: the sheet's two columns, as a page */
.PiecePage{ display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 24px; overflow: hidden; background: var(--surface-1); }
.PiecePage__title{ padding-right: 0; font-size: clamp(34px, 3.6vw, 52px); }
.PiecePage__actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.PiecePage__book{ display: inline-flex; align-items: center; margin-top: 0; background: var(--blue-deep); color: var(--fg); border: 1px solid rgba(183,223,233,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.PiecePage__book:hover, .PiecePage__book:focus-visible{ background: var(--abyss); color: var(--fg); border-color: rgba(183,223,233,.38); }
.PiecePage__call{ font-size: 15px; color: var(--fg-muted); }
.PiecePage__more{ padding-block: var(--unit-12) 0; }
.PiecePage__moreTitle{ font-size: clamp(32px, 4vw, 56px); }
.PiecePage__all{ font-size: 14px; color: var(--fg-muted); }

/* hubs and shape landings */
.HubPage{ padding-block: 0; }
.HubPage .Collection__tabs{ margin-bottom: 16px; }
.HubPage .Collection__shapes{ margin: 0 0 24px; }
.Collection__tab[aria-current="page"]{ background: var(--pearl); border-color: var(--pearl); color: var(--ink-on-light); }
a.Collection__tab::after{ content: none; }

/* Engagement shape filter: one row of icon + label, spread edge to edge at every width. */
.ShapeFilter{ display: flex; justify-content: space-between; margin: 0 0 32px; border-bottom: 1px solid var(--border-hair); }
.ShapeFilter__item{ flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 4px 12px; color: var(--fg-muted); text-decoration: none; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color .2s var(--ease-lux), border-color .2s, transform .25s var(--ease-lux); }
.ShapeFilter__item::after{ content: none; }
.ShapeFilter__item:hover{ color: var(--fg); transform: translateY(-2px); }
.ShapeFilter__item[aria-current="page"]{ color: var(--champagne); border-bottom-color: var(--champagne); transform: translateY(-2px); }
.ShapeFilter__item:focus-visible{ outline: 2px solid var(--champagne); outline-offset: 2px; }
.ShapeFilter__icon{ display: block; width: 36px; height: 36px; }
.ShapeFilter__label{ font-family: var(--font-default); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
@media (max-width: 768px){
  .ShapeFilter{ margin-inline: 16px; }
  .ShapeFilter__item{ padding: 6px 0 10px; gap: 6px; }
  .ShapeFilter__icon{ width: 26px; height: 26px; }
  .ShapeFilter__label{ font-size: 8px; letter-spacing: 0.04em; }
}

.HubPage__note{ font-size: 15px; color: var(--fg-muted); }

.ProductFooter{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1360px; margin: 0 auto; padding: 40px clamp(16px, 3vw, 40px) 32px; border-top: 1px solid var(--border-hair); font-size: 15px; }
.ProductFooter__col{ display: grid; gap: 6px; align-content: start; }
.ProductFooter__label{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.ProductFooter__value{ color: var(--fg); }
.ProductFooter__legal{ grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--fg-muted); }

.PiecePage__onInquiry{ font-family: var(--font-default); font-size: 18px; color: var(--champagne); }
.PiecePage__onInquiry[hidden]{ display: none; }
.PiecePage__options{ display: grid; gap: 18px; margin-top: 20px; }
.PiecePage__opt label.PieceSheet__label{ display: block; }
.PiecePage__chip{ padding: 0 16px; }
.PiecePage__natural{ display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; color: var(--fg); }
.PiecePage__natural input{ position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.PiecePage__check{ width: 20px; height: 20px; flex: 0 0 20px; border-radius: 4px; border: 1px solid rgba(183,223,233,.46); background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); position: relative; transition: background .2s var(--ease-lux), border-color .2s var(--ease-lux), box-shadow .2s var(--ease-lux), transform .2s var(--ease-lux); }
.PiecePage__check::after{ content: ""; position: absolute; left: 6px; top: 3px; width: 6px; height: 11px; border: solid var(--ink-on-light); border-width: 0 2px 2px 0; opacity: 0; transform: rotate(42deg) scale(.72); transition: opacity .16s var(--ease-lux), transform .2s var(--ease-lux); }
.PiecePage__natural:hover .PiecePage__check{ border-color: var(--pearl); transform: translateY(-1px); }
.PiecePage__natural input:checked + .PiecePage__check{ background: var(--blue-deep); border-color: var(--pearl); box-shadow: 0 0 0 3px rgba(183,223,233,.12), inset 0 0 0 1px rgba(255,255,255,.08); }
.PiecePage__natural input:checked + .PiecePage__check::after{ opacity: 1; transform: rotate(42deg) scale(1); border-color: var(--fg); }
.PiecePage__natural input:focus-visible + .PiecePage__check{ outline: 2px solid var(--pearl); outline-offset: 3px; }
.PiecePage__naturalHint{ margin-top: 6px; font-size: 13px; color: var(--fg-muted); }
/* Under the gold-color row: says which metal the photo shows when the chosen color has none. */
.PiecePage__shownIn{ margin-top: 8px; font-size: 13px; color: var(--fg-muted); }
.PiecePage__shownIn:empty{ margin-top: 0; }
/* Description + details are reference below the inquiry actions: same 20px break as "Message us directly". */
.PiecePage__actions + .PieceSheet__desc, .PiecePage__actions + .PieceSheet__specs{ margin-top: 20px; }
/* Size/natural now follow the metal + karat choices directly: one 18px rhythm between choice groups. */
.PieceSheet__metals + .PiecePage__options{ margin-top: 6px; }
.PiecePage__book2{ display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: var(--fg); font-size: 15px; transition: border-color .25s; }
.PiecePage__book2:hover, .PiecePage__book2:focus-visible{ border-color: var(--pearl); }
.PiecePage__text{ margin-top: 20px; }
.PiecePage__textRow{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.PiecePage__textBtn{ display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); color: var(--fg-muted); font-size: 14px; transition: color .25s, border-color .25s; }
.PiecePage__textBtn:hover, .PiecePage__textBtn:focus-visible{ color: var(--fg); border-color: var(--pearl); }

.LegalPage{ max-width: 760px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 64px; }
.LegalPage__title{ font-family: var(--font-default); font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
.LegalPage__meta{ font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 28px; }
.LegalPage__body h2{ font-family: var(--font-default); font-size: 20px; margin-top: 32px; margin-bottom: 8px; }
.LegalPage__body p{ color: var(--fg-muted); line-height: 1.7; margin-bottom: 12px; }
.LegalPage__body a{ color: var(--fg); text-decoration: underline; }

@media (max-width: 768px){
  .ProductBar{ gap: 12px; }
  .ProductBar__nav{ display: none; }
  .ProductMain{ padding-inline: 0; }
  .Crumbs{ padding-inline: 16px; }
  .PiecePage{ grid-template-columns: 1fr; border-radius: 0; }
  .PiecePage__book{ flex: 1 1 100%; justify-content: center; }
  .PiecePage__book2{ flex: 1 1 100%; justify-content: center; }
  .HubPage .Collection__grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; overflow: visible; padding: 0 16px; }
  .ShopLoading__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px; }
  .ShopLoading__card{ min-height: 190px; }
  .HubPage .Collection__item{ flex: none; }
  .PiecePage__more .Collection__head{ align-items: baseline; }
  .ProductFooter{ grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce){
  .ShopRouteTransition, .ShopLoading, .ShopLoading__card::before{ animation: none; }
  .ShapeFilter__item, .ShapeFilter__item:hover, .ShapeFilter__item[aria-current="page"]{ transform: none; }
}
