:root {
  color-scheme: dark; --ink: #f4e9da; --muted: #c4ad98; --background: #171310;
  --panel: #211a16; --line: #443429; --gold: #e7b880; --gold-dark: #24150c;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: Manrope, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 500 1rem/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--gold-dark); }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1,h2,h3 { overflow-wrap: anywhere; }
h2,h3 { font-family: var(--serif); font-weight: 600; line-height: .98; }
.shell { width: min(100% - 5.5rem, 86rem); max-width: calc(100% - 2 * max(env(safe-area-inset-left), env(safe-area-inset-right)) - 1.3rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 6; background: var(--gold); color: var(--gold-dark); padding: .6rem 1rem; }
.masthead { background: #201813; border-bottom: 1px solid #453226; }
.head-row,.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.head-row { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand span { display: grid; gap: .1rem; font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: #e5cfb9; line-height: 1; }
.brand strong { font: 700 1.43rem/.95 var(--serif); letter-spacing: .14em; }
.head-row nav { display: flex; gap: 2rem; font-size: .91rem; color: #ead7c3; }
.head-row nav a:hover,.foot-row a:hover,.source-link:hover { color: var(--gold); }
.cart-toggle,.button,.icon-button,.quantity button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; border: 1px solid var(--line); background: transparent; padding: .63rem .95rem; border-radius: .4rem; font-weight: 800; font-size: .86rem; }
.cart-toggle:hover,.outline:hover,.icon-button:hover,.quantity button:hover { border-color: var(--gold); color: var(--gold); }
.basket-count { display: inline-grid; min-width: 1.4rem; min-height: 1.4rem; padding-inline: .22rem; border-radius: 2rem; place-items: center; color: var(--gold-dark); background: var(--gold); font-size: .73rem; }
.icon { width: 1.17rem; height: 1.17rem; display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero { display: grid; min-height: clamp(27rem, 38vw, 34rem); position: relative; isolation: isolate; overflow: hidden; background: #201611; }
.hero-image,.hero-shade { width: 100%; height: 100%; position: absolute; inset: 0; z-index: -1; }
.hero-image { width: 76%; left: auto; object-fit: cover; object-position: 50% 55%; filter: brightness(.83) saturate(.87); }
.hero-shade { background: linear-gradient(90deg,#1a120ff9 3%,#201511f3 22%,#21160cc7 43%,#21160c39 75%,#160b0717), linear-gradient(0deg,#171310b0,transparent 25%); }
.hero-inner { align-self: center; padding-block: 3.4rem; }
.kicker { display: flex; align-items: center; gap: .7rem; color: var(--gold); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.kicker span { width: 1.6rem; height: 1px; background: currentColor; }
.hero h1 { display: grid; gap: .25rem; margin: .9rem 0 1.1rem; color: #f7ebdc; font: 600 1rem/.95 var(--serif); letter-spacing: -.04em; }
.hero h1 span { font-size: clamp(1.85rem,4.25vw,4.55rem); }
.hero h1 strong { font-size: clamp(4rem,8.4vw,7.65rem); font-weight: inherit; }
.hero-copy { max-width: 26rem; margin-bottom: 1.5rem; color: #f0ded0; }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.primary { background: var(--gold); border-color: var(--gold); color: var(--gold-dark); }
.primary:hover { background: #f7cc99; border-color: #f7cc99; }
.outline { border-color: #78573c; background: #1c130e35; }
.catalog,.rating { padding-block: 3.75rem; scroll-margin-top: 1rem; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.section-title h2 { font-size: clamp(2.4rem,4.6vw,4rem); letter-spacing: -.035em; margin-top: .35rem; }
#catalog-count,.rating-intro { color: var(--muted); font-size: .87rem; }
.categories { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .45rem; margin-bottom: 1rem; }
.categories .category:focus-visible { outline-offset: -3px; }
.catalog-toolbar { position: sticky; top: 0; z-index: 4; height: 0; }
.catalog-controls { position: absolute; top: 0; inset-inline: 0; display: flex; justify-content: space-between; gap: .6rem; padding-block: .48rem; background: var(--background); border-bottom: 1px solid var(--line); visibility: hidden; }
.catalog-cart-pinned .catalog-controls { visibility: visible; }
.catalog-cart { flex: 0 0 auto; background: #35271e; }
.section-picker-button { min-width: 0; justify-content: flex-start; }
.section-picker-button > span { flex-shrink: 0; }
.section-picker-button #current-section { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--muted); }
.category { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; min-height: 2.75rem; padding: .3rem .62rem .3rem .36rem; border: 1px solid var(--line); border-radius: .55rem; font-size: .85rem; line-height: 1.25; color: #e0ccb8; font-weight: 700; }
.category img { width: 1.95rem; height: 1.95rem; flex: 0 0 auto; object-fit: cover; border-radius: 50%; background: #393028; }
.category span { min-width: 0; overflow-wrap: anywhere; }
.category:hover { border-color: var(--gold); }
.category[aria-current="true"] { background: #563b29; border-color: #8d6346; color: #fff2e3; }
.filters { display: flex; align-items: stretch; gap: .65rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.search,.stock,.sort { background: var(--panel); border: 1px solid var(--line); border-radius: .45rem; min-height: 2.85rem; display: flex; align-items: center; font-size: .87rem; }
.search { flex: 1 1 14rem; gap: .65rem; padding-inline: .8rem; color: var(--gold); }
.search input { width: 100%; min-width: 0; color: var(--ink); border: 0; background: transparent; padding-block: .65rem; }
.search input::placeholder { color: #bfa692; }
.search:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.search input:focus { outline: none; }
.stock { gap: .45rem; padding: .5rem .75rem; color: var(--muted); }
.stock input { accent-color: var(--gold); width: 1.05rem; height: 1.05rem; }
.sort { position: relative; }
.sort select { appearance: none; width: 100%; min-height: 2.75rem; color: var(--ink); background: var(--panel); border: 0; border-radius: .45rem; padding: .45rem 2.1rem .45rem .8rem; }
.sort [data-icon] { position: absolute; right: .5rem; pointer-events: none; }
.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); cursor: pointer; }
.card:hover { border-color: #806043; }
.photo-button { display: block; position: relative; width: 100%; padding: 0; border: 0; background: #392c22; color: var(--ink); text-align: left; }
.photo-button:focus-visible { outline-offset: -4px; }
.card-image,.detail-image { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background: #e9dfd4; }
.image-missing { display: grid; place-items: center; aspect-ratio: 4/3; background: #30241c; font-size: .85rem; color: var(--muted); padding: 1rem; }
.badge { position: absolute; top: .65rem; left: .65rem; display: inline-flex; align-items: center; gap: .3rem; background: #21160ded; color: #fbe0b9; font-size: .76rem; font-weight: 800; padding: .24rem .5rem; border-radius: .25rem; }
.badge .icon { width: .88rem; height: .88rem; }
.photo-count { position: absolute; right: .65rem; bottom: .65rem; padding: .24rem .5rem; border-radius: .25rem; background: #21160ded; color: #fbe0b9; font-size: .76rem; font-weight: 800; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: .92rem; gap: .42rem; }
.card-meta { color: var(--gold); font-size: .73rem; font-weight: 700; }
.card-title { text-align: left; font: inherit; color: inherit; background: none; padding: 0; border: 0; }
.card-title:hover { color: var(--gold); }
.card h3 { font-size: clamp(1.45rem,2.55vw,2rem); line-height: 1; }
.card-description { color: var(--muted); font-size: .84rem; }
.card-buy { margin-top: auto; padding-top: .68rem; display: flex; justify-content: space-between; gap: .55rem; align-items: center; }
.price { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buy { min-height: 2.45rem; padding: .38rem .65rem; background: #39291e; border-color: #6b4e38; color: #ffdfb9; }
.buy:hover { background: var(--gold); color: var(--gold-dark); }
.unavailable { color: var(--muted); font-size: .78rem; text-align: right; }
.empty { grid-column: 1/-1; min-height: 10rem; border: 1px dashed var(--line); padding: 2rem; color: var(--muted); border-radius: .6rem; }
.empty h3 { color: var(--ink); font-size: 2rem; margin-bottom: .5rem; }
.pagination { margin-top: 1.4rem; display: flex; justify-content: center; align-items: center; gap: .55rem; }
.pagination:empty { display: none; }
.pagination span { color: var(--muted); padding-inline: .25rem; font-size: .84rem; }
.pagination .button:disabled { opacity: .38; }
.rating { border-top: 1px solid var(--line); }
.rating-intro { margin-top: -.35rem; margin-bottom: 1.3rem; }
.leaders { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.leader { border: 1px solid var(--line); background: var(--panel); border-radius: .6rem; padding: 1rem; min-width: 0; }
.leader h3 { font-size: 1.8rem; margin-bottom: .65rem; }
.leader ol { padding: 0; margin: 0 0 .6rem; list-style: none; }
.leader li { padding-block: .26rem; display: flex; gap: .45rem; align-items: baseline; justify-content: space-between; font-size: .86rem; }
.leader li button { text-align: left; background: none; border: 0; padding: 0; }
.leader li button:hover { color: var(--gold); }
.leader li span,.leader a { color: var(--gold); white-space: nowrap; }
.leader a:hover { text-decoration: underline; }
footer { background: #201813; border-top: 1px solid var(--line); padding-block: 1.5rem; }
.foot { display: grid; gap: 1rem; }
.foot-top-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.foot-up { white-space: nowrap; }
.foot-up .icon { transform: rotate(180deg); }
.foot-navigation { padding-block: .85rem 1rem; border-block: 1px solid var(--line); }
.foot-navigation h2 { font-size: 1.65rem; margin-bottom: .45rem; }
#footer-sections { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .1rem 1rem; list-style: none; padding: 0; margin: 0; }
#footer-sections a { display: flex; align-items: center; min-height: 2.75rem; padding-block: .25rem; font-size: .82rem; line-height: 1.3; color: #dfcbb9; overflow-wrap: anywhere; }
#footer-sections a:hover,#footer-sections a:focus-visible { color: var(--gold); text-decoration: underline; }
.foot-row p { max-width: 37rem; font-size: .77rem; color: var(--muted); }
.foot-actions { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.foot-actions a { font-size: .78rem; color: var(--muted); }
dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: .75rem; padding: 0; width: min(48rem,100% - 1.2rem); max-height: calc(100dvh - 1.5rem); overscroll-behavior: contain; }
dialog::backdrop { background: #080503b8; }
.section-picker[open] { position: fixed; inset: 3.9rem auto auto max(2.75rem,calc((100% - 86rem)/2)); margin: 0; width: min(33rem,100% - 1.2rem); max-height: calc(100dvh - 5rem); }
.section-picker .drawer-head h2 { font-size: 2rem; }
.section-picker .categories { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; padding: .85rem 1.2rem 1.1rem; }
#product-dialog { overflow: hidden; }
#product-detail { max-height: calc(100dvh - 1.5rem - 2px - var(--product-cart-bar-height, 0px)); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; touch-action: pan-y pinch-zoom; }
.mobile-product-cart { display: none; }
.detail { display: grid; grid-template-columns: .9fr 1.1fr; position: relative; }
.detail-photo { background: #e9dfd4; display: grid; align-content: center; }
.detail-image { aspect-ratio: 1; }
.gallery-thumbnails { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; padding: .65rem; background: var(--panel); }
.gallery-thumbnails button { display: grid; width: 3.3rem; height: 3.3rem; padding: .16rem; border: 1px solid #78573c; border-radius: .38rem; background: #392c22; }
.gallery-thumbnails button[aria-pressed="true"],.gallery-thumbnails button:hover { border-color: var(--gold); background: var(--gold); }
.gallery-thumbnails img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: .24rem; background: #e9dfd4; }
.detail-body { padding: 2.1rem 2.9rem 1.5rem 1.5rem; }
.detail-body h2 { margin: .45rem 0 .6rem; font-size: clamp(2.2rem,5vw,3.1rem); }
.detail-body p { margin-bottom: .7rem; color: #dfcbb9; }
.product-neighbors { position: absolute; inset: 50% .35rem auto 0; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; }
.product-neighbors button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; color: #f7d3a1; pointer-events: auto; }
.product-neighbors .icon { width: 1.85rem; height: 1.85rem; stroke-width: 2.2; filter: drop-shadow(0 1px 2px #171310); }
.product-neighbors [data-direction="previous"] .icon { transform: rotate(90deg); }
.product-neighbors [data-direction="next"] .icon { transform: rotate(-90deg); }
.product-neighbors button:hover:not(:disabled) { color: #fff2e3; }
.product-neighbors button:disabled { opacity: .32; pointer-events: none; }
.detail-return { position: absolute; top: .55rem; left: .55rem; min-height: 2.75rem; background: var(--panel); }
.detail-close { position: absolute; top: .55rem; right: .55rem; background: var(--panel); }
.facts { margin: .8rem 0; font-size: .85rem; }
.facts div { display: flex; gap: .7rem; justify-content: space-between; border-top: 1px solid var(--line); padding-block: .34rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.detail-buy { display: flex; gap: .8rem; align-items: center; justify-content: space-between; margin-top: .9rem; }
.price-unit { display: block; margin-top: .14rem; color: var(--muted); font: 600 .78rem/1.3 var(--sans); white-space: normal; }
.source-link { color: var(--gold); text-decoration: underline; text-underline-offset: .16em; font-size: .77rem; }
.source-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .65rem; }
.drawer[open] { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: none; max-width: 100vw; width: min(29rem,100%); border-radius: .65rem 0 0 .65rem; display: flex; flex-direction: column; }
.drawer-head { display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 2.5rem; }
.icon-button { min-width: 2.75rem; padding: .55rem; }
.drawer-body { flex: 1; min-height: 0; overflow: auto; padding: 1rem 1.2rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1rem 1.2rem; }
.drawer-foot:empty { display: none; }
.cart-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .5rem; align-items: start; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.cart-product { display: grid; grid-template-columns: 3rem minmax(0,1fr); gap: .55rem; align-items: center; min-height: 3rem; padding: 0; border: 0; background: transparent; text-align: left; color: inherit; }
.cart-thumb { display: block; width: 3rem; height: 3rem; border-radius: .35rem; object-fit: contain; background: #e9dfd4; }
.cart-item-copy { display: grid; gap: .2rem; }
.cart-item-name { font: 600 clamp(1.15rem,3.4vw,1.5rem)/1.05 var(--serif); overflow-wrap: anywhere; }
.cart-product:hover .cart-item-name,.cart-product:focus-visible .cart-item-name { color: var(--gold); text-decoration: underline; text-underline-offset: .13em; }
.quantity { display: flex; align-items: center; gap: .3rem; }
.quantity button { min-width: 2.3rem; min-height: 2.3rem; padding: 0; }
.quantity output { min-width: 1.4rem; text-align: center; font-variant-numeric: tabular-nums; }
.purchase-controls .quantity { gap: .28rem; }
.purchase-controls .quantity button { min-width: 2.25rem; min-height: 2.45rem; background: #39291e; border-color: #6b4e38; color: #ffdfb9; }
.purchase-controls .quantity button:hover:not(:disabled) { background: var(--gold); color: var(--gold-dark); }
.quantity button:disabled { opacity: .4; }
.order-total { display: flex; justify-content: space-between; gap: .4rem; margin-bottom: .55rem; }
.order-note,.photo-note { font-size: .8rem; color: var(--muted); }
.order-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.order-preview { margin-top: .65rem; color: var(--muted); }
.order-preview textarea { width: 100%; padding: .55rem; line-height: 1.45; background: var(--background); color: var(--ink); border: 1px solid var(--line); border-radius: .35rem; }
.checkout { width: min(32rem, 100% - 1.2rem); }
.checkout .drawer-head h2 { font-size: clamp(1.55rem, 6vw, 2.5rem); }
.checkout-form { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .75rem; }
.checkout-form label:not(.checkout-consent):not([hidden]) { display: grid; gap: .25rem; }
.checkout input:not([type=checkbox]), .checkout textarea { width: 100%; min-height: 2.7rem; padding: .55rem; color: var(--ink); background: var(--background); border: 1px solid var(--line); border-radius: .35rem; font: inherit; }
.checkout-consent { display: flex; align-items: start; gap: .5rem; font-size: .86rem; }
.checkout-consent input { accent-color: var(--gold); flex: none; }
.checkout-consent a { color: var(--gold); text-decoration: underline; }
#checkout-error { color: #ffb3a2; }
#checkout-error:empty, #cart-status:empty { display: none; }
.cart-receipt { margin-top: .65rem; }
.status-page { width: min(34rem, 100% - 2 * max(1rem, env(safe-area-inset-left), env(safe-area-inset-right))); margin: max(3vh, env(safe-area-inset-top)) auto; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
.status-page header { padding: .75rem 0 1.3rem; }
.status-card { padding: clamp(1rem, 4vw, 1.65rem); background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; }
.status-card h1 { margin: 0 0 .75rem; font: 600 clamp(1.9rem, 7vw, 3.15rem)/1.04 var(--serif); }
.status-value { display: inline-block; padding: .25rem .65rem; background: #513521; border-radius: .4rem; color: #ffe4c4; font-weight: 750; }
.status-value[data-status="ready"], .status-value[data-status="completed"] { background: #263723; color: #d4edcd; }
.status-value[data-status="cancelled"] { background: #4c2c29; color: #ffd4c9; }
.status-dates { margin: 1rem 0 .6rem; }
.status-message { margin-block: .6rem; color: var(--muted); }
.status-message:empty { display: none; }
.method { width: min(32rem,100% - 1.2rem); }
.method-body { padding: 1.05rem 1.2rem 1.4rem; color: #dfcbb9; }
.notice { position: fixed; right: max(1rem,env(safe-area-inset-right)); bottom: max(1rem,env(safe-area-inset-bottom)); z-index: 5; background: #f1c89d; color: #27170d; border-radius: .4rem; max-width: calc(100% - 2rem); padding: .55rem .8rem; font-size: .88rem; font-weight: 800; }
.notice:empty { display: none; }
#intro-dialog[open] { position: fixed; inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; overflow: hidden; border: 0; border-radius: 0; background: #17110c; isolation: isolate; }
#intro-video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; }
#intro-dialog::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center,#190e0d37 15%,#100905a3 90%),linear-gradient(90deg,#180f0bbb,transparent 78%); }
#intro-dialog[data-title-time]:not(.intro-titled)::after { opacity: .36; }
.intro-inner { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .4rem; text-align: center; padding: 1rem; }
#intro-dialog[data-title-time]:not(.intro-titled) .intro-inner { opacity: 0; }
.intro-inner p { font: 600 clamp(3rem, 8vw, 8rem)/.87 var(--serif); letter-spacing: -.05em; text-shadow: 0 4px 22px #130a04; }
.intro-inner em { font-weight: 500; color: var(--gold); }
@media(prefers-reduced-motion: no-preference) {
  #intro-dialog[open].intro-titled .intro-inner { animation: intro-appear .52s ease-out both; }
  @keyframes intro-appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
}
#skip-intro { position: absolute; right: max(1.2rem,env(safe-area-inset-right)); bottom: max(1.2rem,env(safe-area-inset-bottom)); background: #20140ee6; }
.section-guide { margin-bottom: 1rem; padding: clamp(.85rem,2vw,1.35rem); background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: .55rem; }
.section-guide h3 { font-size: clamp(1.65rem,3vw,2.2rem); margin-bottom: .85rem; }
.section-pairings { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem 1.45rem; margin: 0; }
.section-pairings dt { margin-bottom: .24rem; font-weight: 800; font-size: .83rem; color: var(--gold); }
.section-pairings dd { margin: 0; font-size: .88rem; color: #dfcbb9; }
.section-sources { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem; }
@media(max-width: 37rem) { .section-pairings { grid-template-columns: minmax(0,1fr); } }

@media(max-width: 68rem) { .products,.categories { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width: 49rem) {
  .shell { width: calc(100% - 2.2rem); } .products,.leaders { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-shade { background: linear-gradient(90deg,#1a120ff6 3%,#201511df 42%,#2015118f 76%,#20151143 100%),linear-gradient(0deg,#1713109c,transparent 73%); }
  .hero-image { width: 100%; object-position: 64% center; }
  .head-row nav { gap: .85rem; }
  #footer-sections { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-picker[open] { left: 1.1rem; }
}
@media (max-width: 40rem), (hover: none) and (pointer: coarse) {
  #open-cart { position: fixed; z-index: 6; right: max(.8rem,env(safe-area-inset-right)); bottom: max(.8rem,env(safe-area-inset-bottom)); border-radius: 2rem; box-shadow: 0 4px 18px #0d07088c; }
  .catalog-cart-pinned #open-cart { visibility: hidden; }
  #open-cart,#product-open-cart,#catalog-open-cart { background: var(--gold); border-color: var(--gold); color: var(--gold-dark); }
  #open-cart .basket-count,#product-open-cart .basket-count,.catalog-cart .basket-count { background: #49301e; color: #fff1de; }
  .catalog-controls { gap: .4rem; }
  .catalog-cart { gap: .35rem; padding-inline: .65rem; }
  .catalog-cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .section-picker[open] { inset: auto 0 0; width: 100%; max-width: 100%; max-height: calc(100dvh - 1.25rem); border-radius: .8rem .8rem 0 0; }
  .section-picker .drawer-head { padding-inline: max(1.2rem, env(safe-area-inset-left), env(safe-area-inset-right)); }
  .section-picker .categories { padding-inline: max(.65rem, env(safe-area-inset-left), env(safe-area-inset-right)); padding-bottom: max(1.1rem, env(safe-area-inset-bottom)); }
  .notice { bottom: calc(max(.8rem,env(safe-area-inset-bottom)) + 3.3rem); }
  footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  #product-dialog { --product-cart-bar-height: 3.55rem; }
  .mobile-product-cart { display: flex; height: var(--product-cart-bar-height); justify-content: flex-end; align-items: center; padding-inline: .65rem; border-top: 1px solid var(--line); }
  .drawer[open] { padding-top: env(safe-area-inset-top); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
  .quantity button, .purchase-controls .quantity button { min-width: 2.75rem; min-height: 2.75rem; }
  input[type=search], .checkout input, .checkout textarea, .order-preview textarea { font-size: 16px; }
}
@media(max-width: 34rem) {
  .shell { width: calc(100% - 1.3rem); }
  .head-row { flex-wrap: wrap; gap: .55rem; min-height: auto; padding-block: .6rem; }
  .head-row nav { order: 3; width: 100%; border-top: 1px solid var(--line); padding-top: .5rem; }
  .hero { min-height: 24rem; } .hero-inner { padding-block: 2.2rem; }
  .hero h1 { gap: .2rem; }
  .hero-copy { font-size: .9rem; max-width: 17rem; }
  .catalog,.rating { padding-block: 2.5rem; }
  .section-title { gap: .5rem; }
  .categories { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .35rem; }
  .category { font-size: .77rem; }
  .products { gap: .58rem; } .card-body { padding: .63rem; } .card h3 { font-size: 1.53rem; }
  .card-buy { flex-wrap: wrap; } .card-buy .purchase-controls,.card-buy .buy { width: 100%; }
  .card-buy .quantity { justify-content: space-between; }
  .card-meta { font-size: .69rem; } .card-description { font-size: .78rem; }
  .filters .stock,.filters .sort { flex: 1 0 auto; }
  .leaders { grid-template-columns: 1fr; }
  .section-title:has(#method-open) { align-items: flex-start; flex-direction: column; }
  .foot-row { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .detail { display: block; } .detail-image,.detail-photo .image-missing { aspect-ratio: 16/9; } .detail-body { padding: 1rem 2.8rem; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .head-row { min-height: 3.4rem; }
  .hero { min-height: 15rem; }
  .hero-inner { padding-block: 1.55rem; }
  .hero h1 strong { font-size: clamp(3rem, 7vw, 5rem); }
  .hero-copy { margin-bottom: .8rem; }
  .catalog,.rating { padding-block: 2rem; }
  .drawer[open] { display: block; overflow: auto; }
  .drawer .drawer-head { position: sticky; top: 0; z-index: 1; padding-block: .55rem; background: var(--panel); }
  .drawer-head h2 { font-size: 1.9rem; }
  .drawer-body, .drawer-foot { padding-block: .65rem; }
  .drawer-foot { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }
  .section-picker .drawer-head { padding-block: .5rem; }
  #product-dialog { width: min(48rem, calc(100% - 1rem - 2 * max(env(safe-area-inset-left), env(safe-area-inset-right)))); }
  .detail-photo { align-content: start; }
  .detail-image { max-height: 60dvh; }
  .detail-body { padding-top: 1.2rem; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

