.storefront {
  --menu-control: #f1f2f6;
  --menu-muted: #676767;
}

.storefront-main { width: min(100%, 1500px); margin: 27px auto 0; }
.storefront-main .demo-note { margin: 0 40px 12px; }
.menu-search-row { display: none; padding: 0 16px 16px; }
.menu-search-row[data-active] { display: block; }
.storefront .menu-search {
  position: relative;
  display: block;
  width: min(100%, 680px);
  margin: 0 auto;
}
.storefront .menu-search input {
  width: 100%;
  min-height: 44px;
  padding: 9px 48px 9px 16px;
  border: 1px solid #e1e1e1;
  border-radius: 100px;
  background: white;
  font-size: 16px;
}
.storefront .menu-search input::placeholder { color: var(--menu-muted); }
.menu-search svg, .menu-search-toggle svg, .product-share svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-search svg { position: absolute; right: 15px; top: 10px; color: #999; pointer-events: none; }
.menu-toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 63px;
  padding: 8px 20px 8px 16px;
  background: white;
}
.menu-logo { flex: none; }
.menu-logo img { width: 44px; height: 46px; }
.storefront .categories {
  position: static;
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 1px 6px;
  border: 0;
  scrollbar-width: none;
}
.storefront .categories a {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 100px;
  background: var(--menu-control);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}
.storefront .categories a[aria-current=true], .storefront .categories a:hover { background: var(--yellow); }
.menu-search-toggle { border: 0; min-width: 35px; min-height: 39px; display: grid; place-items: center; background: white; border-radius: 50%; }
.menu-cart {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 100px;
  background: var(--yellow);
  font-size: 16px;
  font-weight: 700;
}
.menu-cart svg { width: 19px; height: 19px; fill: currentColor; }
#menu-cart-price { padding-left: 8px; border-left: 1px solid currentColor; white-space: nowrap; }
.storefront #products { padding: 0 40px; }
.storefront .category-title { margin: 17px 0 18px; font-size: 23px; scroll-margin-top: 78px; }
.storefront .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px 28px; }
.product-tile { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.storefront .product-tile .card { width: 100%; border: 0; border-radius: 16px; }
.storefront .card-media { position: relative; width: 100%; aspect-ratio: 1; margin: 0; border-radius: 16px; background: #fafafa; }
.storefront .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: none; }
.storefront .card:not(:disabled):hover .card-media img { transform: none; }
.storefront .card-data { display: grid; gap: 6px; padding: 16px 0 0; }
.storefront .card-name { font-size: 18px; line-height: 1.2; font-weight: 500; letter-spacing: 0; text-transform: uppercase; }
.card-weight { color: var(--menu-muted); font-size: 14px; min-height: 18px; }
.card-quantity {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  background: #0005;
  color: white;
  font-size: 25px;
  font-weight: 650;
}
.tile-variants, .product-size {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 2px;
  border: 0;
  border-radius: 100px;
  background: var(--menu-control);
}
.tile-variants { margin-top: 11px; }
.tile-variants button, .product-size label {
  flex: 1;
  min-width: 0;
  padding: 4px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--menu-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.tile-variants button[aria-pressed=true], .product-size label:has(:checked) {
  color: var(--ink);
  background: white;
  box-shadow: 0 2px 8px #00000014;
}
.tile-order {
  display: inline-flex;
  min-height: 40px;
  margin-top: 18px;
  border-radius: 100px;
  background: var(--menu-control);
}
.tile-order[data-unavailable] { align-items: center; padding: 0 14px; }
.tile-order button { border: 0; border-radius: 100px; background: transparent; min-height: 40px; font-size: 17px; }
.tile-order button[data-tile-add] { display: inline-flex; align-items: center; gap: 11px; padding: 0 19px; }
.tile-order .tile-minus { width: 39px; }
.tile-order .tile-minus:not([hidden]) + button { padding-left: 3px; }
.tile-plus { font-size: 24px; line-height: 1; }
.in-basket .tile-order, .tile-order:not([data-unavailable]):hover { background: var(--yellow); }

.storefront .product-dialog {
  width: min(1010px, calc(100% - 110px));
  max-width: none;
  max-height: none;
  overflow: visible;
  background: transparent;
  border-radius: 21px;
}
.storefront .product-dialog::backdrop, .storefront #checkout-dialog::backdrop { background: #000c; }
.product-view {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,65fr) minmax(0,35fr);
  grid-template-rows: minmax(0,1fr) auto;
  height: min(656px, calc(100dvh - 110px));
  overflow: hidden;
  border-radius: 21px;
  background: var(--menu-control);
}
.product-scroll { display: contents; }
.storefront .product-dialog .product-photo {
  grid-area: 1 / 1 / 3 / 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0 16px 0 0;
  background: white;
}
.storefront .product-dialog .product-photo img { width: 100%; height: 100%; min-height: 0; mix-blend-mode: normal; object-fit: contain; }
.product-close { position: absolute; z-index: 2; top: -42px; right: -42px; }
.storefront .product-close { width: 40px; height: 40px; border-radius: 50%; color: white; background: #242424; font-size: 34px; }
.product-details { grid-area: 1 / 2; min-width: 0; padding: 8px 8px 0; overflow: auto; overscroll-behavior: contain; }
.product-summary, .product-section, .product-nutrition { position: relative; padding: 18px 16px; border-radius: 13px; background: white; }
.product-summary h2 { margin: 4px 42px 12px 0; font-size: 22px; letter-spacing: -.025em; text-transform: uppercase; }
.product-summary p { margin-top: 12px; color: var(--ink); font-size: 14px; line-height: 1.44; }
.product-summary p + p:not(.product-weight) { margin-top: 18px; }
.product-summary .product-weight { color: var(--menu-muted); font-weight: 650; }
.product-summary .product-weight + p { margin-top: 9px; }
.product-share {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--menu-muted);
  box-shadow: 0 5px 16px #0001;
}
.product-share svg { width: 20px; height: 20px; }
.product-share-link { width: 100%; margin-block: 6px; }
.product-size { margin-top: 12px; }
.product-size label { position: relative; display: grid; place-items: center; cursor: pointer; }
.product-size input, .extra-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  clip: auto;
  cursor: pointer;
}
.product-size label:has(:focus-visible), .extra-option:has(:focus-visible) { outline: 2px solid #a97c00; }
.product-size label:has(:disabled) { opacity: .45; cursor: not-allowed; }
.product-section { margin: 6px 0 0; padding-top: 43px; }
.product-section legend { position: absolute; top: 18px; inset-inline: 16px; margin: 0; font-size: 15px; font-weight: 750; }
.product-section legend small { font-size: 12px; color: var(--menu-muted); }
.product-extras { display: grid; gap: 8px; }
.product-extras.with-photos { grid-template-columns: repeat(3,minmax(0,1fr)); }
.extra-option {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 54px;
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 2px 13px #00000013;
  background: white;
  overflow: hidden;
  cursor: pointer;
}
.extra-option:has(:checked) { border-color: var(--yellow); }
.extra-option img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.extra-name { padding: 6px; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.extra-price { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: auto; padding: 0 6px 6px; font-size: 12px; }
.extra-mark { display: grid; place-items: center; width: 20px; min-width: 20px; height: 20px; border-radius: 50%; background: var(--menu-control); }
.extra-mark::after { content: "+"; }
.extra-option:has(:checked) .extra-mark { background: var(--yellow); }
.extra-option:has(:checked) .extra-mark::after { content: "✓"; }
.product-nutrition { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 6px; text-align: center; }
.product-nutrition div { display: grid; gap: 4px; font-size: 12px; }
.product-nutrition div span, .product-nutrition small { color: var(--menu-muted); }
.product-nutrition small { grid-column: 1/-1; }
.product-actions { grid-area: 2 / 2; padding: 20px 8px 23px; margin-left: 8px; border-radius: 20px 0 0 0; background: white; }
.storefront .product-actions .button.yellow { min-height: 44px; border-radius: 100px; font-weight: 750; }
.product-actions button > span:first-child { font-size: 22px; line-height: 1; font-weight: 400; }
.product-action-controls { display: flex; align-items: center; border-radius: 100px; background: var(--yellow); }
.product-action-controls:has(#add-item:disabled) { background: transparent; }
.product-action-controls:has(.product-minus:not([hidden])) { gap: 3px; }
.product-minus {
  flex: none;
  width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 25px;
}
.product-minus:not([hidden]) + button { justify-content: space-between; padding-inline: 17px; }
.product-minus:not([hidden]) + button > span:first-child { order: 1; }


@media (max-width: 1100px) {
  .storefront .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px 22px; }
}
@media (max-width: 760px) {
  .storefront-main { margin-top: 18px; }
  .storefront-main .demo-note { margin: 0 16px 10px; }
  .menu-search-row { display: block; padding-bottom: 16px; }
  .menu-toolbar { min-height: 54px; padding: 7px 0 7px 14px; }
  .menu-logo, .menu-search-toggle, .menu-cart { display: none; }
  .storefront .categories { gap: 12px; }
  .storefront .categories a { min-height: 36px; padding-inline: 20px; font-size: 14px; }
  .storefront #products { padding: 0 12px; }
  .storefront .category-title { margin: 19px 0 14px; font-size: 19px; scroll-margin-top: 63px; }
  .storefront .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 8px; }
  .storefront .card-data { padding: 14px 0 0; gap: 4px; }
  .storefront .card-name, .tile-order button { font-size: 14px; }
  .card-weight { min-height: 15px; font-size: 12px; }
  .tile-variants { display: none; }
  .tile-order { min-height: 36px; margin-top: 16px; }
  .tile-order button { min-height: 36px; }
  .tile-order button[data-tile-add] { gap: 8px; padding-inline: 13px; }
  .tile-plus { font-size: 21px; }
  .storefront .mobile-cart:not([hidden]) { min-height: 55px; border-radius: 100px; }
  .storefront .product-dialog { width: 100%; overflow: hidden; border-radius: 21px 21px 0 0; }
  .product-view { display: flex; flex-direction: column; height: min(90vh, 90dvh); border-radius: 21px 21px 0 0; }
  .product-scroll { display: block; flex: 1; min-height: 0; overflow: auto; }
  .storefront .product-dialog .product-photo { height: auto; aspect-ratio: 1.05; border-radius: 0; }
  .product-details { padding: 0; }
  .product-summary h2 { font-size: 21px; }
  .product-summary { position: static; }
  .product-share { position: absolute; top: 20px; right: 52px; z-index: 1; }
  .product-close { top: 20px; right: 8px; }
  .storefront .product-close { width: 36px; min-width: 36px; height: 36px; min-height: 36px; background: white; color: var(--menu-muted); font-size: 27px; box-shadow: 0 5px 16px #0001; }
  .product-actions { padding: 11px 16px max(20px,env(safe-area-inset-bottom)); margin: 0; border-radius: 17px 17px 0 0; }
}

.storefront #checkout-dialog[data-step=cart] {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(384px,100%);
  max-width: none;
  max-height: none;
  height: 100dvh;
  margin: 0;
  border-radius: 0;
  background: var(--menu-control);
}
.storefront #checkout-dialog[data-step=cart]::backdrop { background: #0008; }
.basket-view { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 0 6px; }
.basket-body { display: grid; flex: 1; min-height: 0; align-content: start; gap: 6px; padding-bottom: 6px; overflow: auto; }
.basket-section { padding: 17px 16px; border-radius: 13px; background: white; }
.basket-section h3 { margin: 0 0 9px; font-size: 16px; font-weight: 750; letter-spacing: -.015em; }
.basket-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.basket-header h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.28; }
.basket-header h2 button { padding: 0; border: 0; background: transparent; font-weight: 750; text-align: left; }
.basket-header h2 button span { font-weight: 450; }
.storefront .basket-header .close {
  display: grid;
  place-items: center;
  min-width: 33px;
  min-height: 33px;
  border-radius: 50%;
  background: white;
  font-size: 24px;
  box-shadow: 0 4px 16px #0001;
}
.basket-secondary { margin-top: 3px; color: var(--menu-muted); font-size: 12px; line-height: 1.3; }
.basket-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  border-top: 1px solid #e8e8e8;
  color: var(--ink);
  font-size: 14px;
  list-style: none;
}
.basket-address > .basket-row { margin-top: 12px; }
.basket-row svg, .basket-delete svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.basket-row small { margin-left: auto; text-align: right; color: var(--menu-muted); font-size: 11px; }
.basket-comment summary { cursor: pointer; }
.basket-comment summary::-webkit-details-marker { display: none; }
.basket-comment summary::after { content: "›"; margin-left: auto; color: #a3a3ae; font-size: 24px; }
.basket-comment[open] summary::after { transform: rotate(90deg); }
.basket-comment textarea {
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 11px;
  resize: vertical;
  font-size: 16px;
}
.basket-address { padding-bottom: 5px; }
.basket-minimum { margin: 0; }
.basket-items .cart-item-line {
  grid-template-columns: clamp(57px, 20vw, 92px) minmax(0, 1fr) auto;
  grid-template-areas: "photo item item" "photo stepper price";
  align-items: center;
  padding: 11px 0;
}
.basket-items .cart-item-line:last-child { border-bottom: 0; padding-bottom: 0; }
.basket-items .cart-item-text b { font-size: 14px; font-weight: 500; text-transform: uppercase; }
.basket-items .cart-item-text .muted { margin-top: 2px; color: var(--menu-muted); font-size: 12px; }
.basket-items .cart-item-photo { background: white; width: 100%; height: auto; margin: 0; }
.basket-items .cart-price { font-size: 13px; font-weight: 550; }
.basket-items .cart-edit { min-height: 25px; }
.cart-item-controls { grid-area: stepper; display: flex; align-items: center; gap: 3px; }
.basket-items .stepper { border-radius: 100px; background: var(--menu-control); }
.basket-items .stepper button { min-height: 36px; width: 33px; color: #8b6b00; }
.basket-items .stepper output { font-size: 13px; }
.basket-delete { display: grid; place-items: center; width: 29px; min-height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--menu-muted); }
.basket-delete svg { width: 19px; height: 19px; }
.basket-promo h3 span { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-right: 4px; border-radius: 50%; background: var(--yellow); }
.basket-promo-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding-inline: 9px;
  border: 1px solid #e2e2e2;
  border-radius: 100px;
  color: var(--menu-muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.basket-payment h3 { margin-bottom: 7px; }
.storefront .basket-view .basket-actions {
  position: static;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px 15px;
  flex: none;
  margin: 0;
  padding: 16px 16px max(17px,env(safe-area-inset-bottom));
  border: 0;
  border-radius: 13px;
  background: white;
}
.basket-subtotal { grid-column: 1 / -1; display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; font-size: 12px; }
.storefront .basket-actions .button.yellow { min-height: 44px; border-radius: 100px; }
.mobile-cart-label { display: flex; align-items: center; gap: 10px; }
.basket-icon { position: relative; display: grid; place-items: center; width: 17px; height: 16px; margin-top: 4px; border-radius: 3px; background: var(--ink); color: white; font-size: 10px; }
.basket-icon::before { position: absolute; inset: -5px 4px auto; height: 6px; border: 2px solid var(--ink); border-radius: 6px 6px 0 0; content: ""; }
@media (max-width: 760px) {
  .storefront #checkout-dialog[data-step=cart] { inset: auto 0 0; width: 100%; height: min(90vh, 90dvh); border-radius: 21px 21px 0 0; }
  .basket-view { padding-inline: 0; }
  .basket-view .basket-address { padding-top: 20px; border-radius: 21px 21px 13px 13px; }
}
@media (max-width: 355px) {
  .basket-items .cart-item-line { grid-template-columns: 55px minmax(0, 1fr) auto; }
  .basket-delete { width: 22px; }
  .basket-items .stepper button { width: 29px; }
}
