/* Commerce mechanics, visually subordinate to the Fire foundation. */

.goods-site .nav__cta { display: inline-flex; align-items: center; gap: 9px; }
.goods-site .nav__cta [data-cart-count], .goods-site .nav__cta [data-direct-cart-count] { min-width: 19px; height: 19px; display: grid; place-items: center; padding-inline: 4px; color: var(--paper-bright); background: var(--button-dark); border-radius: 99px; font-family: var(--font-body); font-size: 11px; }

.goods-hero { position: relative; min-height: clamp(520px, 68svh, 760px); display: block; padding: 0; overflow: hidden; isolation: isolate; }
.goods-hero::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(23,23,19,.06) 38%, rgba(23,23,19,.62) 100%); }
.hero-workshop { position: absolute; inset: 0; margin: 0; background: var(--paper-deep); }
.hero-workshop img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 47%; filter: saturate(.96) contrast(1.03); }
.goods-hero .hero__copy { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(46px, 7vw, 92px); left: var(--gutter); max-width: 920px; color: var(--paper-bright); }
.goods-hero .signal { color: var(--paper-bright); }
.goods-hero .signal i { background: var(--ember); }
.goods-hero h1 { max-width: 10.5ch; margin-bottom: clamp(28px, 4vw, 48px); color: inherit; font-size: clamp(56px, 7.6vw, 124px); line-height: .84; text-wrap: balance; }
.goods-hero .button--ink { color: var(--ink); background: var(--paper-bright); border-color: var(--paper-bright); }
.goods-hero .button--ink:hover { color: var(--paper-bright); background: transparent; }

.collection-tape { position: relative; height: clamp(126px, 11vw, 166px); display: grid; grid-template-columns: clamp(150px, 14vw, 210px) minmax(0, 1fr); overflow: hidden; color: var(--paper-bright); background: var(--button-dark); border-block: 1px solid rgba(250,248,241,.12); }
.collection-tape__header { min-height: 0; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 17px clamp(18px, 2vw, 30px); border-right: 1px solid rgba(250,248,241,.12); }
.collection-tape__header h2 { margin: 0; color: rgba(250,248,241,.56); font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .16em; line-height: 1; text-transform: uppercase; }
.collection-tape__controls { display: flex; align-items: center; gap: 4px; }
.collection-tape__controls button { width: 25px; height: 25px; padding: 0; color: rgba(250,248,241,.5); background: transparent; border: 1px solid rgba(250,248,241,.11); font-size: 13px; line-height: 1; cursor: pointer; }
.collection-tape__controls button:hover { color: var(--ember); }
.collection-tape__controls button:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.collection-tape__viewport { min-width: 0; height: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.collection-tape__viewport::-webkit-scrollbar { display: none; }
.collection-tape__track { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; background: rgba(250,248,241,.12); }
.collection-tape__item { position: relative; min-width: 0; height: 100%; padding: 0; overflow: hidden; color: var(--paper-bright); background: var(--button-dark); border: 0; scroll-snap-align: center; cursor: pointer; isolation: isolate; }
.collection-tape__item::before { content: ""; position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.collection-tape__item::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(23,23,19,.02) 18%, rgba(23,23,19,.56) 100%); pointer-events: none; }
.collection-tape__item img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.88) contrast(1.04); transform: scale(1.025); transition: filter .65s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.collection-tape__item span { position: absolute; z-index: 2; right: 14px; bottom: 12px; left: 14px; display: flex; align-items: center; gap: 8px; color: rgba(250,248,241,.78); font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: .13em; line-height: 1.2; text-align: left; text-transform: uppercase; }
.collection-tape__item span small { color: var(--ember); font: inherit; letter-spacing: .07em; }
.collection-tape__item:hover img, .collection-tape__item.is-focused img { filter: saturate(1) contrast(1.02); transform: scale(1); }
.collection-tape__item.is-active::before { transform: scaleX(1); }
.collection-tape__item:focus-visible { position: relative; z-index: 2; outline: 2px solid var(--ember); outline-offset: -2px; }

.goods-release { width: 100%; max-width: none; margin: 0; padding: 0; }
.collection-nav { min-height: 43px; display: flex; gap: clamp(18px, 2.8vw, 40px); align-items: center; margin: 0; padding: 0 var(--gutter); overflow-x: auto; border-bottom: 1px solid rgba(23,23,19,.15); scrollbar-width: none; }
.collection-nav::-webkit-scrollbar { display: none; }
.collection-nav__item { position: relative; align-self: stretch; flex: none; padding: 0; color: var(--muted); background: transparent; border: 0; font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; cursor: pointer; transition: color .2s ease; }
.collection-nav__item::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.collection-nav__item:hover, .collection-nav__item.is-active { color: var(--ink); }
.collection-nav__item.is-active::after { transform: scaleX(1); }
.collection-nav__item:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }

.goods-catalogue { --feature-stagger: 0px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((100vw - 1px) / 2); gap: 1px; background: rgba(23,23,19,.2); }
.goods-catalogue[data-product-count="5"] { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: calc((100vw - 3px) / 4); }
.goods-release .goods-catalogue { row-gap: 1px; column-gap: 1px; }
.goods-product-card { position: relative; height: 100%; min-width: 0; min-height: 0; overflow: hidden; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.goods-product-card.is-lead { grid-column: span 2; grid-row: span 2; }
.goods-card-gallery { position: relative; width: 100%; height: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-deep); isolation: isolate; }
.goods-card-gallery::after { content: ""; position: absolute; z-index: 8; inset: 0; border: 1px solid transparent; pointer-events: none; transition: border-color .28s ease; }
.goods-product-card.is-spotlit .goods-card-gallery::after { border-color: rgba(250,248,241,.62); }
.goods-product-card__visual { position: absolute; z-index: 1; inset: 0; display: block; overflow: hidden; cursor: pointer; }
.goods-card-gallery__media { position: absolute; inset: 0; display: block; transition: filter .38s ease, opacity .38s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.goods-card-gallery .goods-card-gallery__image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transform: scale(1.015); transition: opacity .6s ease, transform 1.1s cubic-bezier(.2,.7,.2,1), filter .38s ease; }
.goods-card-gallery__image.is-active { opacity: 1; transform: scale(1); }
.goods-product-card__blank { position: absolute; inset: 0; background: linear-gradient(145deg, var(--paper-bright), var(--paper-deep)); }
.goods-catalogue.is-spotlighting .goods-product-card:not(.is-spotlit) .goods-card-gallery__media { filter: grayscale(.82) saturate(.12) contrast(.9); opacity: .42; transform: scale(.995); }
.goods-catalogue.is-spotlighting .goods-product-card:not(.is-spotlit) .goods-product-card__info,
.goods-catalogue.is-spotlighting .goods-product-card:not(.is-spotlit) .goods-product-card__quick { opacity: .24; }
.goods-card-gallery__dots { position: absolute; z-index: 6; bottom: 15px; left: 15px; display: flex; gap: 7px; opacity: 0; transform: translateY(5px); transition: opacity .24s ease, transform .24s ease; }
.goods-product-card.is-spotlit .goods-card-gallery__dots, .goods-card-gallery:focus-within .goods-card-gallery__dots { opacity: 1; transform: translateY(0); }
.goods-card-gallery__dot { width: 6px; height: 6px; padding: 0; background: var(--paper-bright); border: 0; border-radius: 99px; box-shadow: 0 0 0 1px rgba(23,23,19,.24); cursor: pointer; opacity: .56; transition: opacity .2s ease, transform .2s ease; }
.goods-card-gallery__dot.is-active { opacity: 1; transform: scale(1.35); }
.goods-card-gallery__dot:focus-visible { outline: 2px solid var(--paper-bright); outline-offset: 3px; }

.goods-card-gallery__arrows { position: absolute; z-index: 7; top: auto; right: auto; bottom: 13px; left: 50%; display: flex; gap: 17px; pointer-events: none; opacity: 0; transform: translateX(-50%); transition: opacity .24s ease; }
.goods-product-card.is-spotlit .goods-card-gallery__arrows, .goods-card-gallery:focus-within .goods-card-gallery__arrows { opacity: 1; }
.goods-card-gallery__arrows button { width: auto; height: auto; display: block; padding: 3px 2px; color: rgba(250,248,241,.82); background: transparent; border: 0; border-radius: 0; font-family: var(--font-display); font-size: 17px; font-weight: 400; line-height: 1; pointer-events: auto; cursor: pointer; text-shadow: 0 1px 7px rgba(23,23,19,.75); transition: color .2s ease, transform .2s ease; }
.goods-card-gallery__arrows button:hover { color: var(--paper-bright); transform: scaleX(1.14); }
.goods-card-gallery__arrows button:focus-visible { outline: 1px solid rgba(250,248,241,.72); outline-offset: 3px; }

.goods-product-card__quick { position: absolute; z-index: 7; right: 14px; bottom: 14px; color: var(--paper-bright); background: rgba(23,23,19,.88); border: 1px solid rgba(250,248,241,.16); transition: right .3s ease, left .3s ease, opacity .3s ease; backdrop-filter: blur(10px); }
.goods-product-card__quick.is-choosing { left: 14px; }
.goods-product-card__quick-trigger { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 13px; color: inherit; background: transparent; border: 0; font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; cursor: pointer; }
.goods-product-card__quick-trigger [data-quick-add-label] { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width .3s ease, opacity .2s ease; }
.goods-product-card__quick:hover [data-quick-add-label], .goods-product-card__quick:focus-within [data-quick-add-label], .goods-product-card__quick.is-choosing [data-quick-add-label] { max-width: 110px; opacity: 1; }
.goods-product-card__quick-trigger:hover { color: var(--paper-bright); background: color-mix(in srgb, var(--ember) 72%, transparent); }
.goods-product-card__quick-trigger.is-added { background: var(--ember); }
.goods-product-card__quick-trigger:focus-visible, .goods-product-card__sizes button:focus-visible { outline: 2px solid var(--paper-bright); outline-offset: -4px; }
.goods-product-card__sizes { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 8px 8px; }
.goods-product-card__sizes button { min-height: 36px; padding: 0 6px; color: inherit; background: transparent; border: 1px solid color-mix(in srgb, var(--paper-bright) 28%, transparent); border-right: 0; font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: .08em; cursor: pointer; }
.goods-product-card__sizes button:last-child { border-right: 1px solid color-mix(in srgb, var(--paper-bright) 28%, transparent); }
.goods-product-card__sizes button:hover { color: var(--ink); background: var(--paper-bright); }
.goods-product-card__sizes button:disabled { color: var(--muted); cursor: not-allowed; opacity: .46; }

.goods-product-card__info { position: absolute; z-index: 6; top: 14px; left: 14px; width: min(360px, calc(100% - 78px)); padding: 12px 14px; color: var(--paper-bright); background: rgba(23,23,19,.82); border: 1px solid rgba(250,248,241,.18); backdrop-filter: blur(12px); transition: width .34s ease, background .3s ease, opacity .3s ease; }
.goods-product-card.is-spotlit .goods-product-card__info { width: min(390px, calc(100% - 28px)); background: rgba(23,23,19,.9); }
.goods-product-card__meta { position: relative; display: grid; grid-template-columns: 21px minmax(0, 1fr); gap: 10px; align-items: start; color: inherit; }
.goods-product-card__meta small { padding-top: 3px; color: var(--ember); font-family: var(--font-display); font-size: 8px; font-weight: 600; letter-spacing: .1em; }
.goods-product-card__identity { min-width: 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.goods-product-card__meta:hover h3 { color: var(--ember); }
.goods-product-card__meta h3 { min-width: 0; margin: 0; color: inherit; font-family: var(--font-display); font-size: clamp(13px, 1.05vw, 17px); font-weight: 500; letter-spacing: -.015em; line-height: 1.12; transition: color .2s ease; }
.goods-product-card.is-lead .goods-product-card__meta h3 { font-size: clamp(16px, 1.5vw, 22px); }
.goods-product-card__price { flex: none; color: rgba(250,248,241,.62); font-family: var(--font-display); font-size: 8px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.goods-product-card__description { max-width: 34ch; max-height: 0; margin: 0 0 0 31px; overflow: hidden; color: rgba(250,248,241,.72); font-size: 12px; line-height: 1.55; opacity: 0; transform: translateY(-3px); transition: max-height .36s ease, margin-top .36s ease, opacity .25s ease, transform .36s ease; }
.goods-product-card.is-spotlit .goods-product-card__description { max-height: 7em; margin-top: 13px; opacity: 1; transform: translateY(0); }
.goods-product-card__details { max-height: 0; display: flex; justify-content: space-between; margin: 0 0 0 31px; overflow: hidden; color: var(--paper-bright); font-family: var(--font-display); font-size: 8px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: max-height .3s ease, margin-top .3s ease, opacity .2s ease; }
.goods-product-card.is-spotlit .goods-product-card__details { max-height: 18px; margin-top: 13px; opacity: 1; }
.goods-product-card__details:hover { color: var(--ember); }
.goods-product-card__meta:focus-visible, .goods-product-card__details:focus-visible { outline: 2px solid var(--paper-bright); outline-offset: 4px; }
.goods-catalogue[data-product-count="5"] .goods-product-card:not(.is-lead) .goods-product-card__info { top: 10px; left: 10px; width: calc(100% - 64px); padding: 10px 11px; }
.goods-catalogue[data-product-count="5"] .goods-product-card:not(.is-lead).is-spotlit .goods-product-card__info { width: calc(100% - 20px); }
.goods-catalogue[data-product-count="5"] .goods-product-card:not(.is-lead) .goods-product-card__meta { grid-template-columns: 18px minmax(0, 1fr); gap: 7px; }
.goods-catalogue[data-product-count="5"] .goods-product-card:not(.is-lead) .goods-product-card__meta h3 { font-size: clamp(11px, .95vw, 14px); }
.goods-catalogue[data-product-count="5"] .goods-product-card:not(.is-lead) .goods-product-card__description,
.goods-catalogue[data-product-count="5"] .goods-product-card:not(.is-lead) .goods-product-card__details { margin-left: 25px; }

.goods-loading, .goods-empty { grid-column: 1 / -1; min-height: 52vh; display: grid; place-items: center; color: var(--muted); background: var(--paper-deep); }
.goods-loading::after { content: ""; width: 8px; height: 8px; background: var(--ember); border-radius: 50%; animation: goods-pulse 1s ease-in-out infinite alternate; }
.goods-empty { padding: var(--gutter); text-align: center; }
.goods-empty .kicker, .goods-empty p:last-child { display: none; }
.goods-empty h3 { max-width: 14ch; margin: 0; font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
@keyframes goods-pulse { to { opacity: .22; transform: scale(.65); } }

.goods-product-dialog { width: min(960px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; overflow: hidden; color: var(--ink); background: var(--paper-bright); border: 1px solid var(--line); box-shadow: 0 28px 90px rgba(23,23,19,.24); }
.goods-product-dialog::backdrop { background: rgba(23,23,19,.22); backdrop-filter: blur(4px); }
.goods-product-dialog [data-product-dialog-content] { display: grid; grid-template-columns: 1.04fr .96fr; min-height: 550px; }
.goods-dialog-close { position: absolute; z-index: 3; top: 18px; right: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 4px 0 4px 9px; color: var(--ink-soft); background: rgba(250,248,241,.82); border: 0; font-family: var(--font-display); font-size: var(--type-meta); font-weight: 500; letter-spacing: .1em; cursor: pointer; }
.goods-dialog-close:hover { color: var(--ember); }
.goods-dialog-close span:last-child { font-size: 22px; line-height: .8; }
.goods-product-dialog__media { min-height: 300px; background: var(--paper-deep); }
.goods-product-dialog__media img { width: 100%; height: 100%; object-fit: cover; }
.goods-product-dialog__media > span { width: 100%; height: 100%; display: block; background: radial-gradient(circle at 72% 28%, rgba(198,154,69,.23), transparent 24%), radial-gradient(circle at 27% 74%, rgba(182,90,50,.14), transparent 28%), var(--paper-deep); }
.goods-product-dialog__body { display: flex; flex-direction: column; padding: clamp(34px, 5vw, 64px); }
.goods-product-dialog h2 { margin: 0; font-family: var(--font-display); font-size: clamp(36px, 4vw, 57px); font-weight: 500; letter-spacing: -.055em; line-height: .96; }
.goods-product-dialog__price { margin: 18px 0 24px; color: var(--ember); font-family: var(--font-display); font-size: var(--type-meta); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.goods-product-dialog__body > p:not(.kicker):not(.goods-product-dialog__price) { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.goods-product-dialog label { display: grid; gap: 9px; margin-top: auto; padding-top: 36px; color: var(--ink-soft); font-family: var(--font-display); font-size: var(--type-meta); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.goods-product-dialog select { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0; }
.goods-product-dialog [data-add-to-cart] { width: 100%; margin-top: 14px; border-radius: 12px; cursor: pointer; }
.goods-product-dialog [data-add-to-cart]:disabled { cursor: not-allowed; opacity: .45; }
.goods-product-dialog small { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.goods-cart { position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); display: flex; flex-direction: column; color: var(--ink); background: var(--paper-bright); border-left: 1px solid var(--line); box-shadow: -12px 0 40px color-mix(in srgb, var(--ink) 16%, transparent); transform: translateX(101%); transition: transform .28s ease; }
.goods-cart[aria-hidden="false"] { transform: translateX(0); }
.goods-cart > header { min-height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.goods-cart > header h2 { margin: 0; font-family: var(--font-body); font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.goods-cart__close { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 3px; cursor: pointer; }
.goods-cart__close:hover { background: var(--paper-deep); }
.goods-cart__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.goods-cart__close svg, .goods-cart-line__quantity svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.goods-cart__lines { flex: 1; overflow-y: auto; padding: 0 24px; }
.goods-cart__empty { margin: 32px 0; color: var(--muted); font-size: 14px; }
.goods-cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.goods-cart-line > img, .goods-cart-line > span { width: 72px; height: 92px; object-fit: cover; background: var(--paper-deep); border: 1px solid var(--line); }
.goods-cart-line__details { min-width: 0; }
.goods-cart-line h3 { margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.goods-cart-line__variant { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.goods-cart-line__price { margin: 7px 0 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.35; }
.goods-cart-line__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.goods-cart-line__quantity { height: 36px; display: inline-grid; grid-template-columns: 36px minmax(36px, auto) 36px; align-items: stretch; border: 1px solid var(--line); border-radius: 3px; }
.goods-cart-line__quantity button { width: 36px; height: 34px; display: grid; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.goods-cart-line__quantity button:first-child { border-right: 1px solid var(--line); }
.goods-cart-line__quantity button:last-child { border-left: 1px solid var(--line); }
.goods-cart-line__quantity button:hover { background: var(--paper-deep); }
.goods-cart-line__quantity button:focus-visible { position: relative; outline: 2px solid var(--ink); outline-offset: -2px; }
.goods-cart-line__quantity svg { width: 16px; height: 16px; }
.goods-cart-line__quantity > span { min-width: 36px; display: grid; place-items: center; font-size: 13px; font-weight: 500; }
.goods-cart-line [data-remove] { margin-left: auto; padding: 4px 0; color: var(--muted); background: transparent; border: 0; font-family: var(--font-body); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.goods-cart-line [data-remove]:hover { color: var(--ink); }
.goods-cart-line [data-remove]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.goods-cart > footer { padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.goods-cart__subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-family: var(--font-body); font-size: 15px; font-weight: 500; }
.goods-cart__subtotal strong { font-size: 16px; font-weight: 600; }
.goods-cart__checkout { width: 100%; min-height: 48px; padding: 13px 20px; color: var(--paper-bright); background: var(--ink); border: 1px solid var(--ink); border-radius: 3px; font-family: var(--font-body); font-size: 15px; font-weight: 600; cursor: pointer; }
.goods-cart__checkout:hover:not(:disabled) { color: var(--ink); background: transparent; }
.goods-cart__checkout:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.goods-cart__checkout:disabled { color: var(--muted); background: var(--paper-deep); border-color: var(--line); cursor: not-allowed; }
.goods-cart > footer > p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.goods-cart-scrim { position: fixed; z-index: 140; inset: 0; visibility: hidden; opacity: 0; background: color-mix(in srgb, var(--ink) 36%, transparent); border: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.goods-site.cart-open { overflow: hidden; }
.goods-site.cart-open .goods-cart-scrim { visibility: visible; opacity: 1; pointer-events: auto; }

@media (max-width: 480px) {
  .goods-cart { width: 100vw; border-left: 0; }
  .goods-cart > header, .goods-cart__lines, .goods-cart > footer { padding-right: 20px; padding-left: 20px; }
}

/* Product detail is intentionally an inspection surface: clear object, close
   scrutiny, then a very ordinary selection and purchase decision. */
.product-detail { padding-top: clamp(116px, 13vw, 172px); padding-bottom: clamp(72px, 10vw, 140px); }
.product-detail__back { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-family: var(--font-display); font-size: var(--type-meta); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.product-detail__back:hover { color: var(--ember); }
.product-detail__grid { margin-top: clamp(32px, 5vw, 74px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .74fr); gap: clamp(44px, 7vw, 112px); align-items: start; }

.product-gallery { min-width: 0; }
.product-gallery__stage-wrap { position: relative; }
.product-gallery__stage { --zoom-x: 50%; --zoom-y: 50%; position: relative; width: 100%; aspect-ratio: 4 / 5; display: block; padding: 0; overflow: hidden; color: var(--ink); background: var(--paper-deep); border: 1px solid var(--line); cursor: zoom-in; isolation: isolate; }
.product-gallery[data-zoom-locked="true"] .product-gallery__stage { cursor: zoom-out; }
.product-gallery__media, .product-gallery__crop { position: absolute; inset: 0; display: block; }
.product-gallery__media { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s step-end; }
.product-gallery__media.is-active { visibility: visible; opacity: 1; transition: opacity .45s ease; }
.product-gallery__crop { overflow: hidden; }
.product-gallery__media img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1); transform-origin: var(--zoom-x) var(--zoom-y); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.product-gallery[data-zooming="true"] .product-gallery__media.is-active img { transform: scale(1.82); transition-duration: .1s; }
.product-gallery__stage::before { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; border: 10px solid rgba(250,248,241,.42); transition: border-color .35s ease; }
.product-gallery[data-zooming="true"] .product-gallery__stage::before { border-color: rgba(250,248,241,.1); }
.product-gallery__stage:focus-visible { outline: 2px solid var(--ember); outline-offset: 5px; }
.product-gallery__inspect { position: absolute; z-index: 3; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--ink); background: rgba(250,248,241,.84); border: 1px solid rgba(23,23,19,.12); font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(7px); transition: opacity .25s ease, transform .25s ease; }
.product-gallery__inspect i { width: 6px; height: 6px; display: block; background: var(--ember); border-radius: 99px; box-shadow: 0 0 0 3px rgba(182,90,50,.13); }
.product-gallery[data-zooming="true"] .product-gallery__inspect { opacity: 0; transform: translateY(5px); }
.product-gallery__caption { display: flex; gap: 12px; align-items: center; margin: 12px 0 0; color: var(--muted); font-family: var(--font-display); font-size: var(--type-meta); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.product-gallery__caption span { color: var(--ember); }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.product-gallery__thumb { position: relative; width: 100%; aspect-ratio: 1 / 1; display: block; padding: 0; overflow: hidden; background: var(--paper-deep); border: 1px solid var(--line); cursor: pointer; }
.product-gallery__thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .25s ease; }
.product-gallery__thumb span { position: absolute; right: 7px; bottom: 6px; padding: 3px 5px; color: var(--ink); background: rgba(250,248,241,.84); font-family: var(--font-display); font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.product-gallery__thumb:hover img { transform: scale(1.05); }
.product-gallery__thumb.is-active { border-color: var(--ink); }
.product-gallery__thumb.is-active::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--ink); pointer-events: none; }
.product-gallery__thumb:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.product-gallery__sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.product-detail__copy { min-height: min(680px, calc(100vh - 160px)); display: flex; flex-direction: column; padding: clamp(2px, 1vw, 13px) 0 0; }
.product-detail__copy .kicker { margin: 0 0 22px; color: var(--ember); }
.product-detail__copy h1 { max-width: 9ch; margin: 0; font-family: var(--font-display); font-size: clamp(44px, 5.2vw, 76px); font-weight: 500; letter-spacing: -.065em; line-height: .94; }
.product-detail__price { margin: 25px 0 0; color: var(--ember); font-family: var(--font-display); font-size: var(--type-meta); font-weight: 600; letter-spacing: .11em; }
.product-detail__lede { max-width: 39ch; margin: 27px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.72; }
.product-detail__specs { margin: 36px 0 0; border-top: 1px solid var(--line); }
.product-detail__specs div { display: grid; grid-template-columns: 108px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-detail__specs dt { color: var(--muted); font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.product-detail__specs dd { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.product-detail__variant { display: grid; gap: 9px; margin-top: auto; padding-top: 38px; color: var(--ink-soft); font-family: var(--font-display); font-size: var(--type-meta); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.product-detail__variant select { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 0; font-family: var(--font-body); }
.product-detail__add { width: 100%; margin-top: 14px; border-radius: 12px; cursor: pointer; }
.product-detail__status { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.product-detail__status a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.product-detail__status a:hover { color: var(--ember); }
@media (max-width: 800px) {
  .goods-catalogue, .goods-catalogue[data-product-count="5"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((100vw - 1px) / 2); }
  .goods-product-dialog [data-product-dialog-content] { grid-template-columns: 1fr; }
  .goods-product-dialog__media { min-height: 240px; max-height: 40vh; }
  .product-detail__grid { grid-template-columns: 1fr; gap: 42px; }
  .product-detail__copy { min-height: auto; }
  .product-detail__variant { margin-top: 0; }
}

@media (max-width: 650px) {
  .goods-site .nav { min-height: 66px; padding-block: 16px; }
  .goods-site .nav__links > a { display: none; }
  .goods-site .nav__family { font-size: 11px; }
  .goods-site .nav__product:first-of-type, .goods-site .nav__family .nav__separator:first-of-type { display: none; }
  .goods-hero { min-height: 72svh; }
  .hero-workshop img { object-position: 54% center; }
  .goods-hero h1 { font-size: clamp(48px, 15vw, 76px); }
  .goods-hero .actions { margin-top: 0; }
  .collection-tape { height: 138px; grid-template-columns: 110px minmax(0, 1fr); }
  .collection-tape__header { min-height: 0; padding: 14px 10px; }
  .collection-tape__controls { gap: 3px; }
  .collection-tape__controls button { width: 23px; height: 23px; }
  .collection-tape__track { width: max-content; display: flex; padding: 0; }
  .collection-tape__item { flex: 0 0 62vw; height: 100%; }
  .collection-tape__item span { right: 11px; bottom: 10px; left: 11px; font-size: 8px; }
  .collection-nav { min-height: 41px; gap: 24px; }
  .goods-catalogue { gap: 1px; }
  .goods-catalogue[data-product-count="1"] { grid-template-columns: 1fr; grid-auto-rows: 100vw; }
  .goods-card-gallery__dots { bottom: 12px; left: 12px; opacity: 1; transform: translateY(0); }
  .goods-product-card__quick { top: auto; right: 10px; bottom: 10px; }
  .goods-product-card__quick.is-choosing { left: 10px; }
  .goods-product-card__info { top: 10px; left: 10px; width: calc(100% - 64px); padding: 10px 11px; }
  .goods-product-card.is-spotlit .goods-product-card__info { width: calc(100% - 20px); }
  .goods-catalogue[data-product-count="5"] .goods-product-card:not(.is-lead) .goods-product-card__info { width: calc(100% - 20px); }
  .goods-product-card__meta { grid-template-columns: 17px minmax(0, 1fr); gap: 6px; }
  .goods-product-card__meta h3, .goods-product-card.is-lead .goods-product-card__meta h3 { font-size: clamp(10px, 2.7vw, 14px); }
  .goods-catalogue[data-product-count="5"] .goods-product-card:not(.is-lead) .goods-product-card__meta h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10px; }
  .goods-catalogue[data-product-count="5"] .goods-product-card:not(.is-lead) .goods-product-card__price { display: none; }
  .goods-product-card__identity { gap: 7px; }
  .goods-product-card__price { font-size: 7px; }
  .goods-product-card__description, .goods-product-card__details { margin-left: 23px; }
  .goods-card-gallery__arrows { right: auto; bottom: 11px; left: 50%; }
  .goods-card-gallery__arrows button { width: auto; height: auto; }
  .goods-product-card { min-height: 0; }
  .product-detail { padding-top: 102px; }
  .product-detail__copy h1 { max-width: 11ch; }
  .product-gallery__stage::before { border-width: 7px; }
  .product-gallery__inspect { left: 13px; bottom: 13px; }
  .goods-cart > header, .goods-cart > footer { padding-inline: 20px; }
  .goods-cart__lines { padding-inline: 20px; }
}
