:root {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --ink: #231f20;
  --muted: #7d7d7d;
  --line: #ececec;
  --accent: #ef4823;
  --green: #1e5748;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Heavy.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: "Gilroy";
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.35;
}

* {
  font-family: "Gilroy";
}

.frame {
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 0;
  position: relative;
  overflow-x: hidden;
}

.page-pad {
  padding: 18px 14px 110px;
}

.topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.topbar-sticky {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding-inline: 6px;
}

.topbar-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  box-shadow: var(--shadow-soft);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: #f1f1f1;
  outline: none;
}

.cart-icon-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  display: none;
}

.cart-count.show {
  display: inline-block;
}

.logo {
  display: block;
  width: clamp(130px, 34vw, 164px);
  height: auto;
  margin-inline: auto;
}

.landing {
  background: var(--ink);
  color: #fff;
  min-height: 100svh;
  padding: clamp(40px, 8vh, 70px) 20px 120px;
  text-align: center;
  position: relative;
}

.landing .logo {
  margin-bottom: 48px;
}

.social-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 10px 0 38px;
}

.social-row a {
  color: inherit;
}

.label {
  font-weight: 600;
  font-size: clamp(15px, 3.6vw, 18px);
}

.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 700;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1;
  padding: 16px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(0.97);
  transform: translateY(-1px);
  outline: none;
}

.btn-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.btn + .btn {
  margin-top: 12px;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.wa-fab {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: #fff;
  z-index: 50;
}

.title {
  margin: 10px 0 14px;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.menu-search {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 10px;
}

.filter-btn {
  width: 56px;
  height: 52px;
  border-radius: 18px;
  box-shadow: 0 7px 16px rgba(255, 153, 0, 0.31);
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0 14px;
  height: 52px;
}

.search-wrap input {
  border: 0;
  width: 100%;
  outline: 0;
  font-size: 15px;
}

.cat-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 2px 6px;
  scrollbar-width: none;
}

.cat-strip::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  border: 0;
  border-radius: 14px;
  padding: 9px 14px;
  white-space: nowrap;
  background: #e9e4d9;
  font-size: 13px;
  font-weight: 600;
}

.cat-pill.active {
  background: var(--accent);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 14px;
}

.card {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.card-img {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  will-change: transform;
}

.card-body {
  padding: 9px;
}

.card-title {
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 700;
  line-height: 1.2;
  min-height: 38px;
}

.card-desc {
  font-size: 11px;
  color: #6f6f6f;
  min-height: 30px;
}

.card-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-plus-icon {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-plus-icon svg {
  width: 31px;
  height: 31px;
  display: block;
}

.hero {
  margin-top: 12px;
  width: 100%;
  height: clamp(180px, 40vw, 240px);
  object-fit: contain;
}

.subtle {
  color: #737373;
  font-size: 13px;
}

.line {
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

.check-row {
  margin: 14px 0;
  padding: 4px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-area {
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
}

.qty-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.bottom-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
  padding: 10px 14px 14px;
  background: linear-gradient(to top, #fff 80%, rgba(255, 255, 255, 0.8));
  z-index: 20;
}

body[data-page="product"] {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body[data-page="product"] .frame {
  overflow: visible;
}

body[data-page="product"] .page-pad {
  padding-bottom: 190px;
}

body[data-page="product"] .title {
  margin-top: 14px;
  margin-bottom: 8px;
  line-height: 1.12;
}

body[data-page="product"] .subtle {
  margin-bottom: 8px;
}

body[data-page="product"] .text-area {
  margin-bottom: 8px;
}

.product-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.product-calories-btn {
  width: auto;
  min-width: 90px;
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #1e5748;
  color: #1e5748;
  line-height: 1;
}

body[data-page="payment"] .page-pad {
  padding-bottom: 220px;
}

body[data-page="payment"] .summary {
  margin-top: 18px;
  padding: 8px 2px 0;
}

body[data-page="payment"] .summary .row {
  margin: 16px 0;
  align-items: flex-start;
  gap: 16px;
}

body[data-page="payment"] #sum-item {
  max-width: 68%;
  line-height: 1.45;
  word-break: break-word;
}

body[data-page="payment"] .line {
  margin: 20px 0;
}

.bottom-bar--triple {
  grid-template-columns: 104px 1fr 1fr;
}

.bottom-bar--summary {
  grid-template-columns: 1fr 1fr;
}

.price-pill {
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 700;
  line-height: 1;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 8px;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: #fafafa;
}

.cart-item__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.cart-item__meta {
  font-size: 12px;
  color: var(--muted);
}

.cart-remove {
  border: 0;
  background: transparent;
  color: #a00;
  font-size: 12px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  z-index: 40;
}

.overlay.open {
  display: flex;
}

.sheet {
  width: min(100%, 430px);
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 16px 20px 20px;
  margin: 0 auto;
}

.sheet-row {
  display: flex;
  justify-content: space-between;
  font-size: clamp(15px, 4.4vw, 22px);
  color: #707070;
  margin: 8px 0;
}

.summary {
  font-size: clamp(15px, 4.5vw, 22px);
}

.summary .row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 96px;
}

.bubble {
  max-width: 74%;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: clamp(14px, 3.7vw, 17px);
  line-height: 1.25;
}

.bubble.left {
  background: #f0f1f3;
}

.bubble.right {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
}

.chat-input {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 8px;
  padding: 10px 14px 14px;
  background: #fff;
}

.chat-input input {
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0 14px;
  font-size: 15px;
}

.star-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
}

.dine-scroll img {
  display: block;
  width: 100%;
  height: auto;
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}

.go-top {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: 28px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow);
  font-size: 22px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 35;
}

.go-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dinein-content {
  padding-top: 66px;
}

.dinein-text-menu {
  padding: 10px 14px 28px;
}

.dinein-intro {
  margin-bottom: 8px;
}

.dinein-intro h2 {
  margin: 0 0 2px;
  font-size: clamp(19px, 5.5vw, 28px);
  line-height: 1.08;
  text-transform: uppercase;
}

.dinein-intro p {
  margin: 0;
  color: #7b7b7b;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.dine-sections {
  display: grid;
  gap: 12px;
}

.dine-block {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #efefef;
}

.dine-block__title {
  margin: 0 0 9px;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dine-block__hero {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
}

.dine-block__note {
  margin: 0 0 8px;
  color: #686868;
  font-size: 12px;
  line-height: 1.35;
  font-style: italic;
}

.dine-group {
  margin-top: 10px;
}

.dine-group__title {
  margin: 0 0 6px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.dine-group__note {
  margin: 0 0 8px;
  color: #6e6e6e;
  font-size: 12px;
  line-height: 1.35;
  font-style: italic;
}

.dine-rows {
  display: grid;
  gap: 7px;
}

.dine-row {
  padding-bottom: 8px;
  border-bottom: 1px dashed #ececec;
}

.dine-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dine-row__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 2px;
}

.dine-row__head h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.dine-row__head span {
  color: #ef4823;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.dine-row__desc {
  margin: 0;
  color: #636363;
  font-size: 11.5px;
  line-height: 1.35;
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  bottom: 84px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dine-cat-strip {
  position: sticky;
  top: 48px;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  scrollbar-width: none;
}
.dine-cat-strip::-webkit-scrollbar { display: none; }
.dine-cat-strip .cat-pill { font-size: 12px; padding: 7px 12px; cursor: pointer; }

.cart-item__link {
  display: contents;
  text-decoration: none;
  color: inherit;
}
.cart-item__addons {
  font-size: 11px;
  color: #1e5748;
  margin-top: 3px;
}
.cart-item__notes {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-top: 2px;
}
.cart-order-notes { margin-top: 16px; }

.pay-item-line { margin-bottom: 10px; line-height: 1.45; }
.pay-item-line small { color: #888; }

.desktop-shell {
  padding: 0;
}

@media (min-width: 768px) {
  .frame {
    width: min(95vw, 1120px);
    min-height: 100svh;
    border-radius: 22px;
    margin: 18px auto;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
  }

  .page-pad { padding: 22px 22px 120px; }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .bottom-bar,
  .chat-input {
    width: min(95vw, 1120px);
    border-radius: 12px 12px 0 0;
  }

  .sheet {
    width: min(95vw, 760px);
  }

  .topbar-fixed {
    width: min(95vw, 1120px);
  }

  .dinein-text-menu {
    padding: 84px 22px 40px;
  }

  .dine-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .dine-block__hero {
    height: 170px;
  }
}

@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dine-sections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 420px) {
  .bottom-bar--triple {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .price-pill { min-height: 46px; }
}

/* Delivery Form & Card */
.delivery-card {
  background: #FFFFFF;
  box-shadow: 0px 6px 17px rgba(0, 0, 0, 0.13);
  border-radius: 20px;
  padding: 20px;
  margin: 20px 0;
}

.delivery-header {
  margin-bottom: 20px;
}

.delivery-header h3 {
  font-family: 'Gilroy-Bold', sans-serif;
  font-size: 16px;
  color: #131313;
  margin: 0 0 5px 0;
}

.delivery-header p {
  font-family: 'Gilroy-Medium', sans-serif;
  font-size: 14px;
  color: rgba(19, 19, 19, 0.5);
  margin: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #344054;
}

.form-input {
  background: #FFFFFF;
  border: 1px solid #D0D5DD;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #667085;
  width: 100%;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.phone-wrap {
  display: flex;
  background: #FFFFFF;
  border: 1px solid #D0D5DD;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.phone-wrap .country-select {
  border: none;
  background: transparent;
  padding: 10px 4px 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: #344054;
  outline: none;
  cursor: pointer;
}

.phone-wrap .form-input {
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
}

.address-details-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.delivery-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.delivery-summary-header h3 {
  font-family: 'Gilroy-Bold', sans-serif;
  font-size: 16px;
  color: #131313;
  margin: 0;
}

.btn-change {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #E8350D;
  text-decoration: none;
  border: 1px solid #E8350D;
  border-radius: 8px;
  padding: 4px 12px;
  transition: all 0.2s;
}

.btn-change:hover {
  background: #E8350D;
  color: #FFFFFF;
}

.delivery-summary-body strong {
  font-family: 'Gilroy-Bold', sans-serif;
  font-size: 16px;
  color: #231F20;
  display: block;
  margin-bottom: 4px;
}

.delivery-summary-body p {
  font-family: 'Gilroy-Medium', sans-serif;
  font-size: 14px;
  color: #636363;
  margin: 0;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: #888888;
  width: 100%;
}

.site-footer .codetroops-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.site-footer .codetroops-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.copyleft-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.copyleft-icon {
  display: inline-block;
  transform: scaleX(-1);
  font-size: 14px;
}

.footer-divider {
  margin: 0 6px;
  opacity: 0.5;
}
