/* ==================== BASE / WAITER / PRODUCT ==================== */
:root {
  --bg: #f5f2ec;
  --surface: #fffdf9;
  --text: #142019;
  --muted: #6d746f;
  --line: rgba(20, 32, 25, .1);
  --primary: #2f885b;
  --primaryDark: #216a45;
  --soft: #dff2e8;
  --dark: #111914;
  --danger: #b94343;
  --shadow: 0 18px 48px rgba(16, 29, 21, .11)
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  background: var(--bg);
  scroll-behavior: smooth
}

body {
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 0 0, rgba(47, 136, 91, .1), transparent 28%), var(--bg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased
}

body.lock {
  overflow: hidden
}

button,
input,
textarea {
  font: inherit
}

button {
  border: 0;
  cursor: pointer
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.page {
  width: min(100%, 1120px);
  margin: auto;
  padding: 0 12px 120px
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -12px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: rgba(245, 242, 236, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .7)
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0
}

.logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(47, 136, 91, .24)
}

.brand strong {
  display: block;
  font-size: 14px
}

.table {
  margin-top: 2px;
  color: var(--primaryDark);
  font-size: 11px;
  font-weight: 850
}

.cartIcon {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 31, 23, .07)
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--bg);
  border-radius: 99px;
  color: #fff;
  background: var(--primary);
  font-size: 10px;
  font-weight: 900
}

.hero {
  position: relative;
  min-height: 285px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(120deg, rgba(8, 14, 11, .96), rgba(26, 55, 39, .76));
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow)
}

.heroCopy {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 19px;
  background: linear-gradient(to top, rgba(4, 8, 6, .9), transparent)
}

.open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  font-size: 11px;
  font-weight: 800
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62e59b
}

.hero h1 {
  max-width: 600px;
  margin-top: 10px;
  font-size: clamp(34px, 10vw, 62px);
  line-height: .98;
  letter-spacing: -.05em
}

.hero h1 span {
  color: #b9ebcf
}

.hero p {
  max-width: 520px;
  margin-top: 9px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.62
}

.tools {
  position: sticky;
  top: 73px;
  z-index: 20;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background: rgba(255, 253, 249, .92);
  box-shadow: 0 8px 22px rgba(18, 31, 23, .07);
  backdrop-filter: blur(16px)
}

.search {
  position: relative
}

.search .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted)
}

.search input {
  width: 100%;
  height: 47px;
  padding: 0 43px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: 0;
  background: #f2eee7
}

.search input:focus {
  border-color: rgba(47, 136, 91, .35);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 136, 91, .07)
}

.clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  color: var(--muted)
}

.clear.show {
  display: grid
}

.cats {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-top: 9px;
  scrollbar-width: none
}

.cats::-webkit-scrollbar {
  display: none
}

.cat {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800
}

.cat.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary)
}

.section {
  margin-top: 28px;
  scroll-margin-top: 150px
}

.head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px
}

.head small {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase
}

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

.head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px
}

.count {
  padding: 7px 10px;
  border-radius: 99px;
  color: var(--primaryDark);
  background: var(--soft);
  font-size: 11px;
  font-weight: 850
}

.products {
  display: grid;
  gap: 12px
}

.product {
  display: grid;
  grid-template-columns: 103px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(18, 31, 23, .055)
}

.photo {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border-radius: 15px;
  background: #eee9df;
  cursor: pointer
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.productNoImage {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eee9df, #f8f4ee);
  color: var(--muted);
  font-size: 34px;
  font-weight: 900;
}

.play {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 14, 11, .72)
}

.play .icon {
  width: 14px
}

.body {
  min-width: 0;
  display: flex;
  flex-direction: column
}

.title {
  font-size: 16px;
  line-height: 1.25;
  cursor: pointer
}

.desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px
}

.meta span {
  padding: 5px 7px;
  border-radius: 8px;
  background: #f0ece5;
  color: #59615b;
  font-size: 9.5px;
  font-weight: 750
}

.productFoot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px
}

.price small {
  display: block;
  color: var(--muted);
  font-size: 9px
}

.price strong {
  color: var(--primaryDark);
  font-size: 17px
}

.add {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  font-size: 11px;
  font-weight: 900
}

.empty {
  display: none;
  margin-top: 28px;
  padding: 38px 20px;
  border: 1px dashed rgba(20, 32, 25, .18);
  border-radius: 20px;
  text-align: center
}

.empty.show {
  display: block
}

.cartBar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 50;
  width: min(calc(100% - 24px), 620px);
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 14px;
  border-radius: 20px;
  color: #fff;
  background: rgba(15, 23, 19, .96);
  box-shadow: 0 18px 48px rgba(8, 16, 11, .28);
  transform: translateX(-50%)
}

.cartBar.show {
  display: flex
}

.cartSummary {
  display: flex;
  align-items: center;
  gap: 10px
}

.cartCircle {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--dark);
  background: #fff
}

.view {
  min-height: 44px;
  padding: 0 15px;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 900
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(4, 9, 6, .58);
  backdrop-filter: blur(6px)
}

.overlay.open {
  display: block
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  max-height: 93vh;
  display: none;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: var(--surface);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, .24)
}

.sheet.open {
  display: flex;
  flex-direction: column
}

.handle {
  width: 42px;
  height: 5px;
  margin: 9px auto 2px;
  border-radius: 99px;
  background: #d4d0c8
}

.sheetHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line)
}

.sheetHead h2 {
  font-size: 21px
}

.sheetHead p {
  margin-top: 3px;
  color: var(--primaryDark);
  font-size: 11px;
  font-weight: 850
}

.close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f0ece5;
  color: var(--muted)
}

.sheetBody {
  overflow: auto;
  padding: 16px 18px 20px
}

.media {
  position: relative;
  overflow: hidden;
  margin: -16px -18px 18px;
  background: #19221d
}

.media img,
.media video,
.media iframe {
  width: 100%;
  height: 250px;
  object-fit: cover
}

.media iframe {
  display: block;
  border: 0;
  background: #000
}

.videoToggle {
  position: absolute;
  left: 14px;
  bottom: 14px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 900
}

.detailCat {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase
}

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

.detailRow h2 {
  max-width: 72%;
  font-size: 27px;
  line-height: 1.04
}

.detailPrice {
  color: var(--primaryDark);
  font-size: 20px;
  font-weight: 900
}

.detailDesc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7
}

.block {
  margin-top: 20px
}

.block h3 {
  margin-bottom: 9px;
  font-size: 13px
}

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

.option {
  min-height: 50px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f4f0ea;
  text-align: left
}

.option.active {
  border-color: var(--primary);
  background: var(--soft)
}

.option strong,
.option span {
  display: block;
  font-size: 11px
}

.option span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.chips span {
  padding: 7px 9px;
  border-radius: 9px;
  background: #f0ece5;
  color: #59615b;
  font-size: 10.5px
}

.sheetFoot {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, .96)
}

.qty {
  min-height: 50px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f3efe8
}

.qty button {
  height: 100%;
  background: transparent;
  font-size: 18px;
  font-weight: 800
}

.qty strong {
  text-align: center
}

.primary {
  min-height: 50px;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
  font-weight: 900
}

.primary:disabled {
  opacity: .45
}

.cartItems {
  display: grid;
  gap: 11px
}

.cartItem {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 11px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 16px
}

.cartItem img {
  width: 72px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px
}

.row.top {
  align-items: flex-start
}

.cartItem h3 {
  font-size: 13px
}

.size {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px
}

.remove {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--danger);
  background: #faecec
}

.mini {
  display: grid;
  grid-template-columns: 28px 30px 28px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3efe8
}

.mini button {
  background: transparent;
  font-weight: 800
}

.mini strong {
  display: grid;
  place-items: center;
  font-size: 11px
}

.note {
  width: 100%;
  min-height: 74px;
  margin-top: 15px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f0ea;
  resize: vertical
}

.totals {
  display: grid;
  gap: 9px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line)
}

.total {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px
}

.total.grand {
  color: var(--text);
  font-size: 16px;
  font-weight: 900
}

.cartFoot {
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line)
}

.qr {
  text-align: center
}

.qr h3 {
  font-size: 22px
}

.qr p {
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65
}

.qrIcon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 20px;
  color: var(--primary);
  background: var(--soft)
}

#qrCode {
  width: max-content;
  margin: 18px auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff
}

#qrCode img,
#qrCode canvas {
  width: 220px !important;
  height: 220px !important
}

.countdown {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 99px;
  color: #b56e1c;
  background: #fff2df;
  font-size: 11px;
  font-weight: 900
}

.qrTable {
  margin-top: 13px;
  padding: 12px;
  border-radius: 14px;
  color: var(--primaryDark);
  background: var(--soft);
  font-weight: 900
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 120;
  padding: 11px 14px;
  border-radius: 13px;
  color: #fff;
  background: #101914;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: .22s
}

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

.waiter {
  width: min(100%, 680px);
  margin: auto;
  padding: calc(18px + env(safe-area-inset-top)) 14px
}

.waiterCard {
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow)
}

.waiterHead {
  padding: 24px 20px;
  color: #fff;
  background: linear-gradient(145deg, #17221d, #0d1512)
}

.waiterHead small {
  color: #91d6ae;
  font-weight: 900
}

.waiterHead h1 {
  margin-top: 7px;
  font-size: 29px
}

.waiterHead p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  line-height: 1.6
}

.waiterBody {
  padding: 18px
}

.status {
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  background: #f2eee7
}

.status.error {
  color: var(--danger);
  background: #faecec
}

.waiterTable {
  padding: 13px;
  border-radius: 15px;
  color: var(--primaryDark);
  background: var(--soft);
  font-size: 17px;
  font-weight: 900;
  text-align: center
}

.waiterItems {
  display: grid;
  gap: 10px;
  margin-top: 14px
}

.waiterItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px
}

.waiterItem h3 {
  font-size: 13px
}

.waiterItem p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px
}

.waiterNote {
  margin-top: 14px;
  padding: 13px;
  border-radius: 14px;
  background: #fff2df;
  font-size: 12px
}

.waiterTotal {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 900
}

.waiterForm {
  margin-top: 17px
}

.waiterForm label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 850
}

.waiterForm input {
  width: 100%;
  height: 49px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f4f0ea
}

.waiterForm .primary {
  width: 100%;
  margin-top: 10px
}

.success {
  padding: 28px 18px;
  text-align: center
}

.success h2 {
  font-size: 24px
}

.success p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6
}

@media(min-width:720px) {
  .page {
    padding-inline: 24px
  }

  .top {
    margin-inline: -24px;
    padding-inline: 28px
  }

  .hero {
    min-height: 410px
  }

  .heroCopy {
    padding: 36px
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .product {
    grid-template-columns: 130px minmax(0, 1fr)
  }

  .sheet {
    left: 50%;
    right: auto;
    width: min(100% - 36px, 720px);
    transform: translateX(-50%)
  }

  .media img,
  .media video,
  .media iframe {
    height: 340px
  }
}

@media(min-width:1020px) {
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .product {
    grid-template-columns: 1fr
  }

  .photo {
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
  }

  .photo img,
  .photo .productNoImage {
    width: 100%;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    object-fit: cover;
  }
}


/* ==================== PUBLIC MENU ==================== */
.loyalBanner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(189, 141, 63, .2);
  border-radius: 19px;
  background: linear-gradient(135deg, #fff7e8, #fffdf9);
  box-shadow: 0 8px 22px rgba(18, 31, 23, .07)
}

.loyalBanner small {
  display: block;
  color: #bd8d3f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em
}

.loyalBanner strong {
  display: block;
  margin-top: 3px;
  font-size: 15px
}

.loyalBanner p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5
}

.loyalBanner button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: #fff;
  background: #bd8d3f;
  font-size: 10px;
  font-weight: 900
}

.accountTop {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 31, 23, .07);
  font-size: 10px;
  font-weight: 850
}

.bottomNav {
  position: fixed;
  left: 50%;
  bottom: max(9px, env(safe-area-inset-bottom));
  z-index: 65;
  width: min(calc(100% - 18px), 650px);
  display: flex;
  align-items: stretch;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 22px;
  background: rgba(255, 253, 249, .95);
  box-shadow: 0 18px 48px rgba(8, 16, 11, .2);
  backdrop-filter: blur(18px);
  transform: translateX(-50%)
}

.bottomNav button {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 53px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 15px;
  color: var(--muted);
  background: transparent;
  font-size: 8.5px;
  font-weight: 850
}

.bottomNav button.active {
  color: var(--primaryDark);
  background: var(--soft)
}

.bottomNav .icon {
  width: 19px
}

.navCount {
  position: absolute;
  top: 3px;
  right: calc(50% - 20px);
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 99px;
  color: #fff;
  background: var(--primary);
  font-size: 8px
}

.modList {
  display: grid;
  gap: 8px
}

.modItem {
  display: grid;
  grid-template-columns: 21px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7f3ed
}

.modItem input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary)
}

.modItem strong {
  display: block;
  font-size: 11px
}

.modItem small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px
}

.modItem>span:last-child {
  color: var(--primaryDark);
  font-size: 10px;
  font-weight: 850
}

.cartMods {
  margin-top: 5px;
  color: #76552a;
  font-size: 9.5px;
  line-height: 1.45
}

.twoButtons {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 9px
}

.secondary {
  min-height: 48px;
  border-radius: 14px;
  color: var(--primaryDark);
  background: var(--soft);
  font-size: 11px;
  font-weight: 900
}

.previewTable {
  padding: 13px;
  border-radius: 15px;
  color: var(--primaryDark);
  background: var(--soft);
  font-size: 17px;
  font-weight: 900;
  text-align: center
}

.previewList {
  display: grid;
  gap: 9px;
  margin-top: 13px
}

.previewItem {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px
}

.previewItem p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5
}

.campaignGrid {
  display: grid;
  gap: 12px
}

.campaignCard {
  padding: 15px;
  border: 1px solid rgba(189, 141, 63, .2);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8eb, #fffdf9)
}

.campaignCard small {
  color: #bd8d3f;
  font-size: 10px;
  font-weight: 900
}

.campaignCard h3 {
  margin-top: 5px;
  font-size: 18px
}

.campaignCard p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55
}

.progress {
  height: 9px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 99px;
  background: #eadfcf
}

.progress span {
  display: block;
  height: 100%;
  background: #bd8d3f
}

.campaignFoot {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #76552a;
  font-size: 10px;
  font-weight: 850
}

.memberGate {
  margin-bottom: 13px;
  padding: 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #17221d, #0d1512)
}

.memberGate h3 {
  font-size: 18px
}

.memberGate p {
  margin-top: 5px;
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
  line-height: 1.5
}

.memberGate button {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border-radius: 12px;
  color: #132019;
  background: #b9ebcf;
  font-size: 10px;
  font-weight: 900
}

.reasonGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px
}

.reason {
  min-height: 59px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f0ea;
  text-align: left;
  font-size: 10.5px;
  font-weight: 850
}

.reason.active {
  border-color: var(--primary);
  background: var(--soft)
}

.authTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 13px;
  padding: 5px;
  border-radius: 14px;
  background: #f0ece5
}

.authTabs button {
  min-height: 40px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 900
}

.authTabs button.active {
  color: var(--primaryDark);
  background: #fff
}

.formGrid {
  display: grid;
  gap: 9px
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 850
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f4f0ea
}

.phoneInputWrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f4f0ea
}

.phoneInputWrap > span {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em
}

.phoneInputWrap input {
  height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em
}

.phoneInputWrap input:focus {
  outline: 0;
  box-shadow: none
}

.fieldHint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35
}

.accountUpdateNote {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(47, 136, 91, .16);
  border-radius: 13px;
  background: rgba(47, 136, 91, .07)
}

.accountUpdateNote strong {
  color: var(--primaryDark);
  font-size: 10px
}

.accountUpdateNote span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45
}

.authHelp {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  color: var(--primaryDark);
  background: transparent;
  font-size: 9.5px;
  font-weight: 850;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5
}

.consent input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary)
}

.accountHead {
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #17221d, #0d1512)
}

.accountHead small {
  color: #91d6ae;
  font-size: 10px;
  font-weight: 900
}

.accountHead h3 {
  margin-top: 4px;
  font-size: 22px
}

.accountHead p {
  margin-top: 4px;
  color: rgba(255, 255, 255, .65);
  font-size: 11px
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 13px
}

.stat {
  padding: 12px;
  border-radius: 14px;
  background: #f4f0ea;
  text-align: center
}

.stat strong {
  display: block;
  color: var(--primaryDark);
  font-size: 20px
}

.stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px
}

.history {
  display: grid;
  gap: 8px
}

.historyItem {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px
}

.historyItem strong {
  font-size: 11px
}

.historyItem p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45
}

.logout {
  width: 100%;
  min-height: 43px;
  margin-top: 13px;
  border-radius: 13px;
  color: var(--danger);
  background: #faecec;
  font-size: 10px;
  font-weight: 900
}

.waitSuccess {
  padding: 27px 12px;
  text-align: center
}

.waitSuccess h3 {
  margin-top: 9px;
  font-size: 20px
}

.waitSuccess p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55
}

.page {
  padding-bottom: 132px
}

@media(min-width:720px) {
  .accountTop span {
    display: inline
  }

  .reasonGrid {
    grid-template-columns: repeat(4, 1fr)
  }
}


/* ==================== RESPONSIVE SHEET FIX ==================== */
/* =========================================================
AKDEM QR MENU - RESPONSIVE BOTTOM SHEET FIX
========================================================= */
             :root {
               --sheet-inline-gap: 8px;
               --sheet-bottom-gap: max(8px, env(safe-area-inset-bottom));
             }

             /* iOS otomatik form yakınlaştırmasını önler */
             input,
             textarea,
             select {
               font-size: 16px;
             }

             /* Bütün alt pencereler aynı responsive yapıyı kullanır */
             .sheet {
               left: var(--sheet-inline-gap);
               right: var(--sheet-inline-gap);
               bottom: var(--sheet-bottom-gap);
               width: auto;
               max-width: none;
               max-height: calc(100vh - 16px);
               max-height: calc(100dvh - 16px);
               margin: 0;
               border: 1px solid rgba(20, 32, 25, .08);
               border-radius: 26px;
               transform: none;
               overflow: hidden;
               overscroll-behavior: contain;
             }

             .sheet.open {
               display: flex;
               flex-direction: column;
             }

             /* Üstteki tutma çizgisi */
             .handle {
               flex: 0 0 auto;
               width: 38px;
               height: 4px;
               margin: 9px auto 0;
               background: #d2cec6;
             }

             /* Başlık ve kapatma butonu birbirine girmesin */
             .sheetHead {
               position: relative;
               flex: 0 0 auto;
               width: 100%;
               min-height: 72px;
               display: flex;
               align-items: center;
               padding: 12px 68px 13px 18px;
               border-bottom: 1px solid var(--line);
             }

             .sheetHead>div {
               min-width: 0;
               width: 100%;
             }

             .sheetHead h2 {
               margin: 0;
               overflow-wrap: anywhere;
               font-size: clamp(19px, 5vw, 24px);
               line-height: 1.15;
               letter-spacing: -.035em;
             }

             .sheetHead p {
               margin-top: 4px;
               font-size: 12px;
             }

             /* Yeni modern kapatma butonu */
             .close {
               position: absolute;
               top: 50%;
               right: 14px;
               width: 42px;
               height: 42px;
               display: grid;
               place-items: center;
               padding: 0;
               border: 1px solid rgba(20, 32, 25, .09);
               border-radius: 50%;
               color: #5f6862;
               background: #f3efe8;
               box-shadow: 0 5px 16px rgba(18, 31, 23, .06);
               transform: translateY(-50%);
               transition:
                 transform .18s ease,
                 background .18s ease,
                 color .18s ease;
             }

             .close:hover {
               color: var(--text);
               background: #ebe6de;
               transform: translateY(-50%) scale(1.04);
             }

             .close:active {
               transform: translateY(-50%) scale(.96);
             }

             .close svg {
               width: 18px;
               height: 18px;
               pointer-events: none;
             }

             /* İçerik gerektiğinde kayar, başlık ve footer sabit kalır */
             .sheetBody {
               flex: 1 1 auto;
               min-height: 0;
               width: 100%;
               overflow-x: hidden;
               overflow-y: auto;
               padding: 16px;
               overscroll-behavior: contain;
               -webkit-overflow-scrolling: touch;
             }

             /* Ürün medyası sheet genişliğini düzgün kullanır */
             .media {
               margin: -16px -16px 18px;
             }

             .media img,
             .media video,
             .media iframe {
               width: 100%;
               height: clamp(220px, 34vh, 340px);
             }

             /* Tüm footer alanları tam genişlik */
             .sheetFoot,
             .cartFoot {
               flex: 0 0 auto;
               width: 100%;
               margin: 0;
               padding:
                 12px 16px calc(12px + env(safe-area-inset-bottom));
               border-top: 1px solid var(--line);
               background: rgba(255, 253, 249, .97);
               box-shadow: 0 -10px 28px rgba(18, 31, 23, .05);
               backdrop-filter: blur(16px);
             }

             .cartFoot {
               display: grid;
               grid-template-columns: minmax(0, 1fr);
               gap: 9px;
             }

             .sheetFoot {
               display: grid;
               grid-template-columns: 92px minmax(0, 1fr);
               gap: 10px;
             }

             .cartFoot .primary,
             .cartFoot .secondary,
             .sheetFoot .primary {
               width: 100%;
               min-width: 0;
               min-height: 52px;
               padding: 0 14px;
               white-space: normal;
               line-height: 1.25;
               text-align: center;
             }

             .twoButtons {
               display: grid;
               grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
               gap: 9px;
             }

             /* Boş sepet görünümünü gereksiz yere uzatma */
             .sheetBody>.empty.show {
               width: 100%;
               min-height: 210px;
               display: flex;
               flex-direction: column;
               align-items: center;
               justify-content: center;
               margin: 0;
               padding: 28px 20px;
               border: 1px dashed rgba(20, 32, 25, .17);
               border-radius: 18px;
               background: #faf7f2;
             }

             .sheetBody>.empty.show h3 {
               font-size: 18px;
               line-height: 1.3;
             }

             /* Garson çağır alanı */
             .reasonGrid {
               width: 100%;
               display: grid;
               grid-template-columns: repeat(2, minmax(0, 1fr));
               gap: 9px;
             }

             .reason {
               width: 100%;
               min-width: 0;
               min-height: 66px;
               padding: 12px;
               overflow-wrap: anywhere;
               border-radius: 15px;
               font-size: 12px;
               line-height: 1.3;
             }

             .note {
               width: 100%;
               min-height: 100px;
               margin-top: 12px;
               padding: 13px;
               line-height: 1.5;
             }

             /* Ürün, sepet ve hesap kartlarında taşmayı engeller */
             .cartItem,
             .previewItem,
             .campaignCard,
             .historyItem,
             .modItem {
               min-width: 0;
             }

             .cartItem {
               grid-template-columns: 68px minmax(0, 1fr);
             }

             .cartItem img {
               width: 68px;
               height: 78px;
             }

             .row.top>div {
               min-width: 0;
             }

             .cartItem h3,
             .cartMods,
             .previewItem p,
             .historyItem p {
               overflow-wrap: anywhere;
             }

             /* Kampanyalar ve hesap alanı */
             .campaignGrid,
             .formGrid,
             .history {
               width: 100%;
             }

             .field input {
               width: 100%;
             }

             .consent {
               width: 100%;
             }

             /* QR kodu çok küçük ekranlarda taşmasın */
             #qrCode {
               max-width: 100%;
             }

             #qrCode img,
             #qrCode canvas {
               width: min(220px, 62vw) !important;
               height: min(220px, 62vw) !important;
             }

             /* Küçük telefonlar */
             @media (max-width: 420px) {
               :root {
                 --sheet-inline-gap: 5px;
                 --sheet-bottom-gap: max(5px, env(safe-area-inset-bottom));
               }

               .sheet {
                 max-height: calc(100vh - 10px);
                 max-height: calc(100dvh - 10px);
                 border-radius: 23px;
               }

               .sheetHead {
                 min-height: 68px;
                 padding: 10px 60px 11px 15px;
               }

               .sheetHead h2 {
                 font-size: 20px;
               }

               .close {
                 right: 11px;
                 width: 40px;
                 height: 40px;
               }

               .sheetBody {
                 padding: 14px;
               }

               .media {
                 margin: -14px -14px 16px;
               }

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

               .reason {
                 min-height: 72px;
                 padding: 11px;
                 font-size: 11.5px;
               }

               .sheetFoot {
                 grid-template-columns: 84px minmax(0, 1fr);
                 padding-inline: 12px;
               }

               .cartFoot {
                 padding-inline: 12px;
               }

               .twoButtons {
                 grid-template-columns: 1fr;
               }

               .twoButtons .secondary {
                 order: 2;
               }

               .twoButtons .primary {
                 order: 1;
               }

               .cartItem {
                 grid-template-columns: 62px minmax(0, 1fr);
                 gap: 9px;
               }

               .cartItem img {
                 width: 62px;
                 height: 72px;
               }

               .options {
                 grid-template-columns: 1fr;
               }

               .detailRow {
                 align-items: flex-start;
               }

               .detailRow h2 {
                 max-width: 66%;
                 font-size: 23px;
               }

               .detailPrice {
                 font-size: 18px;
               }
             }

             /* Çok dar telefonlar */
             @media (max-width: 340px) {
               .reasonGrid {
                 grid-template-columns: 1fr;
               }

               .sheetFoot {
                 grid-template-columns: 78px minmax(0, 1fr);
               }

               .sheetHead h2 {
                 font-size: 18px;
               }
             }

             /* Tablet ve masaüstü */
             @media (min-width: 720px) {
               .sheet {
                 left: 50%;
                 right: auto;
                 bottom: 14px;
                 width: min(calc(100% - 28px), 680px);
                 max-height: calc(100dvh - 28px);
                 border-radius: 28px;
                 transform: translateX(-50%);
               }

               .sheetBody {
                 padding: 20px;
               }

               .media {
                 margin: -20px -20px 20px;
               }

               .reasonGrid {
                 grid-template-columns: repeat(2, minmax(0, 1fr));
               }
             }


/* ==================== CATEGORY SHOWCASE ==================== */
/* =========================================================
KATEGORİ VİTRİNİ
- Mobil: 2 kart
- Tablet: 3 / 4 kart
- Masaüstü: 6 kart
========================================================= */
             .categoryGrid {
               display: grid;
               grid-template-columns: repeat(2, minmax(0, 1fr));
               gap: 10px;
             }

             .categoryCard {
               position: relative;
               min-width: 0;
               aspect-ratio: 1 / 1.08;
               overflow: hidden;
               padding: 0;
               border: 1px solid rgba(20, 32, 25, .09);
               border-radius: 20px;
               color: #fff;
               background: #17221d;
               box-shadow: 0 10px 26px rgba(18, 31, 23, .08);
               text-align: left;
               isolation: isolate;
               transition: transform .18s ease, box-shadow .18s ease;
             }

             .categoryCard:active {
               transform: scale(.98);
             }

             .categoryCard img,
             .categoryNoImage {
               position: absolute;
               inset: 0;
               width: 100%;
               height: 100%;
             }

             .categoryCard img {
               object-fit: cover;
               transition: transform .28s ease;
             }

             .categoryCard:hover img {
               transform: scale(1.045);
             }

             .categoryNoImage {
               display: grid;
               place-items: center;
               color: rgba(255, 255, 255, .16);
               background: linear-gradient(145deg, #233a2e, #111914);
               font-size: 42px;
               font-weight: 950;
               letter-spacing: -.08em;
             }

             .categoryShade {
               position: absolute;
               inset: 0;
               z-index: 1;
               background: linear-gradient(to top, rgba(7, 12, 9, .92) 0%, rgba(7, 12, 9, .34) 56%, rgba(7, 12, 9, .04) 100%);
             }

             .categoryInfo {
               position: absolute;
               left: 0;
               right: 0;
               bottom: 0;
               z-index: 2;
               display: block;
               padding: 13px;
             }

             .categoryInfo small,
             .categoryInfo strong,
             .categoryInfo em {
               display: block;
             }

             .categoryInfo small {
               color: #b9ebcf;
               font-size: 8px;
               font-style: normal;
               font-weight: 900;
               letter-spacing: .1em;
             }

             .categoryInfo strong {
               margin-top: 4px;
               overflow-wrap: anywhere;
               font-size: clamp(14px, 4.4vw, 19px);
               line-height: 1.05;
               letter-spacing: -.035em;
             }

             .categoryInfo em {
               margin-top: 5px;
               color: rgba(255, 255, 255, .7);
               font-size: 9px;
               font-style: normal;
               font-weight: 800;
             }

             .categoryDetailTop {
               margin-bottom: 12px;
             }

             .categoryBack {
               min-height: 40px;
               padding: 0 13px;
               border: 1px solid var(--line);
               border-radius: 13px;
               color: var(--primaryDark);
               background: var(--soft);
               font-size: 11px;
               font-weight: 900;
             }

             .categoryHome {
               color: var(--primaryDark);
               background: var(--soft);
               border-color: rgba(47, 136, 91, .14);
             }

             @media (min-width: 560px) {
               .categoryGrid {
                 grid-template-columns: repeat(3, minmax(0, 1fr));
                 gap: 12px;
               }
             }

             @media (min-width: 820px) {
               .categoryGrid {
                 grid-template-columns: repeat(4, minmax(0, 1fr));
               }
             }

             @media (min-width: 1020px) {
               .categoryGrid {
                 grid-template-columns: repeat(6, minmax(0, 1fr));
               }

               .categoryCard {
                 aspect-ratio: .92 / 1;
               }

               .categoryInfo {
                 padding: 14px 12px;
               }

               .categoryInfo strong {
                 font-size: 17px;
               }
             }


.publicFooter {
  width: min(1180px, calc(100% - 28px));
  margin: 22px auto 92px;
  padding: 12px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}


/* v1.2.1: Kampanya/Sadakat gizliyken kalan alt menü öğeleri boşluk bırakmadan eşit genişler. */
.bottomNav button[hidden] {
  display: none !important;
}

@media (max-width: 420px) {
  .bottomNav {
    width: calc(100% - 14px);
    gap: 4px;
    padding: 6px;
  }
  .bottomNav button {
    min-height: 56px;
    font-size: 8.5px;
  }
}
