body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.header { position: static; }
.storefront-header, .page-header, .footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.storefront-header { min-height: 80px; padding-block: 10px; }
.brand { min-width: 0; }
.brand img { width: 174px; height: 48px; border-radius: 0; background: transparent; }
.back-link:hover { color: var(--orange); }
.page-header .profile-toggle { border-radius: 12px; font-size: 14px; white-space: nowrap; }
.page-menu, .page-product {
  --brand-accent: #fc4601;
  --brand-surface: #f5f6f2;
  --brand-action: #174d35;
  --brand-action-hover: #0c3925;
  --brand-badge: #bd3205;
  --catalog-line: #e7ebe6;
}
[data-shop-theme=winter] :is(.page-menu,.page-product) {
  --brand-accent: #ad3e26;
  --brand-surface: #edf6f3;
  --brand-action: #166052;
  --brand-action-hover: #10463e;
  --brand-badge: #99331e;
  --catalog-line: #dae8e5;
}
.winter-banner-label { display: none; }
[data-shop-theme=winter] .store-banner:has(.winter-banner-label) { position: relative; }
[data-shop-theme=winter] .winter-banner-label {
  display: block; position: absolute; bottom: 10px; left: 10px;
  padding: 5px 9px; border-radius: 8px;
  background: #e7f4f1; color: #10463e; font-size: clamp(.69rem,1.3vw,.9rem); font-weight: 900;
}
.page-menu > .header, .page-product > .header { position: sticky; top: 0; z-index: 4; }
.page-menu > .header, .page-product > .header { border-bottom-color: var(--catalog-line); }
.storefront-header .header-actions { gap: 12px; }
.header-location {
  display: grid;
  gap: 2px;
  padding: 5px 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
}
.header-location span { font-size: 12px; color: var(--muted); }
.header-schedule { margin-inline-start: auto; }
.header-schedule span { font-variant-numeric: tabular-nums; }
.header-location:hover strong, .header-location:hover span { color: var(--brand-action); }
.storefront-header .profile-icon-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--brand-action);
  background: transparent;
  border: 1px solid var(--catalog-line);
}
.storefront-header .profile-icon-link:hover { background: var(--brand-surface); }
.person-icon { position: relative; width: 21px; height: 21px; display: block; }
.person-icon::before, .person-icon::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: 1.7px solid currentColor; }
.person-icon::before { top: 1px; width: 8px; height: 8px; border-radius: 50%; }
.person-icon::after { bottom: 0; width: 17px; height: 9px; border-radius: 9px 9px 3px 3px; }
.header-bonuses {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px;
  padding: 0 13px; border-radius: 12px; background: #fff4d9; color: #533515;
  font-size: 14px; font-weight: 850; white-space: nowrap;
}
.header-bonuses:hover { background: #ffe9b5; }
.bonus-star {
  display: inline-block; width: 20px; height: 20px; flex: none;
  clip-path: polygon(50% 1%,65% 32%,99% 37%,75% 62%,81% 96%,50% 80%,19% 96%,25% 62%,1% 37%,35% 32%);
  background: linear-gradient(145deg,#ffe484 15%,#f8c03b 56%,#eca006);
}
.floating-cart {
  display: grid; place-items: center; position: fixed; z-index: 7;
  right: max(17px, env(safe-area-inset-right)); bottom: calc(17px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border: 1px solid #24704c; border-radius: 18px;
  background: #174d35; color: white; box-shadow: 0 7px 18px #153f2b44;
  transition: background .18s, box-shadow .18s;
}
.floating-cart:hover { background: #0e3c28; box-shadow: 0 9px 23px #153f2b55; }
.floating-cart:focus-visible { outline: 3px solid #eea914; outline-offset: 3px; }
body:has(.floating-cart) .footer-inner { padding-inline-end: 65px; }
.cart-count {
  position: absolute;
  inset: -5px -5px auto auto;
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 21px;
  padding-inline: 4px;
  border: 2px solid white;
  border-radius: 99px;
  color: #fff;
  background: #bd3205;
  font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums;
}
.delivery-bag { display: block; position: relative; width: 26px; height: 34px; }
.delivery-bag::before {
  content: ''; position: absolute; top: 0; left: 7px; width: 12px; height: 12px;
  border: 2px solid #f0ca8a; border-bottom: 0; border-radius: 7px 7px 0 0;
}
.delivery-bag > span {
  position: absolute; inset: 9px 0 1px; border-radius: 3px 3px 5px 5px;
  clip-path: polygon(8% 0,92% 0,100% 100%,0 100%);
  background: linear-gradient(90deg,#c9904e 0 19%,#ffdc9e 20% 100%);
}
.delivery-bag > span::after {
  content: ''; position: absolute; top: 7px; left: 11px; width: 8px; height: 5px;
  border: solid #174d35; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}

.catalog-toolbar { display: flex; align-items: center; gap: 6px; min-height: 51px; }
.catalog-toolbar .category-bar {
  --fade-start: 0px;
  --fade-end: 0px;
  flex: 1;
  min-width: 0;
  gap: clamp(8px, 1.55vw, 22px);
  margin: 0;
  padding: 0 4px;
  overflow: auto hidden;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
}
.catalog-toolbar .category-bar::-webkit-scrollbar { display: none; }
.category-bar[data-fade-start=true] { --fade-start: 16px; }
.category-bar[data-fade-end=true] { --fade-end: 24px; }
.catalog-toolbar .category-button {
  min-height: 47px;
  padding: 8px 3px 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #36423a;
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
  white-space: nowrap;
}
.catalog-toolbar .category-button:focus-visible { outline-offset: -4px; }
.catalog-toolbar .category-button:hover { color: var(--brand-action); background: var(--brand-surface); }
.catalog-toolbar .category-button[aria-pressed=true] { color: var(--brand-action); border-bottom-color: var(--brand-accent); }
.category-arrows { display: flex; align-items: center; gap: 4px; }
.category-arrow, .category-arrows button { display: grid; place-items: center; border: 1px solid var(--catalog-line); background: #fff; color: var(--brand-action); }
.category-arrow, .category-arrows button { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; }
:is(.category-arrow, .category-arrows button):hover { background: var(--brand-surface); }
:is(.category-arrow, .category-arrows button)[aria-disabled=true]:not(:focus) { visibility: hidden; }
:is(.category-arrow, .category-arrows button)[aria-disabled=true] { opacity: .55; cursor: default; }
:is(.category-arrow, .category-arrows button) span { width: 7px; height: 7px; border: solid currentColor; border-width: 1.7px 1.7px 0 0; transform: translateX(-1px) rotate(45deg); }
#categories-prev span { transform: translateX(1px) rotate(-135deg); }

.catalog-page { min-width: 0; }
.store-banners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(16px, 2.4vw, 30px);
}
.store-banner {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  color: var(--ink);
  background: #f7f4ee;
}
.store-banner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.catalog-page .menu { padding-top: clamp(22px, 2.6vw, 35px); scroll-margin-top: 142px; }
.catalog-page h1, .separate-page h1 { font-size: clamp(30px, 4vw, 51px); margin: 0; line-height: 1.08; letter-spacing: -.052em; font-weight: 850; }
.catalog-page .category-title { font-size: clamp(21px, 2.35vw, 30px); letter-spacing: -.035em; margin-bottom: 15px; }
.catalog-page .product-grid { gap: clamp(14px, 1.7vw, 23px); }
.catalog-page .product { border-color: transparent; background: #fff; border-radius: 15px; }
.catalog-page .product:hover { border-color: var(--catalog-line); box-shadow: none; }
.catalog-page .product-image { border-radius: 14px; }
.catalog-page .product-image.pizza-image, .dish-layout .product-image.pizza-image {
  aspect-ratio: 1;
  object-fit: contain;
  background: #f7f4ef;
}
.catalog-page .product-body { padding: 13px 10px 12px; }
.catalog-page .product h3 { margin: 0 0 7px; font-size: clamp(16px, 1.55vw, 20px); line-height: 1.2; letter-spacing: -.025em; }
.catalog-page .product .add { background: #fff1e8; color: #9d2b05; border-radius: 10px; }
.catalog-page .product .add:hover:not(:disabled) { background: #ffe1cf; }
.catalog-page .product .add-plus, .dish-actions .add-plus {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 27px;
  font-weight: 750;
  line-height: 1;
}
.product-quantity { position: relative; z-index: 1; display: flex; align-items: center; flex: none; gap: 3px; }
.product-quantity-minus {
  width: 44px; height: 44px; border: 0; border-radius: 10px; padding: 0;
  background: #fff1e8; color: #9d2b05; font-size: 24px; font-weight: 750; line-height: 1;
}
.product-quantity-minus:hover { background: #ffe1cf; }
.product-quantity-value { min-width: 2ch; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.product-quantity [hidden] { display: none; }
.cart-flight {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-badge);
  color: #fff;
  box-shadow: 0 4px 14px rgba(28, 41, 32, .22);
  font-weight: 800;
  pointer-events: none;
}
.cart-flight img { width: 100%; height: 100%; object-fit: cover; }
.catalog-page .notice { background: var(--brand-surface); border-color: var(--catalog-line); color: var(--muted); }
.empty-panel { margin: 0; padding: 32px 24px; border-radius: 18px; border: 1px solid var(--line); color: var(--muted); background: #f8faf7; }
.page-header { min-height: 84px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.page-header > :last-child { justify-self: end; }
.back-link { width: fit-content; color: var(--green); font-size: 14px; font-weight: 750; }
.separate-page { padding-block: clamp(25px, 4vw, 52px) 60px; }
.centered-page { display: grid; align-content: start; justify-items: center; }
.page-panel { border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 14px 35px #1734240e; }
.account-panel { width: min(100%, 540px); padding: clamp(20px, 4vw, 36px); }
.account-panel h1 { margin-bottom: 24px; }
.account-panel .text-button { display: inline-block; }
.document-panel { width: min(100%, 850px); padding: clamp(20px, 5vw, 54px); overflow-wrap: anywhere; }
.document-panel h1 { margin: 0 0 24px; font-size: clamp(26px, 4.5vw, 44px); line-height: 1.12; }
.document-panel h2 { margin: 28px 0 12px; font-size: clamp(19px, 3vw, 24px); color: var(--green); line-height: 1.25; }
.document-panel p, .document-panel ul { margin: 0 0 12px; line-height: 1.65; }
.document-panel ul { padding-inline-start: 22px; }
.document-panel a { color: var(--green); text-decoration: underline; text-underline-offset: .16em; }
.separate-page form { display: grid; gap: 14px; margin-top: 17px; }
.separate-page form label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
.separate-page form input:not([type=radio], [type=checkbox], [type=hidden]), .separate-page select, .separate-page textarea {
  width: 100%; border: 1px solid #d7e2d8; border-radius: 11px; padding: 10px 12px; color: var(--ink); background: white;
}
.separate-page fieldset { padding: 0; margin: 0; border: 0; }
.separate-page legend { margin-bottom: 7px; font-size: 14px; font-weight: 650; }
.separate-page form .consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .6fr); gap: 18px; align-items: start; margin-top: 22px; }
.cart-layout:has(.cart-checkout[hidden]) { grid-template-columns: 1fr; }
.cart-items-panel, .cart-checkout { padding: clamp(14px, 3vw, 25px); }
.cart-items-panel .cart-line { grid-template-columns: 82px minmax(0,1fr) auto auto; }
.cart-line img, .cart-line .product-image.empty { border-radius: 11px; font-size: 11px; }
.cart-line a { font-weight: 700; overflow-wrap: anywhere; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-block: 5px; }
.catalog-tags span { padding: 2px 7px; border-radius: 99px; background: var(--peach); color: var(--deep-green); font-size: .78rem; font-weight: 850; }
.dish-additions { display: grid; gap: 8px; margin: 0 0 16px; }
.dish-additions fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.dish-additions legend { font-weight: 850; }
.dish-additions label { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.dish-additions input { width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.cart-automatic span { color: var(--green); font-size: .76rem; max-width: 11ch; }
.cart-recommendations { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.cart-recommendations h2 { width: 100%; font-size: 1rem; margin: 0; }
.published-paragraph { white-space: pre-wrap; overflow-wrap: anywhere; }
.store-site-offer { margin-block: 14px; padding: 16px; border-radius: 12px; background: var(--mint); }
.store-site-offer h2 { margin: 0 0 8px; }
.store-page-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.store-popup { border: 1px solid var(--line); border-radius: 16px; max-width: min(420px, calc(100% - 28px)); padding: 20px; color: var(--ink); }
.store-popup::backdrop { background: #14251e88; }
.store-popup .button + .button { margin-inline-start: 8px; }
#guest-review-choices { display: flex; flex-wrap: wrap; gap: 6px 15px; }
#guest-review-choices label { display: flex; align-items: center; gap: 6px; }
#cart-promo { display: grid; gap: 7px; }
#cart-promo .button { justify-self: start; }
.cart-checkout h2 { margin: 0; font-size: 25px; letter-spacing: -.045em; }
#cash-change { display: grid; gap: 10px; }
.cart-bonus { min-width: 0; }
.bonus-range-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bonus-range-heading output { color: var(--green); font-weight: 800; white-space: nowrap; }
.separate-page form .cart-bonus input[type=range] {
  height: 34px; margin: 3px 0 0; padding: 0; border: 0; background: transparent; accent-color: var(--green);
}
#cart-bonus-status { margin: 0; color: var(--muted); font-size: 13px; }
.cart-summary { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; margin: 0; color: var(--muted); }
.cart-summary dd { margin: 0; text-align: right; }
.cart-summary > :nth-last-child(-n+2) { border-top: 1px solid var(--line); padding-top: 9px; font-weight: 800; color: var(--ink); }
.page-cart .checkout-button { width: 100%; }
.dish-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 66px); margin-top: 25px; align-items: start; }
.dish-layout .product-image { border-radius: 24px; aspect-ratio: 1.1; }
.dish-layout .product-image.pizza-image { width: min(100%, 64svh, 620px); margin-inline: auto; }
.dish-content h1 { margin: 7px 0 13px; }
#dish-description { margin: 0 0 22px; color: var(--muted); line-height: 1.55; }
.product-portion { display: inline-block; color: var(--muted); font-size: 13px; font-weight: 650; }
.dish-nutrition { margin: 0 0 22px; }
.dish-nutrition h2 { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.dish-nutrition dl { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.dish-nutrition dl div { display: grid; gap: 2px; padding: 6px 9px; background: var(--brand-surface); border-radius: 9px; font-size: 12px; }
.dish-nutrition dt { color: var(--muted); }
.dish-nutrition dd { margin: 0; font-weight: 800; }
.dish-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.dish-actions strong { font-size: 27px; white-space: nowrap; }
.dish-actions .button { width: auto; }
.dish-actions .add-plus { width: 44px; border-radius: 12px; }
.footer { display: block; padding: 20px 0; margin-top: auto; border-top: 1px solid var(--line); background: #f8faf7; }
.footer-inner { flex-wrap: wrap; }
.footer .brand { flex: none; }
.footer .brand img { width: 119px; height: 34px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-inner > span { white-space: nowrap; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-items-panel .cart-line { grid-template-columns: 70px minmax(0,1fr) auto auto; }
}
@media (max-width: 710px) {
  .storefront-header .header-location { display: none; }
  .storefront-header:has(.header-schedule) { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .storefront-header .header-schedule { display: flex; grid-area: 2 / 1 / auto / -1; margin: 0; padding: 0 0 3px; text-align: left; }
  .header-schedule strong { display: none; }
  .storefront-header .brand img { width: 144px; height: 41px; }
  .store-banners {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(87%, 420px);
    overflow-x: auto;
    padding-inline: 2px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    gap: 10px;
    scrollbar-width: none;
  }
  .store-banners::-webkit-scrollbar { display: none; }
  .store-banner { scroll-snap-align: start; }
}
@media (hover: none) and (pointer: coarse) {
  .category-arrow, .category-arrows { display: none; }
}
@media (max-width: 560px) {
  .storefront-header { min-height: 66px; gap: 8px; }
  .storefront-header .header-actions { gap: 8px; }
  .brand img { width: 125px; height: 36px; }
  .storefront-header .brand img { width: 125px; height: 36px; }
  .page-header { min-height: 66px; gap: 5px; }
  .page-header .profile-toggle { font-size: 12px; text-align: center; white-space: normal; padding: 7px; }
  .page-header .back-link { font-size: 12px; }
  .header-bonuses { padding-inline: 9px; gap: 5px; font-size: 13px; }
  .catalog-toolbar { min-height: 44px; }
  .catalog-toolbar .category-button { min-height: 44px; font-size: 12px; }
  .catalog-page .menu { scroll-margin-top: 120px; }
  .page-menu:has(.header-schedule) .catalog-page .menu { scroll-margin-top: 145px; }
  .catalog-page .product-grid { gap: 12px; }
  .catalog-page .product-body { padding-inline: 2px; }
  .catalog-page .product-bottom { flex-flow: row wrap; align-items: center; }
  .catalog-page .product-quantity-minus,
  .catalog-page .product-quantity:has(.product-quantity-minus:not([hidden])) .add-plus { width: 34px; }
  .dish-layout { grid-template-columns: 1fr; }
  .cart-items-panel .cart-line { grid-template-columns: 46px minmax(0,1fr) auto auto; gap: 6px; font-size: 13px; }
  .cart-line .quantity { gap: 3px; }
  .cart-line .quantity button { width: 26px; height: 26px; }
}
@media (max-width: 370px) {
  .catalog-page .product-bottom { flex-direction: column; align-items: flex-start; }
}
