[hidden] { display: none !important; }

.cart-link {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  text-decoration: none;
}
.cart-icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.cart-link b {
  position: absolute;
  top: 0;
  right: -3px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  place-items: center;
  border-radius: 50%;
  background: var(--cinnabar-deep);
  color: var(--paper-soft);
  font-family: var(--font-number);
  font-size: 0.62rem;
  line-height: 1;
}
.commerce-secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast);
}
.commerce-secondary-button:hover { background: var(--ink); color: var(--paper-soft); transform: translateY(-1px); }
.commerce-record-code {
  display: inline-block;
  color: var(--cinnabar-deep);
  font-family: var(--font-number);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* Home: the numerical archive remains primary; commerce enters as an editorial layer. */
.commerce-journey-hero {
  grid-template-columns: minmax(320px, 0.72fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: clamp(46px, 7vw, 120px);
  min-height: calc(100svh - 90px);
}
.commerce-journey-hero .journey-hero-copy { align-self: center; }
.commerce-journey-hero .brand-promise { max-width: 760px; font-size: clamp(3.6rem, 6.4vw, 6rem); }
.commerce-hero-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(28px, 1fr));
  min-height: min(72svh, 790px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  isolation: isolate;
}
.commerce-hero-collage figure { margin: 0; overflow: hidden; background: var(--paper-soft); }
.commerce-hero-collage picture,
.commerce-hero-collage img { width: 100%; height: 100%; }
.commerce-hero-collage img { object-fit: cover; }
.commerce-hero-art { grid-column: 1 / 8; grid-row: 1 / 13; }
.commerce-hero-jewel-one { grid-column: 8 / 13; grid-row: 1 / 7; border-left: 8px solid var(--paper); border-bottom: 8px solid var(--paper); }
.commerce-hero-jewel-two { grid-column: 7 / 11; grid-row: 7 / 13; border: 8px solid var(--paper); border-bottom: 0; z-index: 2; }
.commerce-hero-caption {
  grid-column: 10 / 13;
  grid-row: 8 / 13;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 20px 18px;
  background: var(--patina-deep);
  color: var(--paper-soft);
  z-index: 3;
}
.commerce-hero-caption strong { font-family: var(--font-display); font-size: clamp(1.15rem, 1.7vw, 1.65rem); font-weight: 500; line-height: 1.15; }
.commerce-hero-caption span { color: color-mix(in srgb, var(--paper-soft) 76%, var(--patina-deep)); font-size: 0.72rem; line-height: 1.55; }
.home-coordinate-ledger {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(430px, 1fr);
  align-items: center;
  gap: clamp(54px, 9vw, 150px);
  padding-block: clamp(96px, 12vw, 180px);
  border-top: 1px solid var(--ink);
}
.home-coordinate-copy h2 { max-width: 680px; font-size: clamp(3rem, 5vw, 5.4rem); }
.home-coordinate-copy p { max-width: 560px; color: var(--ink-soft); }
.home-coordinate-copy .text-link { margin-top: 20px; }
.home-coordinate-ledger .coordinate-instrument { width: 100%; }

.commerce-featured,
.commerce-themes,
.commerce-editorial,
.commerce-spotlight { padding-block: clamp(90px, 11vw, 160px); border-top: 1px solid var(--ink); }
.commerce-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 44px;
  margin-bottom: 58px;
}
.commerce-section-heading h2 { max-width: 830px; margin-bottom: 0; font-size: clamp(3rem, 5.5vw, 6rem); }
.commerce-section-heading > p { max-width: 540px; margin: 0; color: var(--ink-muted); }
.commerce-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.commerce-product-card { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.commerce-product-image { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(238, 232, 220, 0.7); }
.product-picture { display: block; min-width: 0; }
.commerce-product-image .product-picture,
.commerce-spotlight figure .product-picture { width: 100%; height: 100%; }
.commerce-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 640ms var(--ease), filter 420ms var(--ease); }
.commerce-product-card:hover .commerce-product-image img { filter: saturate(0.92) contrast(1.02); transform: scale(1.025); }
.commerce-product-record { min-height: 150px; padding: 20px; }
.commerce-product-record > span { color: var(--cinnabar); font-family: var(--font-number); font-size: 0.66rem; letter-spacing: 0.1em; }
.commerce-product-record h3 { margin: 20px 0 14px; font-family: var(--font-display); font-size: clamp(1.28rem, 1.7vw, 1.75rem); font-weight: 500; }
.commerce-product-record h3 a { text-decoration: none; }
.commerce-product-record p { margin: 0; color: var(--ink-muted); font-size: 0.78rem; }

.commerce-editorial-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr); align-items: end; gap: 60px; margin-bottom: 58px; }
.commerce-editorial-heading h2 { max-width: 880px; margin: 0; font-size: clamp(3rem, 5.5vw, 6rem); }
.commerce-editorial-heading p { max-width: 520px; margin: 0; color: var(--ink-soft); }
.commerce-editorial-grid { display: grid; grid-template-columns: 1.05fr 0.82fr 1.05fr; align-items: start; gap: 10px; }
.commerce-editorial-grid article { min-width: 0; }
.commerce-editorial-grid article:nth-child(2) { margin-top: 100px; }
.commerce-editorial-grid picture { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.commerce-editorial-grid img { width: 100%; height: 100%; object-fit: cover; }
.commerce-editorial-grid article > div { display: grid; gap: 8px; padding: 18px 4px 0; }
.commerce-editorial-grid h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 500; }
.commerce-editorial-grid p { margin: 0; color: var(--cinnabar-deep); font-size: 0.72rem; }

.commerce-theme-index { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.commerce-theme-index a { display: grid; min-height: 230px; align-content: space-between; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: color var(--duration), background var(--duration); }
.commerce-theme-index a:hover { background: var(--patina-deep); color: var(--paper-soft); }
.commerce-theme-index span { font-family: var(--font-number); font-size: clamp(2.6rem, 4vw, 4.8rem); line-height: 0.9; letter-spacing: -0.035em; }
.commerce-theme-index strong { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.7rem); font-weight: 500; }
.commerce-spotlight { display: grid; grid-template-columns: minmax(320px, 0.9fr) 1fr; align-items: center; gap: clamp(50px, 9vw, 150px); }
.commerce-spotlight figure { aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border: 1px solid var(--line); }
.commerce-spotlight figure img { width: 100%; height: 100%; object-fit: cover; }
.commerce-spotlight h2 { max-width: 650px; font-size: clamp(3.2rem, 5.6vw, 6rem); }
.commerce-spotlight p:not(.section-kicker) { max-width: 620px; color: var(--ink-soft); font-size: 1.08rem; }

/* Shop index */
.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: end;
  gap: clamp(50px, 9vw, 150px);
  padding-block: clamp(100px, 12vw, 180px) 80px;
}
.shop-hero h1 { max-width: 980px; margin-bottom: 28px; font-size: clamp(4rem, 7vw, 6rem); }
.shop-hero > div > p { max-width: 760px; color: var(--ink-soft); font-size: 1.06rem; }
.shop-hero-note { margin: 0; padding-top: 18px; border-top: 1px solid var(--ink); color: var(--ink-muted); font-size: 0.82rem; }
.shop-catalog { padding-bottom: var(--space-8); }
.shop-catalog-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.shop-category-rail { position: sticky; top: 112px; display: grid; border-top: 1px solid var(--ink); }
.shop-category-rail h2 { margin: 0; padding-block: 18px; font-size: 1.05rem; }
.shop-category-rail button { min-height: 48px; padding: 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink-muted); text-align: left; cursor: pointer; }
.shop-category-rail button.is-active { color: var(--cinnabar-deep); font-weight: 760; }
.shop-category-rail button:disabled { cursor: not-allowed; opacity: 0.48; }
.shop-category-rail p { margin: 8px 0 0; color: var(--ink-muted); font-size: 0.68rem; line-height: 1.55; }
.shop-toolbar { display: grid; grid-template-columns: repeat(2, minmax(180px, 260px)) 1fr; align-items: end; gap: 0; margin-bottom: 32px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.shop-toolbar label { display: grid; gap: 9px; padding: 14px 18px 15px 0; color: var(--ink-muted); font-size: 0.68rem; font-weight: 730; letter-spacing: 0.08em; text-transform: uppercase; }
.shop-toolbar label + label { padding-left: 18px; border-left: 1px solid var(--line); }
.shop-toolbar select { width: 100%; border: 0; background: transparent; color: var(--ink); font-size: 0.86rem; font-weight: 620; text-transform: none; }
.shop-result-count { justify-self: end; margin: 0; padding-bottom: 15px; color: var(--ink-muted); font-family: var(--font-number); font-size: 0.72rem; }
.shop-state { min-height: 28px; color: var(--cinnabar-deep); }
.checkout-fields .address-field-error { color: var(--cinnabar-deep); font-size: 0.875rem; font-weight: 400; }
.address-field-error:empty { display: none; }
.checkout-address-notice { font-size: 0.875rem; line-height: 1.6; color: var(--ink-soft); }
.checkout-address-notice p { margin: 0 0 8px; }
.checkout-address-notice a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Product record */
.product-main { padding-block: 42px var(--space-8); }
.product-breadcrumb { display: flex; gap: 10px; margin-bottom: 34px; color: var(--ink-muted); font-size: 0.78rem; }
.product-breadcrumb a { color: var(--cinnabar-deep); }
.product-record { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr); align-items: start; gap: clamp(50px, 7vw, 112px); }
.product-gallery { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: start; gap: 14px; }
.product-gallery-rail { display: grid; gap: 10px; }
.product-gallery-rail button { padding: 0; border: 1px solid transparent; background: transparent; cursor: pointer; }
.product-gallery-rail button.is-active { border-color: var(--cinnabar-deep); }
.product-gallery-rail img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-gallery-stage { display: grid; min-width: 0; place-items: start stretch; overflow: hidden; background: transparent; }
.product-gallery-stage .product-picture { display: block; width: 100%; max-width: 100%; }
.product-gallery-stage img { display: block; width: 100%; max-width: 100%; height: auto; max-height: none; object-fit: contain; }
.product-copy { position: static; }
.product-copy h1 { max-width: 650px; margin: 18px 0 20px; font-size: clamp(2.8rem, 4.2vw, 4.6rem); }
.product-price { color: var(--cinnabar-deep); font-family: var(--font-display); font-size: 1.7rem; }
.product-summary { max-width: 58ch; margin-block: 34px 20px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; }
.product-description { max-width: 62ch; color: var(--ink-muted); font-size: 0.96rem; line-height: 1.75; }
.product-purchase { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 14px; margin-block: 34px; }
.product-purchase label { display: grid; gap: 8px; color: var(--ink-muted); font-size: 0.7rem; font-weight: 720; }
.product-option-field { grid-column: 1 / -1; }
.product-purchase select { min-height: 50px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 0; background: color-mix(in srgb, var(--paper-soft) 70%, transparent); color: var(--ink); }
.product-purchase .primary-button { grid-column: 1 / -1; width: 100%; min-height: 50px; }
.product-purchase :disabled { cursor: not-allowed; opacity: 0.48; }
.product-symbolic-boundary { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 0.76rem; }
.product-information-ledger { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(250px, 0.45fr) 1fr; gap: clamp(50px, 9vw, 150px); margin-top: clamp(80px, 10vw, 150px); padding-top: 48px; border-top: 1px solid var(--ink); }
.product-information-ledger h2 { margin: 0; font-size: clamp(2.8rem, 4vw, 4.6rem); }
.product-facts { border-top: 1px solid var(--ink); }
.product-fact { border-bottom: 1px solid var(--line); }
.product-fact summary { display: flex; min-height: 62px; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 730; list-style: none; }
.product-fact summary::-webkit-details-marker { display: none; }
.product-fact summary::after { content: "+"; color: var(--cinnabar-deep); font-family: var(--font-number); font-size: 1.25rem; }
.product-fact[open] summary::after { content: "−"; }
.product-fact p { max-width: 72ch; margin: 0; padding: 0 32px 24px 0; color: var(--ink-soft); }
.product-loading-mark { width: 90px; height: 90px; background: center / contain no-repeat url('/archive-loader-mark.svg?v=1.0.0'); }

.cart-dialog { width: min(620px, calc(100vw - 32px)); padding: 34px; border: 1px solid var(--ink); border-radius: 12px; background: var(--paper-soft); color: var(--ink); box-shadow: 0 24px 70px rgba(23, 25, 21, 0.2); }
.cart-dialog::backdrop { background: rgba(23, 25, 21, 0.52); }
.cart-dialog-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.cart-dialog-close svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.cart-dialog h2 { max-width: 460px; margin: 0 48px 28px 0; font-size: clamp(2rem, 4vw, 3rem); }
.cart-dialog-product { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 18px; padding-block: 20px; border-block: 1px solid var(--line); }
.cart-dialog-product img { width: 82px; aspect-ratio: 4 / 5; object-fit: cover; }
.cart-dialog-product div { display: grid; gap: 7px; }
.cart-dialog-product span { color: var(--ink-muted); font-size: 0.72rem; }
.cart-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.cart-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.shipping-estimate { margin-block: 22px; min-width: 0; }
.shipping-country-field { display: grid; gap: 8px; color: var(--ink-soft); font-size: 1rem; }
.shipping-country-field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper-soft); color: var(--ink); font-size: 1rem; }
.shipping-country-field select:focus-visible { outline: 2px solid var(--cinnabar-deep); outline-offset: 3px; }
.shipping-estimate dl { margin: 16px 0 0; }
.shipping-estimate dl > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.shipping-estimate dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.shipping-estimate .cart-total { color: var(--cinnabar-deep); font-weight: 760; }
.shipping-estimate-note, .checkout-summary > .shipping-estimate-note { margin-block: 14px; color: var(--ink-soft); font-size: 0.875rem; line-height: 1.6; }
.shipping-estimate .quiet-action { min-height: 44px; }

/* Cart */
.cart-main { min-height: 72svh; padding-block: clamp(76px, 9vw, 130px) var(--space-8); }
.cart-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.cart-heading h1 { margin: 0; font-size: clamp(4rem, 7vw, 6rem); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(46px, 7vw, 104px); margin-top: 56px; }
.cart-lines { border-top: 1px solid var(--ink); }
.cart-line { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 26px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.cart-line > a { display: block; }
.cart-line img { display: block; width: 112px; aspect-ratio: 4 / 5; object-fit: cover; }
.cart-line h2 { margin-bottom: 8px; font-size: 1.55rem; }
.cart-line h2 a { text-decoration: none; }
.cart-line p { margin-bottom: 16px; color: var(--ink-muted); font-size: 0.72rem; }
.cart-line-controls { display: flex; align-items: center; gap: 18px; }
.cart-line-controls select { width: 62px; min-height: 38px; border: 1px solid var(--line); background: transparent; text-align: center; }
.quiet-action { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--ink-muted); cursor: pointer; font: inherit; font-size: 0.76rem; }
.cart-summary { position: sticky; top: 112px; padding-top: 18px; border-top: 1px solid var(--ink); }
.cart-summary h2 { margin: 0 0 28px; font-size: 1.5rem; }
.cart-summary dl { margin: 0; }
.cart-summary dl > div { display: flex; justify-content: space-between; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.cart-summary dd { margin: 0; font-family: var(--font-number); text-align: right; }
.cart-summary .cart-total { color: var(--cinnabar-deep); font-weight: 760; }
.cart-checkout-button { width: 100%; margin-top: 24px; }
.cart-summary-note { color: var(--ink-muted); font-size: 0.72rem; }
.cart-empty { display: grid; justify-items: start; gap: 20px; padding-block: 60px; }

/* Checkout */
.checkout-header { display: flex; min-height: 92px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.checkout-header > div { display: flex; align-items: center; gap: 24px; }
.checkout-main { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(60px, 8vw, 132px); align-items: start; padding-block: clamp(64px, 8vw, 120px); }
.checkout-progress { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 48px; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.checkout-progress li { display: flex; align-items: center; gap: 10px; padding-top: 14px; color: var(--ink-muted); }
.checkout-progress li span { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: var(--font-number); font-size: 0.68rem; }
.checkout-progress li b { font-size: 0.76rem; }
.checkout-progress li.is-active { color: var(--cinnabar-deep); }
.checkout-progress li.is-active span { border-color: var(--cinnabar-deep); }
.checkout-progress li.is-complete { color: var(--patina-deep); }
.checkout-progress li.is-complete span { border-color: var(--patina-deep); background: var(--patina-deep); color: var(--paper-soft); }
.checkout-step > h1,
.checkout-step header h2 { max-width: 720px; margin: 0; font-size: clamp(3rem, 5vw, 5.4rem); }
.checkout-step > p,
.checkout-step header p { max-width: 62ch; color: var(--ink-soft); }
.checkout-step > form { margin-top: 40px; }
.checkout-step > form:not(.checkout-fields) { display: grid; gap: 22px; }
.checkout-step > form:not(.checkout-fields) label { display: grid; gap: 8px; color: var(--ink-muted); font-size: 0.72rem; font-weight: 720; }
.checkout-step > form:not(.checkout-fields) input { min-height: 52px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 0; background: color-mix(in srgb, var(--paper-soft) 74%, transparent); color: var(--ink); }
.checkout-step header { display: flex; align-items: start; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.checkout-step header h2 { font-size: clamp(2.8rem, 4.5vw, 4.8rem); }
.checkout-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 26px; }
.checkout-fields label { display: grid; gap: 8px; color: var(--ink-muted); font-size: 0.72rem; font-weight: 700; }
.checkout-fields input,
.checkout-fields select { min-height: 50px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 0; background: color-mix(in srgb, var(--paper-soft) 72%, transparent); color: var(--ink); }
.checkout-fields input:focus,
.checkout-fields select:focus { border-color: var(--cinnabar-deep); outline: 2px solid color-mix(in srgb, var(--cinnabar-deep) 24%, transparent); outline-offset: 2px; }
.checkout-fields .field-wide { grid-column: 1 / -1; }
.checkout-message { min-height: 28px; margin: 0; color: var(--cinnabar-deep); }
.checkout-review { margin-bottom: 24px; padding-block: 20px; border-block: 1px solid var(--line); color: var(--ink-soft); }
.paypal-choice { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--ink); background: color-mix(in srgb, var(--paper-soft) 74%, transparent); }
.paypal-choice svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.paypal-choice > div { display: grid; gap: 4px; }
.paypal-choice span { color: var(--ink-muted); font-size: 0.72rem; }
.checkout-step #checkoutPaymentForm { gap: 18px; }
.checkout-step #checkoutPaymentForm .primary-button { width: 100%; }
.checkout-step button:disabled { cursor: not-allowed; opacity: 0.45; }
.checkout-policy-notice { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.checkout-policy-notice p { max-width: 70ch; margin: 0 0 16px; }
.checkout-policy-notice a, .shipping-estimate > a { color: var(--patina-deep); text-underline-offset: 4px; }
.checkout-summary { position: sticky; top: 40px; padding-block: 20px; border-block: 1px solid var(--ink); }
.checkout-summary h2 { margin: 0 0 26px; font-size: 1.5rem; }
.checkout-order-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; cursor: pointer; color: var(--ink); font-size: 1rem; font-weight: 650; }
.checkout-order-details > summary::after { content: "+"; color: var(--cinnabar-deep); }
.checkout-order-details[open] > summary::after { content: "−"; }
.checkout-compact-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.checkout-order-details[open] .checkout-compact-total { display: none; }
.checkout-step h1, .checkout-step h2 { scroll-margin-top: 24px; }
.checkout-page input, .checkout-page select, .product-purchase select, .cart-line-controls select { font-size: 16px; }
.checkout-summary-line { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.checkout-summary-line img { width: 62px; aspect-ratio: 4 / 5; object-fit: cover; }
.checkout-summary-line div { display: grid; gap: 6px; }
.checkout-summary-line strong { font-size: 0.78rem; }
.checkout-summary-line span { color: var(--ink-muted); font-size: 0.64rem; }
.checkout-summary-line b { font-family: var(--font-number); font-size: 0.72rem; }
.checkout-summary dl { margin: 22px 0; }
.checkout-summary dl > div { display: flex; justify-content: space-between; gap: 22px; padding-block: 10px; }
.checkout-summary dl > div:last-child { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--ink); color: var(--cinnabar-deep); font-weight: 760; }
.checkout-summary dd { margin: 0; font-family: var(--font-number); }
.checkout-summary > p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-muted); font-size: 0.68rem; }
.checkout-summary > p svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.checkout-empty { display: grid; justify-items: start; gap: 28px; }
.checkout-empty h1 { max-width: 720px; font-size: clamp(3rem, 5vw, 5.4rem); }
.checkout-status { display: grid; min-height: 100svh; place-content: center; justify-items: start; max-width: 850px; padding-block: 100px; }
.checkout-status img { margin-bottom: 38px; }
.checkout-status h1 { max-width: 780px; font-size: clamp(3.8rem, 6vw, 6rem); }
.checkout-status > p:not(.section-kicker) { max-width: 680px; color: var(--ink-soft); font-size: 1.08rem; }

@media (prefers-reduced-motion: no-preference) {
  .commerce-hero-collage { animation: commerce-reveal 760ms cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes commerce-reveal {
    from { clip-path: inset(0 0 8% 0); filter: blur(2px); opacity: 0.58; transform: translateY(14px); }
    to { clip-path: inset(0); filter: blur(0); opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1080px) {
  .commerce-journey-hero { grid-template-columns: minmax(300px, 0.75fr) minmax(400px, 1fr); gap: 46px; }
  .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-record { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: 44px; }
  .checkout-main { grid-template-columns: minmax(0, 1fr) 330px; gap: 50px; }
}

@media (max-width: 820px) {
  .commerce-journey-hero,
  .home-coordinate-ledger,
  .commerce-section-heading,
  .commerce-editorial-heading,
  .commerce-spotlight,
  .shop-hero,
  .product-information-ledger,
  .checkout-main { grid-template-columns: 1fr; }
  .commerce-journey-hero { padding-top: 70px; }
  .commerce-hero-collage { min-height: 660px; }
  .commerce-editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commerce-theme-index { grid-template-columns: repeat(2, 1fr); }
  .commerce-theme-index a { min-height: 170px; }
  .shop-catalog-layout { grid-template-columns: 1fr; }
  .shop-category-rail { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .shop-category-rail h2 { grid-column: 1 / -1; }
  .shop-category-rail button { border-top: 0; border-right: 1px solid var(--line); }
  .shop-category-rail p { grid-column: 1 / -1; }
  .product-record { grid-template-columns: 1fr; }
  .product-copy { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary,
  .checkout-summary { position: static; }
  .checkout-summary { grid-row: 1; }
}

@media (max-width: 600px) {
  .shop-page .brand-type,
  .product-page .brand-type,
  .checkout-page .brand-type { display: none; }
  .site-header .header-actions { gap: 10px; }
  .site-header .cart-link { width: 44px; height: 44px; }
  .commerce-journey-hero .brand-promise { font-size: clamp(3.2rem, 14vw, 4.8rem); }
  .commerce-hero-collage { grid-template-rows: repeat(12, 34px); min-height: 0; }
  .commerce-hero-art { grid-column: 1 / 9; }
  .commerce-hero-jewel-one { grid-column: 9 / 13; }
  .commerce-hero-jewel-two { grid-column: 7 / 12; }
  .commerce-hero-caption { grid-column: 1 / -1; grid-row: 13; padding: 20px; }
  .commerce-hero-caption span { display: none; }
  .commerce-featured,
  .commerce-themes,
  .commerce-editorial,
  .commerce-spotlight { padding-block: 76px; }
  .commerce-section-heading { margin-bottom: 40px; }
  .commerce-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-home-grid .commerce-product-card:nth-child(n + 3) { display: none; }
  .commerce-product-record { min-height: 132px; padding: 14px; }
  .commerce-product-record h3 { margin-block: 14px 10px; font-size: 1.15rem; }
  .commerce-editorial-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .commerce-editorial-grid article:nth-child(2) { margin-top: 54px; }
  .commerce-editorial-grid article:nth-child(3) { grid-column: 1 / -1; width: 72%; margin: 8px 0 0 auto; }
  .shop-hero h1 { font-size: clamp(3.3rem, 15vw, 5.4rem); }
  .shop-category-rail { grid-template-columns: 1fr 1fr; }
  .shop-category-rail button:nth-of-type(3) { grid-column: 1 / -1; }
  .shop-toolbar { grid-template-columns: 1fr 1fr; }
  .shop-result-count { grid-column: 1 / -1; justify-self: start; }
  .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery-rail { grid-row: 2; grid-auto-flow: column; grid-auto-columns: 70px; overflow-x: auto; scroll-snap-type: inline mandatory; }
  .product-gallery-rail button { scroll-snap-align: start; }
  .product-copy h1 { font-size: clamp(3rem, 13vw, 4.7rem); }
  .product-purchase { grid-template-columns: minmax(0, 1fr); }
  .product-purchase select { min-height: 60px; padding-block: 14px; }
  .product-option-field,
  .product-purchase .primary-button { grid-column: 1 / -1; }
  .cart-dialog { padding: 28px 20px; }
  .cart-dialog-product { grid-template-columns: 70px 1fr; }
  .cart-dialog-product > b { grid-column: 2; }
  .cart-dialog-actions { grid-template-columns: 1fr; }
  .cart-heading { align-items: start; flex-direction: column; }
  .cart-line { grid-template-columns: 82px 1fr; gap: 16px; }
  .cart-line img { width: 82px; }
  .cart-line > strong { grid-column: 2; }
  .checkout-header { min-height: 78px; }
  .checkout-header .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; }
  .checkout-header > div { gap: 14px; }
  .checkout-main { padding-block: 24px 56px; gap: 28px; }
  .checkout-summary { padding-block: 8px 16px; }
  .checkout-summary > p { margin-top: 12px; }
  .checkout-progress { margin-bottom: 28px; }
  .checkout-step > h1, .checkout-step header h2 { font-size: clamp(2rem, 8vw, 2.7rem); }
  .checkout-step > form { margin-top: 24px; }
  .checkout-step header { margin-bottom: 24px; gap: 16px; }
  .checkout-fields { gap: 18px; }
  .shop-page input, .shop-page select, .product-page select, .checkout-page input, .checkout-page select, .cart-line-controls select { font-size: 16px; }
  .checkout-page input, .checkout-page select, .cart-line-controls select { min-height: 48px; }
  .checkout-fields label, .checkout-step > form:not(.checkout-fields) label, .product-purchase label { font-size: 0.875rem; color: var(--ink-soft); }
  .quiet-action, .product-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .cart-dialog-close { width: 44px; height: 44px; }
  .cart-dialog { overscroll-behavior: contain; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .cart-main { padding-top: 36px; }
  .cart-layout { margin-top: 28px; gap: 28px; }
  .cart-heading h1 { font-size: clamp(2.7rem, 11vw, 3.5rem); }
  .product-main { padding-top: 20px; }
  .product-record { gap: 28px; }
  .product-copy h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .product-summary { margin-block: 20px 12px; font-size: 1rem; }
  .product-information-ledger { margin-top: 24px; padding-top: 28px; gap: 24px; }
  .shop-toolbar select { min-height: 44px; }
  .checkout-progress li { gap: 6px; }
  .checkout-progress li b { font-size: 0.65rem; }
  .checkout-fields { grid-template-columns: 1fr; }
  .checkout-fields .field-wide { grid-column: auto; }
  .checkout-step header { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .commerce-product-image img,
  .commerce-theme-index a,
  .commerce-hero-collage { animation: none !important; transition-duration: 0ms !important; }
}
