:root {
  --red: var(--egura-brand);
  --red-dark: var(--egura-brand-dark);
  --ink: var(--egura-ink);
  --line: #e5e5e5;
  --paper: #fff;
}
*,*::before,*::after { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui,sans-serif; }
nav,main { max-width: 1200px; margin-inline: auto; padding: 18px; }
nav,.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
input,select,button,textarea { min-width: 0; max-width: 100%; font: inherit; border: 1px solid #aab6bf; border-radius: 6px; padding: 9px 10px; }
input,select,button { min-height: 44px; }
button { cursor: pointer; background: white; color: inherit; }
button.primary { color: white; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
h1 { font-size: 26px; overflow-wrap: anywhere; }
form,label { display: grid; gap: 6px; min-width: 0; }
form { max-width: 460px; gap: 12px; }
dialog { width: min(480px,calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; border: 1px solid #ccc; border-radius: 8px; padding: 20px; }
dialog::backdrop { background: #14242b88; }
.skip-link { position: absolute; z-index: 2; inset-inline-start: 10px; top: 8px; padding: 10px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.grid { display: grid; }
.tile { background: white; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.tile img,.tile .placeholder { width: 100%; aspect-ratio: 1; object-fit: contain; }
.itemname { overflow-wrap: anywhere; }
.money { font-size: 18px; font-weight: 700; }
.note { color: #52616b; }
body { background: var(--egura-canvas); color: var(--ink); }
header { background: var(--egura-header); color: white; }
nav { gap: 18px; }
nav .brand { background: transparent; border: 0; padding: 0; color: #ff6155; font-size: 27px; font-weight: 850; }
#search-form { display: flex; align-items: center; gap: 5px; max-width: none; flex: 1; min-width: 0; padding: 4px 5px 4px 12px; border: 1px solid #ccc; border-radius: 8px; background: white; color: #222; }
#search-form:focus-within { box-shadow: 0 0 0 2px #ff6155; border-color: #ff6155; }
#search-form input { flex: 1; width: 100%; min-width: 0; min-height: 42px; padding: 3px 1px; border: 0; background: transparent; color: #222; }
#search-form input:focus-visible { outline: 0; }
#search-form input::-webkit-search-cancel-button { appearance: none; }
.search-mark,.search-clear svg,.mobile-nav svg,.scroll-actions svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-mark { color: #595c5b; }
#search-form .search-clear { display: grid; place-items: center; width: 44px; min-height: 44px; flex: none; padding: 0; border: 0; color: #575757; }
#search-form .search-clear[hidden] { display: none; }
#search-form .search-submit { padding: 5px 16px; border: 0; background: var(--red-dark); color: white; font-weight: 700; }
#search-form .search-submit:hover { background: #891416; }
#bag { background: transparent; border-color: #555; color: white; white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 4; }
#bag { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
#bag svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-cart-count { min-width: 19px; border-radius: 4px; padding: 1px 4px; background: #ff6553; color: #231916; font-size: 12px; font-weight: 800; }
.store-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 1200px; margin: auto; padding: 16px 18px; color: #53585c; font-size: 14px; }
.store-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.store-footer button[aria-pressed=true] { background: #edf5ef; color: #244a34; }
.mobile-nav { display: none; }
.scroll-actions { display: grid; gap: 8px; position: fixed; z-index: 2; inset: auto 16px 16px auto; pointer-events: none; }
.scroll-actions > button { display: grid; place-items: center; position: relative; width: 48px; height: 48px; padding: 0; border-color: #aeb8b2; box-shadow: 0 2px 9px #0002; pointer-events: auto; }
.scroll-actions [hidden] { display: none; }
.scroll-actions > .floating-cart { background: var(--red-dark); color: white; border-color: var(--red-dark); }
.floating-cart-count { position: absolute; inset: 1px 1px auto auto; min-width: 17px; padding: 0 3px; border-radius: 4px; background: white; color: var(--red-dark); font-size: 10px; font-weight: 800; }
.category-directory,.catalog-bar { scroll-margin-top: 96px; }
main { padding-top: 24px; }
h1 { margin: 0 0 16px; }
.catalog-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.catalog-count { color: #555; }
.grid { grid-template-columns: repeat(auto-fill,minmax(min(165px,100%),1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; position: relative; border-color: var(--line); padding: 0 0 10px; overflow: hidden; }
.new-listing { position: absolute; top: 7px; left: 7px; pointer-events: none; padding: 3px 6px; border-radius: 5px; background: var(--red-dark); color: white; font-size: 11px; font-weight: 700; }
.tile:hover { border-color: #df857e; }
.tile .product-open { padding: 0; border: 0; border-radius: 0; }
.product-open { display: block; text-decoration: none; }
.product-open:hover .itemname { text-decoration: underline; }
.product-open:focus-visible { outline: 3px solid #3682d5; outline-offset: -3px; }
.tile img,.tile .placeholder { display: block; background: #fafafa; }
.itemname { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 9px 10px 0; min-height: 2.75em; }
.tile .money { color: var(--red); margin: 6px 10px; }
.tile-source { margin: 0 10px 10px; color: #555; font-size: 13px; overflow-wrap: anywhere; }
.source-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; }
.product-source { margin-top: 10px; color: #555; font-size: 14px; }
.preferred-source-badge { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 6px; border: 1px solid #b9d8c8; border-radius: 5px; background: #e9f5ee; color: #17523d; font-size: 11px; font-weight: 750; line-height: 1.3; }
.preferred-source-badge > span:first-child { font-size: 12px; }
.add-to-cart { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px; font-weight: 700; border-color: #eab1a9; background: #fff0ed; color: #9d291b; }
.add-to-cart svg { width: 18px; height: 18px; flex: none; }
.add-to-cart:hover { border-color: #9d291b; background: #ffe3de; }
.tile .quick-add { margin: auto 10px 0; padding-inline: 5px; font-size: 14px; text-align: center; }
.tile .quick-add.is-added { border-color: #a9c6b5; background: #eaf5ec; color: #21553e; }
.tile .quick-add:not(.add-to-cart) { border-color: #eab1a9; color: var(--red-dark); font-weight: 700; }
button.primary { background: var(--red); border-color: var(--red); }
button.primary:hover { background: var(--red-dark); }
:where(a,button,input,select,textarea):focus-visible { outline: 3px solid #3682d5; outline-offset: 2px; }
.actions { margin-top: 16px; }
.product-back { display: inline-block; margin-bottom: 16px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, .72fr); gap: 20px; align-items: start; background: var(--paper); padding: 20px; }
.product-gallery img,.product-gallery .placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fafafa; color: #555; }
.listing-thumbnails { display: grid; grid-template-columns: repeat(4,minmax(0,62px)); gap: 6px; margin-top: 7px; }
.listing-thumbnails button { padding: 3px; }
.listing-thumbnails button[aria-pressed=true] { border-color: var(--red-dark); box-shadow: inset 0 0 0 1px var(--red-dark); }
.product-info h1 { overflow-wrap: anywhere; }
.product-price { font-size: 30px; font-weight: 800; color: var(--red-dark); margin: 0; }
.product-purchase { border-left: 1px solid var(--line); padding-left: 18px; }
.product-purchase h2,.product-more h2 { font-size: 20px; margin-top: 0; }
.quantity-stepper { display: grid; grid-template-columns: 44px 62px 44px; width: max-content; gap: 3px; margin: 5px 0 12px; }
.quantity-stepper input { width: 100%; text-align: center; appearance: textfield; }
.quantity-stepper input::-webkit-inner-spin-button,.quantity-stepper input::-webkit-outer-spin-button { appearance: none; }
.quantity-stepper button { font-size: 20px; padding: 0; }
.product-variant { margin-bottom: 12px; font-size: 14px; font-weight: 650; }
.product-variant select { width: 100%; min-height: 46px; background: white; color: var(--ink); font-size: 16px; }
.product-purchase .money { margin: 4px 0; }
.product-actions { display: grid; gap: 8px; margin-top: 16px; }
.product-actions button { min-height: 48px; }
.product-actions [role=status] { grid-column: 1 / -1; margin: 0; color: #20563e; font-weight: 650; }
.product-actions [role=status]:empty { height: 0; }
.product-more { margin-top: 24px; }
.store-heading { margin-bottom: 22px; min-width: 0; }
.store-heading h1 { margin-bottom: 6px; }
.store-heading p { margin: 0; color: #555; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.category-directory { margin-block: 12px 18px; }
.category-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 9px; }
.category-header h2 { font-size: 17px; margin: 0; }
.category-header button { font-size: 14px; }
.category-menu { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 9px; }
.category-tile { display: grid; grid-template-rows: auto 1fr; gap: 6px; justify-items: stretch; padding: 6px; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; text-align: center; }
.category-tile:hover { border-color: var(--red-dark); }
.category-art { display: grid; place-items: center; height: 67px; width: 100%; border-radius: 4px; background: var(--category-tone,#edf0f2); overflow: hidden; }
.category-art img { display: block; width: 100%; height: 100%; min-height: 0; padding: 2px; object-fit: contain; mix-blend-mode: multiply; }
.category-label { display: grid; place-items: center; line-height: 1.2; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; min-height: 2.4em; }
.category-emblem { width: 32px; height: 32px; color: #435562; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.department-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; }
.department-controls a { display: inline-flex; align-items: center; min-height: 44px; }
.store-banners { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(0,1fr); gap: 14px; margin-top: 10px; }
.store-banner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); align-items: center; gap: 10px; min-width: 0; padding: 18px; border-radius: 8px; background: #f8e5dc; color: #461910; }
.store-banner:nth-child(even) { background: #deeee8; color: #173a32; }
.banner-kicker { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.store-banner h2 { font-size: 26px; line-height: 1.15; margin: 0 0 12px; overflow-wrap: anywhere; }
.store-banner button { background: #762b1c; border-color: #762b1c; }
.store-banner:nth-child(even) button { background: #235347; border-color: #235347; }
.store-banner button:hover { filter: brightness(.9); }
.banner-art { width: min(100%,230px); aspect-ratio: 1.5; justify-self: center; overflow: hidden; mix-blend-mode: multiply; }
.banner-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.banner-studio img { object-fit: cover; object-position: center 43%; }
.banner-art:has(.category-emblem) { display: grid; place-items: center; }
.banner-art .category-emblem { width: 53%; height: 80%; opacity: .8; }
.banner-controls { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.banner-controls button { font-size: 14px; }
.banner-controls .banner-icon { min-width: 44px; font-size: 19px; line-height: 1; }
.banner-position { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; color: #505050; }
.banner-enter { animation: banner-enter 340ms ease-out both; }
@keyframes banner-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@media(prefers-reduced-motion:reduce) {
  .banner-enter { animation: none; }
}
.catalog-caption h2 { font-size: 21px; margin: 0; }
.catalog-more { text-align: center; margin: 24px 0 12px; }
.empty-results { background: white; padding: 20px; }
.empty-results h2 { margin: 0; }
#view[data-screen=checkout] { max-width: 1050px; padding-bottom: 40px; }
.checkout-header { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px 12px; padding: 18px; margin-bottom: 14px; background: #fff; color: var(--ink); border: 1px solid #ecdeda; border-top: 4px solid var(--red); border-radius: 8px; }
.checkout-title { grid-area: 1 / 1; }
.checkout-kicker { display: block; color: var(--red-dark); font-size: 13px; font-weight: 750; }
.checkout-title h1 { margin: 3px 0 0; line-height: 1.15; }
.checkout-shop { grid-area: 1 / 2; align-self: center; border-color: #ded8d4; font-size: 14px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px, .48fr); grid-template-areas: 'content summary'; align-items: start; gap: 16px; }
.checkout-pane,.order-summary { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.checkout-pane { grid-area: content; }
.checkout-pane h2,.order-summary h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.order-summary { grid-area: summary; background: #f4f8f5; border-color: #dce9df; }
.order-summary-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; }
.order-summary-title h2 { margin: 0; }
.order-count { color: #41634f; font-size: 13px; }
.order-amounts { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; margin: 13px 0 0; padding-top: 10px; border-top: 1px solid #dce9df; font-size: 14px; }
.order-amounts dd { margin: 0; text-align: end; }
.order-subtotal { font-weight: 800; color: #214d36; }
.checkout-notice { margin: 8px 0 14px; color: #565c61; font-size: 14px; }
.delivery-form { max-width: none; gap: 14px; }
.delivery-fields { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.delivery-fields h2 { margin: 0; }
.delivery-field { font-size: 14px; font-weight: 700; }
.delivery-field :is(input,textarea) { width: 100%; font-size: 16px; font-weight: 400; background: #fff; }
.delivery-field textarea { min-height: 64px; resize: vertical; }
.delivery-field :disabled { background: #f5f5f5; }
.delivery-address-picker { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.delivery-address-picker button { color: var(--red-dark); font-size: 14px; }
.delivery-recipient summary, .checkout-items summary { padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 650; }
.delivery-recipient[open] summary, .checkout-items[open] summary { margin-bottom: 6px; }
.remember-address { display: flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; cursor: pointer; }
.remember-address input { width: 18px; height: 18px; min-height: 0; accent-color: var(--red); }
.checkout-hold { margin: 0; padding: 10px 12px; border-left: 3px solid #a56d11; background: #fff7dd; color: #634503; font-size: 14px; }
.checkout-items { border-block: 1px solid var(--line); }
.checkout-items[open] { padding-bottom: 10px; }
.delivery-form .checkout-notice { margin: -6px 0 0; }
.order-groups { display: grid; gap: 12px; }
.order-group { border: 1px solid #e9e9e9; border-radius: 8px; overflow: hidden; }
.order-group-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; min-height: 43px; padding: 7px 10px; background: #f5f6f5; }
.order-group-heading h3 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.order-groups input[type=checkbox],.dock-select input { width: 18px; height: 18px; min-height: 0; margin: 0; flex: 0 0 auto; accent-color: var(--red-dark); }
.order-line { display: grid; grid-template-columns: 62px minmax(0,1fr); align-items: start; gap: 8px 10px; padding: 10px; }
.order-check { display: grid; place-items: center; align-self: center; width: 28px; min-height: 44px; cursor: pointer; }
.order-line:has(.order-line-actions) { grid-template-columns: 28px 62px minmax(0,1fr) auto; }
.order-line + .order-line { border-top: 1px solid #ededed; }
.order-line .order-thumbnail { width: 62px; height: 62px; object-fit: contain; background: #f5f5f5; border-radius: 5px; }
.order-line-details { display: grid; gap: 4px; align-content: start; min-width: 0; }
.order-line-name { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.order-line-price { color: var(--red-dark); line-height: 1.2; overflow-wrap: anywhere; }
.order-line-units { color: #555; font-size: 12px; }
.checkout-variant { justify-self: start; max-width: 100%; padding: 2px 6px; border-radius: 4px; background: #edf2f5; color: #2a4858; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.order-line-actions { display: flex; flex-direction: column; align-items: end; gap: 3px; min-width: 0; }
.cart-stepper { grid-template-columns: 34px 40px 34px; gap: 2px; margin: 0; }
.cart-stepper button,.cart-stepper input { min-height: 38px; padding: 0; }
.cart-stepper button { font-size: 17px; }
.order-line-actions > button { min-height: 36px; padding: 5px 4px; border: 0; color: #595959; font-size: 13px; }
.order-line-actions > button:hover { color: var(--red-dark); }
.checkout-dock { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 10px; padding-top: 12px; margin-top: 15px; border-top: 1px solid var(--line); }
.dock-select { display: flex; align-items: center; gap: 6px; margin-inline-end: auto; min-height: 44px; cursor: pointer; }
.dock-summary { display: grid; min-width: 0; line-height: 1.25; }
.dock-summary span { color: #575757; font-size: 12px; }
.dock-summary strong { overflow-wrap: anywhere; }
.checkout-dock button { min-height: 46px; }
.checkout-dock .primary { font-weight: 750; }
.place-order-status { width: 100%; margin: 0; color: var(--red-dark); font-size: 14px; }
.place-order-status:empty { display: none; }
.order-receipt { margin: 0 auto; max-width: 520px; border-top: 4px solid #28774d; }
.receipt-reference { display: inline-block; padding: 5px 9px; border-radius: 5px; background: #eaf4ed; color: #20563e; overflow-wrap: anywhere; }
.delivery-form .checkout-dock { margin: 0; border: 0; }
.payment-methods { display: grid; gap: 8px; width: 100%; max-width: 540px; min-width: 0; padding: 0; margin: 0; border: 0; }
.payment-methods legend { font-weight: 750; margin-bottom: 8px; }
.payment-option { display: grid; grid-template-columns: 20px 72px minmax(0,1fr); align-items: center; gap: 12px; min-height: 70px; padding: 10px; border: 1px solid #deddd6; border-radius: 8px; background: white; cursor: pointer; }
.payment-option input { min-height: 0; width: 17px; height: 17px; margin: 0; accent-color: #10576f; }
.payment-option:has(input:checked) { border-color: #10576f; background: #fff9e2; box-shadow: inset 0 0 0 1px #10576f; }
.payment-option:has(input[value=intouch]) { grid-template-columns: 20px minmax(0,1fr); }
.payment-option:has(input:focus-visible) { outline: 3px solid #3682d5; outline-offset: 2px; }
.payment-logo { display: grid; place-items: center; width: 72px; height: 46px; border-radius: 5px; background: #fff3c0; }
.payment-logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.payment-option:has(input[value=momo]) .payment-logo { background: #06394e; padding: 3px; }
.payment-option-name { font-weight: 700; overflow-wrap: anywhere; }
.payment-option:has(input:checked) .payment-logo img { animation: payment-logo-pop 460ms ease-out; }
@keyframes payment-logo-pop {
  0% { transform: scale(.87); }
  58% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@media(prefers-reduced-motion:reduce) {
  .payment-option:has(input:checked) .payment-logo img { animation: none; }
}
@media(max-width:900px) {
  .category-menu { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .product-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .product-purchase { grid-column: 2; border-left: 0; padding-left: 0; }
  .product-gallery { grid-row: span 2; }
}
@media(max-width:660px) {
  :root { --mobile-nav-height: 58px; }
  #view:not([data-screen=checkout]) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .store-header #bag { display: none; }
  body:has(#view[data-screen=checkout]) .store-header #bag { display: inline-flex; }
  .store-header .header-cart-label { display: none; }
  .store-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .category-directory,.catalog-bar { scroll-margin-top: 124px; }
  .mobile-nav { position: fixed; z-index: 3; inset: auto 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: 2px; width: 100%; height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); padding: 2px max(4px,env(safe-area-inset-right)) calc(2px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left)); margin: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 8px #0001; }
  .mobile-nav button { display: grid; position: relative; justify-items: center; align-content: center; gap: 2px; min-width: 0; min-height: 44px; padding: 3px 1px; border: 0; color: #3c3c3c; line-height: 1.2; font-size: 12px; }
  .mobile-nav [aria-current] { background: #fff1ee; color: var(--red-dark); font-weight: 750; }
  .mobile-cart-count { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 16px; padding: 1px 3px; border-radius: 5px; background: var(--red-dark); color: #fff; font-size: 10px; line-height: 1.3; }
  body:has(#view[data-screen=checkout]) .mobile-nav { display: none; }
  .scroll-actions { right: max(12px,env(safe-area-inset-right)); bottom: calc(var(--mobile-nav-height) + 12px + env(safe-area-inset-bottom)); }
  body:has(#view[data-screen=product]) .scroll-actions { bottom: calc(var(--mobile-nav-height) + 84px + env(safe-area-inset-bottom)); }
  body:has(#view[data-screen=product] .product-actions [role=status]:not(:empty)) .scroll-actions { bottom: calc(var(--mobile-nav-height) + 134px + env(safe-area-inset-bottom)); }
  .category-menu { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .category-directory { margin-block: 8px 12px; }
  .category-art { height: 48px; }
  .category-tile { padding: 4px; gap: 3px; }
  .category-label { font-size: 12px; min-height: 2.4em; }
  #view[data-screen=product] { padding-bottom: calc(88px + var(--mobile-nav-height) + env(safe-area-inset-bottom)); }
  .product-layout { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 12px; border-radius: 8px; }
  .product-gallery,.product-purchase { grid-area: auto; }
  .product-gallery img,.product-gallery .placeholder { max-height: 360px; border-radius: 6px; }
  .product-info h1 { font-size: 21px; line-height: 1.3; }
  .product-purchase { border-top: 1px solid var(--line); padding-top: 14px; }
  .product-actions { position: fixed; z-index: 2; inset-inline: 0; bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; padding: 10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left)); background: #fff; border-top: 1px solid #e2e2e2; box-shadow: 0 -4px 16px #00000012; }
  .product-actions [role=status] { position: absolute; bottom: calc(100% + 6px); inset-inline: 12px; }
  .product-actions [role=status]:not(:empty) { padding: 8px 12px; border-radius: 6px; background: #e8f6eb; border: 1px solid #b4d6bd; }
  .checkout-header { padding: 12px; gap: 6px 8px; }
  .checkout-title h1 { font-size: 22px; }
  .checkout-shop { font-size: 13px; padding-inline: 6px; max-width: 94px; line-height: 1.15; }
  .checkout-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: 'content' 'summary'; gap: 10px; }
  .checkout-pane,.order-summary { padding: 13px; }
  .order-amounts { margin-top: 8px; padding-top: 6px; }
  #view[data-screen=checkout]:has(.checkout-dock) { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  #view[data-screen=checkout]:has(.place-order-status:not(:empty)) { padding-bottom: calc(172px + env(safe-area-inset-bottom)); }
  #view[data-screen=checkout][data-checkout-step="0"] .order-summary { display: none; }
  #view[data-screen=checkout][data-checkout-step="0"] .checkout-layout { grid-template-areas: 'content'; }
  .checkout-dock { position: fixed; inset: auto 0 0; z-index: 2; display: grid; grid-template-columns: auto minmax(0,1fr) minmax(0,1.15fr); gap: 6px; padding: 10px max(12px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); margin: 0; background: white; box-shadow: 0 -4px 16px #00000018; }
  .checkout-submit { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); }
  .checkout-dock button { font-size: 14px; line-height: 1.15; padding-inline: 6px; }
  .checkout-dock .primary { min-height: 48px; }
  .place-order-status { grid-column: 1 / -1; max-height: 55px; overflow: auto; }
  .dock-summary { font-size: 14px; }
  .dock-select { font-size: 13px; }
  .order-line:has(.order-line-actions) { grid-template-columns: 28px 60px minmax(0,1fr); gap: 5px 7px; }
  .order-line .order-thumbnail { width: 60px; height: 60px; }
  .order-line-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .order-line-actions { grid-column: 3; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
  .cart-stepper button,.cart-stepper input { min-height: 44px; }
}
@media(max-width:520px) {
  .store-header { gap: 6px; padding: 10px 12px 12px; }
  .store-header .brand { font-size: 23px; flex: 1 1 100%; min-height: 32px; text-align: start; }
  #search-form { flex: 1; }
  #search-form .search-submit { padding-inline: 10px; }
  main { padding: 16px 12px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .store-heading { margin-bottom: 16px; }
  .store-heading h1 { font-size: 22px; }
  .store-banners { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .store-banner { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr; padding: 9px; gap: 6px; align-items: start; }
  .banner-art { grid-row: 1; max-width: 140px; }
  .banner-content { height: 100%; display: flex; flex-direction: column; align-items: start; }
  .banner-kicker { font-size: 12px; margin-bottom: 2px; }
  .store-banner h2 { font-size: 17px; min-height: 2.3em; margin-bottom: 7px; }
  .store-banner button { margin-top: auto; width: 100%; padding-inline: 5px; font-size: 13px; }
  .catalog-filters { width: 100%; }
  .catalog-filters select { flex: 1 1 130px; }
}
