: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 rgba(138, 111, 85, 0.4);
  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;
  place-items: center;
}

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

.shop-menu-product-image img {
  width: auto;
  height: 2.125rem;
  max-width: none;
  object-fit: contain;
  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 rgba(138, 111, 85, 0.4);
  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:hover,
.cart-quantity button:hover {
  background: rgba(222, 209, 194, 0.36);
}

.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;
}

.product-main-image[data-updating="true"]::after,
.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;
  place-items: center;
  --artwork-cal-x: 0%;
  --artwork-cal-y: 0%;
  --artwork-cal-scale: 1;
}

.inline-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  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 {
    min-height: 64px;
    grid-template-columns: minmax(4.6rem, 1fr) auto minmax(2.55rem, 1fr);
    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 {
    gap: 0.1rem;
    padding: 0.2rem;
  }

  .site-nav a,
  .site-nav button {
    font-size: clamp(0.66rem, 2.8vw, 0.74rem);
    min-height: 2rem;
    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 {
    width: 2.55rem;
    height: 2.55rem;
  }

  .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.9rem, 3vw, 2.5rem);
  line-height: 1.15;
  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);
}

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

.home-shop .home-product-group-heading {
  min-height: 6rem;
  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-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-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, 4vw, 2rem);
  align-self: stretch;
  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: none;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}
.contact-page .page-hero p {
  max-width: 62ch;
  margin-top: 0.75rem;
}
.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; }
