:root {
  --g: #1b5e38;
  --g2: #2a7d4f;
  --gold: #b57a2a;
  --bg: #fbf3df;
  --c: #fffdf8;
  --t: #2b2318;
  --m: #7a6d58;
  --l: #eadfc3;
  --r: #c0392b;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: auto;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--t);
  font: 17px/1.55 var(--font);
  overflow-x: hidden;
}
h1,
h2,
h3,
.logo {
  font-family: var(--font);
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
.w {
  max-width: 1180px;
  margin: auto;
  padding: 0 16px;
}
.btn {
  background: var(--g);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover {
  filter: brightness(1.1);
}
.btn.o {
  background: transparent;
  color: var(--g);
  border: 1.5px solid var(--g);
}
.btn.gd {
  background: var(--gold);
}
.btn.sm {
  padding: 5px 10px;
  font-size: 13px;
}
.btn.rd {
  background: var(--r);
}
input,
select,
textarea {
  background: var(--c);
  border: 1px solid var(--l);
  border-radius: 9px;
  padding: 9px 11px;
  width: 100%;
}
label {
  font-size: 13px;
  color: var(--m);
  display: block;
  margin: 8px 0 3px;
}
.top {
  background: var(--g);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 6px;
}
.top a {
  color: #ffd98a;
}
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  background: var(--c);
  border-bottom: 1px solid var(--l);
  z-index: 20;
}
.hd {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  flex-wrap: wrap;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--g);
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
}
.logo i {
  background: var(--g);
  color: #ffd98a;
  border-radius: 10px;
  padding: 2px 8px;
  font-style: normal;
  font-size: 18px;
}
.sr {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.dd {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--c);
  border: 1px solid var(--l);
  border-radius: 10px;
  box-shadow: 0 10px 30px #0002;
  z-index: 30;
}
.dd div {
  padding: 9px 12px;
  cursor: pointer;
}
.dd div:hover {
  background: var(--bg);
}
nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
nav a,
.ic {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--t);
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: 0;
}
nav a:hover,
.ic:hover {
  background: var(--bg);
}
.hero {
  background: var(--hero);
  color: #fff;
  border-radius: 22px;
  margin: 18px 0;
  padding: 44px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
}
.hero p {
  opacity: 0.9;
  max-width: 480px;
}
.bowl {
  font-size: clamp(90px, 16vw, 170px);
  text-align: center;
  animation: fl 4s ease-in-out infinite;
}
@keyframes fl {
  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}
.tr {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 10px 0 24px;
}
.tr div {
  background: var(--c);
  border: 1px solid var(--l);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
h2.s {
  font-size: 26px;
  margin: 28px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
h2.s a {
  font-size: 15px;
  color: var(--g);
  cursor: pointer;
}
.cats {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.cat {
  flex: 0 0 96px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.cat span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid var(--l);
  font-size: 38px;
  transition: 0.2s;
}
.cat:hover span,
.cat.on span {
  border-color: var(--gold);
  transform: scale(1.07);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.card {
  background: var(--c);
  border: 1px solid var(--l);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px #0002;
}
.im {
  height: 140px;
  border-radius: 12px;
  background: radial-gradient(circle, #f6e7c4, #ecd6a3);
  display: grid;
  place-items: center;
  font-size: 68px;
  position: relative;
  overflow: hidden;
}
.off {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--r);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
}
.card s {
  color: var(--m);
  font-size: 13px;
}
.card strong {
  font-size: 18px;
  color: var(--g);
}
small {
  color: var(--m);
}
.ok {
  color: var(--g2);
}
.low {
  color: #d98a00;
}
.no {
  color: var(--r);
}
.bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
  align-items: center;
}
.bar select,
.bar input {
  width: auto;
}
.sec {
  background: var(--c);
  border: 1px solid var(--l);
  border-radius: 16px;
  padding: 16px;
}
.rv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
footer {
  background: var(--fb);
  color: #cfe3d5;
  margin-top: 40px;
  padding: 30px 0;
}
footer a {
  color: #ffd98a;
}
footer .w {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.wa {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 6px 20px #0004;
  z-index: 40;
}
.mb {
  position: fixed;
  inset: 0;
  background: #0007;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.md {
  background: var(--bg);
  border-radius: 18px;
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  padding: 18px;
  position: relative;
}
.md.dr {
  margin-left: auto;
  max-width: 420px;
  height: 100%;
  max-height: 100%;
  border-radius: 18px 0 0 18px;
}
.x {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  background: none;
  border: 0;
}
.vr {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.vr button {
  border: 1.5px solid var(--l);
  background: var(--c);
  border-radius: 10px;
  padding: 7px 12px;
  cursor: pointer;
}
.vr button.on {
  border-color: var(--g);
  background: color-mix(in srgb, var(--g2) 14%, transparent);
  font-weight: 700;
}
.q {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--l);
  border-radius: 9px;
  background: var(--c);
}
.q button {
  border: 0;
  background: none;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 18px;
}
.ci {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--l);
}
.ci .e {
  font-size: 34px;
}
.ci > div {
  flex: 1;
}
.tw {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--l);
  white-space: nowrap;
}
th {
  color: var(--m);
  font-size: 12px;
  text-transform: uppercase;
}
.pill {
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--g2) 14%, transparent);
  color: var(--g2);
}
.pill.w1 {
  background: #d98a0022;
  color: #d98a00;
}
.pill.r {
  background: #c0392b22;
  color: var(--r);
}
.adm {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 100vh;
}
.sb {
  background: #1e293b;
  color: #fff;
  padding: 14px 10px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sb .logo {
  color: #fff;
  margin: 4px 8px 16px;
}
.sb a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: #d6e9dc;
  cursor: pointer;
}
.sb a.on,
.sb a:hover {
  background: #2563eb;
  color: #fff;
}
.ct {
  padding: 18px;
  min-width: 0;
}
.kp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kp div {
  background: var(--c);
  border: 1px solid var(--l);
  border-radius: 14px;
  padding: 14px;
}
.kp b {
  display: block;
  font-size: 22px;
  color: var(--t);
}
.kp small {
  font-size: 12px;
}
.two {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 190px;
  padding-top: 10px;
}
.bars div {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  align-items: center;
  font-size: 9px;
  color: var(--m);
  min-width: 0;
}
.bars i {
  width: 100%;
  background: linear-gradient(var(--gold), var(--g2));
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.hb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  font-size: 13px;
}
.hb span {
  flex: 0 0 105px;
}
.hb i {
  height: 12px;
  background: var(--g2);
  border-radius: 6px;
  display: block;
}
.kp div {
  border-top: 3px solid #2563eb;
}
.kp div:nth-child(4n + 2) {
  border-top-color: #f59e0b;
}
.kp div:nth-child(4n + 3) {
  border-top-color: #16a34a;
}
.kp div:nth-child(4n) {
  border-top-color: #7c3aed;
}
.cat span {
  overflow: hidden;
}
.cat span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dd img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  vertical-align: middle;
  object-fit: cover;
}
.ci .e img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.tn img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.card {
  text-align: center;
}
.card .btn {
  margin-top: 6px;
  background: var(--gold);
}
.im {
  background: radial-gradient(circle, #fff8e6, #efd9a8);
}
#toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 90px;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  z-index: 99;
  display: none;
}
.lg {
  max-width: 360px;
  margin: 12vh auto;
}
#inv {
  background: #fff;
  color: #000;
  padding: 18px;
  border-radius: 10px;
}
@media print {
  body > *:not(#m),
  #m > .md > *:not(#inv) {
    display: none !important;
  }
  #m,
  .md {
    position: static;
    background: #fff;
    display: block !important;
    overflow: visible;
    max-height: none;
  }
  .mb {
    position: static;
    background: none;
  }
}
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  nav {
    display: none;
  }
  nav.open {
    display: flex;
    width: 100%;
    flex-direction: column;
  }
  .mm {
    display: inline-block !important;
  }
}
.mm {
  display: none;
}

/* ===== Typography ===== */
:root {
  --font: 'Times New Roman', Times, 'Liberation Serif', serif;
  --hero: radial-gradient(circle at 80% 50%, #7a5527 0, #4a3118 45%, #2a2012);
  --fb: #0f3d24;
}
/* ===== Colour themes (chosen in Admin > Theme) ===== */
[data-theme='maroon'] {
  --g: #8b1e2d;
  --g2: #a82a3c;
  --gold: #c8923a;
  --bg: #fbf1ec;
  --l: #ecd9d0;
  --hero: radial-gradient(circle at 80% 50%, #8b3a2e 0, #5a1a22 45%, #2e0e12);
  --fb: #4a1018;
}
[data-theme='blue'] {
  --g: #1d4e89;
  --g2: #2b6cb0;
  --gold: #d49a3a;
  --bg: #f2f6fb;
  --l: #d9e3f0;
  --hero: radial-gradient(circle at 80% 50%, #2b5a8a 0, #14305a 45%, #0a1a33);
  --fb: #0f2747;
}
[data-theme='brown'] {
  --g: #6b3f1d;
  --g2: #8a5a2b;
  --gold: #c8923a;
  --bg: #faf3e8;
  --l: #e8d9c0;
  --hero: radial-gradient(circle at 80% 50%, #8a5a2b 0, #5a3516 45%, #2b1a0b);
  --fb: #3b2412;
}
/* ===== Layout & alignment ===== */
.w {
  width: 100%;
}
.hd {
  display: grid;
  grid-template-columns: auto minmax(200px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
}
.hd .sr {
  min-width: 0;
}
nav {
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}
h2.s {
  align-items: center;
}
.cats {
  justify-content: safe center;
}
.grid {
  align-items: stretch;
}
.card {
  height: 100%;
}
.card b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  line-height: 1.45;
}
.card small {
  display: block;
}
.card .btn {
  margin-top: auto;
}
.card > small:last-of-type {
  margin-bottom: 8px;
}
footer .w {
  align-items: start;
}
.hero > div {
  min-width: 0;
}
@media (max-width: 1000px) {
  nav a {
    padding: 6px 7px;
    font-size: 15px;
  }
}
@media (max-width: 820px) {
  .hd {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }
  .hd > .logo {
    order: 1;
  }
  .hd > .mm {
    order: 2;
  }
  .hd > .ic:not(.mm) {
    order: 3;
  }
  .hd > .sr {
    order: 4;
    grid-column: 1/-1;
  }
  .hd > nav {
    order: 5;
    grid-column: 1/-1;
  }
  nav.open {
    flex-direction: column;
    align-items: stretch;
    white-space: normal;
  }
}
@media (max-width: 620px) {
  .pg {
    grid-template-columns: 1fr !important;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .hero {
    padding: 24px 16px;
  }
}

/* ===== Scrolling top strip, hero slider ===== */
.top {
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
}
.tk {
  display: inline-block;
  padding-left: 100%;
  animation: mq 32s linear infinite;
}
.top:hover .tk {
  animation-play-state: paused;
}
@keyframes mq {
  to {
    transform: translateX(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tk {
    animation: none;
    padding: 0;
  }
}
.hero {
  position: relative;
  padding-bottom: 52px;
}
.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff6;
  cursor: pointer;
}
.dots i.on {
  background: #fff;
}

/* ===== Continuous ticker (seamless loop) ===== */
.top {
  font-size: 15px;
  padding: 8px 0;
}
.tk {
  display: inline-flex;
  padding-left: 0;
  white-space: nowrap;
  animation: mq 45s linear infinite;
}
.tk span {
  padding-right: 70px;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* notifications must never block taps on buttons underneath */
#toast {
  pointer-events: none;
}

/* ===== Brand logo + site-wide watermark (replace the files in assets/images to rebrand) ===== */
.brand {
  width: auto;
  max-width: 100%;
  display: block;
}
.hd {
  padding-top: 6px;
  padding-bottom: 6px;
}
.hd .brand {
  height: 78px;
  cursor: pointer;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url(../assets/images/watermark.webp) center/min(78vw, 780px) auto no-repeat;
  opacity: 0.05;
}
@media print {
  body::before {
    display: none;
  }
}

/* ===== combos, out-of-stock, product wizard ===== */
.inc {
  list-style: none;
  margin: 6px 0 2px;
  padding: 6px 8px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 14px;
  text-align: left;
}
.inc li {
  padding: 1px 0;
}
.inc li:before {
  content: '✓ ';
  color: var(--g2);
  font-weight: 700;
}
.ins {
  background: var(--c);
  border: 1px solid var(--l);
  border-radius: 12px;
  padding: 4px 12px;
}
.insrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--l);
}
.insrow:last-child {
  border: 0;
}
.insrow > div {
  flex: 1;
}
.insimg {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
}
.insimg img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}
.sold {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #444;
  color: #fff;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 20px;
  font-weight: 700;
}
.card.oos .im img {
  filter: grayscale(1);
  opacity: 0.55;
}
.card.oos .btn {
  background: #999;
  cursor: not-allowed;
}
.card .btn:disabled,
.md .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.vr button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.md.wide {
  max-width: 780px;
}
.steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}
.steps span {
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--l);
  font-size: 14px;
}
.steps .on {
  background: var(--g);
  color: #fff;
}
.steps .done {
  background: var(--g2);
  color: #fff;
  opacity: 0.85;
}

/* image frames: the photo always fills its frame, never stretches it */
.im {
  overflow: hidden;
}
.im img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Mobile UI & Responsiveness (Customer & Admin)
   ========================================================= */

/* Body scroll lock when mobile drawer is open */
body.no-scroll {
  overflow: hidden !important;
  touch-action: none;
}

/* Base styles for mobile elements (hidden on desktop) */
.mob-bottom-nav,
.adm-top,
.adm-backdrop,
.adm-bottom-nav,
.sb-close {
  display: none;
}
.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================================
   Mobile Screens (< 768px)
   ========================================================= */
@media (max-width: 767px) {
  /* Prevent horizontal overflow across the whole site */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
  }

  /* 1. Customer Mobile Bottom Navigation */
  .mob-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 85;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;
    align-items: stretch;
    justify-content: space-around;
  }
  .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 6px 2px;
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
      color 0.15s ease,
      transform 0.1s ease;
    gap: 3px;
    -webkit-tap-highlight-color: transparent;
  }
  .mbn-item:active {
    transform: scale(0.93);
  }
  .mbn-item svg {
    display: block;
    stroke: currentColor;
    transition: stroke 0.15s ease;
  }
  .mbn-item.on {
    color: var(--g);
    font-weight: 700;
  }
  .mbn-item.on svg {
    stroke: var(--g);
    stroke-width: 2.4;
  }

  /* Offset customer footer and floating WhatsApp button */
  #app > footer {
    margin-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  .wa {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* 2. Admin Panel Mobile Layout */
  /* A. Admin Top Bar & Hamburger Button */
  .adm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    background: #1e293b;
    color: #fff;
    padding: 0 14px;
    position: sticky;
    top: 0;
    z-index: 80;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  .adm-ham {
    background: transparent;
    border: none;
    color: #fff;
    padding: 6px;
    margin-left: -6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
  }
  .adm-ham:active {
    background: rgba(255, 255, 255, 0.12);
  }
  .adm-top-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    flex: 1;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .adm-top-store {
    font-size: 13px;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
  }
  .adm-top-store:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
  }

  /* Backdrop for Admin Slide-Out Drawer */
  .adm-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 92;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .adm-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Admin Sidebar as Slide-Out Drawer */
  .sb {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 275px !important;
    max-width: 84vw !important;
    height: 100vh !important;
    z-index: 95 !important;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 12px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box;
  }
  .sb.open {
    transform: translateX(0);
  }
  .sb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .sb-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
  }
  .sb-close:active {
    background: rgba(255, 255, 255, 0.2);
  }
  .sb .logo {
    display: block !important;
    margin: 0 !important;
  }

  /* Admin Content Area on Mobile */
  .adm {
    display: block !important;
    grid-template-columns: 1fr !important;
    min-height: auto;
  }
  .adm .ct {
    padding: 14px 12px calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    min-width: 0;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* B. Admin Fixed Bottom Navigation */
  .adm-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 85;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: content-box;
    align-items: stretch;
    justify-content: space-around;
  }
  .abn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 6px 2px;
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition:
      color 0.15s ease,
      transform 0.1s ease;
    gap: 3px;
    -webkit-tap-highlight-color: transparent;
  }
  .abn-item:active {
    transform: scale(0.93);
  }
  .abn-item svg {
    display: block;
    stroke: currentColor;
    transition: stroke 0.15s ease;
  }
  .abn-item.on {
    color: var(--g);
    font-weight: 700;
  }
  .abn-item.on svg {
    stroke: var(--g);
    stroke-width: 2.4;
  }

  /* 3. General Admin Responsiveness Improvements */
  .kp {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }
  .kp div {
    padding: 10px 12px !important;
  }
  .kp b {
    font-size: 19px !important;
  }
  .two {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .bars {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }

  /* Section cards and action bars */
  .sec {
    padding: 12px !important;
    margin: 10px 0 !important;
    border-radius: 12px !important;
    box-sizing: border-box;
    max-width: 100%;
  }
  .bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .bar > * {
    min-width: 0;
  }

  /* Tables: smooth horizontal scrolling */
  .tw {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin: 6px 0;
    border-radius: 8px;
  }
  .tw table {
    width: 100%;
    font-size: 13px;
  }
  .tw th,
  .tw td {
    padding: 8px 8px;
  }

  /* Modals: fit comfortably on mobile viewports */
  .md {
    max-width: calc(100vw - 20px) !important;
    width: calc(100vw - 20px) !important;
    max-height: 88vh !important;
    padding: 16px 14px !important;
    margin: 10px auto !important;
    border-radius: 14px !important;
    box-sizing: border-box;
  }
  .md.wide {
    max-width: calc(100vw - 20px) !important;
  }
  .md h2 {
    font-size: 19px;
    margin-top: 2px;
    margin-bottom: 10px;
    padding-right: 28px;
  }
}

/* Extra small devices (<= 360px) */
@media (max-width: 360px) {
  .kp {
    grid-template-columns: 1fr !important;
  }
  .mbn-item span,
  .abn-item span {
    font-size: 10px;
  }
}

/* Desktop Screens (>= 768px): clean separation */
@media (min-width: 768px) {
  .mob-bottom-nav,
  .adm-top,
  .adm-backdrop,
  .adm-bottom-nav,
  .sb-close {
    display: none !important;
  }
  .adm {
    display: grid;
    grid-template-columns: 210px 1fr;
  }
  .sb {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: none !important;
    box-shadow: none !important;
  }
}

/* =========================================================
   Category Management & Product Wizard Mobile Responsive
   ========================================================= */

/* General form layout utilities */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--t);
  margin-bottom: 5px;
}
.form-row-2 {
  display: flex;
  gap: 12px;
}
.form-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--t);
  cursor: pointer;
  user-select: none;
  min-height: 38px;
}

/* Photo upload row & preview */
.photo-upload-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 4px 0;
}
.photo-preview-box {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 12px;
  border: 1px solid var(--l);
  overflow: hidden;
  background: var(--l);
  position: relative;
  display: grid;
  place-items: center;
  font-size: 34px;
}
.photo-preview-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* Wizard action buttons */
.wizard-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Product weight variants editor */
.var-editor {
  margin: 10px 0;
}
.var-header {
  display: flex;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
  color: var(--m);
  padding: 4px 8px;
}
.var-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.var-field-label {
  display: none;
}
.var-quick-add {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Category management styles */
.cat-thumb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--l);
}
.cat-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adm-table {
  width: 100%;
  border-collapse: collapse;
}
.adm-table th {
  background: var(--c);
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--m);
  border-bottom: 2px solid var(--l);
}
.adm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--l);
  vertical-align: middle;
  font-size: 14px;
}

/* Admin Page Header */
.adm-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.adm-page-header h2 {
  margin: 0;
  font-size: 22px;
}
.adm-page-header small {
  color: var(--m);
  display: block;
  margin-top: 2px;
}

/* Admin Modal Header & Elements */
.adm-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--l);
  padding-right: 32px;
}
.adm-modal-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--l);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.adm-modal-title-group {
  flex: 1;
  min-width: 0;
}
.adm-modal-title {
  margin: 0 !important;
  font-size: 19px !important;
  font-weight: 700;
  color: var(--t);
  line-height: 1.25;
}
.adm-modal-sub {
  margin: 3px 0 0 !important;
  font-size: 12px !important;
  color: var(--m);
  line-height: 1.35;
}

/* Admin Form Error Alert */
.adm-form-err {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* Price Input with Rupee symbol */
.price-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.price-curr {
  position: absolute;
  left: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--m);
  pointer-events: none;
  z-index: 2;
}
.price-input {
  padding-left: 28px !important;
  font-weight: 600;
}

/* Modern Admin Toggle / Checkbox Card */
.adm-toggle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--c);
  border: 1px solid var(--l);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.adm-toggle-card:active {
  background: var(--l);
}
.adm-toggle-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--a, #2e7d32);
}
.adm-toggle-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-toggle-card-content b {
  font-size: 13.5px;
  color: var(--t);
  font-weight: 600;
}
.adm-toggle-card-content small {
  font-size: 12px;
  color: var(--m);
  line-height: 1.3;
}

/* Admin Responsive List Views (Combos & Gift Boxes) */
.adm-mobile-cards {
  display: none;
}
.adm-desktop-view {
  display: block;
}

@media (max-width: 768px) {
  .adm-desktop-view {
    display: none !important;
  }
  .adm-mobile-cards {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }
  .adm-page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .adm-page-header button {
    width: 100%;
    min-height: 42px;
    font-size: 15px;
  }
}

/* Admin Item Card on Mobile */
.adm-entity-card {
  background: var(--c);
  border: 1px solid var(--l);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.adm-entity-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.adm-entity-thumb {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 10px;
  background: var(--l);
  display: grid;
  place-items: center;
  font-size: 26px;
  overflow: hidden;
  position: relative;
}
.adm-entity-info {
  flex: 1;
  min-width: 0;
}
.adm-entity-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--t);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-entity-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--a, #2e7d32);
  margin-top: 3px;
}
.adm-entity-desc {
  font-size: 12.5px;
  color: var(--m);
  line-height: 1.45;
  background: var(--bg);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--l);
  white-space: pre-wrap;
  max-height: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-entity-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}
.adm-entity-actions .btn {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  padding: 6px 8px;
  box-sizing: border-box;
}

/* Admin Form Modal Mobile Tuning */
@media (max-width: 640px) {
  .adm-form-modal input,
  .adm-form-modal textarea,
  .adm-form-modal select {
    font-size: 16px !important;
    min-height: 42px;
  }
  .adm-form-modal textarea {
    min-height: 80px;
  }
  .adm-form-modal .photo-upload-row {
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
  }
  .adm-form-modal .photo-upload-actions {
    flex: 1;
  }
  .adm-form-modal .photo-upload-actions button {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Mobile responsive adjustments (< 640px) */
@media (max-width: 640px) {
  .form-row-2 {
    flex-direction: column;
    gap: 0;
  }
  .wizard-actions {
    flex-direction: column-reverse;
  }
  .wizard-actions > button {
    width: 100%;
    min-height: 42px;
  }
  .photo-upload-row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Variant editor cards on mobile */
  .var-header {
    display: none;
  }
  .var-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background: var(--c);
    border: 1px solid var(--l);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-sizing: border-box;
  }
  .var-row > .var-weight-field {
    grid-column: 1 / -1;
  }
  .var-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--m);
    margin-bottom: 3px;
  }
  .var-del-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
  }
  .var-del-wrap button {
    width: auto;
    padding: 4px 10px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .card {
    padding: 10px !important;
    min-width: 0;
  }
  .card .im {
    height: 125px !important;
    font-size: 54px !important;
  }
}

/* Extra small devices (<= 360px) */
@media (max-width: 360px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .card {
    padding: 8px !important;
  }
  .card .im {
    height: 108px !important;
    font-size: 46px !important;
  }
  .card b {
    font-size: 13px !important;
  }
  .card strong {
    font-size: 15px !important;
  }
  .card s {
    font-size: 11px !important;
  }
  .card .btn.sm {
    padding: 6px 4px !important;
    font-size: 11px !important;
  }
  .card .off,
  .card .sold {
    font-size: 9px !important;
    padding: 2px 5px !important;
  }
}

#toast {
  z-index: 120 !important;
  bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Hero slider arrows */
.hero {
  position: relative;
}
.harr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.harr:hover {
  background: rgba(0, 0, 0, 0.85);
}
.harr-l {
  left: 12px;
}
.harr-r {
  right: 12px;
}
@media (max-width: 700px) {
  .harr {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}

/* ===== Card images: fill the full rectangular card area ===== */
.im{overflow:hidden;position:relative}
.im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0}
.insimg img,.tn img,.ci .e img{object-fit:contain;background:var(--bg)}
.hero .bowl{display:flex;justify-content:center;align-items:center}
.hero .bowl img{width:auto!important;max-width:100%;height:auto;max-height:360px;object-fit:contain}
/* notifications must never block clicks on the buttons underneath */
#toast{pointer-events:none}

/* Hide any admin login link from customer footer */
footer a[onclick*="admin"],
footer a[href*="admin"],
a[onclick*="go('admin')"] {
  display: none !important;
}

/* ===== Site Popup / Promotional Overlay ===== */
#site-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
}
.site-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: popup-fade-in 0.28s ease;
}
@keyframes popup-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.site-popup-box {
  position: relative;
  max-width: 540px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: popup-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popup-slide-up {
  from { transform: translateY(32px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.site-popup-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  background: #000;
}
.site-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.15s;
}
.site-popup-close:hover {
  background: rgba(0, 0, 0, 0.88);
  transform: scale(1.1);
}
.site-popup-close:active {
  transform: scale(0.95);
}
@media (max-width: 600px) {
  .site-popup-box {
    border-radius: 14px;
    max-width: calc(100vw - 24px);
  }
  .site-popup-img {
    max-height: 75vh;
  }
}
/* Product popup: description ki har line alag dikhe */
.md p,
.md .pd-desc,
.md [class*="desc"] {
  white-space: pre-line;
  line-height: 1.7;
}
