:root{
  --bg:#130d09;
  --surface:#fff7ec;
  --surface2:#f4e5d0;
  --ink:#24170f;
  --muted:#7b6656;
  --brand:#d99b5f;
  --brand2:#f2c892;
  --dark:#1c1009;
  --green:#1f7a4d;
  --red:#9b1c1c;
  --amber:#b86b1d;
  --line:rgba(60,35,20,.12);
  --shadow:0 22px 60px rgba(20,10,4,.22);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(217,155,95,.22), transparent 32rem),
    linear-gradient(135deg,#120b07 0%,#2a160c 42%,#f3e3cf 42%,#f8efe4 100%);
  color:var(--ink);
  min-height:100vh;
}
body.customer{
  background:
    radial-gradient(circle at 20% 0%, rgba(242,200,146,.28), transparent 34rem),
    linear-gradient(160deg,#140c07 0%,#2b160c 36%,#efe0cf 36%,#fff8ef 100%);
}
.app,.track-card,.admin-wrap{max-width:1120px;margin:0 auto;padding:20px;padding-bottom:110px}
.hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,rgba(28,16,9,.96),rgba(95,52,27,.92));
  color:white;
  border-radius:32px;
  padding:28px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.13);
}
.hero:after{
  content:"";
  position:absolute;
  width:240px;height:240px;right:-70px;top:-80px;
  background:radial-gradient(circle, rgba(242,200,146,.26), transparent 65%);
}
.hero h1{margin:8px 0;font-size:clamp(32px,6vw,58px);letter-spacing:-.04em;line-height:.95}
.hero p{margin:0;color:rgba(255,255,255,.78);line-height:1.55;max-width:620px}
.eyebrow{color:var(--brand2);font-weight:900;font-size:12px;letter-spacing:.13em;text-transform:uppercase}
.logo{max-width:128px;max-height:86px;object-fit:contain;display:block;margin-bottom:14px;filter:drop-shadow(0 8px 20px rgba(0,0,0,.22))}
.cart-badge,.glass-badge{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(10px);
  padding:12px 16px;
  border-radius:999px;
  white-space:nowrap;
  font-weight:800;
}
.category{margin-top:30px}
.category h2{font-size:24px;margin:0 0 14px;letter-spacing:-.02em}
.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:16px}
.product-card{
  background:rgba(255,250,244,.9);
  border:1px solid var(--line);
  border-radius:28px;
  padding:16px;
  min-height:190px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:0 12px 36px rgba(42,22,12,.08);
  backdrop-filter:blur(10px);
}
.product-img{width:100%;height:150px;object-fit:cover;border-radius:20px;margin-bottom:14px;background:var(--surface2)}
.product-card h3{margin:0 0 8px;font-size:20px;letter-spacing:-.02em}
.product-card p{margin:0;color:var(--muted);line-height:1.42;font-size:14px}
.product-bottom{margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.product-bottom strong{font-size:20px}
button,.btn{
  border:0;cursor:pointer;font-weight:900;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;
}
.add-btn,.primary,.btn-primary{
  background:linear-gradient(135deg,var(--dark),#4e2a16);
  color:white;border-radius:16px;padding:13px 16px;box-shadow:0 10px 22px rgba(28,16,9,.18)
}
.secondary{background:var(--surface2);color:var(--ink);border-radius:14px;padding:12px 14px}
.floating-cart{
  position:fixed;left:16px;right:16px;bottom:16px;max-width:680px;margin:0 auto;
  background:linear-gradient(135deg,#1c1009,#533017);color:white;border-radius:22px;padding:18px 22px;
  display:flex;justify-content:space-between;box-shadow:0 24px 48px rgba(42,22,12,.34);z-index:10
}
.drawer{position:fixed;inset:0;background:rgba(0,0,0,.44);display:none;align-items:flex-end;z-index:20}
.drawer.open{display:flex}
.drawer-card{
  width:100%;max-width:740px;margin:0 auto;background:rgba(255,250,244,.96);
  border-radius:34px 34px 0 0;padding:20px;max-height:88vh;overflow:auto;box-shadow:0 -20px 70px rgba(0,0,0,.25)
}
.drawer-head{display:flex;justify-content:space-between;align-items:center}
.drawer-head h2{margin:0}.drawer-head button{font-size:34px;background:transparent;color:var(--ink)}
.cart-item{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}
.qty{display:flex;gap:8px;align-items:center}.qty button{width:34px;height:34px;border-radius:12px;background:var(--surface2)}
.form,.admin-form{margin-top:16px;display:grid;gap:13px}
label{display:grid;gap:7px;font-weight:850}
input,textarea,select{
  border:1px solid rgba(52,32,20,.16);background:white;border-radius:16px;padding:13px;font:inherit;color:var(--ink)
}
textarea{min-height:85px;resize:vertical}.total-line{display:flex;justify-content:space-between;font-size:18px;padding:13px 0}.primary{width:100%;font-size:16px;padding:16px}.tiny{color:var(--muted);font-size:13px;line-height:1.45}
.status-box,.panel-card{
  background:rgba(255,250,244,.92);border-radius:30px;padding:24px;box-shadow:0 16px 42px rgba(42,22,12,.1);border:1px solid var(--line);backdrop-filter:blur(12px)
}
.code{font-size:clamp(60px,13vw,122px);font-weight:1000;letter-spacing:.04em;line-height:.9}
.status-pill{display:inline-flex;padding:9px 13px;border-radius:999px;background:var(--surface2);font-weight:900;font-size:13px}
.status-ready{background:var(--green);color:white}.status-new{background:#7c2d12;color:white}.status-preparing{background:var(--amber);color:white}.status-paid{background:var(--green);color:white}
.admin-nav{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}
.admin-nav a{text-decoration:none;background:rgba(255,250,244,.88);color:var(--ink);padding:12px 15px;border-radius:999px;border:1px solid var(--line);font-weight:950;box-shadow:0 8px 22px rgba(42,22,12,.05)}
.admin-nav a:hover{background:white}
.admin-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:13px;margin-bottom:18px}
.metric{background:rgba(255,250,244,.9);border-radius:22px;padding:17px;border:1px solid var(--line);box-shadow:0 8px 24px rgba(42,22,12,.06)}
.metric span{color:var(--muted);font-size:13px;font-weight:800}.metric strong{display:block;margin-top:5px;font-size:25px;letter-spacing:-.03em}
.orders,.panel-grid{display:grid;gap:14px}
.order-card{background:rgba(255,250,244,.92);border:1px solid var(--line);border-radius:26px;padding:17px;box-shadow:0 10px 28px rgba(42,22,12,.07)}
.order-head{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center}.order-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.order-actions button,.mini-actions a,.mini-actions button{border-radius:13px;padding:10px 12px;background:var(--surface2);color:var(--ink)}
.order-actions .dark{background:var(--dark);color:white}.order-actions .green{background:var(--green);color:white}.order-actions .red,.mini-actions .danger{background:var(--red);color:white}
.items{margin:12px 0 0;padding-left:18px;color:#5c4738}.notice{position:fixed;top:14px;right:14px;background:var(--dark);color:white;padding:14px 16px;border-radius:17px;display:none;z-index:99;box-shadow:var(--shadow)}.notice.show{display:block}
.row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.table{width:100%;border-collapse:collapse;overflow:hidden}.table th,.table td{text-align:left;padding:11px;border-bottom:1px solid var(--line);vertical-align:middle}.table img{width:56px;height:56px;object-fit:cover;border-radius:12px}
.mini-actions{display:flex;flex-wrap:wrap;gap:6px}.success-box{background:#dcfce7;color:#14532d;padding:12px;border-radius:15px;margin-bottom:12px;font-weight:800}.error-box{background:#fee2e2;color:#991b1b;padding:12px;border-radius:15px;margin-bottom:12px;font-weight:800}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(440px,100%);background:rgba(255,250,244,.94);border-radius:32px;padding:26px;box-shadow:var(--shadow);border:1px solid var(--line)}
.tv-body{background:#0b0604;color:#fff;overflow:hidden}.tv-wrap{padding:34px;min-height:100vh;display:grid;grid-template-rows:auto 1fr;gap:28px}.tv-head{display:flex;justify-content:space-between;align-items:center}.tv-title{font-size:46px;font-weight:1000;letter-spacing:-.04em}.tv-clock{font-size:26px;color:var(--brand2);font-weight:900}.tv-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.tv-col{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:34px;padding:24px}.tv-col h2{font-size:34px;margin:0 0 18px}.tv-codes{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}.tv-code{background:linear-gradient(135deg,#2b160c,#8c5325);border-radius:26px;padding:26px;text-align:center;font-size:54px;font-weight:1000;box-shadow:0 20px 40px rgba(0,0,0,.22)}.tv-ready .tv-code{background:linear-gradient(135deg,#14532d,#27a466)}
.report-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
@media(max-width:720px){.hero{border-radius:25px;display:block}.cart-badge{display:inline-flex;margin-top:16px}.tv-grid{grid-template-columns:1fr}.tv-title{font-size:32px}.tv-code{font-size:42px}}


/* QR menu admin customizer bindings */
.menu-hero h1 { color: var(--menu-title-color, #fff); }
.menu-hero p { color: var(--menu-text-color, rgba(255,255,255,.78)); }
.menu-hero .eyebrow { color: var(--menu-accent-color, #d99b5f); }
.category h2 { color: var(--menu-title-color, #24170f); }
.product-card {
  background: var(--menu-card-bg, #fffaf4);
  border-radius: var(--menu-card-radius, 28px);
}
.product-card h3,
.product-bottom strong { color: var(--menu-card-text, #24170f); }
.product-card p { color: var(--menu-card-muted, #7b6656); }
.add-btn, .primary, .btn-primary, .floating-cart {
  background: var(--menu-button-bg, #1c1009);
  color: var(--menu-button-text, #ffffff);
}
.menu-banner-wrap {
  margin-top: 18px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(20,10,4,.16);
  border: 1px solid rgba(255,255,255,.14);
}
.menu-banner-link { display: block; }
.menu-banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
}
.product-img.ratio-square { aspect-ratio: 1 / 1; height: auto; }
.product-img.ratio-portrait { aspect-ratio: 4 / 5; height: auto; }
.product-img.ratio-wide { aspect-ratio: 16 / 9; height: auto; }
.menu-list-layout .product-grid {
  grid-template-columns: 1fr;
}
.menu-list-layout .product-card {
  min-height: unset;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}
.menu-list-layout .product-card .product-img {
  margin-bottom: 0;
  height: 120px;
}
.menu-list-layout .product-card .product-bottom {
  grid-column: 2;
  margin-top: 8px;
}
@media(max-width:720px){
  .menu-list-layout .product-card {
    grid-template-columns: 110px 1fr;
    gap: 12px;
  }
  .menu-list-layout .product-card .product-img {
    height: 100px;
  }
  .menu-banner-wrap {
    border-radius: 22px;
  }
}


/* V6 Theme Studio */
.theme-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.theme-editor-main {
  display: grid;
  gap: 16px;
}
.theme-preview {
  position: sticky;
  top: 16px;
}
.phone-frame {
  width: 100%;
  aspect-ratio: 9 / 18;
  border: 12px solid #111;
  border-radius: 36px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
}
.phone-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
body.has-noise::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .08;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.12) 25%, transparent 25%);
  background-size: 4px 4px;
}
.product-card {
  border: 1px solid rgba(255,255,255,.12);
}
.price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--menu-product-badge);
  color: var(--menu-button-text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.menu-compact-layout .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.menu-compact-layout .product-card {
  min-height: unset;
}
.menu-compact-layout .product-img {
  height: 110px;
}
.add-btn, .primary, .btn-primary, .floating-cart {
  border-radius: var(--menu-button-radius, 16px);
}
body.has-button-pulse .add-btn {
  animation: subtlePulse 2.2s ease-in-out infinite;
}
@keyframes subtlePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
body.anim-soft .product-card,
body.anim-normal .product-card,
body.anim-high .product-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
body.anim-normal .product-card:hover,
body.anim-high .product-card:hover {
  transform: translateY(-3px);
}
body.anim-high .product-card:hover {
  transform: translateY(-5px) scale(1.01);
}
@media(max-width:1000px){
  .theme-editor-layout {
    grid-template-columns: 1fr;
  }
  .theme-preview {
    position: static;
  }
}


/* V7 Modern Admin + Live Theme Studio */
body:not(.customer):not(.tv-body) {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  color: #0f172a;
}
body:not(.customer):not(.tv-body) .hero {
  background: rgba(255,255,255,.86);
  color: #0f172a;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 24px 80px rgba(15,23,42,.08);
  backdrop-filter: blur(18px);
}
body:not(.customer):not(.tv-body) .hero h1 {
  color: #0f172a;
}
body:not(.customer):not(.tv-body) .hero p {
  color: #475569;
}
body:not(.customer):not(.tv-body) .eyebrow {
  color: #2563eb;
}
body:not(.customer):not(.tv-body) .panel-card,
body:not(.customer):not(.tv-body) .metric,
body:not(.customer):not(.tv-body) .order-card,
body:not(.customer):not(.tv-body) .admin-nav a {
  background: rgba(255,255,255,.88);
  color: #0f172a;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 18px 48px rgba(15,23,42,.06);
}
body:not(.customer):not(.tv-body) .admin-nav {
  position: sticky;
  top: 10px;
  z-index: 50;
  padding: 10px;
  background: rgba(248,250,252,.72);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}
body:not(.customer):not(.tv-body) .admin-nav a {
  box-shadow: none;
  padding: 11px 14px;
}
body:not(.customer):not(.tv-body) .primary,
body:not(.customer):not(.tv-body) .btn-primary {
  background: linear-gradient(135deg,#111827,#334155);
  color: #fff;
}
.theme-editor-layout.v7 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}
.live-save-pill {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  font-size:13px;
  font-weight:800;
}
.live-save-pill.saving {
  background:#fef3c7;
  color:#92400e;
}
.live-save-pill.error {
  background:#fee2e2;
  color:#991b1b;
}
.field-help {
  font-size: 12px;
  color: #64748b;
  margin-top: -4px;
}
.segmented {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.segmented label {
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid rgba(15,23,42,.1);
  border-radius:14px;
  background:#fff;
  cursor:pointer;
}
.segmented input { width:auto; }
.phone-frame.large-preview {
  aspect-ratio: 9 / 19;
}
.preview-actions {
  display:flex;
  gap:8px;
  margin:10px 0;
}
.menu-hero.hero-minimal {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 30px 4px;
}
.menu-hero.hero-editorial h1 {
  font-size: clamp(44px, 12vw, 118px) !important;
  line-height: .86;
}
.menu-hero.hero-glass {
  background: rgba(255,255,255,.10) !important;
  backdrop-filter: blur(22px) !important;
}
.menu-hero.hero-split {
  display:grid;
  grid-template-columns: 1fr minmax(180px, 360px);
}
.menu-hero.hero-hidden {
  display:none;
}
.menu-cardless-layout .product-grid {
  display:block;
}
.menu-cardless-layout .product-card {
  display:grid;
  grid-template-columns: 1fr auto;
  gap:8px 16px;
  background: transparent !important;
  border:0 !important;
  border-bottom: 1px solid rgba(255,255,255,.16) !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:16px 0 !important;
}
.menu-cardless-layout .product-img {
  display:none;
}
.menu-cardless-layout .product-bottom {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin:0;
  align-self:center;
}
.menu-box-row-layout .product-grid {
  display:block;
}
.menu-box-row-layout .product-card {
  display:grid;
  grid-template-columns: 92px 1fr auto;
  gap:14px;
  min-height:unset;
  margin-bottom:12px;
  align-items:center;
}
.menu-box-row-layout .product-img {
  width:92px;
  height:92px;
  margin:0;
}
.menu-box-row-layout .product-bottom {
  margin:0;
  flex-direction:column;
  align-items:flex-end;
}
.menu-magazine-layout .product-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.menu-magazine-layout .product-card:first-child {
  grid-column: span 2;
}
.menu-magazine-layout .product-card:first-child .product-img {
  height:260px;
}
@media(max-width:900px) {
  .theme-editor-layout.v7 { grid-template-columns: 1fr; }
  .theme-preview { position: static; }
  .menu-hero.hero-split { grid-template-columns:1fr; }
  .menu-magazine-layout .product-card:first-child { grid-column: span 1; }
}


/* V8 Clean Mobile Menu */
body.v8-clean-menu {
  margin: 0;
  background: var(--v8-page-bg);
  color: var(--v8-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: 62px;
}
.v8-topbar {
  height: 54px;
  background: var(--v8-header-bg);
  display: grid;
  grid-template-columns: 48px 1fr 96px;
  align-items: center;
  padding: 0 10px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.v8-title {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v8-down {
  font-size: 16px;
  color: var(--v8-muted);
}
.v8-icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--v8-text);
  font-size: 34px;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none;
}
.v8-top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.v8-top-actions .v8-icon-btn {
  font-size: 30px;
}
.v8-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 10px;
}
.v8-intro {
  text-align: center;
  margin: 8px auto 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--v8-text);
}
.v8-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.v8-tabs::-webkit-scrollbar {
  display: none;
}
.v8-tabs.is-sticky {
  position: sticky;
  top: 54px;
  z-index: 30;
  background: var(--v8-page-bg);
}
.v8-tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 2px solid var(--v8-tab-border);
  border-radius: 5px;
  color: var(--v8-text);
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.v8-tabs a.active {
  background: var(--v8-tab-active-bg);
  color: var(--v8-tab-active-text);
}
.v8-section {
  padding: 8px 0 4px;
  scroll-margin-top: 110px;
}
.v8-section h2 {
  margin: 14px 0 8px;
  text-align: center;
  color: var(--v8-text);
  font-size: 21px;
  letter-spacing: -.02em;
}
.v8-section-desc {
  margin: 0 auto 26px;
  max-width: 650px;
  text-align: center;
  line-height: 1.45;
  color: var(--v8-text);
  font-size: 16px;
}
.v8-section-image {
  display: block;
  width: 100%;
  height: var(--v8-section-image-height);
  object-fit: cover;
  border-radius: 5px;
  margin: 0 0 20px;
}
.v8-products {
  display: grid;
  gap: 12px;
}
.v8-product-card {
  position: relative;
  background: var(--v8-card-bg);
  border-radius: var(--v8-card-radius);
  min-height: 152px;
  padding: 20px 148px 18px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  overflow: hidden;
}
.v8-product-info h3 {
  margin: 6px 0 8px;
  color: var(--v8-text);
  font-size: 16px;
  line-height: 1.25;
}
.v8-product-info p {
  margin: 0 0 10px;
  color: var(--v8-text);
  font-size: 14px;
  line-height: 1.25;
  text-transform: capitalize;
}
.v8-product-info strong {
  display: inline-block;
  color: var(--v8-text);
  font-size: 17px;
  font-weight: 800;
}
.v8-product-img {
  position: absolute;
  right: 8px;
  top: 10px;
  width: var(--v8-product-image-size);
  height: calc(var(--v8-product-image-size) - 2px);
  object-fit: cover;
  border-radius: 5px;
}
.v8-plus-visible {
  position: absolute;
  right: calc(var(--v8-product-image-size) + 2px);
  bottom: 20px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  border: 0;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.v8-cart {
  position: fixed;
  left: 10px;
  bottom: 14px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #1f1f1f;
  color: white;
  z-index: 60;
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.v8-cart #cartCount {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  border: 2px solid var(--v8-page-bg);
  font-size: 12px;
  display: grid;
  place-items: center;
}
.v8-cart #floatingTotal {
  display: none;
}
.v8-powered {
  text-align: center;
  color: #000;
  font-size: 14px;
  padding: 10px 0 12px;
}
body.v8-clean-menu .drawer-card {
  background: #fff;
  color: #111;
}
body.v8-clean-menu .primary {
  background: #050505;
  color: #fff;
}
@media (max-width: 520px) {
  .v8-product-card {
    padding-right: 128px;
  }
  .v8-product-img {
    width: 116px;
    height: 132px;
  }
  .v8-plus-visible {
    right: 112px;
  }
}


/* V9 Fixes */
.v8-topbar.clean{grid-template-columns:1fr;height:48px}
.v9-brand-head{text-align:center;padding:16px 10px 12px}
.v9-logo{display:block;max-width:var(--v9-logo-width);max-height:90px;object-fit:contain;margin:0 auto 10px}
.v9-brand-head h1{margin:0 0 8px;font-size:24px;line-height:1.1;color:var(--v8-text);letter-spacing:-.03em}
.v9-brand-head p{max-width:620px;margin:0 auto;color:var(--v8-muted);font-size:14px;line-height:1.45}
.v9-qty-control{position:absolute;right:calc(var(--v8-product-image-size) + 18px);bottom:16px;display:inline-flex;align-items:center;gap:5px;background:#050505;color:white;border-radius:999px;padding:4px;box-shadow:0 6px 14px rgba(0,0,0,.18)}
.v9-qty-control button{width:26px;height:26px;border-radius:999px;border:0;background:transparent;color:white;font-size:18px;line-height:1;display:grid;place-items:center;cursor:pointer}
.v9-qty-control .qty-value{min-width:18px;text-align:center;font-size:13px;font-weight:800}
.v9-qty-control:not(.has-items) .qty-minus,.v9-qty-control:not(.has-items) .qty-value{display:none}
.v9-qty-control:not(.has-items){width:32px;height:32px;padding:3px;justify-content:center}
@media(max-width:520px){.v9-qty-control{right:112px}}


/* V10 Stable Clean Menu */
body.v10-menu{margin:0;background:var(--v10-bg);color:var(--v10-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;min-height:100vh;padding-bottom:70px}
.v10-topbar{height:52px;background:rgba(255,255,255,.82);backdrop-filter:blur(16px);display:grid;place-items:center;position:sticky;top:0;z-index:40;font-weight:700;border-bottom:1px solid rgba(0,0,0,.06)}
.v10-wrap{max-width:760px;margin:0 auto;padding:0 10px}
.v10-brand{text-align:center;padding:18px 10px 12px}
.v10-brand img{max-width:var(--v10-logo);max-height:92px;object-fit:contain;margin:0 auto 10px;display:block}
.v10-brand h1{margin:0 0 8px;font-size:25px;letter-spacing:-.04em}
.v10-brand p{margin:0 auto;max-width:620px;color:var(--v10-muted);font-size:14px;line-height:1.45}
.v10-tabs{display:flex;gap:7px;overflow-x:auto;position:sticky;top:52px;z-index:30;padding:8px 0 12px;background:transparent;scrollbar-width:none}
.v10-tabs::-webkit-scrollbar{display:none}
.v10-tabs a{flex:0 0 auto;min-height:39px;padding:0 16px;border:1.5px solid var(--v10-accent);border-radius:999px;display:inline-flex;align-items:center;text-decoration:none;color:var(--v10-text);background:rgba(255,255,255,.72);font-size:14px}
.v10-tabs a:first-child{background:var(--v10-accent);color:#fff}
.v10-section{scroll-margin-top:115px;padding:12px 0}
.v10-section h2{text-align:center;font-size:22px;margin:10px 0 8px}
.v10-desc{text-align:center;margin:0 auto 18px;max-width:650px;line-height:1.45;color:var(--v10-text)}
.v10-cat-img{width:100%;height:150px;object-fit:cover;border-radius:var(--v10-radius);display:block;margin-bottom:16px}
.v10-products{display:grid;gap:12px}
.v10-product{position:relative;background:#fff;border-radius:var(--v10-radius);padding:18px 146px 16px 12px;min-height:146px;box-shadow:0 2px 12px rgba(0,0,0,.10);overflow:hidden}
.v10-product-info h3{margin:4px 0 8px;font-size:16px;color:var(--v10-text)}
.v10-product-info p{margin:0 0 10px;font-size:14px;line-height:1.28;color:var(--v10-text)}
.v10-product-info strong{font-size:17px;color:var(--v10-text)}
.v10-product-img{position:absolute;right:8px;top:10px;width:128px;height:128px;object-fit:cover;border-radius:8px}
.v10-add{position:absolute;right:106px;bottom:16px;min-width:34px;height:34px;border-radius:999px;border:0;background:#050505;color:#fff;font-weight:900;cursor:pointer}
.v10-cart{position:fixed;left:12px;bottom:14px;min-width:58px;height:54px;border-radius:999px;border:0;background:#1f1f1f;color:#fff;z-index:60;box-shadow:0 8px 24px rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;gap:6px;padding:0 14px}
.v10-cart small{display:none}.v10-cart #cartCount{background:#000;color:#fff;border:2px solid #fff;border-radius:999px;min-width:22px;height:22px;display:grid;place-items:center;font-size:12px}
.v10-option-modal{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:100;display:grid;place-items:end center;padding:16px}
.v10-option-card{width:min(640px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:28px;padding:20px;color:#111;position:relative}
.v10-modal-close{position:absolute;right:14px;top:10px;border:0;background:#eee;border-radius:50%;width:34px;height:34px;font-size:22px}
.v10-option-group{border-top:1px solid #eee;padding:14px 0}
.v10-option-group h3{margin:0 0 10px}
.v10-option-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:10px;border:1px solid #eee;border-radius:12px;margin-bottom:8px}
.v10-modal-bottom{display:flex;gap:12px;align-items:center;justify-content:space-between;position:sticky;bottom:-20px;background:#fff;padding-top:12px}
.v10-modal-qty{display:flex;align-items:center;gap:10px}.v10-modal-qty button{width:38px;height:38px;border-radius:50%;border:0;background:#111;color:#fff;font-size:20px}
.v10-design-grid{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start}
.v10-preview-panel{position:sticky;top:12px}.v10-tv-preview{height:260px;border:10px solid #111;border-radius:24px;overflow:hidden;background:#111}.v10-tv-preview iframe{width:100%;height:100%;border:0}
@media(max-width:900px){.v10-design-grid{grid-template-columns:1fr}.v10-preview-panel{position:static}}
@media(max-width:520px){.v10-product{padding-right:128px}.v10-product-img{width:112px;height:128px}.v10-add{right:96px}}


/* ===== V11 PREMIUM UI ===== */
body.v10-menu{
  background:var(--v10-bg);
  backdrop-filter:blur(4px);
}

.v10-wrap{
  max-width:680px;
  padding:0 14px 90px;
}

.v10-topbar{
  height:58px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(22px);
  border-bottom:1px solid rgba(0,0,0,.04);
  font-size:15px;
  letter-spacing:-.02em;
}

.v10-brand{
  padding:20px 10px 10px;
}

.v10-brand h1{
  font-size:38px;
  font-weight:800;
  margin-bottom:10px;
  letter-spacing:-.06em;
}

.v10-brand p{
  font-size:15px;
  max-width:500px;
  opacity:.8;
}

.v10-tabs{
  gap:10px;
  padding:12px 0 18px;
}

.v10-tabs a{
  background:rgba(255,255,255,.78);
  border:none;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  font-weight:600;
  min-height:42px;
}

.v10-tabs a.active,
.v10-tabs a:first-child{
  background:#111;
  color:#fff;
}

.v10-section{
  padding-top:4px;
}

.v10-section h2{
  text-align:left;
  margin:4px 0 14px;
  padding-left:2px;
  font-size:28px;
  letter-spacing:-.05em;
}

.v10-products{
  gap:14px;
}

.v10-product{
  min-height:132px;
  padding:14px 128px 14px 14px;
  border-radius:24px;
  box-shadow:
    0 8px 28px rgba(0,0,0,.08),
    0 2px 8px rgba(0,0,0,.05);
  transition:.22s ease;
}

.v10-product:hover{
  transform:translateY(-2px);
}

.v10-product-info h3{
  font-size:22px;
  margin-bottom:6px;
  letter-spacing:-.04em;
}

.v10-product-info p{
  font-size:14px;
  line-height:1.35;
  opacity:.72;
  max-width:90%;
}

.v10-product-info strong{
  display:block;
  margin-top:10px;
  font-size:24px;
  letter-spacing:-.05em;
}

.v10-product-img{
  width:104px;
  height:104px;
  right:12px;
  top:14px;
  border-radius:18px;
  box-shadow:0 6px 18px rgba(0,0,0,.16);
}

.v10-add{
  right:18px;
  bottom:14px;
  height:42px;
  min-width:82px;
  padding:0 16px;
  border-radius:14px;
  background:#111;
  font-size:15px;
  font-weight:700;
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

.v10-cart{
  left:auto;
  right:18px;
  bottom:18px;
  height:58px;
  padding:0 18px;
  border-radius:999px;
  background:#111;
  box-shadow:0 10px 30px rgba(0,0,0,.24);
}

.v10-cart small{
  display:block;
  font-size:12px;
  opacity:.8;
}

.v10-cart #cartCount{
  background:#fff;
  color:#111;
  border:none;
  font-weight:700;
}

.drawer{
  background:rgba(0,0,0,.24);
  backdrop-filter:blur(6px);
}

.drawer-card{
  border-radius:30px 30px 0 0;
  padding:22px;
}

.drawer-head h2{
  font-size:28px;
  letter-spacing:-.05em;
}

.cart-item{
  border-radius:18px;
  background:#f7f7f7;
  padding:14px;
  margin-bottom:10px;
}

.qty button{
  width:34px;
  height:34px;
  border-radius:12px;
}

.primary{
  height:56px;
  border-radius:18px;
  font-size:16px;
  font-weight:700;
  background:#111;
}

.v10-option-modal{
  background:rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
}

.v10-option-card{
  border-radius:32px;
  padding:24px;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
}

.v10-option-card h2{
  font-size:32px;
  letter-spacing:-.06em;
}

.v10-option-row{
  border-radius:18px;
  border:1px solid rgba(0,0,0,.06);
  min-height:58px;
}

.v10-modal-bottom{
  gap:16px;
}

.v10-modal-qty{
  background:#f3f3f3;
  border-radius:18px;
  padding:8px 12px;
}

.v10-modal-qty button{
  border-radius:14px;
}

@media(max-width:520px){

  .v10-brand h1{
    font-size:34px;
  }

  .v10-product{
    padding-right:118px;
    min-height:122px;
  }

  .v10-product-img{
    width:92px;
    height:92px;
  }

  .v10-product-info h3{
    font-size:19px;
  }

  .v10-product-info strong{
    font-size:21px;
  }

  .v10-add{
    min-width:72px;
    height:38px;
    font-size:14px;
  }

}


/* ===== V13 USABLE NO-BLUR FIX ===== */
/* Modal/drawer çalışır kalır; sadece arka planı karartma/blur kaldırılır */

.v10-option-modal{
  background:rgba(0,0,0,0.04) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  align-items:end !important;
  justify-content:center !important;
  padding:0 14px 18px !important;
  pointer-events:auto !important;
}

.v10-option-card{
  pointer-events:auto !important;
  width:min(560px, calc(100vw - 28px)) !important;
  max-height:70vh !important;
  overflow:auto !important;
  border-radius:24px !important;
  padding:18px !important;
  box-shadow:0 18px 50px rgba(0,0,0,.18) !important;
  border:1px solid rgba(0,0,0,.06) !important;
}

.v10-option-card h2{
  font-size:24px !important;
  margin:0 42px 4px 0 !important;
  letter-spacing:-.04em !important;
}

#optionBase{
  margin:0 0 12px !important;
  font-size:13px !important;
  opacity:.65 !important;
}

.v10-option-row{
  min-height:44px !important;
  padding:8px 10px !important;
  border-radius:14px !important;
  font-size:14px !important;
}

.v10-modal-close{
  right:12px !important;
  top:12px !important;
  background:#f1f1f1 !important;
  color:#111 !important;
}

.v10-modal-bottom{
  position:sticky !important;
  bottom:-18px !important;
  margin:10px -18px -18px !important;
  padding:12px 18px 18px !important;
  background:rgba(255,255,255,.98) !important;
  border-top:1px solid rgba(0,0,0,.06) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

.v10-modal-bottom .primary,
#addConfigured{
  height:50px !important;
  border-radius:16px !important;
}

/* Sepet drawer: arka planı karartma ama panel ve kapatma düzgün çalışsın */
.drawer{
  background:rgba(0,0,0,0.02) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  pointer-events:auto !important;
}

.drawer-card{
  pointer-events:auto !important;
  box-shadow:0 -18px 60px rgba(0,0,0,.18) !important;
  max-width:680px !important;
  margin:0 auto !important;
  border:1px solid rgba(0,0,0,.06) !important;
}

/* Sayfa genelinde blur filtresi kalmasın */
body.v10-menu,
body.v10-menu *{
  filter:none;
}

.v10-cart{
  z-index:70 !important;
}


/* ===== V14 CLICK LAYER FIX ===== */
/* Kapalı sepet/drawer ekranda görünmese bile tıklamaları engelliyordu. 
   Kapalıyken tamamen devre dışı, açılınca aktif. */

.drawer {
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.drawer.open {
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: rgba(0,0,0,0.02) !important;
}

.drawer:not(.open) .drawer-card {
  transform: translateY(110%) !important;
  pointer-events: none !important;
}

.drawer.open .drawer-card {
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Option modal sadece hidden değilken tıklama yakalasın */
.v10-option-modal[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.v10-option-modal:not([hidden]) {
  display: grid !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: rgba(0,0,0,0.04) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Menü ana alanı her zaman tıklanabilir kalsın */
.v10-wrap,
.v10-tabs,
.v10-products,
.v10-product,
.v10-add,
.v10-cart {
  pointer-events: auto;
}

/* Floating sepet butonu diğer katmanların üstünde kalsın */
.v10-cart {
  z-index: 90 !important;
}

/* Açık modal drawer'dan üstte olsun */
.v10-option-modal {
  z-index: 120 !important;
}

.drawer {
  z-index: 110 !important;
}


/* ===== V15 Vercent Ideas Adapted ===== */
.v15-screen{
  margin:0;
  background:#050505;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  min-height:100vh;
  padding:28px;
}
.v15-screen-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:28px;
}
.v15-screen-head span{
  color:#d4af37;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
}
.v15-screen-head h1{
  font-size:clamp(36px,6vw,78px);
  margin:.1em 0 0;
  letter-spacing:-.06em;
}
.v15-screen-head strong{
  font-size:clamp(34px,5vw,64px);
  color:#d4af37;
}
.v15-tv-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.v15-tv-grid section,
.v15-item-board{
  background:#101010;
  border:1px solid rgba(255,255,255,.08);
  border-radius:34px;
  padding:24px;
  min-height:70vh;
}
.v15-tv-grid h2{
  margin:0 0 20px;
  font-size:clamp(28px,4vw,52px);
}
.screen-codes{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:18px;
}
.screen-code{
  background:#16a34a;
  color:#fff;
  border-radius:28px;
  min-height:140px;
  display:grid;
  place-items:center;
  font-size:clamp(42px,8vw,112px);
  font-weight:900;
  letter-spacing:-.08em;
}
.screen-code.soft{
  background:#f59e0b;
}
.screen-item{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  padding:20px;
  margin-bottom:16px;
  border-radius:24px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
}
.screen-item strong{color:#d4af37;font-size:26px}
.screen-item h2{margin:6px 0;font-size:32px}
.screen-item p{margin:0;color:#ddd}
.screen-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.screen-actions button{
  border:0;
  border-radius:14px;
  padding:14px 16px;
  font-weight:800;
  cursor:pointer;
}
.screen-error{
  min-height:100vh;
  display:grid;
  place-items:center;
  text-align:center;
}
.qr-print-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.qr-card{
  background:#fff;
  color:#111;
  border:1px solid rgba(0,0,0,.12);
  border-radius:22px;
  padding:18px;
  text-align:center;
  break-inside:avoid;
}
.qr-card h2{margin:0 0 4px}
.qr-card p{margin:0 0 12px;font-weight:800}
.qr-box{
  width:150px;
  height:150px;
  margin:0 auto 12px;
}
@media print{
  .no-print,.admin-nav,.hero{display:none!important}
  body{background:white!important}
  .admin-wrap{max-width:none;padding:0}
  .qr-print-grid{grid-template-columns:repeat(2,1fr);gap:12mm}
  .qr-card{box-shadow:none;border:1px solid #111}
}
@media(max-width:900px){
  .v15-tv-grid{grid-template-columns:1fr}
  .qr-print-grid{grid-template-columns:1fr}
  .screen-item{align-items:flex-start;flex-direction:column}
}


/* ===== MANUAL FINAL FIX: sticky cart + active category ===== */
.v10-cart{
  position: fixed !important;
  right: 18px !important;
  bottom: max(18px, env(safe-area-inset-bottom)) !important;
  left: auto !important;
  z-index: 9999 !important;
  min-width: 74px !important;
  height: 58px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.24) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.v10-cart #cartCount{
  background:#fff !important;
  color:#111 !important;
  border:none !important;
  font-weight:800 !important;
  min-width:22px !important;
  height:22px !important;
  border-radius:999px !important;
  display:grid !important;
  place-items:center !important;
  font-size:12px !important;
}

.v10-cart #floatingTotal{
  display:block !important;
  font-size:12px !important;
  opacity:.78 !important;
  white-space:nowrap !important;
}

.v10-tabs a.active{
  background:#111 !important;
  color:#fff !important;
  border-color:#111 !important;
}

.v10-tabs a:not(.active){
  background:rgba(255,255,255,.78) !important;
  color:var(--v10-text) !important;
}

@media(max-width:520px){
  .v10-cart{
    right: 14px !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
    height: 54px !important;
    min-width: 66px !important;
  }
}


/* ===== V19 CART SCROLL FOLLOW JS ===== */
/* Fixed değil. JS scroll'a göre top/left hesaplayıp ekranla beraber gezdirir. */
#openCart.v10-cart,
.v10-cart{
  position: absolute !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: 0;
  z-index: 999999 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  min-width: 72px !important;
  height: 58px !important;
  padding: 0 16px !important;

  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;

  box-shadow: 0 12px 35px rgba(0,0,0,.22) !important;
  transform: none !important;
  margin: 0 !important;
}

#openCart.v10-cart #cartCount{
  background:#fff !important;
  color:#111 !important;
  border:none !important;
  font-weight:800 !important;
  min-width:22px !important;
  height:22px !important;
  border-radius:999px !important;
  display:grid !important;
  place-items:center !important;
  font-size:12px !important;
}

#openCart.v10-cart #floatingTotal{
  display:block !important;
  font-size:12px !important;
  opacity:.78 !important;
  white-space:nowrap !important;
}


/* ===== V20 DRAWER ALSO FOLLOWS SCROLL ===== */
/* Drawer fixed değil; JS absolute top/left verir. Böylece bulunduğun ekranda açılır. */
#drawer.drawer{
  position: absolute !important;
  left: 0 !important;
  top: 0;
  right: auto !important;
  bottom: auto !important;
  width: 100vw !important;
  height: auto !important;
  min-height: 0 !important;
  z-index: 999998 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

#drawer.drawer.open{
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#drawer.drawer .drawer-card{
  width: min(680px, calc(100vw - 24px)) !important;
  max-height: 78vh !important;
  overflow: auto !important;
  margin: 0 auto !important;
  border-radius: 28px 28px 0 0 !important;
  box-shadow: 0 -18px 60px rgba(0,0,0,.18) !important;
  transform: none !important;
  pointer-events: auto !important;
}
