:root {
  --accent: #a50e18;
  --accent-dark: #7e0710;
  --ink: #17110f;
  --muted: #746962;
  --line: #e8dfd8;
  --page: #f4eee9;
  --surface: #fffaf6;
  --surface-2: #fdf5ef;
  --white: #fff;
  --shadow: 0 20px 60px rgba(46, 25, 17, .14);
  --soft-shadow: 0 8px 26px rgba(44, 29, 22, .08);
  --radius-lg: 26px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --nav-h: 98px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(165, 14, 24, .08), transparent 28%),
    linear-gradient(135deg, #f7f1ec 0%, #eee4dd 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

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

.app-stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 0;
  overflow-x: hidden;
}

.phone-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.route-shell {
  opacity: 0;
}

.route-shell.is-ready {
  opacity: 1;
  transition: opacity .18s ease;
}

.hero {
  height: 262px;
  position: relative;
  overflow: visible;
  color: var(--white);
  background: #2b0d07;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(19, 4, 1, .54), rgba(31, 6, 1, .7)),
    var(--hero-img);
  background-size: cover;
  background-position: center;
  filter: blur(1.5px) saturate(.9) contrast(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(24, 5, 1, .62));
}

.hero-home {
  --hero-img: url("../images/brand/lunqa-cafe-hero.png");
}

.hero-menu {
  --hero-img: url("../images/brand/lunqa-cafe-hero.png");
}

.hero-about {
  --hero-img: url("../images/brand/lunqa-cafe-hero.png");
}

.status-bar {
  position: relative;
  z-index: 2;
  height: 42px;
  padding: 16px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.signal {
  display: inline-grid;
  grid-template-columns: repeat(4, 3px);
  align-items: end;
  gap: 2px;
  height: 13px;
}

.signal i {
  display: block;
  width: 3px;
  border-radius: 3px 3px 0 0;
  background: currentColor;
}

.signal i:nth-child(1) { height: 4px; }
.signal i:nth-child(2) { height: 7px; }
.signal i:nth-child(3) { height: 10px; }
.signal i:nth-child(4) { height: 13px; }

.wifi {
  width: 15px;
  height: 11px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 12px 12px 0 0;
  position: relative;
  top: 1px;
}

.battery {
  width: 21px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
  position: relative;
}

.battery::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 2px;
  width: 3px;
  height: 4px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
}

.back-btn {
  position: absolute;
  z-index: 3;
  top: 64px;
  left: 22px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .9);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 40px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-copy h1 {
  margin: 14px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.brand-mark {
  width: 62px;
  color: var(--white);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.brand-mark-icon {
  width: 48px;
  height: 58px;
  border: 2px solid currentColor;
  border-bottom-width: 4px;
  border-radius: 26px 26px 4px 4px;
  position: relative;
}

.brand-mark-icon::before,
.brand-mark-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  border-top: 1.5px solid currentColor;
}

.brand-mark-icon::before { top: 16px; }
.brand-mark-icon::after { top: 32px; }

.brand-rays {
  position: absolute;
  inset: 6px 7px auto;
  height: 22px;
  border-top: 1.5px solid currentColor;
}

.brand-rays::before,
.brand-rays::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 20px;
  border-top: 1.5px solid currentColor;
}

.brand-rays::before {
  left: -2px;
  transform: rotate(22deg);
  transform-origin: left center;
}

.brand-rays::after {
  right: -2px;
  transform: rotate(-22deg);
  transform-origin: right center;
}

.brand-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .22em;
}

.logo-tab .brand-mark {
  width: 58px;
  height: 58px;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  align-content: center;
  gap: 1px;
  box-shadow: 0 8px 20px rgba(126, 7, 16, .24);
}

.logo-tab .brand-mark-icon {
  width: 29px;
  height: 34px;
  border-width: 1.2px;
  border-bottom-width: 2px;
}

.logo-tab .brand-mark-icon::before,
.logo-tab .brand-mark-icon::after,
.logo-tab .brand-rays,
.logo-tab .brand-rays::before,
.logo-tab .brand-rays::after {
  border-top-width: 1px;
}

.logo-tab .brand-mark-icon::before { top: 10px; }
.logo-tab .brand-mark-icon::after { top: 20px; }
.logo-tab .brand-rays { inset: 4px 4px auto; height: 12px; }
.logo-tab .brand-word { font-size: 6px; letter-spacing: .18em; }

.floating-search {
  position: absolute;
  z-index: 5;
  left: 16px;
  right: 16px;
  bottom: -27px;
}

.search-box {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(214, 201, 192, .8);
  border-radius: 24px;
  background: rgba(255, 252, 249, .96);
  box-shadow: 0 10px 24px rgba(54, 30, 21, .11);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.search-box svg {
  color: var(--accent);
  flex: 0 0 auto;
}

.page-panel {
  position: relative;
  z-index: 4;
  min-height: calc(100dvh - 220px);
  margin-top: -12px;
  padding: 58px 16px calc(var(--nav-h) + 18px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg, #fffdfb 0%, var(--surface) 100%);
}

.home-panel {
  padding-top: 54px;
}

.filter-row,
.menu-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar,
.menu-tabs::-webkit-scrollbar,
.related-strip::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

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

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, .76);
  text-align: left;
  box-shadow: var(--soft-shadow);
}

.product-card button,
.menu-row {
  width: 100%;
  min-width: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.product-card-media {
  aspect-ratio: 1 / 1.04;
  background: #eee1d9 center / cover no-repeat;
  overflow: hidden;
}

.product-card-media img,
.menu-thumb img,
.related-card img,
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 12px 12px 16px;
}

.product-card-title {
  min-height: 39px;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 800;
}

.price {
  color: var(--accent-dark);
  font-weight: 900;
}

.product-card .price {
  margin-top: 8px;
  font-size: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 255, 255, .55);
  text-align: center;
}

.menu-tabs-shell {
  margin-bottom: 18px;
  padding: 18px 12px 14px;
  border: 1px solid rgba(226, 215, 207, .88);
  border-radius: 28px;
  background: rgba(255, 252, 249, .98);
  box-shadow: 0 12px 24px rgba(44, 25, 18, .06);
}

.menu-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
  overflow: visible;
  padding-bottom: 0;
}

.menu-tab {
  width: auto;
  flex: initial;
  border: 0;
  color: #201815;
  background: transparent;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
}

.menu-tab-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #1b1513;
}

.menu-tab.active .menu-tab-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 10px 18px rgba(165, 14, 24, .22);
}

.menu-tab svg {
  width: 31px;
  height: 31px;
}

.menu-tab span:last-child {
  line-height: 1.15;
  white-space: nowrap;
}

.menu-list {
  display: grid;
}

.menu-row {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.menu-row:first-child {
  border-top: 0;
}

.menu-thumb {
  width: 102px;
  height: 94px;
  border-radius: 12px;
  overflow: hidden;
  background: #efe1d8;
}

.menu-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.menu-desc {
  color: #3e3430;
  font-size: 12px;
  line-height: 1.45;
}

.menu-row .price {
  font-size: 17px;
}

.section-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.2;
}

.section-title .accent-line {
  display: block;
  width: 25px;
  height: 3px;
  margin-top: 9px;
  border-radius: 99px;
  background: var(--accent);
}

.story {
  color: #261d19;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.branch-pill {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, .62);
}

.branch-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  color: #291f1b;
  font-size: 12px;
  font-weight: 700;
}

.branch-pill span + span {
  border-left: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 28px;
}

.gallery-tile {
  aspect-ratio: .86 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #eadbd0;
}

.social-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, .62);
}

.instagram-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--accent);
}

.social-name {
  font-size: 12px;
  font-weight: 800;
}

.social-desc {
  margin-top: 4px;
  color: #3a302b;
  font-size: 11px;
}

.detail-shell {
  min-height: 100dvh;
  background: var(--surface);
  padding-bottom: calc(var(--nav-h) + 12px);
}

.detail-media {
  position: relative;
  height: 318px;
  overflow: hidden;
  background: #eadfd7;
}

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

.detail-media .back-btn {
  top: 57px;
}

.detail-sheet {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding: 26px 22px 22px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface);
}

.detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.detail-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.1;
}

.detail-heading .price {
  font-size: 20px;
}

.detail-desc {
  margin: 12px 0 20px;
  color: #2d2420;
  font-size: 12px;
  line-height: 1.5;
}

.hairline {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.ingredient-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.ingredient {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 66px;
  border-left: 1px solid var(--line);
  color: #312723;
  font-size: 10px;
  text-align: center;
}

.ingredient:first-child {
  border-left: 0;
}

.ingredient svg {
  width: 29px;
  height: 29px;
}

.related-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 30%;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 18px;
}

.related-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, .7);
}

.related-card img {
  height: 84px;
}

.related-card span {
  display: block;
  padding: 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0 0 24px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ded5cd;
}

.dots i:first-child {
  background: var(--accent);
}

.info-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 3px 0 15px;
  border-bottom: 1px solid var(--line);
}

.info-row h3,
.detail-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.info-row p,
.detail-section p {
  margin: 0;
  color: #403630;
  font-size: 11px;
  line-height: 1.45;
}

.branch-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #211916;
  font-size: 11px;
}

.branch-detail span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.bottom-nav {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: env(safe-area-inset-bottom, 0px);
  width: 100%;
  max-width: 430px;
  height: var(--nav-h);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr 1fr 1fr;
  align-items: center;
  padding: 10px 12px 12px;
  border: 1px solid rgba(226, 215, 207, .88);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: rgba(255, 252, 249, .98);
  backdrop-filter: blur(16px);
  box-shadow: 0 -14px 34px rgba(44, 25, 18, .08);
}

.nav-btn {
  min-width: 0;
  height: 66px;
  border: 0;
  color: #211916;
  background: transparent;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  text-decoration: none;
  font-size: 9.5px;
  font-weight: 700;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
}

.nav-btn span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-btn.active {
  color: var(--accent);
}

.logo-tab {
  position: relative;
  top: -30px;
  display: grid;
  place-items: center;
}

.admin-stage {
  min-height: 100dvh;
  width: 100%;
  background:
    radial-gradient(circle at 80% 8%, rgba(165, 14, 24, .16), transparent 31%),
    linear-gradient(135deg, #2a0d07 0%, #100604 44%, #f4eee9 44.2%, #f4eee9 100%);
  padding: 28px;
}

.admin-login {
  width: min(100%, 420px);
  margin: 8vh auto 0;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  color: var(--white);
  background: rgba(32, 10, 6, .8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.admin-login .brand-mark {
  margin-bottom: 22px;
}

.admin-login h1,
.admin-title h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.08;
}

.admin-login p {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
  padding: 11px 12px;
  font-size: 13px;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.login-field input {
  border-color: rgba(255, 255, 255, .22);
  color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn {
  min-height: 42px;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 900;
}

.primary-btn {
  border: 1px solid var(--accent);
  color: var(--white);
  background: var(--accent);
}

.secondary-btn {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.danger-btn {
  border: 1px solid #d8a9a9;
  color: #9a1017;
  background: #fff5f4;
}

.ghost-btn {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.form-error {
  min-height: 17px;
  color: #ffd3d3;
  font-size: 12px;
  font-weight: 800;
}

.admin-shell {
  width: min(100%, 1220px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 18px;
}

.admin-sidebar,
.admin-main,
.admin-card {
  border: 1px solid rgba(230, 218, 209, .86);
  border-radius: 18px;
  background: rgba(255, 252, 249, .94);
  box-shadow: var(--soft-shadow);
}

.admin-sidebar {
  min-height: calc(100dvh - 56px);
  padding: 20px;
}

.admin-sidebar .brand-mark {
  color: var(--accent);
  margin-bottom: 22px;
}

.admin-nav {
  display: grid;
  gap: 9px;
}

.admin-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  color: #241a17;
  background: transparent;
  text-align: left;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.admin-nav button.active {
  color: var(--white);
  background: var(--accent);
}

.admin-main {
  padding: 22px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.admin-card {
  padding: 16px;
}

.admin-card h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-product-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .64);
}

.admin-product-row img,
.admin-preview img {
  width: 64px;
  height: 66px;
  object-fit: cover;
  border-radius: 10px;
  background: #efe1d9;
}

.admin-product-row strong {
  display: block;
  font-size: 13px;
}

.admin-product-row small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

.admin-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-actions button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.admin-preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-token {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.category-token button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  color: var(--accent);
  background: #fff0f0;
}

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

.site-settings .wide {
  grid-column: 1 / -1;
}

.brand-mark {
  width: auto;
  color: inherit;
  text-align: center;
  display: inline-grid;
  justify-items: center;
  gap: 4px;
}

.brand-logo-img {
  width: 58px;
  height: auto;
  object-fit: contain;
}

.brand-mark-light .brand-logo-img {
  filter: invert(1);
}

.brand-mark-dark .brand-logo-img {
  filter: none;
}

.brand-mark-hero .brand-logo-img {
  width: 108px;
}

.brand-mark-round {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--accent);
  box-shadow: 0 16px 30px rgba(126, 7, 16, .28);
}

.brand-mark-round .brand-logo-img {
  width: 46px;
}

.brand-mark-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: #f2e8df;
}

.brand-mark-badge .brand-logo-img {
  width: 34px;
}

.brand-mark-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark-inline .brand-logo-img {
  width: 34px;
}

.brand-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .2em;
}

.brand-mark-round .brand-word {
  color: var(--white);
  font-size: 6px;
}

.home-landing-hero {
  min-height: 410px;
  position: relative;
  color: var(--white);
  background: #260902;
  overflow: visible;
  border-radius: 0 0 34px 34px;
}

.home-landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 4, 0, .2) 0%, rgba(24, 4, 0, .12) 45%, rgba(24, 4, 0, .62) 100%),
    url("../images/brand/lunqa-cafe-hero.png") center / cover no-repeat;
}

.home-landing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(180deg, transparent, rgba(22, 4, 0, .68));
  pointer-events: none;
}

.hero-location-pill {
  position: absolute;
  z-index: 3;
  top: 56px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.home-hero-copy {
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 22px;
  bottom: 88px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 2px;
}

.home-hero-copy h1 {
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: .94;
  font-weight: 500;
  letter-spacing: 0;
}

.home-hero-copy p {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 600;
}

.home-hero-copy > span {
  margin-top: 7px;
  color: #ffd890;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 24px;
  transform: rotate(-5deg);
}

.home-floating-search {
  bottom: -39px;
  left: 22px;
  right: 22px;
}

.home-search-box {
  height: 78px;
  border-radius: 999px;
  padding: 0 26px;
}

.home-search-box input {
  font-size: 24px;
}

.home-modern-panel {
  margin-top: -18px;
  padding-top: 82px;
}

.home-category-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.home-category-card {
  min-width: 0;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 11px;
  font-size: 14px;
  box-shadow: var(--soft-shadow);
}

.home-category-card.active,
.home-category-card:hover {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.home-section {
  margin-top: 20px;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.home-section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
}

.home-section-head button {
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

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

.featured-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--soft-shadow);
}

.featured-card button,
.special-card button,
.home-story-row {
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.featured-media {
  position: relative;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
}

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

.featured-media span {
  position: absolute;
  left: 14px;
  top: 12px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #ffe0a5;
  background: rgba(51, 28, 20, .82);
  font-size: 12px;
  font-weight: 800;
}

.featured-body {
  padding: 12px 14px 14px;
}

.featured-body h3 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.featured-body p {
  min-height: 42px;
  margin: 0 0 8px;
  color: #514640;
  font-size: 13px;
  line-height: 1.45;
}

.featured-body div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.featured-body .price {
  font-size: 22px;
}

.featured-body b,
.special-card i {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-style: normal;
  background: rgba(255, 252, 249, .82);
}

.special-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.special-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .66);
}

.special-card button {
  min-height: 118px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.special-card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.special-card strong,
.home-story-row strong,
.home-social-row strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.08;
  font-weight: 500;
}

.special-card em,
.home-story-row em,
.home-social-row em {
  display: block;
  margin-top: 6px;
  color: #514640;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.special-card .price {
  display: block;
  margin-top: 7px;
  font-size: 17px;
}

.home-story-row,
.home-social-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 142px 34px;
  gap: 13px;
  align-items: center;
  min-height: 88px;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, .66);
}

.home-story-row img {
  width: 142px;
  height: 66px;
  border-radius: 13px;
  object-fit: cover;
}

.home-social-row {
  grid-template-columns: 58px minmax(0, 1fr) minmax(120px, .8fr) 30px;
}

.social-copy {
  color: #514640;
  font-size: 12px;
  line-height: 1.35;
}


.hero-menu .hero-copy {
  bottom: 68px;
}

.hero-menu .hero-copy h1 {
  margin: 8px 0 6px;
  font-size: 36px;
}

.hero-menu .hero-copy p {
  font-size: 16px;
}

.page-panel-menu {
  padding-top: 64px;
}

.menu-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(165, 14, 24, .12);
  border-radius: 18px;
  background: rgba(165, 14, 24, .05);
}

.menu-context-banner strong {
  font-size: 14px;
}

.menu-context-banner button {
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.assistant-widget {
  position: fixed;
  right: 14px;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.assistant-fab {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: var(--white);
  background: linear-gradient(135deg, #a50e18, #7e0710);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 18px 32px rgba(126, 7, 16, .24);
}

.assistant-fab-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.assistant-fab svg {
  width: 28px;
  height: 28px;
}

.assistant-panel {
  width: min(348px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  border: 1px solid rgba(226, 215, 207, .92);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 252, 249, .98);
  box-shadow: 0 22px 48px rgba(44, 25, 18, .16);
  backdrop-filter: blur(18px);
}

.assistant-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.assistant-panel-head strong {
  display: block;
  font-size: 15px;
}

.assistant-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.assistant-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .04);
  font-size: 22px;
  line-height: 1;
}

.assistant-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px 0;
  scrollbar-width: none;
}

.assistant-suggestions::-webkit-scrollbar {
  display: none;
}

.assistant-suggestions button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.assistant-messages {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
  padding: 14px 16px;
}

.assistant-message {
  display: flex;
}

.assistant-message p {
  margin: 0;
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.assistant-message.is-assistant p {
  color: #251b17;
  background: #fff;
  border: 1px solid var(--line);
}

.assistant-message.is-user {
  justify-content: flex-end;
}

.assistant-message.is-user p {
  color: var(--white);
  background: var(--accent);
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
}

.assistant-form input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.assistant-form button {
  height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: var(--white);
  background: var(--accent);
  font-weight: 800;
}

.desktop-top-nav {
  display: none;
}

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

.admin-choice-grid h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.admin-checkbox-list {
  display: grid;
  gap: 9px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.admin-check-row {
  display: grid;
  grid-template-columns: 18px 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .64);
}

.admin-check-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 9px;
}

.admin-check-row strong,
.admin-check-row em {
  display: block;
}

.admin-check-row strong {
  font-size: 12px;
}

.admin-check-row em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

@media (min-width: 768px) {
  .app-stage {
    padding: 22px;
  }

  .phone-shell {
    width: 100%;
    max-width: 820px;
    min-height: calc(100dvh - 44px);
    border: 1px solid rgba(226, 215, 207, .85);
    border-radius: 28px;
    box-shadow: var(--shadow);
  }

  .desktop-top-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(232, 223, 216, .76);
    background: rgba(255, 250, 246, .92);
    backdrop-filter: blur(16px);
  }

  .desktop-brand {
    border: 0;
    color: var(--ink);
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
  }

  .desktop-top-nav nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .desktop-top-nav nav button,
  .desktop-top-nav nav a {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--ink);
    background: transparent;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
  }

  .desktop-top-nav nav .active,
  .desktop-top-nav nav button:hover,
  .desktop-top-nav nav a:hover {
    border-color: var(--line);
    color: var(--accent-dark);
    background: rgba(255, 255, 255, .68);
  }

  .hero {
    height: 284px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .page-panel {
    padding-left: 24px;
    padding-right: 24px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .bottom-nav {
    display: none;
  }

  .home-landing-hero {
    min-height: 500px;
    border-radius: 0 0 34px 34px;
  }

  .home-hero-copy {
    bottom: 102px;
  }

  .home-hero-copy h1 {
    font-size: 76px;
  }

  .home-floating-search {
    left: 42px;
    right: 42px;
    bottom: -44px;
  }

  .home-modern-panel {
    padding: 92px 42px 46px;
  }

  .home-category-card {
    min-height: 138px;
  }

  .phone-shell {
    padding-bottom: 0;
  }

  .detail-media {
    height: 420px;
  }

  .related-strip {
    grid-auto-columns: 160px;
  }
}

@media (min-width: 1160px) {
  .phone-shell {
    width: 100%;
    max-width: 1120px;
  }

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

  .hero {
    height: 306px;
  }

  .page-panel {
    padding-left: 30px;
    padding-right: 30px;
  }

  .bottom-nav {
    display: none;
  }

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

  .home-category-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .app-stage {
    justify-content: flex-start;
  }

  .phone-shell,
  .bottom-nav {
    max-width: none;
  }

  .special-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 78%);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .special-row::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  .admin-stage {
    padding: 16px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-grid,
  .site-settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .hero {
    height: 254px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .home-landing-hero {
    min-height: 390px;
  }

  .home-hero-copy {
    bottom: 82px;
  }

  .home-hero-copy h1 {
    font-size: 45px;
  }

  .home-hero-copy p {
    font-size: 15px;
  }

  .home-search-box {
    height: 66px;
    padding: 0 18px;
  }

  .home-search-box input {
    font-size: 19px;
  }

  .home-category-row {
    gap: 9px;
  }

  .home-category-card {
    min-height: 104px;
    border-radius: 19px;
    font-size: 12px;
  }

  .featured-grid,
  .special-row {
    gap: 10px;
  }

  .featured-body h3 {
    font-size: 18px;
  }

  .home-story-row,
  .home-social-row {
    grid-template-columns: 58px minmax(0, 1fr) 30px;
  }

  .home-story-row img,
  .social-copy {
    display: none;
  }

  .menu-row {
    grid-template-columns: 102px minmax(0, 1fr) 54px;
    gap: 14px;
  }

  .admin-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* Controlled fixes: remove fake device bar, stabilize public UI, and add lightbox/auto-scroll support. */
.status-bar {
  display: none !important;
}

.back-btn,
.detail-media .back-btn {
  top: 22px;
}

.hero-location-pill {
  top: 22px;
}

.home-modern-panel {
  padding-top: 70px;
}

.home-category-row {
  display: none;
}

.gallery-tile {
  width: 100%;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  text-align: left;
  box-shadow: none;
}

.gallery-tile:focus-visible {
  outline: 3px solid rgba(165, 14, 24, .32);
  outline-offset: 2px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 7, 4, .78);
  backdrop-filter: blur(14px);
}

.lightbox-frame {
  width: min(100%, 980px);
  max-height: min(82dvh, 720px);
  margin: 0;
  display: grid;
  place-items: center;
}

.lightbox-frame img {
  width: auto;
  max-width: 100%;
  max-height: min(82dvh, 720px);
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  z-index: 1001;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.related-strip {
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

@media (max-width: 520px) {
  .home-modern-panel {
    padding-top: 60px;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

/* Database/admin enhancement pass */
.admin-save-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(85, 42, 22, .08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-product-row.is-passive {
  opacity: .58;
  background: rgba(0, 0, 0, .025);
}

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

.admin-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(84, 42, 23, .13);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: var(--brown);
  font-weight: 800;
  cursor: pointer;
}

.admin-switch.wide {
  grid-column: 1 / -1;
}

.admin-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.admin-pairing-box {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 18px;
  background: rgba(245, 238, 229, .72);
  border: 1px solid rgba(84, 42, 23, .1);
}

.admin-pairing-box h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.admin-checkbox-list.compact {
  max-height: 260px;
}

.small-list {
  max-height: 440px;
  overflow: auto;
}

.gallery-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.gallery-admin-item {
  padding: 10px;
  border: 1px solid rgba(84, 42, 23, .12);
  border-radius: 18px;
  background: #fff;
}

.gallery-admin-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
}

.detail-product-info {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 246, 236, .92);
  color: var(--brown);
  font-size: 13px;
  line-height: 1.55;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(165, 14, 24, .09);
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.muted-line {
  opacity: .72;
  margin-top: 6px !important;
}

.empty-state.compact {
  min-height: auto;
  padding: 12px;
  font-size: 12px;
}

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(19, 9, 5, .55);
  backdrop-filter: blur(10px);
}

.promo-popup-card {
  position: relative;
  width: min(92vw, 430px);
  overflow: hidden;
  border-radius: 28px;
  background: #fffaf5;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .42);
}

.promo-popup-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.promo-popup-body {
  padding: 22px;
}

.promo-popup-body h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--brown);
}

.promo-popup-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.promo-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: var(--brown);
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

@media (max-width: 720px) {
  .admin-toggle-grid {
    grid-template-columns: 1fr;
  }

  .admin-save-status {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}


@media (max-width: 520px) {
  .assistant-widget {
    right: 12px;
    bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px));
  }

  .assistant-panel {
    width: calc(100vw - 24px);
  }

  .menu-tab {
    font-size: 10px;
  }

  .menu-tab-icon {
    width: 50px;
    height: 50px;
  }

  .menu-tab.active .menu-tab-icon {
    width: 56px;
    height: 56px;
  }
}

@media (min-width: 768px) {
  .assistant-widget {
    right: 34px;
    bottom: 28px;
  }
}


/* Hotfix: fixed bottom navbar + clean center logo + stable category tabs */
.bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: env(safe-area-inset-bottom, 0px) !important;
  transform: translateX(-50%) !important;
  z-index: 70 !important;
}

.logo-tab {
  top: -28px;
  height: 70px;
}

.logo-tab .brand-mark-round,
.brand-mark-round {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 8px 0 7px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(126, 7, 16, .28);
}

.logo-tab .brand-mark-round .brand-logo-img,
.brand-mark-round .brand-logo-img {
  width: 45px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  filter: invert(1);
}

.logo-tab .brand-mark-round .brand-word,
.brand-mark-round .brand-word {
  display: block;
  color: #fff;
  font-size: 7px;
  line-height: 1;
  letter-spacing: .18em;
  margin-top: 0;
}

.page-panel,
.detail-sheet,
.home-modern-panel {
  padding-bottom: calc(var(--nav-h) + 34px) !important;
}

.menu-tabs-shell {
  margin: 0 0 20px;
  padding: 18px 11px 15px;
  border-radius: 30px;
  background: rgba(255, 252, 249, .98);
  border: 1px solid rgba(226, 215, 207, .96);
  box-shadow: 0 10px 26px rgba(44, 25, 18, .06);
}

.menu-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 2px;
  overflow: visible;
}

.menu-tab {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 0;
  font-size: 10.5px;
  line-height: 1.15;
}

.menu-tab-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
}

.menu-tab-icon svg,
.menu-tab svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.85;
}

.menu-tab.active .menu-tab-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 12px 22px rgba(165, 14, 24, .22);
}

.menu-tab span:last-child {
  min-height: 24px;
  display: grid;
  place-items: start center;
  white-space: normal;
  text-align: center;
  font-weight: 800;
}

.assistant-widget {
  right: 14px;
  bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
}

.assistant-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

@media (min-width: 768px) {
  .bottom-nav { display: none !important; }
}


/* Final category panel + Barista refinement */
.menu-tabs-shell {
  margin: 0 0 18px;
  padding: 18px 12px 16px;
  border-radius: 28px;
  background: rgba(255, 252, 249, .99);
  border: 1px solid rgba(226, 215, 207, .92);
  box-shadow: 0 8px 20px rgba(44, 25, 18, .05);
}

.menu-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 4px;
  overflow: visible;
}

.menu-tab {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 9px;
  padding: 0;
  font-size: 10.5px;
  line-height: 1.12;
  color: #2a201c;
}

.menu-tab-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #211916;
  background: transparent;
}

.menu-tab-icon svg,
.menu-tab svg {
  width: 33px;
  height: 33px;
  stroke-width: 1.8;
}

.menu-tab.active .menu-tab-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 12px 22px rgba(165, 14, 24, .24);
}

.menu-tab span:last-child {
  min-height: 24px;
  display: grid;
  place-items: start center;
  white-space: normal;
  text-align: center;
  font-weight: 800;
}

.menu-tab.active span:last-child {
  color: var(--accent-dark);
}

.assistant-panel-head strong::after {
  content: ' • Barista';
  display: none;
}


/* Category reference lock v4 - forced + cache-busted */
.page-panel-menu .menu-tabs-shell {
  margin: -2px 0 20px !important;
  padding: 18px 10px 14px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(226, 215, 207, .94) !important;
  background: rgba(255, 252, 249, .995) !important;
  box-shadow: 0 10px 24px rgba(44, 25, 18, .055) !important;
}

.page-panel-menu .menu-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: start !important;
  justify-items: stretch !important;
  gap: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

.page-panel-menu .menu-tab {
  width: auto !important;
  min-width: 0 !important;
  min-height: 88px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #221916 !important;
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  gap: 6px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
}

.page-panel-menu .menu-tab-icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  color: #1e1715 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: none !important;
}

.page-panel-menu .menu-tab-icon svg,
.page-panel-menu .menu-tab svg {
  width: 38px !important;
  height: 38px !important;
  stroke-width: 1.65 !important;
}

.page-panel-menu .menu-tab.active .menu-tab-icon {
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  color: #fff !important;
  background: var(--accent) !important;
  box-shadow: 0 12px 20px rgba(165, 14, 24, .22) !important;
}

.page-panel-menu .menu-tab.active .menu-tab-icon svg {
  width: 39px !important;
  height: 39px !important;
}

.page-panel-menu .menu-tab span:last-child {
  min-height: 22px !important;
  width: 100% !important;
  display: grid !important;
  place-items: start center !important;
  white-space: normal !important;
  overflow: visible !important;
  text-align: center !important;
  color: #211916 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.page-panel-menu .menu-tab.active span:last-child {
  color: var(--accent-dark) !important;
}

@media (max-width: 380px) {
  .page-panel-menu .menu-tabs-shell {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .page-panel-menu .menu-tab {
    font-size: 10px !important;
  }

  .page-panel-menu .menu-tab-icon {
    width: 54px !important;
    height: 54px !important;
  }

  .page-panel-menu .menu-tab.active .menu-tab-icon {
    width: 58px !important;
    height: 58px !important;
  }

  .page-panel-menu .menu-tab-icon svg,
  .page-panel-menu .menu-tab svg {
    width: 35px !important;
    height: 35px !important;
  }
}


/* Barista panel açıkken yuvarlak butonu gizle */
.assistant-widget.open .assistant-fab {
  display: none !important;
}

.assistant-widget.open {
  bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px)) !important;
}
