/* ============================================================
   Pro Vision Pictures print store (photosale/)
   Builds on the site's Golden Hour tokens in /style.css.
   ============================================================ */

.shop-page { scrollbar-color: rgba(244, 239, 232, 0.22) var(--ink-0); }
.shop-page [hidden] { display: none !important; }
html:has(dialog[open]) { overflow: hidden; }

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn-gold,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.1rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  font: 500 1rem/1.1 var(--font-body);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), transform 160ms ease-out;
}
.btn-gold { border: 1px solid transparent; background: var(--gold); color: var(--ink-0); }
.btn-gold:hover:not(:disabled) { background: var(--gold-bright); }
.btn-gold:active:not(:disabled) { transform: scale(0.97); }
.btn-gold:disabled { background: var(--ink-card); border-color: var(--line-strong); color: var(--text-low); cursor: not-allowed; }
.btn-ghost { border: 1px solid var(--line-strong); background: transparent; color: var(--text-hi); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-ghost:active { transform: scale(0.97); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 10, 8, 0.72);
  color: var(--text-hi);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform 160ms ease-out;
}
.icon-btn:hover { border-color: var(--gold-line); background: rgba(11, 10, 8, 0.9); }
.icon-btn:active { transform: scale(0.94); }

/* ---------- Intro + collection chooser ---------- */
/* Kept short on purpose: at 1440x900 the first row of photos has to show in the first screen. */
.shop-intro { padding: clamp(6.5rem, 9vw, 7.25rem) 0 clamp(1rem, 2vw, 1.5rem); }
.shop-intro-copy { margin-bottom: clamp(1.3rem, 2.8vw, 1.9rem); }
.shop-intro-copy > * { animation: rise var(--dur-slow) var(--ease) backwards; }
.shop-intro-copy > *:nth-child(2) { animation-delay: 0.1s; }
.shop-title {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 0.8rem;
}
.shop-title em { font-style: italic; font-weight: 400; color: var(--gold); }
.shop-lede { margin: 0; max-width: 38rem; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-mid); }

.shop-notice {
  max-width: 46rem;
  margin: 0 0 1.2rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-sm);
  background: var(--gold-tint);
  color: var(--text-hi);
}

.collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}
.collection {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 6.5;
  border-radius: var(--r-shell);
  color: var(--text-hi);
  animation: rise var(--dur-slow) var(--ease) backwards;
  transition: transform 160ms ease-out;
}
.collection:nth-child(1) { animation-delay: 0.18s; }
.collection:nth-child(2) { animation-delay: 0.28s; }
.collection:hover { color: var(--text-hi); }
.collection:active { transform: scale(0.985); }
.collection-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.62);
  transition: transform 1.2s var(--ease), filter var(--dur) var(--ease);
}
/* Scrim holds a dark plateau under the text band so the names stay readable on bright skies */
.collection::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(11, 10, 8, 0.92) 0%, rgba(11, 10, 8, 0.78) 30%, rgba(11, 10, 8, 0.12) 72%);
}
.collection::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(244, 239, 232, 0.1);
  transition: border-color var(--dur) var(--ease);
  pointer-events: none;
}
.collection[aria-current="true"]::after { border-color: var(--gold); }
.collection[aria-current="true"] .collection-img { filter: none; }
@media (hover: hover) and (pointer: fine) {
  .collection:hover .collection-img { transform: scale(1.04); }
  .collection:not([aria-current="true"]):hover .collection-img { filter: saturate(0.9) brightness(0.8); }
}
.collection-text {
  position: absolute;
  left: clamp(1.1rem, 2.4vw, 1.8rem);
  right: 7.5rem;
  bottom: clamp(1rem, 2.2vw, 1.6rem);
  display: grid;
  gap: 0.15rem;
}
.collection-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(11, 10, 8, 0.7);
}
.collection-place,
.collection-count { font-size: 1rem; color: rgba(244, 239, 232, 0.86); }
.collection-count {
  position: absolute;
  right: clamp(1.1rem, 2.4vw, 1.8rem);
  bottom: clamp(1rem, 2.2vw, 1.6rem);
  font-variant-numeric: tabular-nums;
}

/* ---------- Photo grid (justified rows: each photo keeps its real shape) ---------- */
.shop-gallery { padding: clamp(1.6rem, 3.5vw, 2.6rem) 0 var(--section-pad); }
.gallery-head { margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem); scroll-margin-top: 6.5rem; }
.gallery-title { margin-bottom: 0.3rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.gallery-sub { margin: 0; color: var(--text-mid); }

.photo-grid {
  --row: clamp(13rem, 21vw, 18.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 1.8vw, 1.5rem) clamp(0.6rem, 1.2vw, 0.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Soaks up the leftover width on the last row so it is not stretched into giants */
.photo-grid::after { content: ""; flex: 1e4 1 0; }
.photo { flex: var(--ar) 1 calc(var(--ar) * var(--row)); min-width: 0; }
.photo-grid.is-entering .photo {
  animation: rise 0.75s var(--ease) backwards;
  animation-delay: calc(min(var(--i), 12) * 45ms + 60ms);
}
.photo-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.photo-frame {
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ar);
  border-radius: var(--r-sm);
  background: var(--ink-card);
  transition: transform 160ms ease-out;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.photo-btn:active .photo-frame { transform: scale(0.985); }
.photo-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.15rem 0;
}
.photo-title {
  color: var(--text-hi);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  transition: color var(--dur-fast) var(--ease);
}
.photo-from { flex-shrink: 0; font-size: 1rem; color: var(--text-mid); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .photo-btn:hover img { transform: scale(1.045); }
  .photo-btn:hover .photo-title { color: var(--gold-bright); }
}
.shop-error { margin: 1.5rem 0 0; color: var(--text-mid); }

/* ---------- Finishes ---------- */
.shop-finishes { padding: var(--section-pad) 0; border-top: 1px solid var(--line); }
.finishes {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.finishes-photo { margin: 0; }
.finishes-photo img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-shell);
}
.finishes-photo figcaption { margin-top: 0.8rem; font-size: 0.8rem; color: var(--text-low); }
.finishes-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.finishes-title em { font-style: italic; font-weight: 400; color: var(--gold); }
.finish-list { margin: 1.6rem 0 0; }
.finish {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.finish dt { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.35; color: var(--text-hi); }
.finish dd { margin: 0; color: var(--text-mid); }
.finishes-note {
  margin: 0.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--text-mid);
}

/* ---------- Dialogs (shared) ---------- */
.shop-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-mid);
  max-width: none;
  max-height: none;
  overflow: visible;
}
.shop-dialog::backdrop {
  background: rgba(11, 10, 8, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.shop-dialog[open]::backdrop { animation: shop-fade-in 220ms ease-out; }
.shop-dialog.is-closing::backdrop { animation: shop-fade-out 170ms ease-out forwards; }
@keyframes shop-fade-in { from { opacity: 0; } }
@keyframes shop-fade-out { to { opacity: 0; } }

/* ---------- Photo dialog ---------- */
.photo-dialog { width: min(74rem, calc(100vw - 2rem)); margin: auto; }
.pd-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: min(46rem, calc(100dvh - 2rem));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-shell);
  background: var(--ink-raised);
}
.photo-dialog[open] .pd-shell { animation: pd-in 280ms cubic-bezier(0.23, 1, 0.32, 1); }
.photo-dialog.is-closing .pd-shell { animation: pd-out 170ms ease-out forwards; }
@keyframes pd-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
@keyframes pd-out { to { opacity: 0; transform: translateY(8px) scale(0.985); } }
.pd-close { position: absolute; top: 0.85rem; right: 0.85rem; z-index: 2; }
.pd-media {
  display: grid;
  /* An explicit track gives the photo a definite box, so max-height: 100% can hold a tall photo inside it */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: clamp(0.8rem, 2vw, 1.4rem);
  background: #080705;
}
.pd-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.pd-panel {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  scrollbar-color: rgba(244, 239, 232, 0.22) transparent;
}
.pd-where { margin: 0; padding-right: 3rem; font-size: 1rem; color: var(--text-mid); }
.pd-title { margin: 0.25rem 3rem 0 0; font-size: clamp(1.45rem, 2.5vw, 1.95rem); }
.pd-id { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--text-low); font-variant-numeric: tabular-nums; }
.pd-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.pd-group legend { margin-bottom: 0.65rem; padding: 0; font-size: 1rem; font-weight: 500; color: var(--text-hi); }
.legend-note { margin-left: 0.35rem; font-size: 0.8rem; font-weight: 300; color: var(--text-low); }

.opt-grid { display: grid; gap: 0.5rem; }
.opt-grid--materials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-grid--sizes { grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr)); }
.opt {
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 0.68rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(244, 239, 232, 0.02);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform 160ms ease-out;
}
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt:hover { border-color: rgba(244, 239, 232, 0.34); }
.opt:active { transform: scale(0.98); }
.opt:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.opt-name { font-size: 1rem; line-height: 1.3; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.opt-sub { font-size: 0.8rem; color: var(--text-mid); font-variant-numeric: tabular-nums; }
.opt:has(input:checked) .opt-sub { color: var(--gold-bright); }

.pd-foot { display: grid; gap: 0.7rem; margin-top: auto; }
.pd-buy { display: flex; align-items: center; gap: 0.7rem; }
.pd-add { flex: 1; justify-content: space-between; }
.pd-add.is-added { background: var(--gold-bright); pointer-events: none; }
.pd-price { display: inline-flex; font-variant-numeric: tabular-nums; }
.pd-note { margin: 0; font-size: 0.8rem; color: var(--text-low); }
.pd-note.is-alert { color: #f19a8f; }
.pd-view-cart { width: 100%; }

.qty {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.qty-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-hi);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), transform 160ms ease-out;
}
.qty-btn:hover:not(:disabled) { background: rgba(244, 239, 232, 0.07); }
.qty-btn:active:not(:disabled) { transform: scale(0.9); }
.qty-btn:disabled { color: var(--text-low); opacity: 0.55; cursor: not-allowed; }
.qty-val { min-width: 1.6rem; text-align: center; color: var(--text-hi); font-variant-numeric: tabular-nums; }

/* ---------- Cart button ---------- */
.cart-fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.6rem);
  bottom: calc(clamp(1rem, 2.5vw, 1.6rem) + env(safe-area-inset-bottom));
  z-index: 850;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.2rem;
  padding: 0 0.5rem 0 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink-0);
  font: 500 1rem/1 var(--font-body);
  cursor: pointer;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.75), 0 4px 10px -4px rgba(0, 0, 0, 0.5);
  animation: fab-in 320ms cubic-bezier(0.23, 1, 0.32, 1);
  transition: background var(--dur-fast) var(--ease), transform 160ms ease-out;
}
.cart-fab:hover { background: var(--gold-bright); }
.cart-fab:active { transform: scale(0.96); }
.cart-fab.bump { animation: fab-bump 420ms cubic-bezier(0.23, 1, 0.32, 1); }
.cart-count {
  display: grid;
  place-items: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--ink-0);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
@keyframes fab-in { from { opacity: 0; transform: translateY(1rem) scale(0.96); } }
@keyframes fab-bump { 35% { transform: scale(1.08); } }

/* ---------- Cart drawer ---------- */
.cart-dialog {
  width: min(29rem, 100vw);
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0 0 0 auto;
}
.cart-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-left: 1px solid var(--line-strong);
  background: var(--ink-raised);
  box-shadow: -40px 0 80px -40px rgba(0, 0, 0, 0.8);
}
.cart-dialog[open] .cart-shell { animation: drawer-in 340ms cubic-bezier(0.32, 0.72, 0, 1); }
.cart-dialog.is-closing .cart-shell { animation: drawer-out 170ms cubic-bezier(0.23, 1, 0.32, 1) forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(1rem + env(safe-area-inset-top)) 1.1rem 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { margin: 0; font-size: 1.5rem; }
.cart-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.25rem 1.5rem calc(1.6rem + env(safe-area-inset-bottom));
  scrollbar-color: rgba(244, 239, 232, 0.22) transparent;
}
.cart-lines { margin: 0; padding: 0; list-style: none; }
.line {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 0.55rem 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.line-img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 0.5rem; background: var(--ink-card); }
.line-info { min-width: 0; }
.line-title { margin: 0; font-size: 1rem; line-height: 1.35; color: var(--text-hi); }
.line-spec { margin: 0.1rem 0 0; font-size: 1rem; line-height: 1.4; color: var(--text-mid); }
.line-id { margin: 0.05rem 0 0; font-size: 0.8rem; color: var(--text-low); }
.line-price { margin: 0; color: var(--text-hi); text-align: right; font-variant-numeric: tabular-nums; }
.line-controls {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.qty--sm .qty-btn { width: 2.4rem; height: 2.4rem; }
.line-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--text-low);
  font: 400 0.8rem var(--font-body);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.line-remove:hover { color: var(--text-hi); }
.line-remove .icon { width: 1rem; height: 1rem; }
.cart-empty { margin: 0; padding: 2.5rem 0 1.5rem; text-align: center; color: var(--text-mid); }
.cart-keep { width: 100%; margin-top: 0.7rem; }

.checkout { margin-top: 1.5rem; }
.ship-title { margin: 0 0 0.9rem; font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; }
.field { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }
.field label { font-size: 1rem; color: var(--text-hi); }
.label-note { color: var(--text-low); font-weight: 300; }
.field input,
.field select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(244, 239, 232, 0.4);
  border-radius: var(--r-sm);
  background: rgba(11, 10, 8, 0.55);
  color: var(--text-hi);
  font: 300 1rem var(--font-body);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field select option { background: var(--ink-raised); color: var(--text-hi); }
.field input:focus,
.field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 162, 76, 0.25); }
.field [aria-invalid="true"] { border-color: #f19a8f; }
.field-help { margin: 0; font-size: 0.8rem; color: var(--text-low); }
.field-error { margin: 0; font-size: 0.8rem; color: #f19a8f; }
.field-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 8rem; gap: 0 0.75rem; }

.totals { margin: 1.3rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.28rem 0; font-variant-numeric: tabular-nums; }
.total-row dt { color: var(--text-mid); }
.total-row dd { margin: 0; color: var(--text-hi); }
.total-row--grand { margin-top: 0.45rem; padding-top: 0.75rem; border-top: 1px solid var(--line-strong); font-size: 1.15rem; font-weight: 500; }
.total-row--grand dt { color: var(--text-hi); }
.total-row--grand dd { color: var(--gold-bright); }
.checkout-error { margin: 1rem 0 0; font-size: 1rem; color: #f19a8f; }
.checkout-error:empty { display: none; }
.btn-checkout { width: 100%; min-height: 3.3rem; margin-top: 1.1rem; }
.cart-fine { margin: 0.9rem 0 0; font-size: 0.8rem; line-height: 1.55; color: var(--text-low); }

/* ---------- Responsive ---------- */
@media (max-width: 56em) {
  .finishes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 47.99em) {
  .photo-dialog { width: 100vw; height: 100dvh; margin: 0; }
  .pd-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .photo-dialog[open] .pd-shell { animation-name: sheet-in; }
  .pd-media { padding: calc(0.6rem + env(safe-area-inset-top)) 0.6rem 0.6rem; }
  .pd-media img { max-height: 34dvh; }
  /* The sticky buy bar must not hide the size choices: keep it to the button row unless there is a message */
  .pd-note:not(.is-alert) { display: none; }
  .pd-panel { gap: 1.1rem; }
  .pd-close { top: calc(0.9rem + env(safe-area-inset-top)); }
  .pd-panel { padding: 1.2rem 1.1rem 0; }
  .pd-foot {
    position: sticky;
    bottom: 0;
    padding: 0.8rem 0 calc(0.9rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--ink-raised) 78%, rgba(20, 17, 13, 0));
  }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(2rem); } }
@media (max-width: 40em) {
  .collections { grid-template-columns: minmax(0, 1fr); }
  .collection { aspect-ratio: 16 / 7; }
  .photo { flex-basis: 100%; }
  .finish { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}
@media (pointer: coarse) {
  .qty--sm .qty-btn { width: 2.75rem; height: 2.75rem; }
  .line-remove { min-height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-intro-copy > *, .collection, .photo-grid.is-entering .photo, .cart-fab { animation: none; }
}
