:root {
  --cream: #fff9f0;
  --espresso: #302119;
  --orange: #f4672d;
  --orange-dark: #aa390d;
  --oat: #f2e7d8;
  --muted: #795b46;
  --line: #dfcfbd;
  --white: #fffdfa;
  --focus: #783018;
  --radius: 20px;
  --max: 520px;
  --nav: 76px;
  font-family:
    "Arial Rounded MT Bold",
    "Nunito",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--espresso);
  background: var(--cream);
  font-synthesis: none;
  scrollbar-color: var(--muted) var(--oat);
  scrollbar-width: thin;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
button:active {
  transform: scale(0.97);
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--oat);
}
::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--espresso);
}
.app-shell {
  max-width: var(--max);
  margin: auto;
  min-height: 100dvh;
  padding: 0 18px calc(var(--nav) + 110px + env(safe-area-inset-bottom));
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 2px 23px;
}
.wordmark {
  font-size: 43px;
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -2.8px;
}
.wordmark span {
  display: block;
  text-align: center;
  font-size: 10px;
  letter-spacing: 4.5px;
  font-weight: 750;
  margin-top: 9px;
  color: var(--muted);
}
.brand-note {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
  padding-right: 2px;
}
.pickup {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 17px 16px;
  border-radius: var(--radius);
  background: var(--oat);
  text-align: left;
}
.pin {
  color: var(--orange-dark);
  width: 25px;
  height: 30px;
  flex-shrink: 0;
}
.pickup strong {
  font-size: 15px;
  display: block;
}
.pickup small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.chevron {
  margin-left: auto;
  font-size: 26px;
  color: var(--muted);
}
h1 {
  font-size: clamp(26px, 6.8vw, 34px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.12;
  margin: 25px 0 20px;
}
h2 {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.6px;
  margin: 0;
}
h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}
.categories {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 2px 0 7px;
  margin-bottom: 20px;
}
.category {
  background: var(--oat);
  border-radius: 30px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  color: var(--muted);
}
.category.selected {
  background: var(--espresso);
  color: var(--cream);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 13px;
}
.section-heading small {
  color: var(--muted);
  font-size: 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.product-card {
  background: var(--oat);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.product-photo {
  background-image: url("/work/kroshka/assets/products.webp");
  background-size: 400% 200%;
  aspect-ratio: 1;
  width: 100%;
  background-repeat: no-repeat;
  background-color: var(--oat);
  display: block;
  border: 0;
  padding: 0;
  border-radius: 0;
  position: relative;
}
.product-photo:hover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #30211908;
}
.card-content {
  padding: 11px 11px 12px;
}
.product-title {
  background: none;
  padding: 0;
  text-align: left;
  font-size: clamp(14px, 3.9vw, 18px);
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
  min-height: 23px;
}
.product-volume {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  margin-top: 10px;
}
.price {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.6px;
}
.add-button {
  background: var(--orange);
  color: var(--espresso);
  font-size: 28px;
  line-height: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.stepper {
  display: flex;
  align-items: center;
  background: #e8d9c7;
  border-radius: 30px;
  flex-shrink: 0;
}
.stepper button {
  width: 36px;
  height: 42px;
  border-radius: 50%;
  font-size: 23px;
  background: none;
}
.stepper button:last-child {
  background: var(--orange);
}
.stepper span {
  font-size: 14px;
  font-weight: 750;
  min-width: 17px;
  text-align: center;
}
.demo-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  margin: 22px 5px 0;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--max));
  height: calc(var(--nav) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  justify-content: space-around;
  background: var(--cream);
  border-top: 1px solid var(--line);
  z-index: 10;
}
.bottom-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 50%;
  font-size: 12px;
  color: var(--muted);
}
.bottom-nav a.current {
  color: var(--orange-dark);
  font-weight: 750;
}
.nav-icon {
  font-size: 26px;
  line-height: 1.1;
}
.receipt-icon {
  font-size: 32px;
}
#orders-count {
  position: absolute;
  top: 11px;
  left: calc(50% + 11px);
  background: var(--espresso);
  color: var(--cream);
  border-radius: 20px;
  font-size: 9px;
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
}
#orders-count:empty {
  display: none;
}
.basket-action {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--nav) + 10px + env(safe-area-inset-bottom));
  width: min(calc(100% - 36px), 484px);
  padding: 18px 20px;
  background: var(--orange);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 800;
  z-index: 11;
  box-shadow: 0 6px 20px #30211910;
}
.basket-action:active {
  transform: translateX(-50%) scale(0.98);
}
.basket-action .total {
  margin-left: auto;
}
.basket-badge {
  background: var(--espresso);
  color: var(--cream);
  font-size: 12px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.back-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
}
.empty {
  padding: 30px 15px;
  text-align: center;
}
.empty img {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  margin-bottom: 15px;
}
.empty p,
.body-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.primary {
  background: var(--orange);
  color: var(--espresso);
  padding: 16px 20px;
  min-height: 52px;
  border-radius: 17px;
  font-size: 15px;
  font-weight: 800;
  display: block;
  width: 100%;
  text-align: center;
}
.secondary {
  background: var(--oat);
  color: var(--espresso);
  padding: 13px 18px;
  border-radius: 15px;
  font-weight: 700;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
}
.cart-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.cart-photo {
  width: 70px;
  height: 70px;
  aspect-ratio: 1;
  border-radius: 15px;
}
.cart-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 3px;
}
.cart-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.cart-controls .price {
  font-size: 17px;
}
.summary {
  margin: 22px 0;
  background: var(--oat);
  border-radius: 20px;
  padding: 18px;
}
.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;
  font-size: 13px;
}
.summary .grand-total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 20px;
  font-weight: 800;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 20px 0 8px;
}
.text-field {
  width: 100%;
  padding: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--espresso);
  resize: none;
  min-height: 80px;
}
.order-card {
  width: 100%;
  text-align: left;
  background: var(--oat);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 12px;
}
.order-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.status {
  font-size: 10px;
  color: var(--muted);
  background: var(--cream);
  border-radius: 20px;
  padding: 7px 10px;
}
.order-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.order-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.success-icon {
  background: var(--orange);
  color: var(--espresso);
  border-radius: 50%;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  font-size: 40px;
  margin: 14px auto;
}
.success {
  text-align: center;
}
.success h1 {
  margin-bottom: 12px;
}
.success .order-number {
  font-size: 31px;
  font-weight: 850;
  margin: 22px 0 6px;
}
.success .summary {
  text-align: left;
}
.inline-error {
  padding: 13px 15px;
  border-radius: 13px;
  border: 1px solid #9f362b;
  color: #7f271f;
  background: #fff0e7;
  font-size: 13px;
  line-height: 1.5;
  margin: 14px 0;
}
.inline-error:empty {
  display: none;
}
dialog {
  border: 0;
  padding: 0;
  background: var(--cream);
  color: var(--espresso);
  width: min(100%, 520px);
  max-width: 100%;
  max-height: calc(100dvh - 20px - env(safe-area-inset-top));
  margin: auto auto 0;
  border-radius: 28px 28px 0 0;
  overflow: auto;
  scrollbar-gutter: stable;
  box-shadow: 0 -8px 50px #30211925;
}
dialog::backdrop {
  background: #30211988;
  backdrop-filter: blur(3px);
}
body.modal-open {
  overflow: hidden;
}
.sheet-top {
  height: 38px;
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sheet-handle {
  width: 38px;
  height: 4px;
  background: var(--line);
  border-radius: 5px;
}
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 27px;
  background: var(--oat);
  display: grid;
  place-items: center;
}
.sheet-close {
  position: absolute;
  right: 12px;
  top: 11px;
  z-index: 3;
}
.detail-photo {
  height: 240px;
  aspect-ratio: auto;
  background-size: 400% 200%;
  width: 240px;
  margin: 0 auto;
  border-radius: 22px;
}
.detail-body {
  padding: 18px 22px calc(24px + env(safe-area-inset-bottom));
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.detail-heading h2 {
  font-size: 29px;
}
.detail-heading .price {
  font-size: 25px;
}
.detail-body .body-copy {
  margin: 10px 0 14px;
}
.ingredient {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}
.nutrition {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--oat);
  padding: 15px 10px;
  border-radius: 17px;
  margin-top: 16px;
  text-align: center;
}
.nutrition b {
  display: block;
  font-size: 19px;
}
.nutrition small {
  font-size: 10px;
  color: var(--muted);
}
.nutrition-note {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 18px;
}
.option-label {
  font-size: 13px;
  font-weight: 750;
  margin: 18px 0 9px;
}
.options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.option {
  padding: 11px 14px;
  min-height: 42px;
  border-radius: 13px;
  background: var(--oat);
  font-size: 12px;
  border: 1px solid transparent;
}
.option.selected {
  background: var(--espresso);
  color: var(--cream);
}
.detail-cta {
  position: sticky;
  bottom: 0;
  margin: 21px -2px -1px;
  box-shadow: 0 0 0 9px var(--cream);
}
.allergen {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.location-info img {
  width: 70px;
  border-radius: 50%;
  float: right;
}
.location-info h2 {
  margin-bottom: 15px;
}
#toast {
  position: fixed;
  bottom: calc(var(--nav) + 90px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--espresso);
  color: var(--cream);
  font-size: 12px;
  padding: 12px 20px;
  border-radius: 30px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  width: max-content;
  max-width: 90vw;
  text-align: center;
}
#toast.visible {
  opacity: 1;
}
.loading {
  padding: 40px 15px;
  text-align: center;
  color: var(--muted);
}
.loading:before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--oat);
  border-top-color: var(--orange-dark);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 15px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 700px) {
  body {
    background: #e8dccd;
  }
  .app-shell {
    background: var(--cream);
    box-shadow: 0 0 60px #30211912;
  }
  .brand {
    padding-top: 30px;
  }
  .product-photo {
    transition: filter 0.15s;
  }
  .product-photo:hover {
    filter: brightness(1.025);
  }
}
@media (max-width: 360px) {
  .app-shell {
    padding-left: 13px;
    padding-right: 13px;
  }
  .card-content {
    padding: 9px;
  }
  .category {
    padding: 10px 12px;
  }
  .stepper button {
    width: 30px;
  }
  .price {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
