:root{font:15px/1.45 system-ui,sans-serif;color-scheme:dark;--bg:#141313;--panel:#211f1f;--field:#2b2828;--ink:#fff6e9;--muted:#c5b9aa;--accent:#ffd760;--on-accent:#252017;--line:#3d3734}
*{box-sizing:border-box}html{scroll-padding-top:80px}body{margin:0;background:var(--bg);color:var(--ink)}[hidden]{display:none!important}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:3px}button{min-height:44px;padding:.55rem .9rem;border:1px solid var(--line);border-radius:12px;background:var(--field);color:var(--ink);cursor:pointer}button:disabled{opacity:.55;cursor:default}a{color:inherit}h1,h2,h3,p{margin:0}
.wrap{width:min(1120px,100% - 44px);margin-inline:auto}.store-header{position:sticky;top:0;z-index:4;background:var(--bg);border-bottom:1px solid var(--line)}.bar,.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.bar{min-height:67px}.brand{text-decoration:none;font-size:1.3rem;font-weight:850;letter-spacing:-.035em}.brand span,.eyebrow{color:var(--accent)}.bar button strong{margin-left:.55rem;color:var(--accent)}
.hero{isolation:isolate;position:relative;display:grid;align-content:center;min-height:330px;overflow:hidden;margin-block:22px 25px;padding:32px;border:1px solid #54443a;border-radius:26px;background:#29211c}.hero #store-cover{position:absolute;inset:0 0 0 auto;width:64%;height:100%;object-fit:cover;z-index:-2}.hero::after{position:absolute;content:"";inset:0;z-index:-1;background:linear-gradient(90deg,#241d19 29%,#241d19e8 43%,transparent 76%)}.hero h1{font-size:clamp(2.4rem,6vw,5.05rem);line-height:.98;letter-spacing:-.075em;margin:.6rem 0 1.15rem}.eyebrow{font-size:.79rem;font-weight:730}.primary{display:inline-flex;align-items:center;justify-content:center;padding:.65rem .9rem;min-height:44px;background:var(--accent);color:var(--on-accent);border:0;border-radius:12px;text-decoration:none;font-weight:750}
#menu{padding-block:0 3rem}.section-head h2{font-size:1.45rem;letter-spacing:-.03em}#availability,.muted{color:var(--muted);font-size:.85rem}#categories,.manager-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 14px}nav button[aria-pressed=true]{background:var(--accent);color:var(--on-accent);border-color:transparent;font-weight:700}
.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product,.order,.product-row{min-width:0;border:1px solid var(--line);border-radius:16px;background:var(--panel);overflow:hidden}.product{display:flex;flex-direction:column}.product img,.product .photo-empty{width:100%;aspect-ratio:1.7;object-fit:cover;display:block;background:var(--field)}.product-copy{display:grid;gap:6px;padding:12px;flex:1}.product h3{font-size:1.08rem;line-height:1.2}.product p{color:var(--muted);font-size:.85rem}.buy{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:auto}.buy strong{font-size:1.05rem}.buy button{min-width:44px;padding:.35rem .62rem}.buy button:not(:disabled){color:var(--accent)}
dialog{width:min(440px,100% - 24px);max-height:90dvh;overflow:auto;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:16px}dialog::backdrop{background:#08060bc7}dialog form{display:grid;gap:8px}.section-head+form,.cart-summary{margin-block:10px}label:not(.checkbox){display:grid;gap:4px}input:not([type=checkbox]),select,textarea{width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--field);color:var(--ink);padding:7px}.cart-row,.cart-summary{display:flex;gap:8px;justify-content:space-between;align-items:center;padding-block:5px}.cart-row button{min-width:44px}.cart-row .quantity{white-space:nowrap}
.manager{--bg:#141222;--panel:#201c32;--field:#302642;--line:#46385f;--ink:#f5ebff;--muted:#c5b5d7;--accent:#dcc0ff;--on-accent:#251636}.manager main{padding-block:25px 40px}.manager-head h1{font-size:clamp(1.8rem,5vw,3rem);letter-spacing:-.055em}.manager-tabs{margin-block:20px}.order-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.order,.product-row{padding:13px;display:grid;gap:7px;overflow-wrap:anywhere}.order .section-head{align-items:start}.badge{font-size:.77rem;background:var(--field);padding:.2rem .42rem;border-radius:6px;color:var(--accent);white-space:nowrap}.order ul{margin:0;padding-inline-start:1.15rem}.order .actions{display:flex;gap:6px;flex-wrap:wrap}.order .actions button{padding-inline:.55rem}.product-row{margin-top:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center}#status:not(:empty),#cart-status:not(:empty),#product-status:not(:empty){margin-block:.6rem;color:var(--accent)}
@media(max-width:700px){.wrap{width:calc(100% - 24px)}.bar{min-height:58px}.hero{min-height:220px;margin-top:12px;padding:14px;border-radius:18px}.hero #store-cover{width:76%}.hero::after{background:linear-gradient(90deg,#241d19 13%,#241d19df 38%,transparent 90%)}.hero h1{margin:.35rem 0 .7rem}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-copy{padding:8px;gap:5px}.product p{font-size:.78rem}.order-grid{grid-template-columns:1fr}.manager-head{align-items:flex-start}.order .actions{justify-content:flex-start}}
.delivery-settings{display:grid;gap:10px;max-width:360px;margin-top:12px}.delivery-settings button{justify-self:start}

.shop-admin-brand,.store-settings{display:flex;align-items:center;gap:10px}
.shop-admin-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:22px;min-height:calc(100dvh - 68px)}
.shop-admin-nav{position:sticky;top:68px;align-self:start;padding-top:19px}
.shop-admin-nav .manager-tabs{display:grid;margin:0}
.shop-admin-nav button{text-align:left}
.shop-admin-menu{display:none}
.shop-admin-main{min-width:0}
.shop-admin-main .manager-head{margin-bottom:18px}
.order-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.order-overview div,.store-settings{padding:10px 12px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.order-overview dt{font-size:.82rem;color:var(--muted)}
.order-overview dd{margin:0;font-size:1.45rem;color:var(--accent);font-weight:750}
.order-filter{max-width:13rem}
.shop-admin-main .order-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.store-settings{margin-top:12px;justify-content:space-between;flex-wrap:wrap}
.manager-login{display:grid;place-items:center;min-height:100dvh;padding:14px}
.manager .shop-login-card{display:grid;gap:10px;width:min(100%,365px);padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:18px}
.shop-login-card form{display:grid;gap:8px}
.shop-login-card h1{font-size:1.45rem}
@media(max-width:700px){
  .shop-admin-layout{display:block}
  .shop-admin-nav{display:none;position:sticky;z-index:3;top:59px;padding:8px 0;background:var(--bg)}
  .shop-admin-nav[data-open=true]{display:block}
  .shop-admin-nav .manager-tabs{grid-template-columns:1fr 1fr}
  .shop-admin-menu{display:inline-flex;gap:5px;align-items:center;padding-inline:.48rem}
  .shop-admin-brand{gap:5px}
  .shop-admin-brand img,.shop-admin-menu span{display:none}
  .shop-admin-main .order-grid{grid-template-columns:1fr}
  .shop-admin-main .manager-head{flex-wrap:wrap}
}

.product .product-photo-button{padding:0;border:0;border-radius:0;display:block;width:100%;overflow:hidden}
.product .product-name-button{padding:0;border:0;background:none;text-align:left;min-height:30px;font-size:1.08rem;font-weight:730;line-height:1.25}

html:has(.storefront dialog[open]) { overflow: hidden; }
.storefront dialog { overscroll-behavior-y: contain; }

#dish-dialog{position:relative;width:min(520px,100% - 24px);padding:0}
#dish-photo img{width:100%;height:auto;max-height:255px;object-fit:cover;display:block}
#close-dish{position:absolute;top:8px;right:8px;min-width:44px;background:#141313e8;color:#fff}
#dish-form{padding:14px;gap:8px}
.edit-modifiers,.edit-modifier-group{min-width:0;border:1px solid var(--line);border-radius:10px;padding:9px;margin:0 0 6px}
.dish-options-group { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.dish-options-group legend { padding: 0; font-weight: 700; }
.dish-options-group > p { margin: 3px 0 8px; }
.dish-option-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.dish-option-tiles .dish-option {
  position: relative;
  align-content: center;
  gap: 2px;
  min-height: 70px;
  padding: 8px 28px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  cursor: pointer;
}
.dish-option-tiles .dish-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
}

.dish-option:has(input:checked) { border-color: var(--accent); }
.dish-option:has(input:checked) { background: color-mix(in srgb, var(--accent) 14%, var(--field)); }
.dish-option:has(input:checked)::after {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-end: 9px;
  color: var(--accent);
  content: "✓" / "";
}
.dish-option-name { overflow-wrap: anywhere; font-weight: 650; }
.dish-option-price { color: var(--muted); font-size: .82rem; }
.dish-option:has(input:checked) .dish-option-price { color: var(--accent); }
.dish-actions,.dish-quantity{display:flex;align-items:center;gap:6px}
.dish-actions{position:sticky;bottom:0;background:var(--panel);padding:6px 0 2px;justify-content:space-between}
.dish-quantity button{min-width:44px;padding:0}
#dish-status:empty{display:none}
#dish-status{color:var(--accent);font-size:.85rem}
.edit-modifier-group,.edit-modifier-options,.edit-modifier-row{display:grid;gap:6px}
.modifier-bounds,.edit-modifier-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.edit-modifier-row button{justify-self:start}
@media(max-width:600px){
  #dish-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:92dvh;border-radius:18px 18px 0 0}
  #dish-form{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}

.hero h1{max-width:16ch;overflow-wrap:anywhere}
#dish-photo img{height:min(255px,45vw);object-fit:contain;background:#191410}
.photo-thumbnails{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
#dish-thumbnails{padding-inline:14px}
.photo-thumbnails button{width:60px;height:60px;padding:2px;border-radius:10px}
.photo-thumbnails button[aria-pressed="true"]{border-color:var(--accent)}
.photo-thumbnails img{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px}
.modifier-buttons{display:flex;flex-wrap:wrap;gap:8px}

.shop-logo { display: block; width: 76px; height: 76px; object-fit: contain; border-radius: 14px; }
.hero img.shop-logo { position: static; width: 76px; height: 76px; object-fit: contain; }
#storefront-details-form { max-width: 460px; margin-block: 18px; }
#storefront-details-form button { justify-self: start; }
.shop-details { display: flex; flex-wrap: wrap; gap: 20px 38px; padding-block: 18px; border-top: 1px solid var(--line); }
.shop-details > div { display: grid; align-content: start; gap: 5px; overflow-wrap: anywhere; }
.shop-details h2 { font-size: 1.1rem; }

#categories {
  --category-header-gap: 3px;
  position: sticky;
  top: calc(var(--store-header-height, 64px) + var(--category-header-gap));
  z-index: 3;
  background: var(--bg);
  box-shadow: 0 calc(-1 * var(--category-header-gap)) 0 var(--bg);
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 9px;
}
#categories button { flex: 0 0 auto; white-space: nowrap; }
.product-description-button {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .85rem;
  text-align: start;
}
.product-description-button span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
#dish-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.shop-photo-enlarge {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: zoom-in;
}
.shop-photo-count {
  position: absolute;
  inset-inline-end: .6rem;
  inset-block-end: .6rem;
  padding: .2rem .45rem;
  border-radius: .4rem;
  background: #120e1ee0;
  color: white;
  font-size: .85rem;
}
.shop-lightbox {
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 56px 12px;
  border: 0;
  border-radius: 0;
  background: #100d17f7;
  color: #fff;
  overflow: hidden;
}
.shop-lightbox[open] { display: grid; place-content: center; justify-items: center; gap: 10px; }
.shop-lightbox img {
  max-width: min(90vw, 1200px);
  max-height: calc(100dvh - 155px);
  object-fit: contain;
}
.shop-lightbox-nav, .shop-lightbox-close {
  position: absolute;
  z-index: 1;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-color: #ffffff45;
  border-radius: 50%;
  background: #1d172ad9;
  color: white;
  font-size: 1.5rem;
}
.shop-lightbox-close { inset-block-start: 12px; inset-inline-end: 12px; }
.shop-lightbox-nav { top: calc(50% - 22px); }
.shop-lightbox-prev { inset-inline-start: 8px; }
.shop-lightbox-next { inset-inline-end: 8px; }
.shop-lightbox-dots { display: flex; gap: 2px; }
.shop-lightbox-dots button {
  display: grid;
  place-content: center;
  width: 38px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
}
.shop-lightbox-dots button::after {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff6;
}
.shop-lightbox-dots button[aria-pressed="true"]::after { background: var(--accent); }
.shop-lightbox-count { font-variant-numeric: tabular-nums; }
.edit-photo-gallery {
  min-width: 0;
  margin: 0;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}
.edit-photo-gallery legend { padding-inline: .35rem; font-weight: 650; }
.edit-photo-count {
  display: block;
  margin-bottom: .5rem;
  text-align: right;
  color: var(--muted);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.edit-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  max-width: 30rem;
}
.edit-photo-grid > * {
  min-width: 0;
  min-height: 4.5rem;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: .8rem;
}

.edit-photo-gallery .edit-photo-add {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .15rem;
  padding: .35rem;
  border: 1px dashed #9277b6;
  background: #28203a;
  color: var(--accent);
}

.edit-photo-plus { font-size: 1.45rem; line-height: 1; }
.edit-photo-tile { position: relative; overflow: hidden; background: var(--field); }
.edit-photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.edit-photo-tile .edit-photo-remove {
  position: absolute;
  inset-block-start: .18rem;
  inset-inline-end: .18rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  background: #171023e8;
  color: #fff;
  font-size: 1.1rem;
}

.edit-photo-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  gap: .75rem;
}
.edit-photo-cover, .edit-photo-extra { display: grid; align-content: start; min-width: 0; gap: .45rem; }
#product-photo-cover > :is(.edit-photo-add, .edit-photo-tile) { min-height: 7rem; aspect-ratio: 4 / 3; border-radius: .85rem; }
.edit-photo-cover .edit-photo-tile img { position: absolute; inset: 0; }
.edit-photo-extra { padding: .65rem; border-radius: .85rem; background: var(--field); }
.edit-photo-extra .edit-photo-add { display: inline-flex; gap: .35rem; justify-self: start; padding-inline: .55rem; border-style: solid; }
.edit-photo-extra .edit-photo-grid:empty { display: none; }
.edit-photo-extra .edit-photo-grid > * { min-height: 0; }
@media (max-width: 520px) {
  .edit-photo-extra .edit-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#product-pick-cover { width: 100%; }
@media (max-width: 380px) {
  .edit-photo-layout { grid-template-columns: minmax(0, 1fr); }
}

.store-loading {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px;
  background: radial-gradient(ellipse at center, var(--shop-tint, #211630), var(--shop-ground, #100d19) 70%);
  color: #e7d8f8;
  text-align: center;
}
.store-loading-art {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(150px, 40vw, 220px);
  aspect-ratio: 1;
}
.store-loading-art img {
  position: relative;
  z-index: 1;
  width: 47%;
  height: auto;
  filter: drop-shadow(0 0 15px #b980fa5c);
}
.store-loading-orbit {
  position: absolute;
  width: 97%;
  height: 48%;
  border: 1px solid color-mix(in srgb, var(--shop-accent, #dec3ff) 48%, transparent);
  border-radius: 50%;
  transform: rotate(-30deg);
}
.store-loading-orbit::after {
  position: absolute;
  inset: 0 auto auto 0;
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--shop-accent, #dec3ff) 78%, white);
  box-shadow: 0 0 12px 3px var(--shop-accent, #ba8df4);
  content: "";
  offset-path: ellipse(50% 50% at 50% 50%);
  animation: store-loading-trace 2.4s linear infinite;
}
.store-loading-orbit-secondary {
  border-color: color-mix(in srgb, var(--shop-accent, #dec3ff) 28%, transparent);
  transform: rotate(30deg);
}
.store-loading-orbit-secondary::after {
  inset: auto 11% 14% auto;
  width: 4px;
  background: var(--shop-accent, #a6bcff);
  box-shadow: none;
  offset-path: none;
  animation: none;
}
@keyframes store-loading-trace {
  to { offset-distance: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .store-loading-orbit::after { animation: none; }
}

#checkout { width: min(570px, 100% - 24px); padding: 16px; }
.checkout-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.checkout-heading { display: flex; align-items: center; gap: 9px; }
.checkout-heading h2 { font-size: 1.25rem; }
#checkout svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.22em; }
.checkout-heading svg { box-sizing: content-box; padding: 8px; border-radius: 10px; background: var(--field); }
#close-cart { width: 44px; padding: 0; font-size: 1.35rem; }
#cart-items { display: grid; gap: 7px; margin-bottom: 13px; }
#checkout .cart-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 5px 9px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.cart-thumbnail { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 8px; background: var(--panel); color: var(--accent); font-size: 1.35rem; }
.cart-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-copy { align-self: start; grid-column: 2/-1; overflow-wrap: anywhere; }
.cart-item-copy p { margin-top: 2px; }
.cart-line-price { justify-self: end; white-space: nowrap; }
.cart-quantity { display: flex; align-items: center; justify-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
#checkout .cart-quantity button { border: 0; min-width: 36px; min-height: 36px; padding: 0; background: transparent; }
.cart-quantity .quantity { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-empty { padding: 14px; background: var(--field); border-radius: 10px; color: var(--muted); }
#order-form { gap: 12px; }
.checkout-section { display: grid; min-width: 0; gap: 8px; margin: 0; padding: 9px; border: 1px solid var(--line); border-radius: 12px; }
.checkout-section legend { padding-inline: 5px; font-weight: 650; }
.checkout-section legend svg { margin-inline-end: 4px; }
.checkout-fulfillment, .checkout-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.checkout-fulfillment label { position: relative; min-width: 0; cursor: pointer; }
.checkout-fulfillment label input { position: absolute; width: 1px; min-height: 0; padding: 0; opacity: 0; }
.checkout-fulfillment label span { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); }
.checkout-fulfillment input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--field) 86%, var(--accent)); }
.checkout-fulfillment input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.checkout-footer { display: grid; gap: 8px; padding: 10px; background: var(--field); border: 1px solid var(--line); border-radius: 12px; }
.checkout-footer .cart-summary { margin: 0; padding: 0; }
#checkout-total { color: var(--accent); font-size: 1.15rem; }
#checkout #cart-status:empty { display: none; }
@media (max-width: 600px) {
  #checkout { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; max-height: 92dvh; padding: 12px 12px max(12px, env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  #checkout :is(input:not([type="radio"]), textarea) { font-size: 16px; }
  #checkout .cart-quantity button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 355px) {
  .checkout-contact-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Keep native scrolling while hiding the scrollbar chrome. */
:root, * { scrollbar-width: none !important; }
*::-webkit-scrollbar { display: none !important; }

.shop-inline-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}
.shop-inline-loader .store-loading-art { width: 52px; }
#manager-loading .shop-inline-loader { flex-direction: column; }
#manager-loading .store-loading-art { width: clamp(150px, 40vw, 220px); }
/* Keep the catalog controls in the same slot while a batch is loading. */
.shop-catalog-more {
  --catalog-loader-size: clamp(78px, 22vw, 104px);
  display: grid;
  place-items: center;
  min-inline-size: 0;
  min-block-size: calc(var(--catalog-loader-size) + 48px);
  padding: 8px 12px;
  text-align: center;
}
#catalog-progress, #catalog-more-button { grid-area: 1 / 1; min-inline-size: 0; }
#catalog-progress { max-inline-size: 100%; overflow-wrap: anywhere; }
#catalog-progress .shop-inline-loader { flex-direction: column; gap: 4px; }
#catalog-progress .store-loading-art { width: var(--catalog-loader-size); max-width: 100%; }
.shop-catalog-more:has(.shop-inline-loader) #catalog-more-button { visibility: hidden; }
.shop-catalog-more:not(:has(.shop-inline-loader)) #catalog-progress:not(:empty) { grid-area: 1 / 1; align-self: start; }
.shop-catalog-more:not(:has(.shop-inline-loader)):has(#catalog-progress:not(:empty)) #catalog-more-button { align-self: end; }
#catalog-progress:empty, #product-page-progress:empty, #product-save-progress:empty { display: none; }
.shop-product-search { max-width: 420px; margin: 12px 0; }
#product-list[aria-busy="true"] { opacity: .55; }
.shop-product-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#product-page-info { color: var(--muted); font-variant-numeric: tabular-nums; }
#product-save-progress .store-loading-art { width: 38px; }

:where(a, button, summary, [role="button"], [role="tab"], input[type="button"], input[type="submit"], input[type="reset"]) {
  -webkit-tap-highlight-color: transparent;
}
:where(a, button, summary, [role="button"], [role="tab"], input[type="button"], input[type="submit"], input[type="reset"]):focus:not(:focus-visible) {
  outline: none;
}
.dish-option:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.catalog-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  max-width: 36rem;
  margin: 0 0 .85rem;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--field);
  color: var(--accent);
}
.catalog-search input {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: .6rem .4rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}
.catalog-search input::-webkit-search-cancel-button { appearance: none; }
.catalog-search button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
}
.product-sku { margin: .15rem 0 .65rem; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.product-sku:empty { display: none; }

.cookie-notice {
  position: fixed;
  z-index: 30;
  inset: auto 1rem calc(1rem + env(safe-area-inset-bottom, 0px)) auto;
  width: min(100% - 2rem, 34rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  box-sizing: border-box;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 10px 28px #0006;
}
.cookie-notice-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: .65rem;
  background: var(--field);
  color: var(--accent);
}
.cookie-notice svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.cookie-notice strong { font-size: .9rem; }
.cookie-notice p { margin: .15rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.cookie-notice button {
  min-height: 44px;
  padding: .5rem .8rem;
  border: 0;
  border-radius: .6rem;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 450px) {
  .cookie-notice { grid-template-columns: auto minmax(0, 1fr); }
  .cookie-notice button { grid-column: 2; justify-self: end; }
}


/* Keep fields visually steady while editing. */
:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="button"], [type="submit"], [type="reset"]), textarea, select):focus {
  outline: none;
}

:where(.storefront a:any-link) { color: inherit; text-decoration: none; }

.shop-order-push { margin-block: .5rem 1rem; }
.shop-order-push button { min-height: 44px; }
.shop-order-push p { margin: .4rem 0 0; color: var(--muted); }
.shop-order-push p:empty { display: none; }
