/* Stage 3 commerce surfaces inherit the approved Stage 2 tokens. */
.site-header--inner { position: sticky; inset: auto; top: 0; z-index: 4; background: var(--paper); color: var(--ink); }
.header-group-divider { margin-right: var(--utility-gap); }
.cart-shortcut { position: relative; width: 44px; height: 44px; flex: 0 0 44px; }
.cart-count { position: absolute; top: 7px; right: 6px; display: grid; min-width: 14px; height: 14px; place-items: center; padding: 0 2px; border: 1px solid currentColor; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 8px; font-weight: 500; line-height: 1; }
.cart-count[hidden] { display: none; }
.inner-page { min-height: 100vh; min-height: 100svh; background: var(--paper); color: var(--ink); }
.inner-page-shell { display: flex; min-height: 100vh; min-height: 100svh; flex-direction: column; background: var(--paper); }
.shop-page, .product-page, .checkout-placeholder { flex: 1 0 auto; }
.shop-page { padding-block: var(--space-page-top) 104px; }
.shop-heading { margin: 0 0 clamp(32px, 3.6vw, 48px); }
.editorial-heading { margin: 0; font-family: var(--font-display); font-size: var(--type-page-title); font-weight: 400; letter-spacing: var(--tracking-page-title); line-height: var(--leading-page-title); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; gap: clamp(20px, 2vw, 28px); }
.shop-item { min-width: 0; }
.shop-item__link { display: block; color: inherit; text-decoration: none; }
.shop-item__image { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e8e7e4; }
.shop-item__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 15px; }
.shop-item__name { font-size: 15px; font-weight: 400; line-height: 1.35; }
.shop-item__price { color: #666; font-size: 12px; font-weight: 400; line-height: 1.4; text-align: right; }
.shop-item__link:hover .shop-item__name { text-decoration: underline; text-underline-offset: 3px; }
.shop-demo-slot { min-width: 0; }
.shop-demo-slot__surface { display: flex; width: 100%; aspect-ratio: 4 / 5; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; border: 1px dashed #bdbbb6; color: #777; text-align: center; }
.shop-demo-slot__surface span:first-child { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.shop-demo-slot__surface span:last-child { font-size: 12px; }
.product-page { padding-block: var(--space-page-top) 100px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: start; gap: clamp(16px, 2.5vw, 36px); }
.product-gallery { min-width: 0; }
.product-gallery__lead { margin: 0; }
.product-gallery__lead img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e8e7e4; }
.product-gallery__thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 5px; }
.product-gallery__thumbnail { display: block; width: 72px; height: 90px; flex: 0 0 72px; padding: 0; border: 1px solid transparent; background: #e8e7e4; cursor: pointer; }
.product-gallery__thumbnail.is-selected { border-color: var(--ink); }
.product-gallery__thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-information { padding-block: 3px 0; }
.product-information__title { margin: 0; font-family: var(--font-display); font-size: var(--type-product-title); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; }
.product-information__price { margin: 14px 0 0; font-size: 15px; font-weight: 400; line-height: 1.45; }
.product-information__description { margin: 28px 0 0; color: #555; font-size: var(--type-body); line-height: var(--leading-body); }
.product-facts { margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule-on-light); }
.product-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule-on-light); font-size: 12px; line-height: 1.4; }
.product-facts dt { color: #666; }
.product-facts dd { margin: 0; }
.action-button { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 400; letter-spacing: .01em; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.action-button:hover { background: transparent; color: var(--ink); }
.action-button:focus-visible, .text-action:focus-visible, .product-gallery__thumbnail:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.shipping-note { margin: 15px 0 0; color: #626262; font-size: 11px; line-height: 1.5; }
.commission-section { max-width: 620px; margin: clamp(56px, 8vw, 112px) 0 0 auto; padding-top: 24px; border-top: 1px solid var(--rule-on-light); }
.commission-section__title { margin: 0; font-family: var(--font-display); font-size: var(--type-section-title); font-weight: 400; letter-spacing: -.025em; line-height: var(--leading-section-title); }
.commission-section p { margin: 12px 0 17px; color: #555; font-size: var(--type-body); line-height: var(--leading-body); }
.text-action { display: inline-flex; align-items: baseline; gap: 12px; padding: 0; border: 0; background: transparent; color: inherit; font: 400 14px/1.5 var(--font-sans); text-decoration: none; cursor: pointer; }
.text-action span { transition: transform 160ms ease; }
.text-action:hover span { transform: translateX(5px); }
.checkout-placeholder { display: flex; min-height: 58vh; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 64px; }
.checkout-placeholder__eyebrow { margin: 0 0 12px; color: #777; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.checkout-placeholder > p:not(.checkout-placeholder__eyebrow) { max-width: 520px; margin: 18px 0 28px; color: #555; font-size: var(--type-body); line-height: var(--leading-body); }
.cart-drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; overflow-y: auto; border: 0; background: var(--paper); color: var(--ink); transform: translateX(100%); transition: transform 250ms ease; }
.cart-drawer[open].is-open { transform: translateX(0); }
.cart-drawer::backdrop { background: rgb(0 0 0 / 30%); }
.cart-drawer__inner { display: flex; min-height: 100%; flex-direction: column; padding: 27px clamp(22px, 6.25vw, 38px) max(28px, env(safe-area-inset-bottom)); }
.cart-drawer__head, .commission-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cart-drawer__head h2, .commission-dialog__head h2 { margin: 0; font-family: var(--font-display); font-size: var(--type-section-title); font-weight: 400; letter-spacing: -.025em; line-height: var(--leading-section-title); }
.icon-close { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; padding: 0; border: 0; background: transparent; color: inherit; font-size: 25px; font-weight: 300; cursor: pointer; }
.cart-lines { margin-top: 36px; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 15px; padding-bottom: 22px; border-bottom: 1px solid var(--rule-on-light); }
.cart-line img { display: block; width: 76px; aspect-ratio: 4 / 5; object-fit: cover; background: #e8e7e4; }
.cart-line__name { margin: 1px 0 7px; font-size: 14px; line-height: 1.4; }
.cart-line__price { margin: 0; color: #666; font-size: 12px; }
.cart-line__remove { margin-top: 12px; padding: 0; border: 0; border-bottom: 1px solid #bbb; background: transparent; color: #555; font: 12px/1.5 var(--font-sans); cursor: pointer; }
.cart-empty { margin: 40px 0; color: #666; font-size: 14px; line-height: 1.6; }
.cart-summary { margin-top: auto; padding-top: 22px; }
.cart-subtotal { display: flex; justify-content: space-between; gap: 18px; margin: 0; padding: 15px 0; border-top: 1px solid var(--ink); font-size: 13px; }
.cart-subtotal__value { text-align: right; }
.cart-notice { margin: 0 0 17px; color: #666; font-size: 11px; line-height: 1.5; }
.cart-checkout[hidden] { display: none; }
.cart-checkout { display: flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 13px; text-decoration: none; }
.cart-continue { display: inline-block; margin-top: 13px; color: inherit; font-size: 12px; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.commission-dialog { width: min(540px, calc(100vw - 32px)); max-width: none; max-height: min(92dvh, 780px); margin: auto; padding: clamp(22px, 5vw, 42px); overflow-y: auto; border: 1px solid var(--rule-on-light); background: var(--paper); color: var(--ink); }
.commission-dialog::backdrop { background: rgb(0 0 0 / 36%); }
.commission-dialog__intro { margin: 16px 0 24px; color: #555; font-size: var(--type-body); line-height: var(--leading-body); }
#commission-form { display: grid; gap: 8px; }
#commission-form label { margin-top: 9px; font-size: 12px; }
#commission-form input, #commission-form textarea { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #c9c9c9; border-radius: 0; background: transparent; color: var(--ink); font: 14px/1.45 var(--font-sans); }
#commission-form textarea { min-height: 120px; resize: vertical; }
#commission-form .action-button { margin-top: 14px; }
.form-status { min-height: 1.5em; margin: 2px 0 0; color: #555; font-size: 12px; line-height: 1.5; }
@media (min-width: 601px) and (max-width: 767px) {
  .site-header--inner .primary-nav { display: flex; }
  .site-header--inner .header-group-divider { display: block; margin-right: var(--mobile-utility-gap); }
}
@media (max-width: 767px) {
  .shop-page { padding-top: var(--space-page-top); padding-bottom: 70px; }
  .shop-heading { margin-bottom: 28px; }
  .shop-grid { gap: 34px 20px; }
  .shop-demo-slot { display: none; }
  .shop-item__meta { align-items: flex-start; flex-direction: column; gap: 4px; margin-top: 12px; }
  .product-page { padding-top: var(--space-page-top); padding-bottom: 64px; }
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .product-information { max-width: 620px; }
  .commission-section { margin-top: 58px; }
  .cart-drawer__inner { padding-top: max(20px, env(safe-area-inset-top)); }
  .commission-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
}
@media (prefers-reduced-motion: reduce) { .cart-drawer, .action-button, .text-action span { transition-duration: .01ms !important; } }
