:root{
  --bg:#f6f8fb;
  --panel:rgba(255,255,255,.72);
  --panel2:rgba(255,255,255,.82);
  --stroke:rgba(16,24,40,.10);
  --text:#0f172a;
  --muted:rgba(15,23,42,.70);
  --muted2:rgba(15,23,42,.56);
  --shadow:0 18px 50px rgba(15,23,42,.14);
  --shadow2:0 10px 26px rgba(15,23,42,.12);
  --radius:18px;
  --radius2:26px;
  --accent:#37d69a;
  --accent2:#ff8a52;
  --danger:#ff4d4f;
  --warn:#ffb020;
  --ok:#37d67a;
  --focus:rgba(55,214,154,.26);
  --font:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Dark theme ONLY for public menu page */
body[data-page="menu"]{
  --bg:#0b0f14;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.10);
  --text:#e9eef6;
  --muted:rgba(233,238,246,.70);
  --muted2:rgba(233,238,246,.54);
  --shadow:0 20px 60px rgba(0,0,0,.45);
  --shadow2:0 10px 30px rgba(0,0,0,.35);
  --focus:rgba(55,214,154,.30);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

.bg-grid{
  display:none;
}
.bg-orb{
  position:fixed;
  width:520px; height:520px;
  border-radius:999px;
  filter: blur(36px);
  opacity:.14;
  pointer-events:none;
  transform: translate3d(0,0,0);
}
.orb-1{ left:-140px; top:-160px; background: radial-gradient(circle at 30% 30%, var(--accent), transparent 62%); }
.orb-2{ right:-160px; bottom:-180px; background: radial-gradient(circle at 40% 40%, var(--accent2), transparent 62%); }

.container{ width:min(1100px, 100%); margin:0 auto; padding:18px 16px 40px; }

.admin-footer{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--stroke);
  text-align: center;
}
.admin-footer__line{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.admin-footer a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.admin-footer a:hover{ text-decoration: underline; }

.menu-footer{
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 22px 16px calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--stroke);
  text-align: center;
}
.menu-footer__line{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.menu-footer__line + .menu-footer__line{ margin-top: 6px; }
.menu-footer__powered{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-footer__powered-sep{
  color: var(--muted2);
}
.menu-footer__partner-logo{
  height: 24px;
  width: auto;
  display: block;
  object-fit: contain;
}
.menu-footer__partner-link{
  display: inline-flex;
  line-height: 0;
}
.menu-footer__partner-link:hover{
  text-decoration: none;
}
.menu-footer a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.menu-footer a:hover{ text-decoration: underline; }
.menu-footer__social{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.menu-footer__soc{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--panel2);
  border: 1px solid var(--stroke);
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.menu-footer__ig:hover{
  border-color: rgba(221,42,123,.42);
  transform: translateY(-1px);
}
.menu-footer__wa:hover{
  border-color: rgba(37,211,102,.5);
  transform: translateY(-1px);
}
.menu-footer__soc:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.menu-footer__soc svg{ width: 22px; height: 22px; }

.menu-footer__contact{
  margin: 14px auto 0;
  max-width: 22rem;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted2);
  text-align: center;
}

.menu-footer__feedback{
  margin: 10px auto 0;
  max-width: 22rem;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted2);
  text-align: center;
}

body[data-page="menu"] .menu-splash{
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: #ffffff;
  opacity: 1;
  transition: opacity .32s ease;
}
body[data-page="menu"] .menu-splash[hidden]{
  display: none;
}
body[data-page="menu"] .menu-splash.is-out{
  opacity: 0;
  pointer-events: none;
}
body[data-page="menu"] .menu-splash__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  outline: none;
  border-radius: 0;
  box-shadow: none;
}
@media (min-width: 720px){
  body[data-page="menu"] .menu-splash{
    background: #000000;
  }
  body[data-page="menu"] .menu-splash__video{
    object-fit: contain;
  }
}
html.menu-splash-lock,
body.menu-splash-lock{
  overflow: hidden;
  height: 100%;
}

.featured{
  margin-top: 14px;
}
.featured__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}
.featured__title{
  font-weight: 900;
  letter-spacing: .2px;
}
.featured__sub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted2);
}
.featured__loading{
  margin: 10px 0;
  font-size: 12px;
  color: var(--muted2);
}
.featured__track{
  display:flex;
  gap: 12px;
  overflow-x:auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}
.featured__track::-webkit-scrollbar{ display:none; }
.feat-card{
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex: 0 0 82%;
  max-width: 420px;
  border-radius: 20px;
  padding: 12px;
  display:flex;
  gap: 12px;
  align-items: center;
  transition: opacity .22s ease, transform .22s ease, filter .22s ease, border-color .22s ease;
  opacity: .45;
  transform: scale(.94);
  filter: saturate(.7) brightness(.85);
}
.feat-card.is-active{
  opacity: 1;
  transform: scale(1);
  filter: none;
  border-color: rgba(55,214,154,.22);
}
.feat-card__img{
  width: 78px;
  height: 78px;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(16,24,40,.06);
  border: 1px solid var(--stroke);
  flex: 0 0 auto;
  display:grid;
  place-items:center;
}
body[data-page="menu"] .feat-card__img{ background: rgba(255,255,255,.06); }
.feat-card__img img{ width:100%; height:100%; object-fit: cover; display:block; }
.feat-card__ph{ color: var(--muted2); font-weight: 800; }
.feat-card__meta{ min-width:0; flex: 1 1 auto; }
.feat-card__name{
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
}
.feat-card__foot{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
}
.feat-card__badge{
  font-size: 12px;
  color: var(--muted2);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55%;
}
.feat-card__price{
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(55,214,154,.16);
  border: 1px solid rgba(55,214,154,.24);
}
@media (min-width: 560px){
  .feat-card{ flex-basis: 60%; }
}
@media (min-width: 940px){
  .feat-card{ flex-basis: 42%; }
}

.btn-featured{
  padding: 8px 10px;
  white-space: nowrap;
}
.btn-featured.is-on{
  border-color: rgba(255,176,32,.45);
  background: rgba(255,176,32,.12);
}

.topbar{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(246,248,251,.88), rgba(246,248,251,.60));
  border-bottom:1px solid rgba(16,24,40,.08);
}
.topbar__actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }

.brand{ display:flex; gap:12px; align-items:center; }
.brand__logo{
  width:40px; height:40px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(55,214,154,.22), rgba(255,138,82,.18));
  border:1px solid rgba(16,24,40,.10);
  box-shadow: var(--shadow2);
  font-weight:800;
}
.brand__img{
  width:100%;
  height:100%;
  object-fit: cover;
  border-radius: 14px;
  display:block;
}

body[data-page="menu"] .brand__logo{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}
.brand__title{ font-weight:700; letter-spacing:.2px; }
.brand__subtitle{ font-size:12px; color:var(--muted2); margin-top:2px; }

.glass{
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.58));
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.card{ border-radius: var(--radius2); }

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.55);
  color: var(--muted);
  font-size:12px;
}

.hero{ display:flex; align-items:stretch; gap:18px; padding:18px; }
.hero__title{ margin:10px 0 6px; font-size:26px; line-height:1.15; letter-spacing:-.2px; }
.hero__desc{ margin:0; color:var(--muted); }
.hero__right{ margin-left:auto; display:flex; gap:12px; align-items:stretch; }
.hero__stat{
  min-width:120px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
  border:1px solid rgba(16,24,40,.10);
  padding:12px 12px 10px;
}
.hero__statVal{ font-size:20px; font-weight:800; }
.hero__statLabel{ font-size:12px; color:var(--muted2); margin-top:6px; }

.toolbar{
  margin-top:14px;
  display:flex; align-items:flex-start; justify-content:flex-start;
  gap:12px;
}
.tabs{
  display:flex;
  flex-wrap: wrap;
  gap:7px;
  padding:5px 2px;
}
.tab{
  border:1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.60);
  color: var(--muted);
  padding:10px 12px;
  border-radius: 999px;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space:nowrap;
  user-select:none;
}
.tab:hover{ transform: translateY(-1px); border-color: rgba(16,24,40,.16); color: rgba(15,23,42,.92); }
.tab.is-active{
  background: linear-gradient(135deg, rgba(55,214,154,.18), rgba(255,138,82,.14));
  border-color: rgba(55,214,154,.26);
  color: var(--text);
}

.search input{
  width:100%;
  padding:12px 14px;
  border-radius: 999px;
  border:1px solid rgba(16,24,40,.12);
  background: rgba(255,255,255,.68);
  color: var(--text);
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.search input:focus{
  border-color: rgba(55,214,154,.30);
  box-shadow: 0 0 0 4px var(--focus);
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

body[data-page="menu"] .menu-search-wrap{
  margin-top: 14px;
}
body[data-page="menu"] .menu-toolbar__search{
  width: 100%;
  max-width: 100%;
}
body[data-page="menu"] .search input{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: rgba(233,238,246,.94);
}
body[data-page="menu"] .search input::placeholder{
  color: rgba(233,238,246,.42);
}
body[data-page="menu"] .search input:focus{
  border-color: rgba(55,214,154,.35);
  box-shadow: 0 0 0 4px rgba(55,214,154,.18);
}
@media (min-width: 720px){
  body[data-page="menu"] .menu-toolbar__search{
    max-width: 420px;
  }
}

.menu-empty{
  grid-column: span 12;
  padding: 18px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;
}

.cat-divider{
  grid-column: span 12;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding: 8px 2px 0;
}
.cat-divider__pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid rgba(16,24,40,.12);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 26px rgba(15,23,42,.10);
}
.cat-divider__dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(55,214,154,.95), rgba(255,138,82,.85));
  box-shadow: 0 0 0 4px rgba(55,214,154,.14);
}
.cat-divider__text{
  font-weight: 900;
  letter-spacing: -.2px;
}

.product{
  grid-column: span 12;
  padding:14px;
  position:relative;
  overflow:hidden;
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.product:hover{
  transform: translateY(-2px);
  border-color: rgba(16,24,40,.16);
}
.product:active{ transform: translateY(0); }
.product__row{ display:flex; gap:14px; align-items:flex-start; }
.product__row{ min-width:0; }
.product__img{
  width:92px; height:92px;
  border-radius: 18px;
  background: rgba(15,23,42,.04);
  border:1px solid rgba(16,24,40,.10);
  overflow:hidden;
  flex: 0 0 auto;
}
.product__img img{ width:100%; height:100%; object-fit:cover; display:block; }
.product__meta{ min-width:0; flex:1 1 auto; }
.product__name{ font-weight:700; letter-spacing:-.1px; }
.product__name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product__desc{
  margin-top:6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.product__foot{
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.badge{
  font-size:12px;
  color: var(--muted2);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.58);
}
.price{
  font-weight:800;
  letter-spacing:.2px;
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(55,214,154,.16);
  border:1px solid rgba(55,214,154,.26);
}
.price--lg{ padding:10px 12px; font-size:16px; }

.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px; height:42px;
  border-radius: 14px;
  background: rgba(255,255,255,.66);
  border:1px solid rgba(16,24,40,.10);
  color: var(--text);
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.icon-btn:hover{ transform: translateY(-1px); border-color: rgba(16,24,40,.16); }
.icon{ font-size: 16px; opacity:.92; }

.icon-btn--menu{ width:46px; }
.hamburger{
  width:18px;
  height:12px;
  display:block;
  position:relative;
  opacity:.9;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  border-radius:999px;
  background: rgba(15,23,42,.78);
}
.hamburger::before{ top:0; box-shadow: 0 5px 0 rgba(15,23,42,.78), 0 10px 0 rgba(15,23,42,.78); }
.hamburger::after{ display:none; }

body[data-page="menu"] .topbar{
  background: rgba(11,15,20,.82);
  border-bottom:1px solid rgba(255,255,255,.06);
}
body[data-page="menu"] .glass{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

/* Menu modal: slightly more opaque for readability */
body[data-page="menu"] .modal__backdrop{
  background: rgba(2, 6, 23, .62);
}
body[data-page="menu"] .modal__panel.glass{
  background: rgba(11, 15, 20, .92);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 26px 80px rgba(0,0,0,.62);
}
body[data-page="menu"] .modal__close.icon-btn{
  background: rgba(185, 28, 28, .26);
  border-color: rgba(239, 68, 68, .55);
  color: #fff;
}
body[data-page="menu"] .modal__close.icon-btn:hover{
  background: rgba(220, 38, 38, .34);
  border-color: rgba(248, 113, 113, .75);
}
body[data-page="menu"] .modal__media{
  background: rgba(255,255,255,.06);
  border-bottom-color: rgba(255,255,255,.10);
  /* Daha fazla alan + contain: fotoğrafın tamamı görünsün (cover kırpmasın) */
  height: min(42vh, 340px);
  min-height: 240px;
}
body[data-page="menu"] .modal__media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Mobile performance tweaks for menu page */
@media (max-width: 560px){
  body[data-page="menu"] .bg-orb{
    opacity: .08;
    filter: blur(28px);
  }
  body[data-page="menu"] .glass{
    backdrop-filter: none;
  }
  body[data-page="menu"] .topbar{
    backdrop-filter: none;
  }
}

/* Mobile performance tweaks for admin page */
@media (max-width: 560px){
  body[data-page="admin"] .bg-orb{
    opacity: .10;
    filter: blur(26px);
  }
  body[data-page="admin"] .glass{
    backdrop-filter: none;
    box-shadow: 0 16px 44px rgba(15,23,42,.12);
  }
  body[data-page="admin"] .topbar{
    backdrop-filter: none;
  }
  body[data-page="admin"] .modal__backdrop,
  body[data-page="admin"] .drawer__backdrop{
    background: rgba(2, 6, 23, .58);
  }
  body[data-page="admin"] .modal__panel.glass,
  body[data-page="admin"] .drawer__panel.glass{
    background: rgba(246, 248, 251, .96);
    border: 1px solid rgba(16, 24, 40, .14);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  }
}

/* home page removed; category landing is /menu now */
body[data-page="menu"] .tab{
  border-color: rgba(239, 68, 68, .45);
  background: rgba(185, 28, 28, .22);
  color: #fcc5c5;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
}
body[data-page="menu"] .tab:hover{
  border-color: rgba(248, 113, 113, .65);
  color: #fff;
  background: rgba(220, 38, 38, .32);
}
body[data-page="menu"] .tab.is-active{
  background: rgba(220, 38, 38, .55);
  border-color: rgba(248, 113, 113, .75);
  color: #fff;
  font-weight: 800;
}
body[data-page="menu"] .hamburger::before{
  background: rgba(233,238,246,.90);
  box-shadow: 0 5px 0 rgba(233,238,246,.90), 0 10px 0 rgba(233,238,246,.90);
}
body[data-page="menu"] .cat-divider__pill{
  border-color: rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
body[data-page="menu"] .cat-divider__text{ color: rgba(233,238,246,.92); }
body[data-page="menu"] .cat-divider__dot{ box-shadow: 0 0 0 4px rgba(55,214,154,.12); }

body[data-page="menu"] .product:hover{ border-color: rgba(255,255,255,.14); }
body[data-page="menu"] .product__img{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
body[data-page="menu"] .badge{
  border-color: rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(233,238,246,.62);
}
body[data-page="menu"] .price{
  background: rgba(55,214,154,.12);
  border-color: rgba(55,214,154,.20);
}
body[data-page="menu"] .feat-card__price{
  background: rgba(55,214,154,.14);
  border-color: rgba(55,214,154,.22);
}

.btn{
  border:1px solid rgba(16,24,40,.12);
  background: rgba(255,255,255,.66);
  color: var(--text);
  padding:11px 14px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  font-weight: 600;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(16,24,40,.18); }
.btn--primary{
  background: linear-gradient(135deg, rgba(55,214,154,.20), rgba(255,138,82,.13));
  border-color: rgba(55,214,154,.20);
}
.btn--ghost{ background: rgba(255,255,255,.55); }

body[data-page="admin"] .btn--admin-cat{
  background: rgba(37, 99, 235, .14);
  border-color: rgba(37, 99, 235, .32);
  color: #1e3a8a;
}
body[data-page="admin"] .btn--admin-cat:hover{
  border-color: rgba(37, 99, 235, .45);
  background: rgba(37, 99, 235, .20);
}

body[data-page="admin"] .btn--admin-product{
  background: rgba(55, 214, 154, .18);
  border-color: rgba(55, 214, 154, .38);
  color: #0f172a;
}
body[data-page="admin"] .btn--admin-product:hover{
  border-color: rgba(55, 214, 154, .52);
  background: rgba(55, 214, 154, .26);
}

/* Category stage */
.category-stage{ margin-top:14px; }
.category-stage__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:6px 2px 2px;
}
.category-stage__title{ font-weight:900; letter-spacing:-.25px; }
.category-stage__sub{ color: var(--muted2); font-size:12px; }
.category-stage__loading{
  margin-top:10px;
  color: var(--muted2);
  font-size:12px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px dashed rgba(16,24,40,.14);
  background: rgba(255,255,255,.50);
}
/* category skeleton removed */

.cat-card{
  grid-column: span 12;
  padding:20px;
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease;
  position:relative;
  overflow:hidden;
  min-height: 118px;
}
.cat-card:hover{ transform: translateY(-2px); border-color: rgba(16,24,40,.16); }
.cat-card:active{ transform: translateY(0); }
.cat-card__top{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cat-card__name{ font-weight:900; letter-spacing:-.25px; font-size:18px; }
.cat-card__count{ color: var(--muted2); font-size:13px; font-weight:600; }
.cat-card__hint{ margin-top:12px; color: var(--muted); font-size:14px; }
.cat-card__accent{
  position:absolute; inset:-90px -140px auto auto;
  width:240px; height:240px;
  border-radius:999px;
  background: rgba(0,0,0,.0);
  filter: blur(18px);
  opacity:.85;
  pointer-events:none;
}
.cat-card:nth-child(2n) .cat-card__accent{
  background: rgba(0,0,0,.0);
}

.cat-card--img{
  padding:0;
  min-height: 74px;
}
.cat-card--img .cat-card__bg{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
}
.cat-card--img .cat-card__overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.58);
}
.cat-card--img .cat-card__content{
  position:relative;
  height: 100%;
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
body[data-page="home"] .cat-card--img .cat-card__overlay{ background: rgba(0,0,0,.46); }

/* Menu category landing: banner look like reference */
body[data-page="menu"] #menuCategoryStage .cat-card{
  border-radius: 16px;
  grid-column: span 6; /* always 2 columns */
}
body[data-page="menu"] #menuCategoryStage .cat-card__top{
  justify-content:center;
}
body[data-page="menu"] #menuCategoryStage .cat-card__count{ display:none; }
body[data-page="menu"] #menuCategoryStage .cat-card__hint{ display:none; }
body[data-page="menu"] #menuCategoryStage .cat-card__name{
  font-size: 14px;
  letter-spacing: -.15px;
  text-shadow: 0 10px 24px rgba(0,0,0,.55);
}

body[data-page="menu"] #menuCategoryStage .cat-card--img:hover .cat-card__overlay{
  background: rgba(0,0,0,.52);
}

@media (max-width: 560px){
  body[data-page="menu"] #menuCategoryStage .cat-card--img{ min-height: 78px; }
  body[data-page="menu"] #menuCategoryStage .cat-card__name{ font-size: 15px; }
}

@media (max-width: 360px){
  /* still 2 columns, just slightly tighter */
  body[data-page="menu"] #menuCategoryStage .grid{ gap:10px; }
  body[data-page="menu"] #menuCategoryStage .cat-card--img{ min-height: 70px; }
  body[data-page="menu"] #menuCategoryStage .cat-card__content{ padding: 12px; }
}

.skeleton{
  min-height: 140px;
  position:relative;
  overflow:hidden;
}
.skeleton::after{
  content:"";
  position:absolute; inset:-80px -60px;
  background: linear-gradient(90deg, transparent, rgba(15,23,42,.08), transparent);
  transform: translateX(-40%);
  animation: shimmer 1.1s ease-in-out infinite;
}
@keyframes shimmer{
  0%{ transform: translateX(-40%); }
  100%{ transform: translateX(40%); }
}

/* Modal */
.modal{ position:fixed; inset:0; display:none; z-index:40; }
.modal.is-open{ display:block; }
.modal__backdrop{ position:absolute; inset:0; background: rgba(2,6,23,.42); }
.modal__panel{
  position:absolute;
  left:50%; top:50%;
  transform: translate(-50%, -50%);
  width:min(720px, calc(100% - 26px));
  border-radius: 26px;
  overflow:hidden;
}
.modal__close{ position:absolute; right:12px; top:12px; z-index:2; }
.modal__media{
  height: 220px;
  background: rgba(15,23,42,.04);
  border-bottom:1px solid rgba(16,24,40,.10);
  overflow:hidden;
}
.modal__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.modal__body{ padding:16px; }
.modal__top{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.modal__title{ font-size:18px; font-weight:800; letter-spacing:-.2px; }
.modal__cat{ margin-top:4px; color: var(--muted2); font-size:12px; }
.modal__desc{ margin-top:12px; color: var(--muted); line-height:1.45; }

/* Admin */
.auth{ margin-top:16px; padding:18px; display:flex; gap:18px; align-items:stretch; }
.auth.is-fading{ opacity:0; transform: translateY(-6px); pointer-events:none; }
.auth{ transition: opacity .18s ease, transform .18s ease; }
.auth__left{ flex: 1 1 auto; min-width: 220px; }
.auth__title{ margin:10px 0 6px; font-size:24px; letter-spacing:-.2px; }
.auth__desc{ margin:0; color: var(--muted); }
.auth__form{ width:min(380px, 100%); display:flex; flex-direction:column; gap:12px; }
.hint{ font-size:12px; color: var(--muted2); }
.hint code{
  background: rgba(255,255,255,.70);
  border:1px solid rgba(16,24,40,.12);
  padding:2px 6px;
  border-radius:10px;
}

.dash{ margin-top:16px; }
.dash__top{ padding:14px; display:flex; gap:12px; align-items:center; justify-content:space-between; }
.dash__summary{ display:flex; gap:12px; }
.kpi{
  min-width: 140px;
  border-radius: var(--radius);
  border:1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.55);
  padding:12px 12px 10px;
}
.kpi__val{ font-size:20px; font-weight:900; }
.kpi__label{ margin-top:6px; font-size:12px; color: var(--muted2); }
.dash__tools{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
}
.dash__tools .search{ flex: 1 1 260px; min-width: 180px; }
.dash__tools .btn{ flex: 0 0 auto; }
.dash__tools .pill{ flex: 0 0 auto; }

.field{ display:flex; flex-direction:column; gap:8px; }
.field > span{ font-size:12px; color: var(--muted2); }
input, textarea{
  font-family: var(--font);
  color: var(--text);
  background: rgba(255,255,255,.70);
  border:1px solid rgba(16,24,40,.12);
  border-radius: 14px;
  padding:12px 12px;
  outline:none;
}
textarea{ resize: vertical; min-height: 110px; }
input:focus, textarea:focus{
  border-color: rgba(55,214,154,.30);
  box-shadow: 0 0 0 4px var(--focus);
}

.drawer{ position:fixed; inset:0; display:none; z-index:50; }
.drawer.is-open{ display:block; }
.drawer__backdrop{ position:absolute; inset:0; background: rgba(2,6,23,.42); }
.drawer__panel{
  position:absolute;
  right:12px; top:12px; bottom:12px;
  width:min(520px, calc(100% - 24px));
  border-radius: 26px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.drawer__head{
  padding:14px 14px 12px;
  display:flex; justify-content:space-between; align-items:flex-start; gap:12px;
  border-bottom:1px solid rgba(16,24,40,.10);
}
.drawer__title{ font-weight:900; letter-spacing:-.2px; }
.drawer__sub{ color: var(--muted2); font-size:12px; margin-top:4px; }
.form{ padding:14px; display:flex; flex-direction:column; gap:12px; overflow:auto; }
.form__row{ display:grid; grid-template-columns: 1fr 160px; gap:10px; }
.form__actions{ display:flex; gap:10px; align-items:center; margin-top:2px; }
.spacer{ flex:1 1 auto; }
.preview{
  margin-top:8px;
  display:flex;
  gap:10px;
  align-items:center;
}
.preview img{
  width:120px; height:120px;
  border-radius: 18px;
  border:1px solid rgba(16,24,40,.12);
  object-fit:cover;
  display:block;
}

.admin-item{ grid-column: span 12; padding:14px; }
.admin-item__top{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.admin-item__name{ font-weight:800; letter-spacing:-.15px; }
.admin-item__muted{ color: var(--muted2); font-size:12px; margin-top:4px; }
.inline-price{
  display:flex; align-items:center; gap:8px;
  background: rgba(55,214,154,.14);
  border:1px solid rgba(55,214,154,.24);
  padding:8px 10px;
  border-radius: 999px;
}
.inline-price input{
  width: 92px;
  padding:8px 10px;
  border-radius: 999px;
}
.mini{ font-size:12px; color: var(--muted2); }

/* Toast */
.toast-stack{
  position: fixed;
  right: 14px;
  bottom: 14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:60;
}
.toast{
  width:min(360px, calc(100vw - 28px));
  border-radius: 18px;
  padding:12px 12px;
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid rgba(16,24,40,.12);
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(12px);
  transform: translateY(6px);
  opacity:0;
  animation: toastIn .18s ease forwards;
}
@keyframes toastIn{ to { transform: translateY(0); opacity:1; } }
.toast__dot{ width:10px; height:10px; border-radius:999px; margin-top:4px; background: var(--accent); box-shadow: 0 0 0 4px rgba(55,214,154,.14); }
.toast--error .toast__dot{ background: var(--danger); box-shadow: 0 0 0 4px rgba(255,77,79,.12); }
.toast--warn .toast__dot{ background: var(--warn); box-shadow: 0 0 0 4px rgba(255,176,32,.14); }
.toast__title{ font-weight:800; }
.toast__msg{ color: var(--muted); margin-top:4px; font-size:13px; line-height:1.35; }

/* Responsive */
@media (min-width: 560px){
  .product{ grid-column: span 6; }
  .admin-item{ grid-column: span 6; }
  .product__img{ width:96px; height:96px; }
  .cat-card{ grid-column: span 6; }
}
@media (min-width: 940px){
  .product{ grid-column: span 4; }
  .admin-item{ grid-column: span 4; }
  .hero__title{ font-size:30px; }
  .cat-card{ grid-column: span 4; }
}
@media (max-width: 560px){
  .hero{ flex-direction:column; }
  .hero__right{ margin-left:0; }
  .auth{ flex-direction:column; }
  .dash__top{ flex-direction:column; align-items:stretch; }
  .dash__tools{ justify-content:flex-start; }
  .topbar{ padding:12px 14px; }
  .brand__subtitle{ display:none; }
  .form__row{ grid-template-columns: 1fr; }
}

@media (max-width: 420px){
  .container{ padding:14px 12px 30px; }
  .topbar{ padding:10px 12px; }
  .brand__logo{ width:38px; height:38px; border-radius:14px; }
  .btn{ padding:10px 12px; }
  .dash__tools .search{ flex: 1 1 100%; }
  .dash__tools .btn{ width:100%; justify-content:center; }
}

