:root {
  --paper: #f7f2ea;
  --paper-deep: #eee4d6;
  --paper-soft: #fbf8f2;
  --charcoal: #24211d;
  --charcoal-soft: #504940;
  --muted: #776d62;
  --line: #ded1c2;
  --accent: #8a6f55;
  --accent-dark: #5f4734;
  --white: #fffdf8;
  --shadow: 0 24px 60px rgba(45, 37, 29, 0.14);
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

img {
  display: block;
  max-width: 100%;
}

@keyframes previewShimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

button,
input,
textarea {
  font: inherit;
}

button, a, .button, .cart-button, .swatch-option, .swatch-option span, .radio-card, .radio-card span, .variant-option, .variant-option > span, .toggle-card, .toggle-card > span, .quantity-control button, .cart-quantity button, summary {
  cursor: pointer;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea {
  cursor: text;
}

button:disabled,
input:disabled,
textarea:disabled,
.button[aria-disabled="true"],
[aria-disabled="true"] {
  cursor: not-allowed;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--charcoal);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.25rem);
  min-height: 76px;
  padding: 0.85rem clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(80, 73, 64, 0.12);
  background: rgba(247, 242, 234, 0.92);
  box-shadow: 0 10px 32px rgba(45, 37, 29, 0.045);
  backdrop-filter: blur(22px) saturate(1.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.75rem;
  min-width: 0;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 5vw, 1.45rem);
  text-decoration: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

.brand-logo {
  display: block;
  width: clamp(6.2rem, 13vw, 8.5rem);
  max-height: 2.9rem;
  height: auto;
  object-fit: contain;
}

.footer-brand .brand-logo {
  width: 6.5rem;
  max-height: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0.15rem;
  padding: 0.28rem;
  border: 1px solid rgba(80, 73, 64, 0.13);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.82);
}

.site-nav a,
.site-nav button,
.site-footer a {
  color: var(--charcoal-soft);
  border: 0;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a,
.site-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav button:hover,
.site-footer a:hover {
  color: var(--charcoal);
}

.site-nav a:hover,
.site-nav button:hover,
.shop-menu.is-open .shop-menu-toggle {
  background: rgba(238, 228, 214, 0.7);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  background: var(--charcoal);
  color: var(--white);
}

.shop-menu {
  position: relative;
}

.shop-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  z-index: 30;
  display: grid;
  width: min(84vw, 19rem);
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 0.45rem;
  border: 1px solid rgba(80, 73, 64, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 18px 44px rgba(45, 37, 29, 0.14);
  transform: translateX(-50%);
}

.shop-menu-panel[hidden] {
  display: none;
}

.shop-menu-panel a {
  justify-content: flex-start;
  min-height: 2.25rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  text-align: left;
  text-transform: none;
}

.shop-menu-products {
  display: grid;
  gap: 0.2rem;
}

.shop-menu-group {
  display: grid;
  gap: 0.1rem;
  padding-top: 0.35rem;
}

.shop-menu-group + .shop-menu-group {
  margin-top: 0.2rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(80, 73, 64, 0.12);
}

.shop-menu-group-title {
  margin: 0;
  padding: 0.25rem 0.55rem 0.15rem;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.15;
}

.shop-menu-panel .shop-menu-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.2rem;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  padding: 0.45rem 0.55rem;
}

.shop-menu-product-image {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  width: 3.2rem;
  height: 2.25rem;
  min-width: 0;
  min-height: 0;
  place-items: center;
}

.shop-menu-product > span:last-child {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}

.shop-menu-product-image img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.cart-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(36, 33, 29, 0.18);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--charcoal);
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.9);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cart-button:hover {
  border-color: rgba(36, 33, 29, 0.34);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(45, 37, 29, 0.08);
  transform: translateY(-1px);
}

.cart-button {
  position: relative;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
  justify-self: end;
  isolation: isolate;
  text-decoration: none;
}

.cart-button::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  border: 1px solid rgba(36, 33, 29, 0.18);
  border-radius: 50%;
  background: var(--paper-soft);
  box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.9);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.cart-button:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.cart-button:hover::before {
  border-color: rgba(36, 33, 29, 0.34);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(45, 37, 29, 0.08);
}

.cart-button[aria-current="page"] {
  border-color: transparent;
  background: transparent;
  color: var(--white);
  box-shadow: none;
}

.cart-button[aria-current="page"]::before,
.cart-button[aria-current="page"]:hover::before {
  border-color: var(--charcoal);
  background: var(--charcoal);
  box-shadow: none;
}

.cart-button svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  right: -0.25rem;
  top: -0.25rem;
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}

.cart-button[aria-current="page"] .cart-count {
  background: var(--white);
  color: var(--charcoal);
}

/* The early head script supplies the count before the header's first paint.
   Normal cart updates replace this with text, using the same badge geometry. */
.cart-count:empty {
  visibility: var(--cart-count-visibility, hidden);
}

.cart-count:empty::before {
  content: var(--cart-count-text, "");
}

.hero {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 9vw, 5.8rem);
}

h2 {
  font-size: clamp(2.25rem, 8vw, 4.6rem);
}

h3 {
  font-size: 1.55rem;
}

.section-heading p {
  color: var(--charcoal-soft);
  font-size: 1.02rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--charcoal);
  color: var(--white);
}

.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-secondary {
  background: transparent;
  color: var(--charcoal);
}

.button-secondary:hover {
  background: var(--paper-deep);
}

.home-collection .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: start;
  gap: clamp(0.8rem, 1.55vw, 1.15rem);
}

.home-collection .product-card {
  align-content: start;
  gap: 0.72rem;
  min-width: 0;
  padding: clamp(0.55rem, 1vw, 0.8rem);
  border: 1px solid rgba(80, 73, 64, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.62);
  box-shadow: 0 14px 34px rgba(45, 37, 29, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-collection .product-card:hover {
  border-color: rgba(80, 73, 64, 0.22);
  box-shadow: 0 18px 42px rgba(45, 37, 29, 0.075);
  transform: translateY(-2px);
}

.home-collection .product-card-body {
  gap: 0.55rem;
}

.home-collection .product-card-title {
  justify-content: center;
  text-align: center;
}

.home-collection .product-card-image {
  width: var(--home-artwork-width, 100%);
  justify-self: center;
  aspect-ratio: var(--artwork-aspect-ratio, 2406.61 / 1697.95);
  border: 1px solid rgba(80, 73, 64, 0.1);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 10px 24px rgba(45, 37, 29, 0.04);
}

.home-collection .product-card-image img {
  object-fit: contain;
  padding: 0;
}

.home-collection .button {
  justify-self: center;
  width: min(100%, 11rem);
  min-height: 2.65rem;
  padding: 0.7rem 1rem;
  font-size: 0.76rem;
}

.home-product-group {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.55rem);
}

.home-product-group + .home-product-group {
  padding-top: clamp(1.8rem, 4vw, 3rem);
  border-top: 1px solid rgba(80, 73, 64, 0.12);
}

.home-product-group-heading {
  display: grid;
  gap: 0.45rem;
  max-width: 760px;
}

.home-product-group-heading h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.04;
  text-wrap: balance;
}

.home-product-group-heading p {
  max-width: 31rem;
  margin: 0;
  color: var(--charcoal-soft);
  font-size: clamp(0.95rem, 1.4vw, 1.02rem);
  line-height: 1.48;
}

.home-product-group[data-product-count="1"] .product-grid {
  grid-template-columns: minmax(0, min(100%, 380px));
}

.home-product-group[data-product-count="2"] .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 780px;
}

.prints-section,
.checkout-section {
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(1.8rem, 5vw, 3rem);
}

.section-heading h2 {
  margin-bottom: 1rem;
}

.section-heading p {
  max-width: 42rem;
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.product-card {
  display: grid;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.product-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--paper-deep);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12%;
  transition: transform 500ms ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

.home-collection .product-card:hover .product-card-image img {
  transform: none;
}

.product-card-body {
  display: grid;
  gap: 0.9rem;
}

.product-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.product-card-title h3 {
  font-size: 1.45rem;
}

.product-card-title a {
  text-decoration: none;
}

.product-card-title span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-section {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
}

.checkout-layout {
  display: grid;
  gap: 1.25rem;
}

.checkout-form,
.order-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(45, 37, 29, 0.06);
}

.checkout-form {
  padding: clamp(1rem, 4vw, 1.5rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label span,
legend {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--charcoal-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input:not([type="checkbox"]):not([type="radio"]),
.checkout-form select,
textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffbf5;
  color: var(--charcoal);
  padding: 0.78rem 0.85rem;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
.checkout-form select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(138, 111, 85, 0.15);
}

.checkout-submit {
  width: 100%;
  margin-top: 1.25rem;
}

.form-message {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: var(--accent-dark);
  font-weight: 700;
}

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

.order-summary {
  align-self: start;
  padding: 1.25rem;
}

.order-summary h3 {
  margin-bottom: 1rem;
}

.summary-items {
  display: grid;
  gap: 0.85rem;
}

.summary-line,
.cart-line {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(80, 73, 64, 0.15);
}

.summary-line:first-child,
.cart-line:first-child {
  border-top: 0;
}

.summary-line strong,
.cart-line strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.summary-line small,
.cart-line small {
  color: var(--muted);
}

.summary-total,
.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.summary-total strong,
.cart-subtotal strong,
[data-detail-price] {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
}

.empty-note {
  margin: 0;
  color: var(--muted);
}

.product-options {
  display: grid;
  gap: 1.15rem;
  margin-top: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.swatch-option input,
.radio-card input,
.variant-option input,
.toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swatch-option > span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  box-shadow: inset 0 0 0 5px var(--paper-soft);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.swatch-option:hover > span {
  border-color: rgba(36, 33, 29, 0.42);
  transform: translateY(-1px);
}

.swatch-option input:checked + span {
  border-color: var(--charcoal);
  box-shadow: inset 0 0 0 5px var(--paper-soft), 0 0 0 2px rgba(36, 33, 29, 0.18);
}

.swatch-option input:focus-visible + span,
.radio-card input:focus-visible + span,
.variant-option input:focus-visible + span,
.toggle-card input:focus-visible + span {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

.variant-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.75rem, 1fr));
  gap: 0.65rem;
}

.variant-option > span,
.toggle-card > span {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  padding: 0.85rem;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.variant-option:hover > span,
.toggle-card:hover > span,
.radio-card:hover span {
  border-color: rgba(36, 33, 29, 0.34);
  background: #fffaf2;
}

.variant-option > span {
  align-content: start;
  justify-items: center;
  min-height: 100%;
  padding: 0.42rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.variant-option img {
  width: 100%;
  aspect-ratio: var(--artwork-aspect-ratio, 4 / 3);
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  object-fit: contain;
  padding: 0;
}

.variant-option strong,
.toggle-card strong {
  font-family: var(--sans);
  font-size: 0.84rem;
}

.variant-option strong {
  display: grid;
  min-height: 2.15rem;
  place-items: center;
  margin: 0;
  font-size: clamp(0.66rem, 2vw, 0.78rem);
  line-height: 1.15;
  text-align: center;
}

.toggle-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.variant-option input:checked + span,
.variant-option.is-selected > span,
.toggle-card input:checked + span {
  border-color: var(--charcoal);
  box-shadow: 0 0 0 2px rgba(36, 33, 29, 0.1);
}

.variant-option input:checked + span,
.variant-option.is-selected > span {
  background: var(--charcoal);
  color: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.variant-option:hover input:checked + span,
.variant-option.is-selected:hover > span {
  border-color: var(--charcoal);
  background: var(--charcoal);
}

.variant-option input:checked + span img,
.variant-option.is-selected > span img {
  border-color: rgba(255, 253, 248, 0.34);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.option-grid-sizes {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.option-grid-sizes .radio-card span {
  min-height: 2.75rem;
  padding: 0.65rem 0.2rem;
  font-size: 0.78rem;
}

.option-grid-frames {
  grid-template-columns: 1fr;
}

.mobile-option-select {
  display: none;
}

.custom-select {
  position: relative;
}

.custom-select-button {
  appearance: none;
  cursor: pointer;
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, transparent 50%, var(--charcoal) 50%) calc(100% - 1.15rem) 50% / 0.42rem 0.42rem no-repeat,
    linear-gradient(135deg, var(--charcoal) 50%, transparent 50%) calc(100% - 0.88rem) 50% / 0.42rem 0.42rem no-repeat,
    var(--white);
  color: var(--charcoal);
  padding: 0.75rem 2.45rem 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
}

.custom-select-button:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(138, 111, 85, 0.15);
}

.custom-select-button:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  z-index: 18;
  overflow: hidden;
  border: 1px solid rgba(80, 73, 64, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(45, 37, 29, 0.14);
}

.radio-card span {
  display: grid;
  align-content: center;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  padding: 0.7rem 0.8rem;
  text-align: center;
  font-size: 0.86rem;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.radio-card input:checked + span {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}

.personalization-panel {
  display: grid;
  gap: 0;
  border: 1px solid rgba(80, 73, 64, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  padding: 0;
  overflow: hidden;
}

.personalization-panel legend {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid rgba(80, 73, 64, 0.12);
  background: rgba(255, 253, 248, 0.5);
  padding: 0.85rem 1rem;
  color: var(--charcoal);
}

.personalization-options {
  display: grid;
  gap: 0;
}

.artwork-detail-row {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.translation-control + .personalization-options,
.personalization-options + .custom-text-field {
  border-top: 1px solid rgba(80, 73, 64, 0.12);
}

.artwork-detail-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.artwork-detail-copy strong {
  font-family: var(--sans);
  font-size: 0.88rem;
}

.artwork-detail-copy span,
.artwork-detail-copy small {
  display: block;
  margin: 0;
  color: var(--charcoal-soft);
  font-size: 0.78rem;
  line-height: 1.4;
  text-transform: none;
  font-weight: 500;
}

.personalization-toggle > span {
  grid-template-columns: minmax(0, 1fr) 3.6rem auto;
  align-items: center;
  gap: 1rem;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none !important;
}

.personalization-price {
  min-width: 3.6rem;
  white-space: nowrap;
  color: var(--accent-dark) !important;
  font-weight: 700;
  text-align: right;
}

.toggle-switch {
  position: relative;
  width: 2.45rem;
  height: 1.35rem;
  margin: 0 !important;
  border: 1px solid rgba(80, 73, 64, 0.28);
  border-radius: 999px;
  background: var(--paper-deep);
}

.toggle-switch::after {
  position: absolute;
  top: 50%;
  left: 0.16rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(36, 33, 29, 0.18);
  content: "";
  transform: translateY(-50%);
  transition: left 180ms ease, background 180ms ease;
}

.personalization-toggle input:checked + span .toggle-switch {
  border-color: var(--charcoal);
  background: var(--charcoal);
}

.personalization-toggle input:checked + span .toggle-switch::after {
  left: 1.18rem;
}

.custom-text-field {
  display: block;
  margin: 0;
  padding: 1rem;
}

.custom-text-field span {
  margin-bottom: 0.55rem;
}

.quantity-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.quantity-field > span:first-child {
  margin: 0;
}

.quantity-control,
.cart-quantity {
  display: inline-grid;
  grid-template-columns: 2.7rem 3.2rem 2.7rem;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.quantity-control button,
.cart-quantity button {
  border: 0;
  background: transparent;
  color: var(--charcoal);
  font-weight: 700;
  transition: background 180ms ease;
}

.quantity-control button:not(:disabled):hover,
.cart-quantity button:hover {
  background: rgba(222, 209, 194, 0.36);
}

.quantity-control button:disabled {
  opacity: 0.4;
}

.quantity-control input {
  min-height: 2.7rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0;
  text-align: center;
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.detail-footer {
  display: grid;
  gap: 1rem;
  margin-top: 0;
  border: 1px solid rgba(80, 73, 64, 0.16);
  border-radius: var(--radius);
  background: rgba(251, 248, 242, 0.96);
  padding: 0.9rem;
  box-shadow: 0 18px 36px rgba(45, 37, 29, 0.08);
}

.price-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-line {
  grid-template-columns: 76px 1fr;
  column-gap: 0.85rem;
}

.cart-line img {
  width: 76px;
  height: 96px;
  border-radius: var(--radius);
  background: var(--paper-soft);
  object-fit: contain;
  padding: 0.5rem;
}

.cart-quantity {
  grid-template-columns: 2rem 2.2rem 2rem;
}

.cart-quantity span {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-size: 0.88rem;
}

.page-hero {
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem) clamp(2rem, 6vw, 4.5rem);
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero p {
  max-width: 42rem;
  color: var(--charcoal-soft);
  font-size: 1.08rem;
}

.compact-hero {
  border-bottom: 1px solid var(--line);
}

.editorial-hero h1 {
  max-width: 12ch;
}

.product-detail {
  display: grid;
  gap: clamp(1.8rem, 5vw, 4rem);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(1rem, 5vw, 4.5rem);
}

.product-info-column {
  display: contents;
}

.product-detail-skeleton,
.related-skeleton {
  pointer-events: none;
}

.skeleton-copy,
.skeleton-options {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.skeleton-line,
.skeleton-block,
.skeleton-card-image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(238, 228, 214, 0.62) 0%, rgba(255, 253, 248, 0.95) 42%, rgba(238, 228, 214, 0.62) 84%)
    var(--paper-deep);
  background-size: 220% 100%;
  animation: previewShimmer 1450ms ease-in-out infinite;
}

.skeleton-kicker {
  width: 8rem;
  height: 0.75rem;
}

.skeleton-title {
  width: min(100%, 24rem);
  height: clamp(3rem, 12vw, 5.25rem);
}

.skeleton-heading {
  width: min(100%, 20rem);
  height: clamp(2.1rem, 7vw, 3.4rem);
}

.skeleton-text {
  width: min(100%, 34rem);
  height: 0.95rem;
}

.skeleton-text.short {
  width: min(72%, 24rem);
}

.skeleton-option {
  width: 100%;
  height: 3.35rem;
}

.skeleton-button {
  width: min(100%, 24rem);
  height: 3.8rem;
  margin-top: 0.35rem;
}

.skeleton-card {
  border-bottom-color: rgba(222, 209, 194, 0.78);
}

.skeleton-card-image {
  aspect-ratio: 4 / 5;
}

.skeleton-card-title {
  width: 68%;
  height: 1.1rem;
}

.skeleton-card-meta {
  width: 42%;
  height: 0.85rem;
}

@keyframes collectionLoading {
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.product-summary {
  order: 1;
  max-width: 560px;
}

.product-gallery {
  order: 2;
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.product-preview-grid {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.product-main-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--white);
}

.product-main-image[data-loading="true"]::after,
.lifestyle-preview-panel[data-loading="true"]::after,
.lifestyle-mounted-art[data-loading="true"]::after {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  background:
    linear-gradient(100deg, rgba(238, 228, 214, 0.78) 0%, rgba(255, 253, 248, 0.96) 42%, rgba(238, 228, 214, 0.78) 84%)
    var(--paper-deep);
  background-size: 220% 100%;
  content: "";
  animation: previewShimmer 1450ms ease-in-out infinite;
}

.lifestyle-mounted-art[data-loading="true"]::after {
  border-radius: 0;
}

.lifestyle-mounted-art[data-updating="true"]::after {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  background: rgba(251, 248, 242, 0.14);
  content: "";
  pointer-events: none;
}

.lifestyle-mounted-art[data-updating="true"]::after {
  border-radius: 0;
}

.product-main-image [data-detail-main-image] {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12%;
  opacity: 0;
}

.inline-artwork {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  /* Replaced images must fit the frame, not set an intrinsic grid minimum. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  --artwork-cal-x: 0%;
  --artwork-cal-y: 0%;
  --artwork-cal-scale: 1;
}

.inline-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translate(var(--artwork-cal-x), var(--artwork-cal-y)) scale(var(--artwork-cal-scale));
  transform-origin: center;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.preview-label {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.artwork-preview-panel,
.lifestyle-mounted-art {
  border: 1px solid rgba(36, 33, 29, 0.08);
  box-shadow: 0 14px 32px rgba(45, 37, 29, 0.08);
}

.artwork-preview-panel {
  display: grid;
  place-items: center;
}

.artwork-preview-panel::before {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(36, 33, 29, 0.06);
  content: "";
}

.artwork-mask {
  position: relative;
  width: 76%;
  aspect-ratio: 4 / 5;
}

.artwork-mask::before,
.artwork-mask::after {
  position: absolute;
  inset: 0;
  content: "";
  mask: var(--artwork-url) center / contain no-repeat;
  -webkit-mask: var(--artwork-url) center / contain no-repeat;
}

.artwork-mask::before {
  background: var(--charcoal);
  opacity: 0.18;
}

.artwork-mask::after {
  background: var(--artwork-color, var(--charcoal));
  opacity: 0.94;
}

.artwork-preview-panel .artwork-mask {
  position: absolute;
  inset: 12%;
  width: auto;
  height: auto;
}

.product-detail[data-preview-mode="image"] .artwork-preview-panel {
  background: var(--paper-soft);
  box-shadow: none;
}

.product-detail[data-preview-mode="image"] .artwork-preview-panel::before {
  content: none;
}

.product-detail[data-preview-mode="image"] .product-main-image [data-detail-main-image] {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  padding: 0;
}

.lifestyle-mounted-art[data-frame="Black Frame"] {
  border-color: #161513 !important;
  border-width: var(--mockup-frame-width) !important;
  background: rgba(255, 253, 248, 0.98) !important;
  box-shadow:
    0 24px 40px rgba(22, 21, 19, 0.3),
    0 8px 14px rgba(22, 21, 19, 0.16),
    inset 0 0 0 1px rgba(36, 33, 29, 0.08) !important;
}

.lifestyle-mounted-art[data-frame="White Frame"] {
  border-color: #fffdf8;
  border-width: var(--mockup-frame-width);
  background: #fffdf8;
  box-shadow:
    0 22px 38px rgba(45, 37, 29, 0.24),
    0 7px 13px rgba(45, 37, 29, 0.12),
    inset 0 0 0 1px rgba(36, 33, 29, 0.08);
}

.lifestyle-mounted-art[data-frame="No Frame"] {
  border-color: rgba(255, 253, 248, 0.5);
  border-width: 1px;
  background: transparent;
  box-shadow:
    0 16px 28px rgba(45, 37, 29, 0.18),
    0 4px 8px rgba(45, 37, 29, 0.1);
}

.lifestyle-preview-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: var(--mockup-aspect-ratio, 4 / 5);
  border-radius: var(--radius);
  background: var(--paper-deep);
  box-shadow: 0 18px 44px rgba(45, 37, 29, 0.1);
}

.lifestyle-preview-panel::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at var(--preview-x, 50%) var(--preview-y, 32%), rgba(255, 253, 248, 0.2), rgba(255, 253, 248, 0) 24%),
    linear-gradient(90deg, rgba(36, 33, 29, 0.06), rgba(255, 253, 248, 0.03) 48%, rgba(36, 33, 29, 0.08));
  content: "";
  pointer-events: none;
}

.lifestyle-preview-panel > img {
  width: 100%;
  height: 100%;
  filter: saturate(0.92) sepia(0.03) contrast(1.02) brightness(0.98);
  object-fit: cover;
}

.lifestyle-mounted-art {
  position: absolute;
  left: var(--preview-x, 50%);
  top: var(--preview-y, 32%);
  z-index: 2;
  box-sizing: content-box;
  display: grid;
  place-items: center;
  width: 16%;
  aspect-ratio: 4 / 5;
  border: 0 solid transparent;
  background: rgba(255, 253, 248, 0.96);
  filter: saturate(0.96) contrast(0.98) brightness(0.99);
  isolation: isolate;
  --mockup-frame-width: clamp(3px, 0.55vw, 8px);
  transform:
    translate(-50%, -50%)
    rotate(var(--mockup-rotate, 0deg))
    skew(var(--mockup-skew-x, 0deg), var(--mockup-skew-y, 0deg));
  transform-origin: center;
  transition: width 240ms ease, height 240ms ease, transform 220ms ease, border-color 180ms ease, border-width 180ms ease, box-shadow 180ms ease;
  will-change: width, height, transform;
}

.lifestyle-mounted-art::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(118deg, rgba(255, 253, 248, 0.32), rgba(255, 253, 248, 0.04) 34%, rgba(36, 33, 29, 0.1) 100%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.1), rgba(36, 33, 29, 0.05));
  content: "";
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.lifestyle-mounted-art[data-size="A6"] {
  --mockup-frame-width: clamp(2px, 0.28vw, 4px);
}

.lifestyle-mounted-art[data-size="A5"] {
  --mockup-frame-width: clamp(2px, 0.32vw, 5px);
}

.lifestyle-mounted-art[data-size="A4"] {
  --mockup-frame-width: clamp(3px, 0.38vw, 6px);
}

.lifestyle-mounted-art[data-size="A3"] {
  --mockup-frame-width: clamp(3px, 0.48vw, 7px);
}

.lifestyle-mounted-art[data-size="A2"] {
  --mockup-frame-width: clamp(4px, 0.58vw, 9px);
}

.lifestyle-mounted-art[data-size="A1"] {
  --mockup-frame-width: clamp(5px, 0.68vw, 11px);
}

.lifestyle-mounted-art[data-size="A0"] {
  --mockup-frame-width: clamp(6px, 0.78vw, 13px);
}

.lifestyle-mounted-art .artwork-mask {
  width: 78%;
}

.lifestyle-artwork-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail[data-preview-mode="image"] .lifestyle-mounted-art {
  background: rgba(255, 253, 248, 0.98);
}

.product-detail[data-preview-mode="image"] .lifestyle-mounted-art[data-frame="No Frame"] {
  border-color: rgba(255, 253, 248, 0.5);
  border-width: 1px;
  background: transparent;
}

.product-detail[data-preview-mode="image"] .lifestyle-mounted-art[data-frame="Black Frame"] {
  border-color: #161513 !important;
  border-width: var(--mockup-frame-width) !important;
  background: #fffdf8 !important;
}

.product-detail[data-preview-mode="image"] .lifestyle-mounted-art[data-frame="White Frame"] {
  border-color: #fffdf8;
  border-width: var(--mockup-frame-width);
  background: #fffdf8;
}

.lifestyle-mounted-art[data-frame-style="black-frame"],
.product-detail[data-preview-mode="image"] .lifestyle-mounted-art[data-frame-style="black-frame"] {
  border-color: #161513 !important;
  border-width: var(--mockup-frame-width) !important;
  background: #fffdf8 !important;
  box-shadow:
    1px 1px 0 rgba(255, 253, 248, 0.16) inset,
    -1px -1px 0 rgba(0, 0, 0, 0.42) inset,
    0 26px 34px rgba(22, 21, 19, 0.28),
    0 7px 13px rgba(22, 21, 19, 0.18),
    inset 0 0 0 1px rgba(36, 33, 29, 0.08) !important;
}

.lifestyle-mounted-art[data-frame-style="white-frame"],
.product-detail[data-preview-mode="image"] .lifestyle-mounted-art[data-frame-style="white-frame"] {
  border-color: #fffdf8;
  border-width: var(--mockup-frame-width);
  background: #fffdf8;
  box-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.88) inset,
    -1px -1px 0 rgba(36, 33, 29, 0.1) inset,
    0 24px 32px rgba(45, 37, 29, 0.22),
    0 7px 13px rgba(45, 37, 29, 0.13),
    inset 0 0 0 1px rgba(36, 33, 29, 0.07);
}

.lifestyle-mounted-art[data-frame-style="no-frame"],
.product-detail[data-preview-mode="image"] .lifestyle-mounted-art[data-frame-style="no-frame"] {
  border-color: rgba(255, 253, 248, 0.5);
  border-width: 1px;
  background: transparent;
  box-shadow:
    0 20px 28px rgba(45, 37, 29, 0.2),
    0 5px 9px rgba(45, 37, 29, 0.12),
    0 0 0 1px rgba(255, 253, 248, 0.38);
}

.product-detail[data-preview-mode="image"] .lifestyle-inline-artwork {
  inset: 0;
}

.product-detail[data-preview-mode="image"] .lifestyle-mounted-art[data-frame="No Frame"] .lifestyle-inline-artwork {
  inset: 0;
}

.product-detail[data-preview-mode="image"] .lifestyle-mounted-art[data-frame="Black Frame"] .lifestyle-inline-artwork,
.product-detail[data-preview-mode="image"] .lifestyle-mounted-art[data-frame="White Frame"] .lifestyle-inline-artwork {
  inset: 0;
}

.product-detail-copy {
  order: 3;
  align-self: start;
  max-width: 560px;
}

.product-summary h1 {
  margin-bottom: 1rem;
  max-width: none;
  font-size: clamp(2.35rem, 8vw, 3.8rem);
  line-height: 1;
}

.form-message a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

.related-section {
  border-top: 1px solid var(--line);
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.related-grid .product-card {
  gap: 0.65rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.related-grid a.product-card {
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-items: start;
  min-width: 0;
}

.related-grid .product-card-image {
  aspect-ratio: 1 / 1;
  background: var(--paper-soft);
}

.related-grid .product-card-image img {
  padding: 0;
  object-fit: contain;
}

.related-grid .product-card:hover .product-card-image img {
  transform: none;
}

.related-grid .product-card-body {
  grid-row: span 3;
  grid-template-rows: subgrid;
  gap: 0.55rem;
}

.related-grid .product-card-title {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  gap: 0.2rem;
}

.related-grid .product-card-title h3 {
  overflow-wrap: anywhere;
  font-size: clamp(0.9rem, 4vw, 1.08rem);
  line-height: 1.05;
}

.related-grid .product-card-title span {
  margin-top: 0;
  font-size: 0.72rem;
}

.related-grid .button {
  height: 2.35rem;
  min-height: 2.35rem;
  align-self: start;
  line-height: 1;
  white-space: nowrap;
  padding: 0.55rem 0.45rem;
  font-size: 0.66rem;
}

.contact-section {
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem);
}

.contact-section {
  display: grid;
  gap: 1.25rem;
}

.cart-page-items {
  display: grid;
  gap: 1rem;
}

.order-summary h2 {
  margin-bottom: 1rem;
  font-size: 1.55rem;
}

.checkout-page-section {
  padding-top: clamp(2rem, 6vw, 4rem);
}

.form-fieldset {
  display: grid;
  gap: 1rem;
}

.form-fieldset + .form-fieldset {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-details {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 14px 34px rgba(45, 37, 29, 0.06);
}

.contact-details h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 6vw, 3rem);
}

.contact-details dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.contact-details div {
  padding-top: 1rem;
  border-top: 1px solid rgba(80, 73, 64, 0.16);
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0.25rem 0 0;
}

.contact-details a {
  text-decoration: none;
}

.site-footer {
  flex-shrink: 0;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: clamp(1.1rem, 3.5vw, 2rem) clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
}

.site-footer .brand,
.site-footer a,
.site-footer p {
  color: var(--white);
}

.site-footer p {
  max-width: 24rem;
  margin: 0.25rem auto 0;
}

.footer-brand {
  width: fit-content;
}

.copyright {
  color: rgba(255, 253, 248, 0.72) !important;
  font-size: 0.84rem;
  margin-top: 0.1rem !important;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 879px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    min-height: 64px;
    gap: 0.45rem;
    padding: 0.62rem clamp(0.75rem, 3.6vw, 1rem);
  }

  .brand-logo {
    width: clamp(4.65rem, 20vw, 5.85rem);
    max-height: 2.35rem;
  }

  .site-nav {
    flex: 1 1 0;
    flex-wrap: wrap;
    justify-content: center;
    min-inline-size: min-content;
    gap: 0.1rem;
    padding: 0.2rem;
  }

  .site-nav a,
  .site-nav button {
    font-size: clamp(0.66rem, 2.8vw, 0.74rem);
    min-height: 44px;
    padding: 0.42rem clamp(0.55rem, 2.6vw, 0.7rem);
  }

  /* Centre the mobile panel on the full sticky header, not the off-centre
     Shop link, so its viewport-sized width keeps both edges visible. */
  .shop-menu {
    position: static;
  }

  .shop-menu-panel {
    width: min(calc(100vw - 2rem), 18rem);
  }

  .cart-button {
    flex-shrink: 0;
    margin-inline-start: auto;
    width: 44px;
    height: 44px;
  }

  .home-collection {
    padding: clamp(2rem, 7vw, 2.7rem) clamp(1rem, 5vw, 1.2rem);
    overflow: hidden;
  }

  .home-collection .section-heading {
    margin-bottom: 1.15rem;
    text-align: center;
  }

  .home-collection .section-heading h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.28rem, 11.5vw, 3.45rem);
    line-height: 0.98;
  }

  .home-collection .section-heading p {
    max-width: 23rem;
    margin-inline: auto;
    font-size: 0.96rem;
  }

  .home-collection .product-card {
    gap: 0.6rem;
    padding: 0.45rem;
    border: 1px solid rgba(80, 73, 64, 0.13);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.48);
    border-bottom: 0;
    box-shadow: 0 14px 36px rgba(45, 37, 29, 0.06);
  }

  .home-collection .product-card-image {
    aspect-ratio: var(--artwork-aspect-ratio, 2406.61 / 1697.95);
    border-radius: calc(var(--radius) - 2px);
  }

  .home-collection .product-card-image img {
    padding: 0;
  }

  .home-collection .product-card-title {
    display: grid;
    gap: 0.2rem;
  }

  .home-collection .product-card-title h3 {
    font-size: clamp(1.18rem, 5vw, 1.45rem);
    line-height: 1.02;
  }

  .home-collection .product-card-title span {
    font-size: 0.8rem;
  }

  .home-collection .button {
    min-height: 2.65rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.74rem;
  }

  .product-detail {
    gap: 1rem;
    padding-bottom: 8.5rem;
  }

  .product-summary {
    max-width: none;
    text-align: center;
  }

  .product-summary h1 {
    margin-right: auto;
    margin-left: auto;
  }

  .product-gallery {
    gap: 0.65rem;
  }

  .product-options {
    gap: 0.9rem;
  }

  .option-grid-sizes,
  .option-grid-frames {
    display: none;
  }

  .mobile-option-select {
    display: block;
  }

  .option-grid-frames {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .option-grid-frames .radio-card span {
    min-height: 2.75rem;
    padding: 0.65rem 0.3rem;
    font-size: clamp(0.7rem, 2.9vw, 0.78rem);
    line-height: 1.1;
    white-space: nowrap;
  }

  .quantity-field {
    margin-bottom: 0;
  }

  .detail-footer {
    position: fixed;
    right: clamp(0.75rem, 4vw, 1rem);
    bottom: clamp(0.75rem, 4vw, 1rem);
    left: clamp(0.75rem, 4vw, 1rem);
    z-index: 8;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    margin: 0;
    background: rgba(251, 248, 242, 0.94);
    box-shadow: 0 -18px 36px rgba(45, 37, 29, 0.08);
    backdrop-filter: blur(16px);
  }

  .detail-footer .button {
    min-width: 9rem;
    padding-inline: 1rem;
  }
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: 1 / -1;
  }

  .detail-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .option-grid-frames {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.7fr);
    align-items: stretch;
    min-height: calc(100vh - 72px);
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  }

  .order-summary {
    position: sticky;
    top: 96px;
  }

  .product-detail {
    grid-template-columns: minmax(0, 0.98fr) minmax(430px, 0.74fr);
    column-gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }

  .product-info-column {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    align-content: start;
    gap: clamp(1rem, 2vw, 1.4rem);
    max-width: 560px;
  }

  .product-info-column .product-summary,
  .product-info-column .product-detail-copy {
    max-width: none;
  }

  .product-gallery {
    grid-column: 1;
    grid-row: 1;
    order: initial;
  }

  .product-detail:not(.product-detail-skeleton) .product-gallery {
    position: sticky;
    top: 96px;
    align-self: start;
  }

  .product-summary,
  .product-detail-copy {
    order: initial;
  }

  .contact-section {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  }
}


@media (min-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .product-card {
    border-bottom: 0;
  }

  .product-card-title {
    display: block;
  }

  .product-card-title span {
    display: block;
    margin-top: 0.45rem;
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

/* Homepage redesign */
/* Homepage: artwork first, with a compact opening and a simple catalogue. */
.home-shop {
  --home-accent: #3953a4;
  --home-accent-hover: #293e82;
  padding-inline: clamp(1rem, 4vw, 3rem);
  background: var(--paper-soft);
}

.home-shop > section {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.home-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.home-opening-artwork {
  display: block;
  min-width: 0;
}

.home-opening-artwork img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--artwork-aspect-ratio, 2406.61 / 1697.95);
  object-fit: contain;
}

.home-opening-details {
  display: grid;
  justify-items: start;
  gap: 1rem;
  min-width: 0;
  max-width: 27rem;
}

.home-opening-details h1 {
  max-width: none;
  font-size: clamp(2.3rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  text-wrap: balance;
}

.home-opening-details p {
  margin: 0;
}

.home-opening-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--home-accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-opening-label::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: currentColor;
}

.home-opening-description {
  max-width: 35ch;
  color: var(--charcoal-soft);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.home-opening-price {
  color: var(--charcoal);
  font-size: 0.95rem;
}

.home-opening .button {
  gap: 0.75rem;
  min-width: min(100%, 10rem);
  min-height: 48px;
  margin-top: 0.25rem;
  border-color: var(--home-accent);
  background: var(--home-accent);
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.home-opening .button:hover {
  border-color: var(--home-accent-hover);
  background: var(--home-accent-hover);
  transform: none;
}

.home-button-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-opening .button:hover .home-button-arrow {
    transform: translateX(3px);
  }
}

.home-shop .home-collection {
  padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  overflow: visible;
  scroll-margin-top: 6rem;
}

.home-shop .home-collection > h2 {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.15;
  color: var(--charcoal-soft);
  text-align: center;
}

.home-shop .home-catalogue {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1rem, 2.5vw, 2rem);
}

.home-shop .product-card,
.home-shop .product-card:hover {
  align-content: start;
  gap: 0.9rem;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.home-shop .product-card-image {
  width: var(--home-artwork-width, 100%);
  aspect-ratio: var(--artwork-aspect-ratio, 2406.61 / 1697.95);
  justify-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-shop .product-card-image img {
  padding: 0;
  object-fit: contain;
}

.home-shop .product-card-body {
  gap: 0.65rem;
}

.home-shop .product-card-title {
  display: grid;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
}

.home-shop .product-card-title h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.home-shop .product-card-title .product-card-price {
  color: var(--charcoal-soft);
  font-size: 0.85rem;
}

.product-card-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.product-card-swatch {
  display: inline-block;
  flex: 0 0 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid rgba(36, 33, 29, 0.24);
  border-radius: 50%;
  background: var(--swatch);
}

.home-shop a:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 5px;
}

@media (hover: hover) {
  .home-shop .product-card:hover h3 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }
}

.home-note {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.home-note h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.2;
  text-wrap: balance;
}

.home-note h2 em {
  color: var(--home-accent);
  font-weight: inherit;
}

.home-note p {
  max-width: 56ch;
  margin: 0;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .home-shop .home-catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1rem, 4vw, 2rem);
  }
}

@media (max-width: 700px) {
  .home-opening {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 1.5rem 2rem;
  }

  .home-opening-artwork {
    width: min(100%, 30rem);
    justify-self: center;
  }

  .home-opening-details {
    justify-items: center;
    justify-self: center;
    gap: 0.75rem;
    text-align: center;
  }

  .home-opening-details h1 {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
  }

  .home-opening-description {
    font-size: 0.95rem;
  }

  .home-shop .home-catalogue {
    row-gap: 2rem;
  }
}

@media (max-width: 340px) {
  .home-shop .home-catalogue {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-shop .product-card {
    width: min(100%, 17rem);
    justify-self: center;
  }
}

/* Homepage loading uses the same grid and image proportions as the catalogue.
   These are neutral layout shapes, never saved products, options or prices. */
.home-opening-artwork,
.home-loading-artwork,
.home-shop [data-home-artwork] {
  position: relative;
  aspect-ratio: var(--artwork-aspect-ratio, 2406.61 / 1697.95);
}

/* Confirmed empty catalogue: keep the responsive opening geometry with a
   decorative wordmark, no artwork substitution or continuing loading shimmer. */
.home-opening-artwork.home-empty-artwork {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.home-opening-details {
  min-height: 14rem;
  align-content: center;
}

.home-shop .home-product-group-heading {
  min-height: 0;
  align-content: start;
}

.home-shop .product-card-body {
  min-height: 6rem;
  align-content: start;
}

.home-image-placeholder,
.home-placeholder-line {
  display: block;
  background: rgba(80, 73, 64, 0.07);
  border-radius: 2px;
}

.home-image-placeholder {
  position: absolute;
  inset: 0;
}

.home-shop [data-home-artwork] img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.home-shop [data-image-state="ready"] img { opacity: 1; }
.home-shop [data-image-state="ready"] .home-image-placeholder { display: none; }
.home-shop [data-home-artwork] .asset-unavailable {
  position: absolute;
  inset: 0;
  padding: 1rem;
  align-content: center;
  text-align: center;
  font-size: 0.85rem;
}

.home-loading-copy { width: 100%; }
.home-placeholder-label { width: 8rem; height: 0.9rem; }
.home-placeholder-title { width: min(100%, 22rem); height: clamp(2.5rem, 5vw, 4rem); }
.home-placeholder-description { width: min(100%, 27rem); height: 3rem; }
.home-placeholder-price { width: 7rem; height: 1.1rem; }
.home-placeholder-button { width: 10rem; height: 48px; margin-top: 0.25rem; }
.home-placeholder-heading { width: min(80%, 18rem); height: clamp(1.7rem, 3vw, 2.35rem); }
.home-placeholder-card-title { width: min(80%, 13rem); height: 1.6rem; }
.home-placeholder-swatches { width: 5rem; height: 0.7rem; }
.home-shop .product-card-body > .home-placeholder-line { justify-self: center; }


/* Cart: compact artwork rows, generous controls and a quiet order summary. */
.cart-page-main {
  width: min(100% - 6rem, 75rem);
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.cart-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--charcoal-soft);
  font-size: 0.85rem;
}

.cart-back-link:hover,
.cart-item h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cart-back-link span { font-size: 1.15rem; }
.cart-back-link,
.cart-item h2 a { text-decoration: none; }
.cart-page-heading { margin-bottom: 2rem; text-align: center; }
.cart-page-heading .cart-back-link { justify-content: center; }
.cart-title-row { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.1rem; }
.cart-title-row h1 { margin: 0; font-size: clamp(2.5rem, 4.5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.035em; }
.cart-title-row p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.cart-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; gap: 2.5rem; }
.cart-content-layout.is-empty { grid-template-columns: minmax(0, 1fr); }
.cart-product-list { min-width: 0; border-top: 1px solid var(--line); }
.cart-loading {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) 5rem;
  align-items: stretch;
  gap: 1.4rem;
  min-height: 10rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-loading-image,
.cart-loading-copy i,
.cart-loading-price {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background:
    linear-gradient(100deg, rgba(238, 228, 214, 0.66) 0%, rgba(255, 253, 248, 0.98) 42%, rgba(238, 228, 214, 0.66) 84%)
    var(--paper-deep);
  background-size: 220% 100%;
  animation: previewShimmer 1450ms ease-in-out infinite;
}
.cart-loading-image { min-height: 100%; }
.cart-loading-copy { display: grid; align-content: start; gap: 0.7rem; padding-top: 0.2rem; }
.cart-loading-copy i { width: 11rem; max-width: 75%; height: 0.85rem; }
.cart-loading-copy i:first-child { height: 1.35rem; }
.cart-loading-copy i:last-child { width: 7rem; }
.cart-loading-price { width: 4.5rem; height: 1rem; justify-self: end; margin-top: 0.25rem; }
.cart-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: 1.4rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-image {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 100%;
  min-height: 8rem;
  padding: 0.6rem;
  border-radius: 3px;
  background: #ebe3d7;
  overflow: hidden;
}
.cart-item-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.cart-image-fallback { color: var(--charcoal-soft); text-align: center; font-size: 0.72rem; line-height: 1.5; }
.cart-item-details { grid-column: 2; grid-row: 1; min-width: 0; }
.cart-item h2 { margin: 0 0 0.6rem; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cart-item-selection { display: flex; flex-wrap: wrap; gap: 0.2rem 0.55rem; margin: 0; color: var(--charcoal-soft); font-size: 0.84rem; line-height: 1.5; }
.cart-item-selection span + span::before { content: "·"; margin-right: 0.55rem; color: #a29383; }
.cart-item-more { width: min(100%, 23rem); margin-top: 0.65rem; border-top: 1px solid rgba(80, 73, 64, 0.14); }
.cart-item-more summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; color: var(--charcoal-soft); font-size: 0.76rem; font-weight: 650; letter-spacing: 0.01em; cursor: pointer; list-style: none; }
.cart-item-more summary::-webkit-details-marker { display: none; }
.cart-item-more summary:hover { color: var(--charcoal); }
.cart-detail-toggle { position: relative; display: block; flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border: 1px solid rgba(80, 73, 64, 0.22); border-radius: 50%; transition: border-color 160ms ease, background 160ms ease; }
.cart-detail-toggle::before,
.cart-detail-toggle::after { position: absolute; top: 50%; left: 50%; width: 0.62rem; height: 1px; content: ""; background: currentColor; transform: translate(-50%, -50%); transition: transform 160ms ease, opacity 160ms ease; }
.cart-detail-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.cart-item-more[open] .cart-detail-toggle { border-color: rgba(80, 73, 64, 0.34); background: var(--paper-deep); }
.cart-item-more[open] .cart-detail-toggle::after { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
.cart-item-more-content { padding: 0.25rem 0 0.4rem; }
.cart-cost-caption { margin: 0 0 0.65rem; color: var(--muted); font-size: 0.68rem; line-height: 1.5; }
.cart-artwork-facts { display: grid; gap: 0.6rem; margin: 0; padding: 0; }
.cart-artwork-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 0.75rem; }
.cart-artwork-facts dt { min-width: 0; color: var(--charcoal-soft); font-size: 0.76rem; line-height: 1.5; overflow-wrap: anywhere; }
.cart-artwork-facts dd { margin: 0; color: var(--charcoal-soft); text-align: right; font-size: 0.76rem; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-cost-dedication { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.72rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cart-artwork-facts .cart-cost-total { margin-top: 0.1rem; padding-top: 0.65rem; border-top: 1px solid rgba(80, 73, 64, 0.14); }
.cart-cost-total dt,
.cart-cost-total dd { color: var(--charcoal); font-weight: 600; }
.cart-item-actions { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 1.1rem; min-width: 11.5rem; }
.cart-item-price { display: grid; justify-items: end; gap: 0.15rem; padding-top: 0.1rem; }
.cart-item-copy-count { color: var(--muted); font-size: 0.7rem; line-height: 1.3; letter-spacing: 0.025em; }
.cart-item-total { font-size: 1rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-item-controls { display: flex; align-items: center; justify-content: flex-end; gap: 0.65rem; min-width: 0; }
.cart-quantity-dropdown { position: relative; flex: 0 0 auto; width: 5.25rem; }
.cart-quantity-dropdown.is-open { z-index: 25; }
.cart-quantity-trigger { display: flex; align-items: center; justify-content: center; gap: 0.45rem; width: 100%; min-height: 44px; padding: 0.45rem 0.65rem; border: 1px solid rgba(80, 73, 64, 0.2); border-radius: 22px; background: transparent; color: var(--charcoal-soft); cursor: pointer; font: inherit; font-size: 0.78rem; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; touch-action: manipulation; transition: border-color 160ms ease, background 160ms ease, color 160ms ease; }
.cart-quantity-trigger:hover,
.cart-quantity-dropdown.is-open .cart-quantity-trigger { border-color: rgba(80, 73, 64, 0.36); background: var(--paper-deep); color: var(--charcoal); }
.cart-quantity-dropdown.has-multiple .cart-quantity-trigger { border-color: rgba(80, 73, 64, 0.34); background: var(--paper-deep); color: var(--charcoal); font-weight: 650; }
.cart-quantity-trigger svg { flex-shrink: 0; width: 0.65rem; height: 0.45rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.cart-quantity-dropdown.is-open .cart-quantity-trigger svg { transform: rotate(180deg); }
.cart-quantity-menu { top: calc(100% + 6px); right: auto; width: 8rem; max-height: 232px; padding: 0.3rem; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; background: var(--white); box-shadow: 0 8px 24px rgba(45, 37, 29, 0.12); }
.cart-quantity-dropdown.opens-up .cart-quantity-menu { top: auto; bottom: calc(100% + 6px); }
.cart-quantity-option { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: 0.55rem 0.7rem; border-radius: 4px; color: var(--charcoal-soft); cursor: pointer; font-size: 0.84rem; line-height: 1.4; font-variant-numeric: tabular-nums; touch-action: pan-y; }
.cart-quantity-option.is-active { background: var(--paper-deep); }
.cart-quantity-option[aria-selected="true"] { color: var(--charcoal); font-weight: 650; }
.cart-quantity-option svg { width: 0.9rem; height: 0.9rem; visibility: hidden; fill: none; stroke: var(--accent-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-quantity-option[aria-selected="true"] svg { visibility: visible; }
@media (hover: hover) {
  .cart-quantity-option:hover { background: var(--paper-soft); }
}
.cart-item-remove { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--charcoal-soft); cursor: pointer; touch-action: manipulation; }
.cart-item-remove svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.cart-item-remove:hover { border-color: rgba(142, 55, 40, 0.18); background: rgba(142, 55, 40, 0.07); color: #8e3728; }
.cart-order-summary { position: sticky; top: 6.5rem; padding: 1.65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-soft); }
.cart-order-summary h2 { margin: 0; text-align: center; font-size: 1.65rem; line-height: 1.2; letter-spacing: -0.02em; }
.cart-summary-count { margin: 0.6rem 0 1.5rem; color: var(--muted); text-align: center; font-size: 0.85rem; }
.cart-summary-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; padding-top: 1.2rem; margin-bottom: 1.4rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.cart-summary-total strong { font-size: 1.55rem; line-height: 1.3; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-checkout-button { width: 100%; min-height: 3.2rem; padding: 0.8rem 1rem; gap: 0.7rem; text-align: center; text-transform: none; letter-spacing: 0; font-size: 0.88rem; line-height: 1.4; font-weight: 600; }
.cart-checkout-button span { font-size: 1.1rem; }
.cart-checkout-button[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.cart-checkout-button[aria-busy="true"] { opacity: 1; cursor: wait; }
.cart-checkout-note { margin: 1rem 0 0; color: var(--muted); text-align: center; font-size: 0.76rem; line-height: 1.65; }
.cart-feedback,
.cart-notice { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.6rem 1rem; margin: 0 0 1.5rem; border: 1px solid #cbd0bf; border-radius: 5px; background: #edf0e6; color: #3b4633; font-size: 0.85rem; line-height: 1.5; overflow-wrap: anywhere; }
.cart-notice { display: block; background: #f5e9d7; border-color: #d7b996; color: #62462c; padding-block: 1rem; }
.cart-feedback button { flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 0.5rem 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cart-empty { padding: 3rem 1rem 4rem; text-align: center; }
.cart-empty-icon { width: 4rem; height: 4rem; margin: 0 auto 1.25rem; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cart-empty h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; }
.cart-empty p { margin: 1rem 0 1.5rem; color: var(--charcoal-soft); font-size: 0.95rem; line-height: 1.7; }
.cart-empty .button { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.cart-page :is(a, button, summary, select):focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }
.summary-dedication { overflow-wrap: anywhere; white-space: pre-wrap; }
.checkout-submit:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.checkout-payment-note { margin: 0.8rem 0 0; color: var(--muted); text-align: center; font-size: 0.78rem; line-height: 1.6; }
.checkout-subtotal, .checkout-delivery { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: 0.88rem; }
.checkout-subtotal { border-top: 1px solid var(--line); padding-top: 1rem; }
.checkout-subtotal strong, .checkout-delivery strong { font-weight: 500; white-space: nowrap; }
.payment-result { grid-column: 1 / -1; width: 100%; max-width: 42rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-align: center; }
.payment-result[hidden], .checkout-form[hidden], .order-summary[hidden], .payment-result [hidden] { display: none; }
.payment-result h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 5vw, 2.2rem); line-height: 1.25; }
.payment-result p { color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.payment-reference { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.payment-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.payment-result-actions .button { min-height: 3rem; max-width: 100%; white-space: normal; }
.payment-result-actions button:disabled { cursor: wait; opacity: 0.6; }
@media (max-width: 520px) { .payment-result-actions { flex-direction: column; } .payment-result-actions .button { width: 100%; } }
.compact-hero { text-align: center; }
.compact-hero h1,
.compact-hero p { margin-right: auto; margin-left: auto; }
.checkout-page-section .order-summary h2,
.checkout-page-section .empty-note,
.checkout-page-section .form-message { text-align: center; }

@media (max-width: 1050px) {
  .cart-page-main { width: calc(100% - 3rem); }
  .cart-content-layout { grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.5rem; }
  .cart-item { grid-template-columns: 5.5rem minmax(0, 1fr) auto; column-gap: 1rem; }
  .cart-item-actions { min-width: 10.5rem; }
  .cart-loading { grid-template-columns: 5.5rem minmax(0, 1fr) 4.5rem; gap: 1rem; }
  .cart-order-summary { padding: 1.35rem; }
}

@media (max-width: 850px) {
  .cart-content-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .cart-order-summary { position: static; padding: 1.5rem; }
  .cart-item { grid-template-columns: 7rem minmax(0, 1fr) auto; }
  .cart-item-actions { min-width: 11.5rem; }
  .cart-loading { grid-template-columns: 7rem minmax(0, 1fr) 5rem; }
  .cart-checkout-button { min-height: 3.25rem; }
}

@media (max-width: 560px) {
  .cart-page-main { width: calc(100% - 2rem); padding: 1rem 0 3rem; }
  .cart-page-heading { margin-bottom: 1.5rem; }
  .cart-title-row { margin-top: 0.8rem; gap: 0.35rem 0.75rem; }
  .cart-title-row h1 { font-size: 2.65rem; }
  .cart-title-row p { flex-basis: 100%; }
  .cart-item { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: 1.5rem 0; text-align: left; }
  .cart-item-image { grid-column: 1; grid-row: 1; align-self: stretch; width: 100%; min-height: 0; margin: 0; padding: 0.4rem; }
  .cart-item-details { width: auto; }
  .cart-item h2 { font-size: 1.3rem; margin-bottom: 0.45rem; }
  .cart-item-actions { grid-column: 1 / 3; grid-row: 2; display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-end; gap: 0.8rem; min-width: 0; width: 100%; }
  .cart-item-price { order: 2; align-self: flex-start; flex: 0 0 auto; margin: 0; padding-top: 0.7rem; pointer-events: none; }
  .cart-item-total { font-size: 0.95rem; }
  .cart-item-controls { order: 1; justify-content: flex-end; width: auto; margin: 0; gap: 0.5rem 0.7rem; }
  .cart-loading { grid-template-columns: 5rem minmax(0, 1fr) 3.5rem; gap: 1rem; min-height: 8.5rem; padding: 1.5rem 0; }
  .cart-loading-copy i { max-width: 90%; }
  .cart-order-summary { padding: 1.25rem; }
  .cart-order-summary h2 { font-size: 1.55rem; }
  .cart-summary-count { margin-bottom: 1.25rem; }
  .cart-empty { padding: 2rem 0 3rem; }
  .cart-feedback { padding: 0.5rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Catalogue/network and transitional media states. */
.catalogue-notice { margin: 2rem auto; padding: 1.5rem; max-width: 64rem; text-align: center; }
.asset-unavailable { display: grid; place-items: center; width: 100%; min-height: 8rem; padding: 1rem; color: #665e57; background: #f5f1eb; font-size: .875rem; text-align: center; }
/* Missing colour thumbnails stay within the existing compact colour label. */
.variant-option > span:has(.asset-unavailable) { grid-template-columns: minmax(0, 1fr); }
.variant-option .asset-unavailable { min-width: 0; max-width: 100%; min-height: 0; aspect-ratio: var(--artwork-aspect-ratio, 4 / 3); padding: .25rem; overflow-wrap: anywhere; }
.variant-option > span:has(.asset-unavailable) strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
[data-cart-checkout][aria-busy="true"] { opacity: .6; pointer-events: none; }

/* Contact intake keeps the established form layout. */
.contact-fields { display: grid; gap: 1rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-fields label { display: grid; gap: .45rem; }
.contact-fields label span { color: var(--muted); }
.contact-field { display: grid; gap: .45rem; min-width: 0; }
.contact-fields .contact-field label { display: block; }
.contact-form-help { margin: -.5rem 0 1.25rem; color: var(--muted); font-size: .875rem; }
.contact-field-error { margin: 0; color: #86392c; font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.contact-fields .contact-field [aria-invalid="true"] { border-color: #86392c; }
.contact-form > button { margin-top: 1rem; }

/* Form pages keep the editorial copy at a scale that leaves room for the task. */
.contact-page .page-hero,
.checkout-page .page-hero {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.contact-page .page-hero h1,
.checkout-page .page-hero h1 {
  max-width: 24ch;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  text-wrap: balance;
}
.contact-page .page-hero p,
.checkout-page .page-hero p {
  margin-top: 1rem;
  margin-bottom: 0;
}
.contact-page .contact-section {
  width: 100%;
  max-width: calc(720px + 2 * clamp(1rem, 5vw, 4rem));
  margin-inline: auto;
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}
.contact-page .page-hero {
  padding: clamp(1.25rem, 3vw, 1.5rem);
  align-self: start;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(45, 37, 29, 0.06);
}
.contact-page .page-hero h1 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
}
.contact-page .page-hero p {
  max-width: 38ch;
  margin: 0.625rem auto 0;
  text-wrap: pretty;
}
.contact-page .contact-form,
.contact-page .contact-details {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
}
.contact-page .contact-form {
  width: 100%;
  max-width: 720px;
  justify-self: center;
}
@media (min-width: 880px) {
  .contact-page .contact-section {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  }
  .contact-page .page-hero {
    grid-column: 1;
    grid-row: 1;
  }
  .contact-page .contact-details {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
  }
  .contact-page .contact-form {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
.contact-page .contact-form h2,
.contact-page .contact-details h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}
.contact-page .contact-form h2 { margin-bottom: 1.5rem; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-notice { padding: .75rem; border: 1px solid var(--line); border-radius: .5rem; }
.contact-notice[data-state="error"] { color: #86392c; }
.contact-fields [aria-invalid="true"] { border-color: #86392c; }

/* Development order controls use the existing checkout field/button treatment. */
.checkout-form select { font: inherit; }
[data-order-create]:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.checkout-form [data-order-recover], .checkout-form [data-order-new] { margin-top: .75rem; }

/* Scoped keyboard cues retain contrast on light and dark adjacent surfaces. */
.site-header :is(.site-nav a, .site-nav button, .cart-button):focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--white);
}
.quantity-control button:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: -5px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px var(--white);
}
.contact-page .contact-fields :is(input, textarea):not([aria-invalid="true"]) { border-color: var(--accent); }
.contact-page .contact-fields :is(input, textarea):focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }

/* Contact validation boundaries retain the existing error palette in all focus states. */
.contact-page .contact-fields :is(input, textarea)[aria-invalid="true"] {
  border-color: #86392c;
}

/* Managed presentation remains inside its allocated grid column. The zero
   minimum prevents a long thumbnail row from enlarging the hero or covering
   commercial controls. Legacy galleries retain their existing layout. */
[data-product-detail] .product-gallery:has(.managed-gallery-thumbnails) {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}
.managed-gallery-presentation { margin: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.managed-gallery-presentation[hidden], .product-preview-grid[hidden] { display: none; }
.managed-gallery-stage { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 300px; background: #f4f1ec; border-radius: 12px; overflow: hidden; }
.managed-gallery-stage img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.managed-gallery-stage img[hidden] { display: none; }
.managed-gallery-presentation figcaption, .gallery-presentation-help { font-size: .85rem; color: #5b554e; line-height: 1.5; }
.gallery-thumbs:has(.managed-gallery-thumbnails) { display: block; min-width: 0; }
.managed-gallery-thumbnails { display: flex; min-width: 0; max-width: 100%; gap: .6rem; overflow-x: auto; padding: .3rem .3rem .75rem; }
.gallery-view-button { flex: 0 0 92px; display: grid; gap: .3rem; background: #fff; border: 1px solid #d4cdc3; border-radius: 8px; padding: .35rem; cursor: pointer; color: inherit; font: inherit; font-size: .72rem; text-align: center; }
.gallery-view-button img { width: 80px; height: 80px; object-fit: contain; background: #f4f1ec; border-radius: 4px; }
.gallery-view-button[aria-pressed="true"] { border-color: #504334; box-shadow: 0 0 0 1px #504334; }
.gallery-view-button:focus-visible { outline: 3px solid #786146; outline-offset: 3px; }
.gallery-view-button.image-unavailable { min-height: 106px; }

/* Public artwork states are neutral mounts, never replacement artwork. */
.artwork-image-shell { position: relative; display: grid; width: 100%; min-width: 0; aspect-ratio: var(--artwork-aspect-ratio, 4 / 3); overflow: hidden; border-radius: inherit; }
.artwork-image-shell > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-card-image .artwork-image-shell { height: 100%; aspect-ratio: auto; }
.media-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; width: 100%; min-width: 0; min-height: 0; padding: clamp(.8rem, 3vw, 2rem); border: 1px solid rgba(138, 111, 85, .18); border-radius: inherit; background: radial-gradient(ellipse at 50% 30%, #fffdf8, #f1e9de); color: #504940; text-align: center; overflow: hidden; }
.media-placeholder::before { position: absolute; inset: clamp(.4rem, 1.4vw, 1rem); content: ''; border: 1px solid rgba(138, 111, 85, .14); border-radius: 2px; pointer-events: none; }
.media-placeholder-mark { position: relative; display: block; flex: 0 0 auto; width: 2.4rem; height: 3rem; border: 1px solid #aa9278; box-shadow: inset 0 0 0 5px #f7f2ea, inset 0 0 0 6px rgba(138,111,85,.22); opacity: .85; }
.media-placeholder-mark::after { position: absolute; inset: 9px; content: ''; border-bottom: 1px solid rgba(138,111,85,.35); transform: rotate(-35deg); }
.media-placeholder-title { max-width: 22ch; font-family: var(--serif); font-size: clamp(1rem, 1.8vw, 1.45rem); font-weight: 400; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.media-placeholder-note { max-width: 25ch; color: #776d62; font-size: .75rem; line-height: 1.5; }
[data-placeholder-loading="true"] .media-placeholder-mark { animation: publicPreviewBreath 1800ms ease-in-out infinite; }
@keyframes publicPreviewBreath { 50% { opacity: .4; } }
.home-shop [data-home-artwork] .media-placeholder { padding: clamp(.8rem, 3vw, 2rem); }
.home-shop [data-image-state="unavailable"] .home-image-placeholder { display: none; }
.variant-option .artwork-image-shell .media-placeholder,
.shop-menu-product-image .media-placeholder,
.cart-item-image .media-placeholder,
.gallery-thumb .media-placeholder { gap: .3rem; padding: .35rem; }
.variant-option .media-placeholder-mark,
.shop-menu-product-image .media-placeholder-mark,
.cart-item-image .media-placeholder-mark,
.gallery-thumb .media-placeholder-mark { width: 1rem; height: 1.3rem; box-shadow: inset 0 0 0 2px #f7f2ea, inset 0 0 0 3px rgba(138,111,85,.22); }
.variant-option .media-placeholder-mark::after,
.shop-menu-product-image .media-placeholder-mark::after,
.cart-item-image .media-placeholder-mark::after,
.gallery-thumb .media-placeholder-mark::after { inset: 4px; }
.variant-option .media-placeholder-note,
.shop-menu-product-image .media-placeholder-note,
.cart-item-image .media-placeholder-note,
.gallery-thumb .media-placeholder-note { display: none; }
.variant-option .media-placeholder-title,
.cart-item-image .media-placeholder-title,
.gallery-thumb .media-placeholder-title { font-family: var(--sans); font-size: .62rem; line-height: 1.2; }
.variant-option .media-placeholder-title { font-size: .55rem; }
.shop-menu-product-image .artwork-image-shell { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; overflow: visible; }
.shop-menu-product-image .artwork-image-shell img { width: 100%; height: 100%; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.shop-menu-product-image .media-placeholder-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.cart-item-image { padding: 0; background: transparent; }
.cart-item-image .artwork-image-shell { align-self: stretch; height: 100%; aspect-ratio: auto; }
.image-recovery { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; width: min(calc(100% - 2rem), 720px); min-block-size: 4.75rem; margin: 1rem auto; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); color: var(--charcoal-soft); }
/* Idle recovery is absent from layout and keyboard/AX navigation.
   The controller keeps a focused retry visible through completion. */
.image-recovery[hidden] { display: none !important; }
.image-recovery p { flex: 1 1 8rem; min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.5; }
.image-recovery button { flex: 0 1 7.25rem; min-width: 0; min-height: 44px; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--charcoal); font-size: .75rem; }
.image-recovery button[aria-disabled="true"] { cursor: default; }
.image-recovery button:focus-visible { outline: 3px solid #786146; outline-offset: 3px; }
.brand-wordmark { display: inline-grid; place-items: center; width: clamp(6.2rem, 13vw, 8.5rem); min-height: 2.9rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.managed-gallery-stage { position: relative; aspect-ratio: 4 / 3; min-height: 0; }
.managed-gallery-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.gallery-thumb { position: relative; display: block; width: 80px; height: 80px; border-radius: 4px; overflow: hidden; }
.gallery-thumb > img { position: absolute; inset: 0; }
.gallery-view-button.image-unavailable { min-height: 0; }
.managed-gallery-presentation figcaption { block-size: 2.55rem; margin: 0; }
.managed-gallery-thumbnails { padding: .5rem .5rem .75rem; scroll-padding-inline: .5rem; }
/* Prefer ordinary word boundaries, but keep unbroken colour names inside their
   track when the viewport or text zoom makes the compact options narrow. */
.variant-group { grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.5rem), 1fr)); }
.variant-option > span:has(.asset-unavailable) strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: normal; hyphens: manual; }
@media (max-width: 600px) { .variant-group { grid-template-columns: repeat(auto-fit, minmax(4.75rem, 1fr)); } }
@media (prefers-reduced-motion: reduce) { [data-placeholder-loading="true"] .media-placeholder-mark { animation: none; } }
.media-placeholder > span { margin: 0; }
.product-main-image[data-loading="true"]:has(.media-placeholder)::after { content: none; }
/* Loading images stay in layout so native lazy decoding can begin. */
.artwork-image-shell > img,
.gallery-thumb > img { opacity: 0; }
.artwork-image-shell[data-image-state="ready"] > img,
.gallery-thumb[data-image-state="ready"] > img { opacity: 1; }
.home-loading-artwork .home-image-placeholder { border: 1px solid rgba(138,111,85,.18); background: radial-gradient(ellipse at 50% 30%, #fffdf8, #f1e9de); }
.home-loading-artwork .home-image-placeholder::after { position: absolute; top: 50%; left: 50%; width: 2.4rem; height: 3rem; border: 1px solid rgba(138,111,85,.45); content: ''; transform: translate(-50%,-50%); box-shadow: inset 0 0 0 5px #f7f2ea,inset 0 0 0 6px rgba(138,111,85,.16); }
/* Compact listing mounts need less copy than the large artwork stage. */
.product-card-image .media-placeholder,
.home-shop .product-card-image[data-home-artwork] .media-placeholder { gap: .5rem; padding: .75rem; }
.product-card-image .media-placeholder-mark { width: 1.5rem; height: 1.9rem; box-shadow: inset 0 0 0 3px #f7f2ea,inset 0 0 0 4px rgba(138,111,85,.22); }
.product-card-image .media-placeholder-mark::after { inset: 6px; }
.product-card-image .media-placeholder-title { font-size: clamp(.85rem, 1.1vw, 1rem); }
.product-card-image .media-placeholder-note { display: none; }
.variant-option .artwork-image-shell { min-height: 2.75rem; }
.variant-option .artwork-image-shell .media-placeholder,
.cart-item-image .media-placeholder { gap: .2rem; padding: .2rem; }
.variant-option .media-placeholder-mark,
.cart-item-image .media-placeholder-mark { width: .85rem; height: 1rem; }
.variant-option .media-placeholder-title,
.cart-item-image .media-placeholder-title { font-size: .6rem; }

/* A return URL selects loading context only; saved status decides the outcome. */
html[data-checkout-return] [data-checkout-form],
html[data-checkout-return] .order-summary { display: none; }
html[data-checkout-return="loading"] #checkout-title { display: none; }
html[data-checkout-return="loading"] [data-checkout-intro] { visibility: hidden; }
html[data-checkout-return="loading"] [data-checkout-loading-title],
html[data-checkout-return="loading"] [data-payment-result] { display: block !important; }
html[data-checkout-return="loading"] .payment-result-actions { visibility: hidden; }

/* Keep the visible page frame in place while sparse loading states resolve. */
main:has([data-cart-layout]),
main:has([data-product-not-found]) { min-block-size: 100svh; }
.cart-title-row p { min-block-size: 1.5em; min-inline-size: 7ch; }
[data-checkout-summary] { min-block-size: 7.5rem; }
[data-checkout-subtotal], [data-checkout-total] { min-inline-size: 6em; text-align: right; }
[data-checkout-delivery] { min-inline-size: 10.5em; text-align: right; }
.footer-brand .brand-wordmark { width: 6.5rem; min-height: calc(6.5rem * 1310 / 1830); }
.footer-brand { display: inline-flex; vertical-align: top; }
.image-recovery { position: fixed; z-index: 110; bottom: 1rem; left: 50%; margin: 0; transform: translateX(-50%); box-shadow: var(--shadow); }
.catalogue-notice[role="alert"] { position: fixed; z-index: 110; bottom: 1rem; left: 50%; width: min(calc(100% - 2rem), 720px); margin: 0; transform: translateX(-50%); display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); box-shadow: var(--shadow); }
.catalogue-notice[role="alert"] p { margin: 0; }
.catalogue-notice[role="alert"] .button { justify-self: center; }
.skeleton-artwork { position: relative; }
html[data-catalogue-state="unavailable"] :is(.home-placeholder-line, .skeleton-line, .skeleton-block, .cart-loading-image, .cart-loading-copy i, .cart-loading-price) { animation: none; }
.media-placeholder-title { width: 100%; min-block-size: 2.5em; }
.media-placeholder-note { width: 100%; min-block-size: 3em; }
html[data-checkout-return] .payment-result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 3.5rem); align-content: start; }
html[data-checkout-return] [data-payment-check] { grid-area: 1 / 1; }
html[data-checkout-return] [data-payment-resume] { grid-area: 1 / 2; }
html[data-checkout-return] [data-payment-return] { grid-area: 2 / 1 / 3 / 3; justify-self: center; min-inline-size: 13rem; }
@media (max-width: 520px) {
  html[data-checkout-return] .payment-result-actions { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(3, 3.5rem); }
  html[data-checkout-return] [data-payment-resume] { grid-area: 2 / 1; }
  html[data-checkout-return] [data-payment-return] { grid-area: 3 / 1; }
}
/* Quote totals appear at their final position after the cart rows are known. */
[data-checkout-summary][aria-busy] ~ .checkout-subtotal,
[data-checkout-summary][aria-busy] ~ .checkout-delivery,
[data-checkout-summary][aria-busy] ~ .summary-total { visibility: hidden; }

/* Size each return slot to the current copies at its actual width and font size.
   Invisible sizing text is inert/aria-hidden; no clipping or arbitrary line cap. */
.checkout-return-reservation { display: none; }
html[data-checkout-return] :is(.checkout-return-slot, .checkout-return-reservation) { display: grid; }
html[data-checkout-return] :is(.checkout-return-slot, .checkout-return-reservation) > * { grid-area: 1 / 1; min-inline-size: 0; }
html[data-checkout-return] .checkout-return-reservation { visibility: hidden; pointer-events: none; user-select: none; }
html[data-checkout-return] :is(.checkout-return-slot, .checkout-return-reservation) > :is(h1, h2, p) { inline-size: 100%; }

@media (max-width: 879px) {
  .site-header .brand-wordmark { width: clamp(4.65rem, 20vw, 5.85rem); min-height: 2.35rem; font-size: .95rem; }
}

/* Same-browser TEST receipt: restrained saved-total hierarchy and explicit actions. */
.recovery-panel { grid-column: 1 / -1; width: min(100%, 48rem); padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--border, #d8d4ce); background: var(--surface, #fff); border-radius: 8px; }
.recovery-panel[hidden], .recovery-dialog[hidden] { display: none; }
.recovery-eyebrow { margin: 0 0 .75rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #606570; }
.recovery-panel h2, .recovery-dialog h2 { margin: 0 0 1rem; font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 400; line-height: 1.2; }
.recovery-panel p { overflow-wrap: anywhere; }
.recovery-reference { margin: 1.35rem 0; padding-block: 1rem; border-block: 1px solid #e2dfda; font-weight: 600; }
.recovery-remembered { max-width: 42rem; font-size: .84rem; line-height: 1.6; color: #606570; }
.recovery-actions, .recovery-choices { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.recovery-actions .button, .recovery-choices .button { min-height: 44px; white-space: normal; text-align: center; }
.recovery-contact, .recovery-forget { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: .2em; }
.recovery-forget { margin-top: 1rem; padding: 0; border: 0; background: transparent; color: #606570; font: inherit; font-size: .84rem; cursor: pointer; }
.recovery-dialog { width: min(38rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid #d8d4ce; border-radius: 8px; color: inherit; }
.recovery-dialog::backdrop { background: rgb(25 29 37 / .45); }
.recovery-dialog p { line-height: 1.7; }
.recovery-panel :focus-visible, .recovery-dialog :focus-visible { outline: 2px solid #48516b; outline-offset: 4px; }
@media (max-width: 480px) { .recovery-actions .button, .recovery-choices .button { width: 100%; } .recovery-dialog .recovery-actions { flex-direction: column; align-items: stretch; } }

/* Recovery uses its own frame from the first paint. Size each slot from the
   actual copy and button labels at the current width; no height or line caps. */
html[data-checkout-return="loading"][data-checkout-recovery] [data-payment-result] { display: none !important; }
html[data-checkout-return="loading"][data-checkout-recovery] [data-browser-recovery] { display: block !important; }
html[data-checkout-return="loading"][data-checkout-recovery] .recovery-panel-actions,
html[data-checkout-return="loading"][data-checkout-recovery] .recovery-access-actions { visibility: hidden; }
.recovery-slot, .recovery-reservation { display: grid; min-inline-size: 0; }
.recovery-slot > *, .recovery-reservation > * { grid-area: 1 / 1; min-inline-size: 0; }
.recovery-reservation { visibility: hidden; pointer-events: none; user-select: none; }
.recovery-slot > :is(h2, p), .recovery-reservation > :is(h2, p) { inline-size: 100%; }
.recovery-panel-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.recovery-panel-actions .button { inline-size: 100%; padding-inline: .6rem; }
.recovery-access-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.recovery-access-actions :is(.recovery-contact, .recovery-forget) { margin: 0; font-size: .84rem; }
.recovery-choices:empty { margin: 0; }

/* Remembered recovery keeps the hero's intrinsic slots after loading, including
   the release-disabled or missing-access view without a return query. */
html[data-checkout-recovery] :is(.checkout-return-slot, .checkout-return-reservation) { display: grid; }
html[data-checkout-recovery] :is(.checkout-return-slot, .checkout-return-reservation) > * { grid-area: 1 / 1; min-inline-size: 0; }
html[data-checkout-recovery] .checkout-return-reservation { visibility: hidden; pointer-events: none; user-select: none; }
html[data-checkout-recovery] :is(.checkout-return-slot, .checkout-return-reservation) > :is(h1, h2, p) { inline-size: 100%; }

/* No receipt has been confirmed in loading/access-error states. Keep its slot,
   but do not draw empty receipt dividers. */
[data-recovery-reference]:empty { visibility: hidden; }

/* Product composition: artwork is the focal point; configuration, total and
   purchase feedback form one continuous decision column. */
.product-detail {
  max-width: 1320px;
  padding-block: clamp(1.5rem, 4vw, 3.5rem);
}
.product-summary h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.product-summary p {
  max-width: 46ch;
  font-size: .95rem;
  line-height: 1.65;
}
.product-options > fieldset {
  padding-block: .2rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.product-options > fieldset:last-of-type {
  padding-bottom: .25rem;
  border-bottom: 0;
}
.product-detail-copy .detail-footer {
  margin-top: 1.5rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.25rem 0 0;
  background: transparent;
  box-shadow: none;
}
.product-detail-copy .detail-footer .button {
  min-height: 3.25rem;
  min-width: 11rem;
  text-transform: none;
  font-size: .9rem;
  letter-spacing: 0;
}
.product-detail-copy [data-add-message] {
  font-size: .9rem;
  line-height: 1.6;
}
@media (min-width: 880px) {
  .product-detail {
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    column-gap: clamp(2rem, 5vw, 4.5rem);
  }
  .product-info-column { gap: 1.75rem; }
  .product-summary h1 { margin-bottom: .85rem; }
  .product-options { gap: .95rem; }
  .product-detail-copy .detail-footer { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 879px) {
  .product-detail { padding-bottom: 8.5rem; }
  .product-summary p { margin-inline: auto; }
  .product-detail-copy { max-width: none; }
  .product-detail-copy .detail-footer {
    margin: 0;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(251, 248, 242, .98);
    box-shadow: 0 -8px 28px rgba(45, 37, 29, .08);
  }
  .product-detail-copy .detail-footer .button {
    min-width: 0;
    padding-inline: 1rem;
  }
}

/* Contact is a conversation introduction beside a focused writing surface,
   rather than three equally weighted utility cards. DOM stays intro/form/facts. */
.contact-page .contact-section {
  max-width: 1180px;
  padding-block: clamp(2rem, 5vw, 4rem);
  gap: 2rem;
}
.contact-page .page-hero {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.contact-page .page-hero h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.contact-page .page-hero p {
  max-width: 34ch;
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.7;
}
.contact-page .contact-form {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: none;
}
.contact-page .contact-details {
  padding: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.contact-page .contact-details h2 { font-size: 1.5rem; }
.contact-page .contact-details div { padding-top: 0; border-top: 0; }
.contact-page .contact-details dd { overflow-wrap: anywhere; }
@media (min-width: 880px) {
  .contact-page .contact-section {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: 2.5rem;
  }
  .contact-page .page-hero { grid-column: 1; grid-row: 1; }
  .contact-page .contact-form { grid-column: 2; grid-row: 1 / 3; }
  .contact-page .contact-details { grid-column: 1; grid-row: 2; align-self: start; }
}

/* Existing dark wordmark stays legible on the same warm neutral language as
   the collection; artwork/logo files and footer content are unchanged. */
.site-footer {
  border-top-color: var(--line);
  background: var(--paper-deep);
  color: var(--charcoal);
}
.site-footer .brand,
.site-footer a,
.site-footer p { color: var(--charcoal-soft); }
.site-footer .copyright { color: var(--charcoal-soft) !important; }
.contact-page .contact-field label > span {
  display: inline;
  margin: 0;
  font-size: .875em;
  font-weight: 400;
  text-transform: none;
}

/* Compact artwork aids select a colourway; the product keeps one main image. */
.swatch-option.colourway-option { display: flex; align-self: stretch; min-width: 0; max-width: 100%; cursor: pointer; }
.swatch-group:has(.colourway-option) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 6.5rem), 1fr)); grid-auto-rows: 1fr; gap: .5rem; align-items: stretch; }
.colourway-option span { margin: 0; color: inherit; font-size: inherit; font-weight: inherit; text-transform: none; }
.swatch-option.colourway-option > span { display: grid; justify-items: center; align-content: start; gap: .4rem; width: 100%; min-width: 0; max-width: 100%; height: 100%; min-height: 6.2rem; padding: .5rem; border-radius: .65rem; color: var(--charcoal); background: var(--paper-soft); box-shadow: none; overflow-wrap: anywhere; text-align: center; font-size: .8rem; line-height: 1.25; font-weight: 400; }
.swatch-option.colourway-option input:checked + span { border-color: var(--charcoal); background: var(--paper); box-shadow: 0 0 0 1px var(--charcoal); font-weight: 600; }
.colourway-option-thumbnail { display: block; width: 100%; height: 3.5rem; min-width: 0; min-height: 0; }
.colourway-option-thumbnail .artwork-image-shell { display: block; width: 100%; height: 100%; aspect-ratio: auto; min-height: 0; }
.colourway-option-thumbnail img { display: block; width: 100%; height: 100%; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.colourway-option-name { min-width: 0; min-height: 2.5em; overflow-wrap: anywhere; }

.colourway-option-thumbnail [data-image-state="unavailable"] { opacity: .7; }
.colourway-option:has([data-image-state="unavailable"]) > span { border-style: dashed; }
.colourway-option-thumbnail .media-placeholder { padding: .2rem; gap: 0; }
.colourway-option-thumbnail .media-placeholder::before { inset: .15rem; }
.colourway-option-thumbnail .media-placeholder-mark { width: 1rem; height: 1.3rem; box-shadow: none; }
.colourway-option-thumbnail .media-placeholder-mark::after { inset: 3px; }
.colourway-option-thumbnail :is(.media-placeholder-title, .media-placeholder-note) { display: none; }

.product-story { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.product-story summary { min-height: 44px; display: flex; align-items: center; font-size: .9rem; font-weight: 600; }
.product-story p { font-size: .95rem; line-height: 1.65; }
.verification-retry { margin-inline-start: .65rem; min-height: 44px; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.product-options :is(input,button,select,textarea), .product-story summary { scroll-margin-block-start: var(--purchase-header-clearance, 96px); scroll-margin-block-end: var(--purchase-footer-clearance, 110px); }
@media (min-width: 880px) {
 .product-info-column { gap: 1rem; }
 .product-summary h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
 .purchase-strip-slot { padding-top: 1.5rem; }
 .product-detail-copy .detail-footer { margin-top: 0; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(251,248,242,.98); }
 .product-detail-copy .detail-footer[data-desktop-pinned="true"] { position: fixed; z-index: 8; margin: 0; bottom: auto; box-shadow: 0 8px 28px rgba(45,37,29,.1); }
}
@media (max-width: 879px) {
 .product-detail { padding-bottom: 3rem; }
 .product-detail-copy .detail-footer { bottom: max(clamp(.75rem,4vw,1rem), env(safe-area-inset-bottom)); }
 .product-detail-copy .detail-footer[data-mobile-pinned="false"] { position: static; left: auto; right: auto; bottom: auto; }
}

/* Purchasing stays in flow across every width and zoom. */
.product-detail-copy .detail-footer,
.product-detail-copy .detail-footer[data-desktop-pinned="true"],
.product-detail-copy .detail-footer[data-mobile-pinned="false"] { position: static; inset: auto; width: auto; box-shadow: none; }
.purchase-strip-slot { padding-top: .75rem; }
.swatch-option.colourway-option > span { min-height: 0; height: 100%; gap: .3rem; padding: .45rem .45rem .35rem; }
.colourway-option-name { min-height: 2.5em; }
.home-product-group-heading { text-align: center; margin-inline: auto; }
.home-product-group-heading p { margin-inline: auto; max-width: 52ch; }
.shop-menu-panel { width: min(22rem, calc(100vw - 2rem)); padding: .7rem; }
.shop-menu-panel > a { font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.shop-menu-panel .shop-menu-collection { min-height: 3.75rem; }
/* Share title, price and swatch rows at the natural tallest title height. */
.product-grid > a.product-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; min-width: 0; }
.product-grid > a.product-card .product-card-body { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.product-grid > a.product-card .product-card-title { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: .5rem; align-content: start; }
.product-card-title h3 { overflow-wrap: anywhere; }

.shop-menu-panel { max-height: var(--shop-menu-height, min(27rem, calc(100dvh - 7rem))); overflow-y: auto; }
/* Collection disclosure destinations remain below the sticky brand header. */
.home-product-group, [id^="home-product-group-"], #home-opening-title { scroll-margin-block-start: 6rem; }

/* One shared collection rhythm and card scale, including smaller collections. */
.home-shop .home-product-group { padding-bottom:clamp(2rem,4vw,3rem); }
.home-shop .home-product-group:last-child { padding-bottom:0; }
.home-shop .home-product-group .product-grid {
 width:100%; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));
 max-width:72rem; margin-inline:auto;
}
.home-shop .home-product-group[data-product-count="1"] .product-grid { max-width:24rem; }
.home-shop .home-product-group[data-product-count="2"] .product-grid { max-width:48rem; }
.home-shop .home-product-group .product-card { width:min(100%,24rem); justify-self:center; }
.home-shop .home-product-group .product-card-body { min-height:0; }
.home-shop .product-card:focus-visible h3 { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.2em; }
/* Keep focus visible inside the menu scrollport and the purchasing button. */
.shop-menu-panel a:focus-visible, [data-purchase-strip] button[type="submit"]:focus-visible { outline:2px solid currentColor; outline-offset:-3px; }
@media(max-width:600px) {
 .home-shop .home-product-group-heading p { display:none; }
 .home-shop .home-product-group-description { margin:0 auto; max-width:52ch; text-align:center; color:var(--charcoal-soft); font-size:.95rem; line-height:1.48; }
}
@media(min-width:601px) { .home-product-group-description { display:none; } }

/* Product-only viewport composition reserves a real row for purchase actions. */
body.product-page { display:flex; flex-direction:column; height:100dvh; min-height:0; overflow:hidden; }
.product-page > [data-purchase-scrollport] { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; scroll-padding-block:5rem 8px; }
.product-page [data-purchase-scrollport] > .site-header { position:sticky; top:0; }
.product-page [data-purchase-dock] { position:fixed;left:0;right:0;bottom:0; max-height:45dvh; overflow:auto; z-index:8; padding:.6rem clamp(1rem,4vw,3rem) max(.6rem,env(safe-area-inset-bottom)); border-top:1px solid var(--line); background:var(--paper-soft); }
.product-page:has([data-product-detail][hidden]) [data-purchase-dock] { display:none; }
.product-purchase-dock .purchase-strip-slot { max-width:72rem; padding:0; margin:auto; }
.product-purchase-dock .detail-footer { position:static; inset:auto; backdrop-filter:none; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:1rem; margin:0; padding:0; border:0; background:transparent; box-shadow:none; }
.product-purchase-dock .detail-footer .button { min-width:11rem; min-height:3.25rem; }
.product-purchase-dock .price-label { display:block; }
.product-purchase-dock .purchase-feedback { display:grid; grid-template-columns:minmax(0,1fr) auto 2rem; align-items:center; gap:.5rem 1rem; max-width:72rem; margin:.5rem auto 0; padding:.65rem .8rem; border:1px solid var(--line); border-radius:.5rem; background:var(--paper); }
.purchase-feedback .form-message { margin:0; font-size:.85rem; line-height:1.4; overflow-wrap:anywhere; }
.purchase-feedback-selection { margin:.15rem 0 0; font-size:.75rem; line-height:1.4; color:var(--charcoal-soft); overflow-wrap:anywhere; }
.purchase-view-cart { font-size:.85rem; white-space:nowrap; text-underline-offset:.2em; }
.purchase-feedback-dismiss { display:grid; place-items:center; width:2rem; height:2rem; padding:0; border:0; background:transparent; color:var(--charcoal-soft); font-size:1.4rem; cursor:pointer; }
.purchase-feedback[data-state="error"] { border-color:#994222; }
.product-summary [data-product-detail-copy] { margin-top:.65rem; }
@media(max-width:600px) {
 .product-purchase-dock .purchase-feedback { grid-template-columns:minmax(0,1fr) 2rem; }
 .purchase-view-cart { grid-column:1;grid-row:2;justify-self:start; }
 .purchase-feedback-dismiss { grid-column:2;grid-row:1; }
}
@media(max-height:480px) {
 .product-page [data-purchase-scrollport] > .site-header { position:static; padding-block:.25rem; }
 .product-page > [data-purchase-scrollport] { scroll-padding-block:8px; }
 .product-purchase-dock .detail-footer .button { height:44px; min-height:44px; padding-block:0; }
 .product-purchase-dock [data-detail-price] { font-size:1.5rem;line-height:1.2; }
 .product-purchase-dock .price-label { display:none; }
 .product-page [data-purchase-dock] { padding-block:4px; }
 .product-purchase-dock .purchase-feedback { grid-template-columns:minmax(0,1fr) auto 24px; gap:4px 8px; margin-top:4px; padding:4px 6px; }
 .product-page .purchase-view-cart { grid-column:2;grid-row:1;font-size:.75rem; }
 .product-page .purchase-feedback-dismiss { grid-column:3;grid-row:1;width:24px;height:24px; }
 .product-page .purchase-feedback[data-state="success"] :is(.form-message,.purchase-feedback-selection) { overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-height:0;font-size:.75rem;line-height:1.2; }
 .product-page .purchase-feedback-selection { margin-top:0; }
}

.product-purchase-dock .purchase-feedback[hidden] { display:none; }

.product-page > [data-purchase-reservation] { flex:0 0 auto; }
.product-page:has([data-product-detail][hidden]) > [data-purchase-reservation] { display:none; }

/* Canonical identities, accepted customer presentation. */
[data-canonical-listing-artwork] > .home-image-placeholder[hidden] { display: none; }
.artwork-translation { max-width: 40rem; margin: 1rem auto 0; color: var(--charcoal-soft); text-align: center; line-height: 1.7; }
.artwork-preview-note { max-width: 40rem; margin: .75rem auto 0; color: var(--charcoal-soft); font: 400 .8rem/1.5 var(--sans); text-align: center; }
[data-preview-translation][hidden] { display: none; }
.product-purchase-dock [data-canonical-customer] { margin: .75rem 0 0; padding: 0; font-size: .8rem; }
[data-canonical-customer] { max-width: 88rem; margin: 1rem auto; padding: .8rem clamp(1rem, 3vw, 2rem); color: var(--charcoal-soft); font-size: .95rem; line-height: 1.55; }
[data-canonical-customer] > p { margin: 0; }
[data-canonical-customer] button { min-height: 44px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-soft); color: var(--charcoal); font: inherit; }
[data-detail-price][data-price-state="unquoted"] { max-width: 36ch; font: 400 .95rem/1.5 var(--sans); letter-spacing: normal; }

/* Canonical frame display reuses the accepted finish palette. This visual
   border is illustrative; quoted physical frame facts remain server-owned. */
.product-detail[data-preview-mode="image"] .product-main-image[data-frame-style="black-frame"],
.product-detail[data-preview-mode="image"] .product-main-image[data-frame-style="white-frame"] {
  border-style: solid;
  border-width: clamp(8px, 1.1vw, 14px);
  border-radius: 0;
  background: #fffdf8;
}
.product-detail[data-preview-mode="image"] .product-main-image[data-frame-style="black-frame"] {
  border-color: #161513;
  box-shadow: 0 14px 32px rgba(22, 21, 19, .18), inset 0 0 0 1px rgba(36, 33, 29, .08);
}
.product-detail[data-preview-mode="image"] .product-main-image[data-frame-style="white-frame"] {
  border-color: #fffdf8;
  box-shadow: 0 14px 32px rgba(45, 37, 29, .13), 0 0 0 1px rgba(36, 33, 29, .1);
}
[data-frame-preview-note][hidden] { display: none; }

/* Reviewed empty states share the existing quiet storefront language. */
.cart-page-main:has(.cart-empty) { min-block-size: 0; padding-bottom: 3rem; }
.cart-page:has(.cart-empty) .cart-page-heading { margin-bottom: 1.25rem; }
.cart-title-row [data-cart-item-count]:empty { display: none; }
.cart-empty { padding-block: 2rem 3rem; }
.cart-empty .button { margin-top: 1.25rem; }
.checkout-page:has([data-checkout-empty]:not([hidden])) .compact-hero { padding-block: 2.5rem 1.25rem; border: 0; }
.checkout-page:has([data-checkout-empty]:not([hidden])) #checkout-title { max-width: none; margin: 0; font-size: clamp(2.5rem, 4.5vw, 3.5rem); text-align: center; }
.checkout-empty { display: grid; justify-items: center; gap: 1.5rem; padding: 1.5rem 1.25rem 4rem; text-align: center; }
.checkout-empty[hidden], [data-checkout-workspace][hidden] { display: none; }
.checkout-empty h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.2rem); line-height: 1.2; }
.checkout-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.checkout-empty-actions .button { min-height: 48px; text-transform: none; letter-spacing: 0; }
.product-page:has([data-product-not-found]:not([hidden])) [data-purchase-scrollport] { display: flex; flex-direction: column; }
.product-page:has([data-product-not-found]:not([hidden])) main { display: grid; align-content: center; min-block-size: 0; }
.product-unavailable { display: grid; justify-items: center; align-content: center; gap: 1.25rem; padding: clamp(3rem, 8vh, 5rem) 1.25rem; text-align: center; }
.product-unavailable[hidden] { display: none; }
.product-unavailable h1 { max-width: 100%; margin: 0; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; text-wrap: balance; }
.product-unavailable p { max-width: 34ch; margin: 0; color: var(--charcoal-soft); font-size: .95rem; line-height: 1.7; }
.product-unavailable .button { min-height: 48px; margin-top: .5rem; text-transform: none; letter-spacing: 0; }

/* Price tokens stay intact while titles can wrap naturally on narrow cards. */
.product-card-price,.home-opening-price,[data-detail-price][data-price-state="configured"],
[data-cart-subtotal],[data-checkout-subtotal],[data-checkout-delivery],[data-checkout-total] { white-space:nowrap; }
.product-size-empty { margin:.25rem 0 0; padding:1.1rem 1.2rem; border:1px solid var(--line, #e1d8cb); border-radius:4px; color:var(--charcoal-soft); background:var(--paper, #fbf8f2); font:400 1rem/1.6 var(--serif, Georgia, serif); }
.product-size-empty[hidden] { display:none; }

/* Narrow purchase docks give the intact amount and action separate rows. */
@media(max-width:480px) {
 .product-purchase-dock .detail-footer { grid-template-columns:minmax(0,1fr); gap:.65rem; }
 .product-purchase-dock .detail-footer>div { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:baseline; gap:.75rem; min-width:0; }
 .product-purchase-dock .detail-footer [data-detail-price] { justify-self:end; max-width:100%; text-align:end; }
 .product-purchase-dock .detail-footer .button { grid-column:1; width:100%; min-width:0; justify-self:stretch; }
}
.product-page button[form="product-options-form"]:disabled { border-color: var(--line); background: var(--paper-deep); color: var(--muted); opacity: 1; cursor: not-allowed; transform: none; box-shadow: none; }

/* Companion labels may wrap; each actual currency/amount remains intact. */
.related-grid .product-card-body,
.related-grid .product-card-title { min-width:0; }
.related-grid .product-card-price { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.related-grid .product-card-price-amount { display:inline-block; white-space:nowrap; overflow-wrap:normal; }
@media(max-width:480px) {
 .related-grid .product-card-cta { min-width:0; max-width:100%; width:100%; height:auto; white-space:normal; }
}
