:root {
  --orange: #f26419;
  --orange-2: #ff8a3d;
  --orange-soft: #fff1e8;
  --green: #17a34a;
  --green-2: #0f8a3c;
  --red: #e5383b;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --blue-soft: #e8f0fe;
  --dark: #0d1526;
  --dark-2: #16213a;
  --panel: #ffffff;
  --panel-2: #f5f6f8;
  --line: #e7e8ec;
  --ink: #1d1f24;
  --muted: #6b7079;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(20, 20, 30, .07);
  --sidebar: 248px;
  --cart: 400px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(600px 300px at 15% -5%, rgba(59, 130, 246, .2), transparent 70%),
    radial-gradient(500px 260px at 65% -10%, rgba(59, 130, 246, .22), transparent 70%),
    radial-gradient(400px 220px at 95% 10%, rgba(37, 99, 235, .18), transparent 70%),
    var(--dark);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout (desktop) ---------- */
.app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "top top" "nav board";
  overflow: hidden;
}

/* ---------- Top bar ---------- */
.topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px 18px 24px;
  color: #fff;
}
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.logo-mark { width: 48px; height: 48px; stroke-width: 1.6; }
.logo-tile { border-radius: 12px; box-shadow: 0 4px 14px rgba(242, 100, 25, .35); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.logo-text strong {
  font-size: 28px; font-weight: 900; letter-spacing: -.01em;
  text-transform: uppercase; white-space: nowrap;
}
.logo-text em { font-style: normal; color: var(--orange); }
.logo-text small { font-size: 15px; color: rgba(255, 255, 255, .62); letter-spacing: .04em; margin-top: 4px; }

.greeting {
  flex: 1;
  text-align: center;
  font-family: "Great Vibes", cursive;
  font-size: 46px;
  line-height: 1;
  color: #fff;
  opacity: .92;
}

.search {
  display: flex; align-items: center; gap: 12px;
  width: min(380px, 32vw);
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .8);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--orange); }
.search .icon { width: 22px; height: 22px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 17px; color: #fff; }
.search input::placeholder { color: rgba(255, 255, 255, .6); }
.topbar-actions { display: none; }
.install-pill .icon { color: var(--orange-2) !important; }
.install-banner { display: none; }
.greeting { white-space: nowrap; }

@media (max-width: 1400px) {
  .greeting { display: none; }
  .search { flex: 1; width: auto; max-width: 440px; margin-left: auto; }
}

/* ---------- Categories (sidebar on desktop) ---------- */
.categories {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px 24px;
  overflow-y: auto;
  scrollbar-width: none;
}
.category {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px;
  color: #fff;
  font-size: 17px;
  text-align: left;
  border-radius: 10px;
  position: relative;
  transition: background .2s;
}
.category + .category::before {
  content: ""; position: absolute; top: -1px; left: 20px; right: 16px;
  height: 1px; background: rgba(255, 255, 255, .08);
}
.category .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.category:hover { background: rgba(255, 255, 255, .06); }
.category.active {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  box-shadow: 0 6px 18px rgba(242, 100, 25, .35);
}
.category.active::before, .category.active + .category::before { display: none; }
.categories.searching .category.active { background: rgba(255, 255, 255, .08); box-shadow: none; }

/* ---------- Board ---------- */
.board {
  grid-area: board;
  display: grid;
  grid-template-columns: 1fr var(--cart);
  gap: 18px;
  min-height: 0;
  margin: 0 0 18px 0;
  padding: 16px;
  background: var(--panel-2);
  border-radius: var(--radius) 0 0 var(--radius);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
  min-height: 0;
}
.products-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

.product {
  display: flex; flex-direction: column;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  outline: 2px solid transparent;
  transition: outline-color .2s, transform .2s;
  animation: pop .3s ease both;
}
.product:hover { transform: translateY(-2px); }
.product.in-cart { outline-color: var(--orange); background: #fffaf6; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }

.product-media { aspect-ratio: 4 / 3; flex-shrink: 0; background: var(--dark-2); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: rgba(200, 222, 255, .7);
  background:
    radial-gradient(circle at 50% 35%, rgba(59, 130, 246, .45), transparent 60%),
    linear-gradient(160deg, #1e3a6e, #0f1b33);
}
.placeholder .icon { width: 38%; height: 38%; stroke-width: 1.3; }

.product-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product h3 { font-size: 16px; font-weight: 500; line-height: 1.25; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-size: 19px; font-weight: 700; white-space: nowrap; }

.add-btn {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #fff;
  box-shadow: 0 4px 10px rgba(242, 100, 25, .35);
  transition: transform .15s;
}
.add-btn:active { transform: scale(.9); }
.add-btn { position: relative; }
.add-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 99px;
  background: var(--dark); color: #fff; font-size: 12px; font-weight: 700;
}
.option-hint { font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: -2px; }
.add-btn .icon { width: 20px; height: 20px; stroke-width: 2.6; }

.stepper {
  display: flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.stepper button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--panel-2);
}
.stepper button:last-child { background: var(--orange); color: #fff; }
.stepper button .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.stepper .qty { min-width: 30px; text-align: center; font-weight: 500; }
.product .stepper { border-color: #f6c7a8; }
.product.in-cart .price { font-size: 16px; }

/* ---------- Cart ---------- */
.cart {
  display: flex; flex-direction: column;
  min-height: 0;
  background: var(--panel);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 20px 20px;
}
.cart-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.cart-head-icon { width: 34px; height: 34px; }
.cart-head h2 { font-size: 24px; font-weight: 700; flex: 1; }
.table-chip {
  font-size: 13px; font-weight: 500;
  padding: 5px 10px; border-radius: 99px;
  background: var(--blue-soft); color: var(--blue);
}
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; }
.icon-link:hover { background: var(--panel-2); }
.icon-link .icon { width: 22px; height: 22px; }
.danger { color: var(--red); }
.cart-close { display: none; }

.cart-items { flex: 1; overflow-y: auto; min-height: 0; margin: 0 -6px; padding: 0 6px; }
.cart-row {
  display: grid;
  grid-template-columns: 58px 1fr auto 74px 32px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  animation: pop .25s ease both;
}
.thumb { width: 58px; height: 58px; border-radius: 8px; overflow: hidden; }
.thumb .placeholder .icon { width: 50%; height: 50%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-size: 15px; line-height: 1.25; }
.line-total { text-align: right; font-weight: 500; white-space: nowrap; }
.cart-row .icon-link { width: 32px; height: 32px; }
.cart-row .stepper button { width: 30px; height: 30px; }
.cart-row .stepper .qty { min-width: 28px; }

.cart-empty {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; color: var(--muted);
}
.cart-empty .icon { width: 48px; height: 48px; stroke-width: 1.4; opacity: .4; margin-bottom: 6px; }
.cart-empty p { font-weight: 500; color: var(--ink); }

.cart-foot { padding-top: 16px; }
.note {
  display: flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2); color: var(--muted);
}
.note:focus-within { border-color: var(--orange); }
.note input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15px; color: var(--ink); }

.totals { margin: 16px 0; }
.totals p { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 17px; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 22px; font-weight: 700; }
.totals .grand strong { font-size: 32px; color: var(--orange); font-weight: 900; }

.cart-error {
  margin-bottom: 12px; padding: 10px 14px;
  border-radius: 8px; background: #fdecec; color: var(--red); font-size: 14px;
}

.checkout {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color: #fff;
  font-size: 22px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(23, 163, 74, .3);
  transition: filter .2s, opacity .2s;
}
.checkout:hover:not(:disabled) { filter: brightness(1.06); }
.checkout:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.checkout .icon { width: 30px; height: 30px; }
.checkout.loading span::after { content: "…"; }

/* ---------- Mobile cart bar, backdrop, dialog ---------- */
.cart-bar { display: none; }
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .5); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }

.badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 99px;
  background: var(--red); color: #fff;
  font-size: 13px; font-weight: 700;
  border: 2px solid var(--dark);
}

.success {
  margin: auto;
  width: min(380px, calc(100% - 32px));
  padding: 32px 28px 24px;
  border: 0; border-radius: 20px;
  text-align: center;
  color: var(--ink);
}
.success::backdrop { background: rgba(0, 0, 0, .6); }
.success-mark {
  width: 76px; height: 76px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: #e5f7ec; color: var(--green);
}
.success-mark .icon { width: 40px; height: 40px; stroke-width: 2.6; }
.success h2 { font-size: 24px; margin-bottom: 8px; }
.success p { color: var(--muted); }
.success strong { color: var(--orange); font-size: 18px; }
.success-note { margin: 8px 0 22px; }
.success .checkout { height: 54px; font-size: 18px; }

/* ---------- No photo, credit ---------- */
.no-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.no-photo .icon { width: 28%; height: 28%; }
.no-photo small { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.thumb .no-photo small { display: none; }
.brand { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.menu-ads { grid-column: 1 / -1; margin-top: 16px; }
.menu-signature { grid-column: 1 / -1; justify-self: center; margin: 18px 0 4px; }
/* Computers: signature sits at the bottom of the left category menu; phones keep it under the products. */
.nav-signature { margin: auto 12px 0; align-self: stretch; }
@media (min-width: 1024px) {
  .menu-signature { display: none !important; }
}
@media (max-width: 1023px) {
  .nav-signature { display: none !important; }
}
.install-pill {
  background: linear-gradient(135deg, var(--orange-2), var(--orange)) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(242, 100, 25, .35);
}
.install-pill .icon { color: #fff !important; }

/* ---------- View-only menu (no table QR) & guest visits ---------- */
.view-only .cart, .view-only .cart-bar, .view-only #cartToggle { display: none !important; }
.view-only .board { grid-template-columns: 1fr; padding-bottom: 24px; }
.view-only-note {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--blue-soft); color: #1e40af; font-size: 15px; line-height: 1.4;
}
.view-only-note > .icon { width: 30px; height: 30px; flex-shrink: 0; color: var(--blue); }
.view-only-note > span { flex: 1; }
.wrong-qr-note {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: #fef2f2; border: 2px solid #ef4444; color: #991b1b; line-height: 1.4;
}
.wrong-qr-note strong { display: block; font-size: 17px; color: #dc2626; }
.wrong-qr-mark {
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: #ef4444; color: #fff; font-weight: 800; font-size: 18px;
}
.note-scan-btn {
  flex-shrink: 0; height: 44px; padding: 0 16px; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #fff; font-size: 15px;
}
.qr-scan-btn span:empty { display: none; }
@media (max-width: 560px) {
  .view-only-note { flex-wrap: wrap; }
  .note-scan-btn { width: 100%; }
}
.visit-pill { cursor: default; gap: 10px !important; padding-left: 6px !important; }
.guest-avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #fff;
  font-size: 15px; font-weight: 800; line-height: 1;
}
.guest-hello { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.guest-hello small { font-size: 11px; font-weight: 500; opacity: .75; }
.guest-hello b { font-size: 14px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-badge { cursor: default; }
.visit-line { font-size: 18px; color: var(--ink) !important; }
.visit-line strong { color: var(--orange); font-size: 26px; }

/* ---------- Wi-Fi ---------- */
.wifi-pill {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px;
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(37, 99, 235, .18);
  color: #fff; font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: background .2s;
}
.wifi-pill:hover { background: rgba(37, 99, 235, .32); }
.wifi-pill .icon { width: 22px; height: 22px; color: var(--blue-2); }

.table-hint {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; padding: 12px 14px;
  border-radius: 10px;
  background: var(--blue-soft); color: var(--blue);
  font-size: 14px; font-weight: 500;
}
.table-hint .icon { width: 24px; height: 24px; }

.wifi { position: relative; text-align: left; }
.wifi h2, .wifi > .success-mark { text-align: center; }
.wifi-step > p { text-align: center; margin-bottom: 16px; }
.wifi-mark { background: var(--blue-soft); color: var(--blue); }
.wifi-close { position: absolute; top: 12px; right: 12px; color: var(--muted); }
.field {
  display: flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 16px; margin-bottom: 14px;
  border: 1.5px solid var(--line); border-radius: 12px;
  color: var(--muted);
}
.field:focus-within { border-color: var(--blue); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 18px; color: var(--ink); }
.code-field input { text-align: center; letter-spacing: .5em; font-size: 26px; font-weight: 700; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-bottom: 12px; text-align: left; }
.consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); flex-shrink: 0; }
.consent a { color: var(--blue); }
.kvkk-text { font-size: 12.5px; color: var(--muted); background: var(--panel-2); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; text-align: left !important; }
.form-error { color: var(--red); font-size: 14px; margin-bottom: 12px; text-align: center; }
.text-btn { width: 100%; margin-top: 10px; padding: 8px; color: var(--muted); font-size: 14px; }
.wifi .checkout { background: linear-gradient(180deg, var(--blue-2), var(--blue)); box-shadow: 0 8px 20px rgba(37, 99, 235, .3); }
.wifi-creds { background: var(--panel-2); border-radius: 12px; padding: 6px 16px; margin: 16px 0 20px; }
.wifi-creds p { display: flex; align-items: center; gap: 8px; padding: 12px 0; color: var(--muted); text-align: left; }
.wifi-creds p + p { border-top: 1px solid var(--line); }
.wifi-creds span { width: 64px; font-size: 14px; }
.wifi-creds strong { flex: 1; font-size: 20px; color: var(--ink); word-break: break-all; }
.wifi-creds .icon-link { color: var(--blue); }
.wifi-creds .icon-link.copied { color: var(--green); }

/* ---------- Medium desktop ---------- */
@media (max-width: 1280px) {
  :root { --sidebar: 220px; --cart: 350px; }
  .greeting { font-size: 38px; }
  .category { font-size: 16px; padding: 15px 16px; gap: 14px; }
  .cart-row { grid-template-columns: 48px 1fr auto 28px; gap: 4px 10px; }
  .thumb { width: 48px; height: 48px; grid-row: span 2; }
  .cart-row .line-total { grid-column: 2; grid-row: 2; text-align: left; font-size: 14px; color: var(--muted); }
  .cart-row .icon-link { grid-column: 4; grid-row: 1 / span 2; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 1023px) {
  .app {
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .topbar {
    position: sticky; top: 0; z-index: 20;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    padding-top: max(14px, env(safe-area-inset-top));
    background: rgba(13, 21, 38, .92);
    backdrop-filter: blur(10px);
  }
  .brand { flex: 1; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-text strong { font-size: 24px; }
  .logo-text small { font-size: 13px; }
  .greeting, .wifi-pill { display: none; }
  .topbar-actions { display: flex; gap: 10px; }
  .install-banner {
    order: 4; flex-basis: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--orange-2), var(--orange));
    color: #fff; font-size: 14px; font-weight: 700;
  }
  .install-banner .icon { width: 18px; height: 18px; }
  .install-banner[hidden] { display: none; }
  .icon-btn {
    position: relative;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1.5px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
  }
  .icon-btn .icon { width: 22px; height: 22px; }

  .search { display: none; order: 3; width: 100%; height: 46px; }
  .search.open { display: flex; }

  .categories {
    flex-direction: row;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: var(--panel-2);
    border-radius: 20px 20px 0 0;
  }
  .category {
    flex: 0 0 auto;
    flex-direction: column; justify-content: center; gap: 6px;
    min-width: 96px; height: 78px;
    padding: 8px 12px;
    font-size: 13px; line-height: 1.15; text-align: center;
    color: var(--ink);
    background: #e9ebef;
  }
  .category + .category::before { display: none; }
  .category .icon { width: 26px; height: 26px; }
  .category span { max-width: 92px; }
  .category:hover { background: #e1e3e8; }
  .category.active { color: #fff; }
  .categories.searching .category.active { background: #e9ebef; color: var(--ink); }

  .board {
    display: block;
    flex: 1;
    margin: 0;
    padding: 4px 16px calc(100px + env(safe-area-inset-bottom));
    border-radius: 0;
  }
  .products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; gap: 12px; }

  /* Cart becomes a bottom sheet */
  .cart {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    max-height: 88dvh;
    border-radius: 22px 22px 0 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform .3s ease;
  }
  .cart.open { transform: none; }
  .cart-close { display: grid; }
  .cart-items { max-height: 40dvh; }
  .cart-empty { padding: 24px 0; }
  .checkout { height: 60px; font-size: 19px; }
  .totals .grand strong { font-size: 28px; }

  .cart-bar {
    position: fixed; left: 12px; right: 12px; z-index: 30;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: var(--dark-2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color: #fff;
  }
  .cart-bar-summary { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; }
  .cart-bar-icon {
    position: relative; flex-shrink: 0;
    width: 52px; height: 52px; display: grid; place-items: center;
    border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 12px;
  }
  .cart-bar-icon .icon { width: 26px; height: 26px; }
  .cart-bar-text { display: flex; flex-direction: column; min-width: 0; }
  .cart-bar-text strong { font-size: 19px; }
  .cart-bar-text small { font-size: 14px; color: rgba(255, 255, 255, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cart-bar-chevron { width: 22px; height: 22px; opacity: .7; margin-left: auto; }
  .checkout-mini {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
    height: 56px; padding: 0 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange-2), var(--orange));
    color: #fff; font-size: 17px; font-weight: 700;
  }
  .checkout-mini:disabled { opacity: .5; }
  .checkout-mini .icon { width: 20px; height: 20px; }
}

@media (max-width: 560px) {
  .topbar { gap: 8px; align-items: flex-start; }
  .logo { gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text strong { font-size: 19px; }
  .logo-text small { font-size: 12px; }
  .topbar-actions { gap: 6px; }
  .icon-btn { width: 40px; height: 40px; border-radius: 10px; }
  .icon-btn .icon { width: 20px; height: 20px; }
  .products { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .board { padding-left: 10px; padding-right: 10px; }
  .categories { padding: 10px; }
  .product-body { padding: 8px 8px 9px; }
  .product h3 { font-size: 13.5px; }
  .price { font-size: 14.5px; }
  .product.in-cart .price { font-size: 12.5px; }
  .add-btn { width: 32px; height: 32px; }
  .add-btn .icon { width: 17px; height: 17px; }
  .product .product-foot { flex-wrap: wrap; gap: 4px; }
  .product .stepper button { width: 26px; height: 28px; }
  .product .stepper .qty { min-width: 22px; font-size: 14px; }
  .cart-bar-icon { width: 44px; height: 44px; }
  .cart-bar-text strong { font-size: 16px; }
  .cart-bar-text small { font-size: 12.5px; }
  .cart-bar-chevron { display: none; }
  .checkout-mini { height: 50px; padding: 0 14px; font-size: 15px; }
}

@media (max-width: 420px) {
  .topbar-actions { gap: 4px; }
  .icon-btn { width: 36px; height: 36px; }
  .icon-btn .icon { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .logo-text strong { font-size: 17px; }
  .checkout-mini span { display: none; }
}
