:root {
  --ink: #181514;
  --muted: #766e69;
  --paper: #f7f4f1;
  --line: #e8e8e8;
  --white: #fff;
  --green: #187a43;
  --shadow-sm: 0 8px 24px rgba(31, 18, 13, .07);
  --shadow-lg: 0 24px 70px rgba(31, 18, 13, .22);
  --radius: 24px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: #090909;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-appearance: none;
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(117, 0, 7, .2), transparent 50%),
    var(--main);
}

.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -64px;
  height: 120px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 3;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 32px 22px 105px;
}

.hero-logo {
  width: 220px;
  height: auto;
  margin-bottom: 0;
  animation: heroDrop .7s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  max-width: 650px;
  font-size: 70px;
  line-height: 1;
  font-weight: 800;
  animation: heroUp .8s .08s both;
}

.hero-copy {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: white;
  animation: heroUp .8s .16s both;
  font-weight: 500;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  animation: heroUp .8s .24s both;
}

.hero-badges span {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .25;
  z-index: 1;
  animation: float 7s ease-in-out infinite;
}

.hero-glow-one {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -70px;
  background: #fff;
}

.hero-glow-two {
  width: 180px;
  height: 180px;
  right: 20%;
  bottom: -90px;
  background: #ffb4b9;
  animation-delay: -3s;
}

.catnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(235, 229, 223, .85);
  backdrop-filter: blur(18px) saturate(160%);
}

.catnav::-webkit-scrollbar {
  display: none;
}

.catnav a {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #090909;
  background: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  transition: .24s ease;
}

.catnav a.active {
  color: #fff;
  background: var(--main);
  border-color: var(--main);
  box-shadow: 0 7px 20px rgba(227, 6, 19, .22);
  transform: translateY(-1px);
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.menu-intro {
  display: grid;
  gap: 14px;
  padding: 38px 20px 8px;
}


.menu-intro h2 {
  margin: 6px 0 0;
  font-size: clamp(27px, 5vw, 40px);
  letter-spacing: -.04em;
}

.menu-intro p {
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.5;
  max-width: 440px;
  font-weight: 500;
}

.category {
  padding: 46px 20px 4px;
  scroll-margin-top: 72px;
}

.cat-head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.cat-head>div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-index {
  color: var(--main);
  font-size: 12px;
  font-weight: 800;
}

.cat-head h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.035em;
}

.cat-head p {
  margin: 0;
  max-width: 520px;
  color: #777;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.item {
  position: relative;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  min-height: 126px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(31, 18, 13, .02);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.item:hover {
  transform: translateY(-3px);
  border-color: #ded3ca;
  box-shadow: var(--shadow-sm);
}

.item-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: pointer;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.item-image-wrap {
  position: relative;
  overflow: hidden;
  width: 98px;
  height: 98px;
  border-radius: 16px;
  background: var(--paper);
}

.item-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.item:hover img {
  transform: scale(1.07);
}

.item-arrow {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--main);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  transition: transform .25s ease;
  transform: rotate(45deg);
}

.item:hover .item-arrow {
  transform: rotate(90deg);
}

.item-body {
  min-width: 0;
}

.item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
}

.item-price {
  flex: 0 0 auto;
  color: var(--main-dark);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.item-desc {
  margin: 6px 0 0;
  color: #777;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.tag,
.detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 600;
}

.tag.spicy {
  color: #9c161c;
  background: #ffebec;
}

.tag.very-spicy {
  color: #7a0f14;
  background: #fce8e8;
}

.tag.mild {
  color: #2b7a3b;
  background: #eaf5ec;
}

.tag.chef {
  color: var(--green, #198754);
  background: #eaf8ef;
}

.tag.popular {
  color: #b45309;
  background: #fef3c7;
}

.tag.bestseller {
  color: #6b21a8;
  background: #f3e8ff;
}

.tag.charcoal {
  color: #374151;
  background: #f3f4f6;
}

.tag.rich-service {
  color: #854d0e;
  background: #fef9c3;
}

.tag.new {
  color: #1d4ed8;
  background: #eff6ff;
}

.tag.vegan {
  color: #15803d;
  background: #dcfce7;
}

.tag.gluten-free {
  color: #0f766e;
  background: #ccfbf1;
}

.tag.offal {
  color: #5f5550;
  background: #f1eeeb;
}

.tag.chicken {
  color: #c2410c;
  background: #ffedd5;
}

.tag.traditional {
  color: #78350f;
  background: #fef3c7;
}

.tag.homemade {
  color: #be185d;
  background: #fce7f3;
}

.tag.opportunity {
  color: #be123c;
  background: #ffe4e6;
}

.tag.shared {
  color: #4338ca;
  background: #e0e7ff;
}

.tag.light {
  color: #0369a1;
  background: #e0f2fe;
}

.tag.special-sauce {
  color: #a21caf;
  background: #fae8ff;
}

.tag.soup-of-the-day {
  color: #b45309;
  background: #ffedd5;
}

.detail-chip {
  color: var(--main);
  background: var(--main-soft);
}

.legal-note {
  margin: 56px 20px 10px;
  padding: 20px;
  border: 1px dashed #decfc6;
  border-radius: 18px;
}

.legal-note strong {
  display: block;
  margin-bottom: 7px;
  font-size: 20px;
}

.legal-note p {
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.floating-actions-container {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.floating-cart,
.floating-reviews {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 230px;
  min-height: 60px;
  padding: 10px 13px;
  border: 0;
  border-radius: 15px;
  background: #201b19;
  color: #fff;
  box-shadow: 0 18px 45px rgba(24, 21, 20, .3);
  cursor: pointer;
  transition: transform .22s ease, background .22s ease;
  white-space: nowrap;
  text-decoration: none !important;
}

.floating-cart.has-items {
  background: var(--main);
  animation: cartPulse .45s ease;
}

.floating-reviews.has-reviews {
  background: var(--main);
  animation: reviewPulse .45s ease;
}

.cart-icon,
.review-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  flex-shrink: 0;
}

.has-items .cart-icon,
.has-reviews .review-icon {
  background: white;
  color: var(--main);
}

.cart-copy,
.review-copy {
  display: grid;
  gap: 2px;
  text-align: left;
  overflow: hidden;
}

.cart-copy small,
.review-copy small {
  color: rgba(255, 255, 255, 255);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0 !important;
}

.cart-copy strong,
.review-copy strong {
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  overflow: hidden;
}

.cart-badge {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--main);
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .floating-actions-container {
    left: 14px;
    right: 14px;
    align-items: end;
  }

  .floating-cart {
    width: 100%;
  }

  .floating-reviews {
    width: 50%;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 20px;
  background: rgba(20, 15, 13, .58);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: min(560px, 100%);
  max-height: 94dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(36px) scale(.985);
  opacity: 0;
  transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
}

.overlay.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}


.modal-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--paper);
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.modal-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .22), transparent 38%, rgba(0, 0, 0, .1));
  pointer-events: none;
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #090909;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  margin-bottom: 10px;
}

.modal-title {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.modal-desc {
  margin: 10px 0 18px;
  color: #777;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.nutrition-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fff;
  color: #181818;
  border: 1px solid #e8e8e8;
}

.nutrition-card>div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nutrition-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #f3f3f3;
  color: #222;
}

.nutrition-card span span {
  display: grid;
}

.nutrition-card small {
  color: #777;
  font-size: 12px;
  font-weight: 500;
}

.nutrition-card strong {
  font-size: 13px;
}

.nutrition-info {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--main);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.section-label {
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 500;
  color: #090909;
}

.portion-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.portion-opt {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 12px;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: .2s ease;
}

.portion-opt.active {
  border-color: var(--main);
  background: var(--main-soft);
  box-shadow: 0 8px 22px rgba(227, 6, 19, .08);
}

.portion-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: transparent;
  background: #fff;
  font-size: 10px;
}

.portion-opt.active .portion-check {
  color: #fff;
  background: var(--main);
}

.p-label {
  padding-right: 20px;
  color: #777;
  font-size: 12px;
  font-weight: 600;
}

.p-price {
  color: var(--main);
  font-size: 14px;
}

.order-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  position: sticky;
  bottom: -1px;
  padding-top: 8px;
  background: linear-gradient(to top, #fff 78%, rgba(255, 255, 255, 0));
}

.qty-stepper {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.qty-stepper button {
  width: 38px;
  border: 0;
  background: transparent;
  color: var(--main);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qty-stepper span {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.modal-add-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--main);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600 !important;
  box-shadow: 0 10px 24px rgba(227, 6, 19, .22);
  transition: .2s ease;
}

.modal-add-btn:active {
  transform: scale(.985);
}

.modal-add-btn.is-loading {
  opacity: .75;
}

.modal-add-btn.is-success {
  background: var(--green);
  box-shadow: 0 10px 24px rgba(24, 122, 67, .2);
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  top: max(18px, env(safe-area-inset-top));
  transform: translate(-50%, -18px);
  width: min(420px, calc(100% - 30px));
  padding: 13px 16px;
  border-radius: 14px;
  color: #fff;
  background: #211c1a;
  box-shadow: var(--shadow-lg);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast.error {
  background: var(--main-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--delay, 0ms) ease, transform .6s var(--delay, 0ms) cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(16px);
  }
}

@keyframes cartPulse {
  50% {
    transform: translateX(-50%) scale(1.025);
  }
}

@media (min-width: 720px) {
  body {
    padding-bottom: 30px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-inner {
    padding: 48px 32px 130px;
  }

  .menu-intro {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    padding: 55px 32px 10px;
  }

  .menu-intro p {
    justify-self: end;
  }

  .category {
    padding: 58px 32px 4px;
  }

  .cat-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .cat-head p {
    justify-self: end;
    text-align: right;
  }

  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .item {
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 144px;
    padding: 14px;
  }

  .item-image-wrap {
    width: 116px;
    height: 116px;
  }

  .floating-cart {
    left: auto;
    right: 24px;
    bottom: 24px;
    transform: none;
    width: 310px;
  }

  .floating-cart:active {
    transform: scale(.98);
  }

  .floating-cart.has-items {
    animation: none;
  }

  .modal {
    border-radius: 28px;
    margin-bottom: 24px;
    max-height: calc(100dvh - 48px);
  }

  .overlay {
    align-items: center;
    padding: 24px;
  }

  .modal-img-wrap {
    height: 220px;
  }

  .legal-note {
    margin-inline: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


#view-cart {
  display: none;
  min-height: 100vh;
  background: #fff;
}

#view-cart.active {
  display: block;
  animation: cartPageIn 0.35s ease both;
}

[hidden] {
  display: none !important;
}

body.cart-open {
  overflow-x: hidden;
  background: #fff;
}

body.cart-open .floating-actions-container {
  display: none !important;
}

@keyframes cartPageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.cart-page {
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 170px;
  background: #fff;
}

.cart-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cart-header h2 {
  margin: 20px 0 4px;
  font-size: clamp(25px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #090909;
}

.cart-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.cart-back-btn {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid rgba(227, 6, 19, 0.5);
  border-radius: 100px;
  background: var(--main-tint);
  color: var(--main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.cart-back-btn:hover {
  background: #ffe2e4;
  box-shadow: 0 8px 22px rgba(227, 6, 19, 0.12);
  transform: translateY(-1px);
}

.cart-back-btn:active {
  transform: scale(0.97);
}

.cart-list {
  padding: 6px 20px 0;
}

.cart-line {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  animation: cartLineIn 0.3s ease both;
}

@keyframes cartLineIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-line-img {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(34, 30, 28, 0.08);
}

.cart-line-body {
  flex: 1;
  min-width: 0;
}

.cart-line-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.cart-line-name {
    margin: 0;
    color: #090909;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.cart-line-portion {
    display: block;
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 500;
}

.cart-line-price {
    flex: 0 0 auto;
    color: var(--main);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
}

.cart-qty-stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
}

.cart-qty-stepper button {
    width: 40px;
    height: 40px;
    border: 0;
    background: #fff;
    color: var(--main);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-stepper button:hover {
  background: var(--main-tint);
}

.cart-qty-stepper button:active {
  transform: scale(0.9);
}

.cart-qty-stepper button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.cart-qty-stepper span {
    min-width: 38px;
    text-align: center;
    color: #090909;
    font-size: 14px;
    font-weight: 600;
}

.cart-remove {
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--main-deep);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.cart-remove:hover {
  color: var(--main);
}

.cart-remove:disabled {
  opacity: 0.45;
  cursor: wait;
}

.cart-summary {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 17px 20px calc(20px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 6px;
}

.cart-total-row .lbl {
  color: var(--ink-soft);
  font-size: 20px;
  font-weight: 700;
}

.cart-total-row .val {
  color: var(--main);
  font-size: 20px;
  font-weight: 700;
}

.cart-tax-note {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.cart-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cart-info-box p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}

.cart-loading,
.cart-empty,
.cart-error {
  display: flex;
  min-height: 420px;
  padding: 50px 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  text-align: center;
}

.cart-loading {
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
}

.cart-loader {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--main);
  border-radius: 50%;
  animation: cartLoaderSpin 0.7s linear infinite;
}

@keyframes cartLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.cart-empty-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 24px;
  background: var(--main-tint);
  transform: rotate(-4deg);
  border: 1px solid var(--line);
  font-size: 28px;
}

.cart-empty h3,
.cart-error strong {
  margin: 0 0 8px;
  color: #090909;
  font-size: 20px;
  font-weight: 700;
}

.cart-empty p,
.cart-error p {
  max-width: 350px;
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.empty-menu-btn {
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 100px;
  background: var(--main);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(227, 6, 19, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.empty-menu-btn:hover {
  transform: translateY(-1px);
}

.modal-open {
  overflow: hidden;
}

.overlay {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.overlay.open .modal {
  animation: modalSlideUp 0.35s cubic-bezier(0.22,
      1,
      0.36,
      1) both;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(55px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.portion-opt {
  position: relative;
  overflow: hidden;
}

.portion-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--main);
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.portion-opt.active .portion-check {
  opacity: 1;
  transform: scale(1);
}

.portion-opt.active span {
  color: var(--main);
}

.modal-add-btn {
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.modal-add-btn.is-loading {
  opacity: 0.75;
  cursor: wait;
}

.modal-add-btn.is-success {
  background: #248640;
  box-shadow: 0 12px 28px rgba(36, 134, 64, 0.24);
}

.modal-add-btn:active {
  transform: scale(0.985);
}

@media (max-width: 560px) {
  .cart-page {
    padding-bottom: 160px;
  }

  .cart-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cart-list {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cart-line {
    gap: 12px;
    align-items: flex-start;
  }

  .cart-line-img {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 14px;
  }

  .cart-line-top {
    display: block;
  }

  .cart-line-price {
    display: block;
    margin-top: 6px;
  }

  .cart-line-actions {
    margin-top: 11px;
  }

  .cart-remove {
    font-size: 10.5px;
  }

  .cart-summary {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cart-total-row .val {
    font-size: 22px;
  }
}

@media (max-width: 380px) {
  .cart-line {
    gap: 10px;
  }

  .cart-line-img {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .cart-line-name {
    font-size: 13.5px;
  }

  .cart-line-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {

  #view-cart.active,
  .cart-line,
  .overlay.open .modal,
  .cart-loader {
    animation: none !important;
  }

  .cart-back-btn,
  .checkout-btn,
  .modal-add-btn,
  .cart-qty-stepper button {
    transition: none !important;
  }
}

.app-footer {
  margin-top: 80px;
  padding: 22px 20px;
  border-top: 1px solid #ececec;
  background: #fff;
}

.app-footer-content {
  max-width: 1060px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  font-weight: 500;
}

.footer-left strong {
  color: #1d1d1d;
  font-size: 15px;
  font-weight: 700;
}

.footer-left span {
  color: #777;
  font-size: 14px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 500;
  color: #777;
  font-size: 14px;
}

.footer-right a {
  color: #e30613;
  font-weight: 700;
  text-decoration: none;
  transition: .25s;
}

.footer-right a:hover {
  text-decoration: underline;
}

@media(max-width:768px) {

  .app-footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    align-items: center;
    justify-content: center;
  }
}