/* ═══════════════════════════════════════════════
   ВКУСНЯТСКИ v2.0 — Design System
   ═══════════════════════════════════════════════ */
:root {
  --accent:      #FFE000;
  --accent-hover: #E6CA00;
  --accent-soft: #FFF6BF;
  --lime:    #FFE000;
  --lime-d:  #E6CA00;
  --pink:    #FFE000;
  --sky:     #29B6D8;
  --bg:      #FFFCF3;
  --surface: #FFFFFF;
  --text:    #202124;
  --muted:   #62666D;
  --border:  #E5E5E5;
  --r:       16px;
  --r-sm:    12px;
  --sh:      0 2px 12px rgba(0,0,0,.05);
  --sh2:     0 6px 28px rgba(0,0,0,.09);
  --header-h: 70px;
  --menu-tabs-h: 0px;
  --search-bar-h: 0px;
  --nav-h:    56px;
  --nav-gap:  6px;
  --bottom-h: 64px;
  --sat: env(safe-area-inset-top);
  --sab: env(safe-area-inset-bottom);
}

body.v2-search-active {
  --search-bar-h: 48px;
}

/* ── RESET & BASE ── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  height: 100vh;
  overflow: hidden;
}

/* ── LOADING SPINNER ── */
.loading {
  width: 100vw; height: 100vh;
  z-index: 9999; background: var(--surface);
  position: fixed; display: flex;
  align-items: center; justify-content: center;
  opacity: .95; top: 0; left: 0;
}
.spinner { animation: rotate 1.8s linear infinite; width: 40px; height: 40px; }
.spinner .path {
  stroke: var(--lime-d); stroke-linecap: round;
  animation: dash 1.4s ease-in-out infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
  0%   { stroke-dasharray: 1,150; stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 90,150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90,150; stroke-dashoffset: -124; }
}

/* ── APP LAYOUT ── */
.activity-view { height: 100vh; }

/* ── BOTTOM NAV (index.html) ── */
.v2-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-h) + var(--sab));
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start;
  justify-content: space-around;
  padding-top: 6px;
  padding-bottom: var(--sab);
  z-index: 900;
}
.v2-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  cursor: pointer; padding: 4px 0;
  transition: transform .15s; position: relative;
  text-decoration: none; color: var(--muted);
  -webkit-tap-highlight-color: transparent;
}
.v2-nav-item:active { transform: scale(.88); }
.v2-nav-item.active .v2-nav-icon { color: var(--text); background: #FFF6BF; border-radius: 12px; }
.v2-nav-item.active .v2-nav-label { color: var(--text); font-weight: 700; }
.v2-nav-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color .2s;
}
.v2-nav-icon svg { width: 24px; height: 24px; }
.v2-nav-label {
  font-size: 10.5px; font-weight: 600;
  color: var(--muted); transition: color .2s; line-height: 1;
}
.v2-cart-badge {
  position: absolute; top: 0; right: calc(50% - 22px);
  background: var(--pink); color: #fff;
  border-radius: 20px; padding: 1px 6px;
  font-size: 9px; font-weight: 800;
  min-width: 16px; text-align: center;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ── PAGE HEADER ── */
.v2-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: calc(var(--header-h) + var(--sat));
  padding-top: var(--sat);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: center; z-index: 800;
}
.v2-header-logo {
  display: flex; align-items: center; justify-content: center;
}
.v2-header-logo img {
  height: 64px; object-fit: contain;
}
.v2-hbtn {
  position: absolute;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .15s;
  bottom: 12px;
}
.v2-hbtn:active { transform: scale(.88); }
.v2-hbtn svg   { width: 22px; height: 22px; color: var(--text); }
.v2-header-left {
  position: absolute; left: 8px; bottom: 12px;
  display: flex; gap: 8px; align-items: center;
}
.v2-header-right {
  position: absolute; right: 8px; bottom: 12px;
  display: flex; gap: 8px; align-items: center;
}
.v2-header-left .v2-hbtn, .v2-header-right .v2-hbtn { position: static; }
.v2-header-sum {
  font-size: 15px; font-weight: 700;
  color: var(--text);
  cursor: pointer;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 10px;
  transition: transform .15s;
}
.v2-header-sum:active { transform: scale(.95); }
.v2-header-btn {
  font-size: 15px; font-weight: 700;
  color: var(--text);
  cursor: pointer;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 10px;
  border: none;
  transition: transform .15s, background .2s;
  font-family: inherit;
}
.v2-header-btn:active { transform: scale(.95); }
.v2-header-btn.is-active { background: var(--lime); }

/* ── CATEGORY NAV ── */
.v2-cat-nav {
  position: fixed; left: 0; right: 0;
  top: calc(var(--header-h) + var(--menu-tabs-h) + var(--search-bar-h) + var(--sat) + 8px);
  height: var(--nav-h);
  background: linear-gradient(90deg, var(--surface) 0%, rgba(255,45,141,0.03) 50%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  gap: 6px; padding: 0 12px;
  overflow-x: auto; scrollbar-width: none;
  z-index: 799;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.v2-cat-nav::-webkit-scrollbar { display: none; }
.v2-cat-pill {
  flex-shrink: 0; padding: 6px 16px;
  border-radius: 20px; border: 1.5px solid var(--border);
  background: transparent; color: var(--muted);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all .3s ease; line-height: 1.4;
  font-family: inherit;
}
.v2-cat-pill:active { transform: scale(.93); }
.v2-cat-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  transform: scale(1.08);
}

/* ── SCROLL AREA (home) ── */
.v2-home-list {
  flex: 1;
  position: relative;
  overflow-y: auto; overflow-x: hidden;
  padding: 14px 12px 120px;
  -webkit-overflow-scrolling: touch;
}
.v2-list-end { height: 24px; }
.v2-home-list::-webkit-scrollbar { display: none; }

/* ── CLOSED BANNER ── */
.v2-closed-banner {
  background: #1C1C1C; color: #fff;
  border-radius: 12px; padding: 11px 14px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  animation: fadeUp .3s ease;
}
.v2-closed-icon { font-size: 20px; flex-shrink: 0; }
.v2-closed-body { flex: 1; }
.v2-closed-title { font-size: 13px; font-weight: 700; }
.v2-closed-sub   { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.v2-closed-dismiss {
  font-size: 18px; color: var(--muted); cursor: pointer;
  background: none; border: none; padding: 4px; color: var(--muted);
  line-height: 1;
}

/* ── ACTIVE ORDER BANNER ── */
.v2-active-order {
  background: var(--lime); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; animation: fadeUp .35s ease;
}
.v2-ao-icon { font-size: 20px; }
.v2-ao-body { flex: 1; }
.v2-ao-title { font-size: 13px; font-weight: 700; }
.v2-ao-sub   { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.v2-ao-arr   { font-size: 20px; color: var(--muted); }

/* ── SECTION TITLE ── */
.v2-section { margin-bottom: 24px; }
.v2-section-title {
  font-size: 18px; font-weight: 800;
  margin-bottom: 12px; letter-spacing: -.3px;
  padding-left: 2px;
}

/* ── PRODUCT GRID ── */
.v2-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  align-items: stretch;
}
.v2-grid > .v2-card { min-width: 0; height: 100%; }

/* ── PRODUCT CARD ── */
.v2-card {
  background: var(--surface); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh);
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  animation: fadeUp .4s ease both;
  min-height: 0;
}
.v2-card-img {
  width: 100%; aspect-ratio: 4/3;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg), var(--border));
}
.v2-card-img img {
  width: 100%; height: 100%; object-fit: contain;
  display: block; content-visibility: auto;
  background: var(--bg);
}
.v2-card-body { padding: 10px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.v2-card-name {
  font-size: 13px; font-weight: 600;
  line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  cursor: pointer;
}
.v2-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.v2-card-price { font-size: 14px; font-weight: 800; }
.v2-card-img { cursor: pointer; }
.v2-menu-loading {
  text-align: center; padding: 48px 16px;
  color: var(--muted); font-size: 14px;
}

/* ── ADD BUTTON ── */
.v2-btn-plus {
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--lime); color: #fff;
  font-size: 20px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .12s; flex-shrink: 0;
  font-family: inherit;
}
.v2-btn-plus:active { transform: scale(.8); }

/* ── COUNTER (card) ── */
.v2-ctr { display: flex; align-items: center; gap: 3px; }
.v2-ctr-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
  transition: transform .12s; font-family: inherit; line-height: 1;
}
.v2-ctr-btn:active { transform: scale(.83); }
.v2-ctr-btn.minus  { border-color: var(--border); color: var(--muted); }
.v2-ctr-num        { font-size: 13px; font-weight: 800; min-width: 16px; text-align: center; }

/* ── SKELETON ── */
.v2-sk-section { margin-bottom: 24px; }
.v2-sk-title {
  height: 16px; width: 140px; border-radius: 8px;
  background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%);
  background-size: 200% 100%; animation: sh 1.4s infinite;
  margin-bottom: 14px;
}
.v2-sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v2-sk-card {
  background: var(--surface); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh);
}
.v2-sk-img {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%);
  background-size: 200% 100%; animation: sh 1.4s infinite;
}
.v2-sk-body { padding: 10px; }
.v2-sk-line {
  height: 11px; border-radius: 6px; margin-bottom: 7px;
  background: linear-gradient(90deg,#eee 25%,#f5f5f5 50%,#eee 75%);
  background-size: 200% 100%; animation: sh 1.4s infinite;
}
.v2-sk-line.s { width: 55%; }
@keyframes sh { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ── CART BAR (floating) ── */
.v2-cart-bar {
  position: fixed;
  bottom: calc(var(--bottom-h) + var(--sab) + 10px);
  left: 12px; right: 12px; z-index: 850;
  background: var(--text); color: #fff;
  border-radius: 14px; padding: 13px 18px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  transform: translateY(90px); opacity: 0;
  transition: transform .38s cubic-bezier(.34,1.5,.64,1), opacity .3s;
  pointer-events: none;
}
.v2-cart-bar.on {
  transform: translateY(0); opacity: 1; pointer-events: all;
}
.v2-cb-left  { display: flex; align-items: center; gap: 10px; }
.v2-cb-count {
  background: var(--lime); color: var(--text);
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 12px;
}
.v2-cb-label { font-weight: 700; font-size: 14px; }
.v2-cb-price { font-weight: 800; font-size: 16px; }

/* ── PRODUCT OFFCANVAS ── */
.v2-oc-panel {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 88vh; background: var(--surface);
  border-radius: 22px 22px 0 0; z-index: 1055;
  overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .33s cubic-bezier(.32,1.1,.64,1), visibility .33s;
}
.v2-oc-panel.show { transform: translateY(0); visibility: visible; }

.v2-oc-drag {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 10px auto 0; flex-shrink: 0;
}
.v2-oc-img {
  width: 100%; flex-shrink: 0;
  aspect-ratio: 4/3; overflow: hidden; position: relative;
}
.v2-oc-img-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(24px) brightness(.75); transform: scale(1.1);
}
.v2-oc-img img {
  position: relative; width: 100%; height: 100%;
  object-fit: contain; z-index: 1;
}
.v2-oc-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--surface);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh);
  color: var(--text);
}
.v2-oc-body {
  flex: 1; overflow-y: auto;
  padding: 16px 16px 100px;
}
.v2-oc-body::-webkit-scrollbar { display: none; }
.v2-oc-name  { font-size: 21px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.3px; }
.v2-oc-price-line {
  font-size: 17px; font-weight: 800; color: var(--text);
  margin-bottom: 12px;
}
.v2-oc-desc  { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.v2-oc-comp  { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.v2-oc-comp-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 5px;
}
.v2-oc-comp-text { font-size: 13px; line-height: 1.5; }

/* Variants */
.v2-variants { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.v2-variant-btn {
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.v2-variant-btn.active {
  background: var(--text); border-color: var(--text); color: #fff;
}

/* Toppings */
.v2-topping-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.v2-topping-row:last-child { border: none; }
.v2-topping-name { font-size: 14px; }
.v2-topping-check {
  width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex-shrink: 0;
}
.v2-topping-check.on { background: var(--lime); border-color: var(--lime); }

.v2-oc-foot {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--surface); padding: 12px 16px;
  padding-bottom: calc(12px + var(--sab));
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.v2-btn-atc {
  flex: 1; height: 50px; border-radius: 12px; border: none;
  background: var(--lime); color: var(--text);
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform .15s, background .2s;
  font-family: inherit;
}
.v2-btn-atc:active { transform: scale(.97); }
.v2-btn-atc.added  { background: var(--pink); color: #fff; }
.v2-oc-foot-ctr { display: flex; align-items: center; gap: 8px; }
.v2-oc-foot-ctr button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 18px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: transform .1s;
  font-family: inherit;
}
.v2-oc-foot-ctr button:active { transform: scale(.83); }
.v2-oc-foot-ctr button.minus { border-color: var(--border); color: var(--muted); }
.v2-oc-foot-ctr span { font-size: 16px; font-weight: 800; min-width: 20px; text-align: center; }

/* ── INFO SIDE PANEL ── */
.v2-info-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.42); z-index: 1060;
  opacity: 0; transition: opacity .28s; pointer-events: none;
}
.v2-info-bg.on { opacity: 1; pointer-events: all; }
.v2-info-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 80%; max-width: 300px;
  background: var(--surface); z-index: 1061;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.32,1,.64,1);
  display: flex; flex-direction: column;
  padding: calc(20px + var(--sat)) 22px 24px;
  overflow-y: auto;
}
.v2-info-panel.on { transform: translateX(0); }
.v2-info-logo {
  margin-bottom: 24px;
}
.v2-info-logo img { height: 60px; object-fit: contain; }
.v2-info-row {
  display: flex; align-items: flex-start;
  gap: 12px; padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.v2-info-row:last-child { border: none; }
.v2-info-row-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--pink);
}
.v2-info-row-icon svg { width: 20px; height: 20px; }
.v2-info-row-label {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px;
}
.v2-info-row-val { font-size: 13.5px; font-weight: 600; color: var(--text); }
.v2-info-row-val a { color: var(--pink); text-decoration: none; }

/* ── CART PAGE ── */
.v2-page-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: calc(var(--header-h) + var(--sat));
  padding-top: var(--sat);
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding-left: 16px; padding-right: 16px; z-index: 800;
}
.v2-page-back {
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; margin-right: 12px; flex-shrink: 0;
}
.v2-page-back svg { width: 20px; height: 20px; }
.v2-page-title { font-size: 17px; font-weight: 800; }

.v2-page-list {
  position: fixed;
  top: calc(var(--header-h) + var(--sat));
  left: 0; right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 14px 12px calc(var(--bottom-h) + var(--sab) + 14px);
  -webkit-overflow-scrolling: touch;
}
.v2-page-list::-webkit-scrollbar { display: none; }

/* Cart items */
.v2-cart-item {
  background: var(--surface); border-radius: 14px;
  padding: 12px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh); animation: fadeUp .3s ease;
}
.v2-ci-img {
  width: 62px; height: 62px; border-radius: 10px;
  background: var(--bg); flex-shrink: 0;
  overflow: hidden;
}
.v2-ci-img img { width: 100%; height: 100%; object-fit: contain; }
.v2-ci-info { flex: 1; min-width: 0; }
.v2-ci-name { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.v2-ci-variant { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.v2-ci-price  { font-size: 14px; font-weight: 800; }
.v2-ci-ctr    { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.v2-ci-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: transform .1s; font-family: inherit;
}
.v2-ci-btn:active { transform: scale(.83); }
.v2-ci-btn.minus { border-color: var(--border); color: var(--muted); }
.v2-ci-num { font-size: 13px; font-weight: 800; min-width: 18px; text-align: center; }

/* Cart lines info */
.v2-cart-lines {
  padding: 0 2px; margin-bottom: 10px;
}
.v2-cart-lines p {
  font-size: 12.5px; color: var(--muted);
  padding: 4px 0; margin: 0;
  border-left: 3px solid var(--lime); padding-left: 8px; margin-bottom: 4px;
}

/* Cart summary */
.v2-cart-summary {
  background: var(--surface); border-radius: 14px;
  padding: 16px; margin-bottom: 12px; box-shadow: var(--sh);
}
.v2-cs-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--muted); margin-bottom: 8px; gap: 12px;
}
.v2-cs-row span:last-child {
  color: var(--text); font-weight: 700; flex-shrink: 0;
}
.v2-cs-row.total {
  font-size: 17px; font-weight: 800;
  color: var(--text); margin-bottom: 0; margin-top: 4px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.v2-cs-row.total span:last-child { font-size: 17px; font-weight: 800; }
.v2-btn-order {
  width: 100%; height: 52px; border-radius: 12px; border: none;
  background: var(--pink); color: #fff;
  font-size: 16px; font-weight: 700;
  cursor: pointer; transition: transform .15s; font-family: inherit;
}
.v2-btn-order:active { transform: scale(.98); }

/* Empty state */
.v2-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; gap: 8px; text-align: center;
  height: 60vh;
}
.v2-empty-ico   { font-size: 52px; margin-bottom: 4px; }
.v2-empty-title { font-size: 19px; font-weight: 800; }
.v2-empty-sub   { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.v2-btn-go {
  margin-top: 14px; padding: 11px 28px; border-radius: 12px;
  border: none; background: var(--lime);
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
}

/* Cart checkout offcanvas */
.v2-checkout { 
  padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
}
.v2-checkout .v2-section-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.v2-delivery-tabs {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.v2-dtab {
  flex: 1; padding: 10px; border-radius: 10px;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit; text-align: center;
}
.v2-dtab.active { background: var(--text); border-color: var(--text); color: #fff; }
.v2-input {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit;
  background: var(--surface); color: var(--text);
  margin-bottom: 12px; outline: none;
  transition: border-color .2s;
}
.v2-input:focus { border-color: var(--lime); }
.v2-input::placeholder { color: var(--muted); }
.v2-payment-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.v2-ptab {
  flex: 1; padding: 10px 8px; border-radius: 10px;
  border: 1.5px solid var(--border); background: transparent;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit; text-align: center;
  white-space: nowrap;
}
.v2-ptab.active { background: var(--text); border-color: var(--text); color: #fff; }
.v2-switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; margin-bottom: 12px;
}
.v2-switch-label { font-size: 14px; font-weight: 500; }
.v2-switch {
  width: 44px; height: 26px; border-radius: 13px;
  background: var(--border); cursor: pointer; position: relative;
  transition: background .2s; border: none; flex-shrink: 0;
}
.v2-switch.on { background: var(--lime); }
.v2-switch::after {
  content: ''; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.v2-switch.on::after { transform: translateX(18px); }
.v2-pd-link {
  font-size: 12px; color: var(--muted); text-decoration: none;
  display: block; margin-bottom: 14px;
}
.v2-pd-link:hover { color: var(--pink); }

/* ── PROFILE PAGE ── */
.v2-order-card {
  background: var(--surface); border-radius: 14px;
  margin-bottom: 8px; box-shadow: var(--sh);
  overflow: hidden;
}
.v2-order-head {
  display: flex; justify-content: space-between;
  align-items: center; padding: 14px 14px 10px;
  cursor: pointer;
}
.v2-order-num  { font-size: 14px; font-weight: 800; }
.v2-order-date { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.v2-order-chip {
  padding: 4px 10px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; flex-shrink: 0;
}
.status-0, .status-1 { background: #FFF3CD; color: #856404; }
.status-2            { background: #E8D5F5; color: #7B2FBE; }
.status-3            { background: #D1F5D3; color: #1A7A1F; }
.status-4            { background: #D0E8FF; color: #1A5FA8; }
.status-5            { background: var(--border); color: var(--muted); }
.status-6            { background: #FFD8D8; color: #C0392B; }

.v2-order-body {
  padding: 0 14px 14px; display: none;
}
.v2-order-body.open { display: block; }
.v2-order-line {
  display: flex; justify-content: space-between;
  font-size: 13.5px; padding: 4px 0;
}
.v2-order-line-name { color: var(--text); }
.v2-order-line-sum  { font-weight: 700; flex-shrink: 0; }
.v2-order-total {
  border-top: 1px solid var(--border); margin-top: 8px;
  padding-top: 8px; font-size: 14px; font-weight: 800;
  display: flex; justify-content: space-between;
}
.v2-order-arr {
  font-size: 18px; color: var(--muted); transition: transform .2s;
}
.v2-order-arr.open { transform: rotate(180deg); }

/* ── TOAST ── */
.v2-toast {
  position: fixed;
  bottom: calc(var(--bottom-h) + var(--sab) + 14px);
  left: 50%; transform: translateX(-50%) translateY(12px);
  background: #1C1C1C; color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; z-index: 2000;
  opacity: 0; transition: all .28s; pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.v2-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }

/* ── OFFCANVAS BACKDROP ── */
.v2-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1050;
  opacity: 0; transition: opacity .28s; pointer-events: none;
}
.v2-backdrop.on { opacity: 1; pointer-events: all; }

/* ── TRANSITIONS (ngAnimate) ── */
.ng-view.ng-enter {
  animation: slideIn .22s ease-out;
}
.ng-view.ng-leave {
  animation: fadeOut .15s ease-in;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MENU TABS (роллы / кухня) ── */
.v2-menu-tabs {
  position: fixed; left: 0; right: 0; z-index: 798;
  top: calc(var(--header-h) + var(--search-bar-h) + var(--sat) + 8px);
  height: var(--menu-tabs-h);
  display: flex; gap: 8px; padding: 6px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.v2-menu-tab {
  flex: 1; border: none; border-radius: 12px;
  background: var(--bg); color: var(--muted);
  font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background .2s, color .2s;
}
.v2-menu-tab.active {
  background: var(--text); color: var(--surface);
}

/* ── SEARCH ── */
.v2-search-bar {
  position: fixed; left: 0; right: 0; z-index: 797;
  top: calc(var(--header-h) + var(--sat));
  height: 0; overflow: hidden;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: height .22s ease, border-color .22s;
}
.v2-search-bar.on {
  height: 48px;
  border-bottom-color: var(--border);
}
.v2-search-ico { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.v2-search-input {
  flex: 1; border: none; background: transparent;
  font-size: 15px; font-family: inherit; color: var(--text); outline: none;
}
.v2-search-clear {
  border: none; background: var(--bg); color: var(--muted);
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.v2-search-empty {
  text-align: center; padding: 40px 16px;
  color: var(--muted); font-size: 14px;
}

/* ── Панель категорий меню (слева) ── */
.v2-cat-panel-bg {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.45); opacity: 0;
  pointer-events: none; transition: opacity .25s;
}
.v2-cat-panel-bg.on { opacity: 1; pointer-events: all; }
.v2-cat-panel {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(86vw, 300px); z-index: 1101;
  background: var(--surface);
  transform: translateX(-102%);
  transition: transform .3s cubic-bezier(.32,1,.64,1);
  padding: calc(12px + var(--sat)) 0 calc(12px + var(--sab));
  box-shadow: var(--sh2);
  display: flex; flex-direction: column;
}
.v2-cat-panel.on { transform: translateX(0); }
.v2-cat-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.v2-cat-panel-title {
  font-size: 15px; font-weight: 800; color: var(--text);
}
.v2-cat-panel-close {
  border: none; background: var(--bg); color: var(--text);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.v2-cat-panel-list {
  flex: 1; overflow-y: auto; padding: 8px 10px;
  -webkit-overflow-scrolling: touch;
}
.v2-cat-panel-list::-webkit-scrollbar { display: none; }
.v2-cat-panel-item {
  display: block; width: 100%; text-align: left;
  border: none; background: transparent;
  padding: 12px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  color: var(--text); cursor: pointer;
  line-height: 1.35;
  transition: all .3s ease;
}
.v2-cat-panel-item.active {
  background: var(--text); color: var(--surface);
  font-weight: 700; transform: scale(1.03);
}
.v2-cat-panel-item:active { background: var(--bg); }
.v2-cat-panel-item.active {
  background: var(--text); color: var(--surface);
}

/* ── SVG ICON HELPERS ── */
.v2-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.v2-icon-wrap svg { width: 20px; height: 20px; }
.v2-icon-moon { background: rgba(255,255,255,.12); color: #fff; }
.v2-icon-delivery { background: rgba(0,0,0,.08); color: var(--text); }
.v2-empty-ico.v2-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg); color: var(--muted); margin-bottom: 8px;
}
.v2-empty-ico svg { width: 32px; height: 32px; }
.v2-oc-block { margin-bottom: 14px; }
.v2-oc-block-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.v2-topping-name.is-removed { text-decoration: line-through; color: var(--muted); }
.v2-topping-check.is-remove.on { background: var(--pink); border-color: var(--pink); }
.v2-oc-spacer { height: 80px; }

/* ── PROFILE / ORDER FORM ENHANCEMENTS ───────────────────────────────────── */
.v2-section { scroll-margin-top: 12px; }

.order-form,
.v2-profile-auth,
.v2-profile-accordion,
.v2-profile-inline-card,
.v2-profile-edit-card {
  background: var(--surface);
  color: var(--text);
}

.order-form .v2-section-label,
.order-form .v2-profile-auth-title,
.order-form .v2-profile-auth-sub,
.order-form .v2-profile-inline-title,
.order-form .v2-profile-inline-sub,
.order-form .v2-profile-accordion-btn {
  color: inherit;
}

.order-form .v2-section-label {
  color: var(--text);
}

.order-form .v2-input,
.order-form select,
.order-form textarea,
.v2-profile-auth .v2-input,
.v2-profile-edit-card .v2-input,
.v2-profile-accordion .v2-input,
.v2-profile-inline-card .v2-input {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.v2-profile-auth,
.v2-profile-accordion,
.v2-profile-inline-card,
.v2-profile-edit-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--sh);
  padding: 14px;
  margin-bottom: 12px;
}

.v2-profile-auth-head {
  margin-bottom: 14px;
}

.v2-profile-auth-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.v2-profile-auth-sub,
.v2-profile-inline-sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

.v2-profile-fields {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.v2-profile-accordion {
  padding: 10px 12px 12px;
}

.v2-profile-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: none;
  background: transparent;
  padding: 12px 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all .3s ease;
}

.v2-profile-accordion-btn.active {
  color: var(--pink);
  font-size: 1.1em;
  transform: scale(1.01);
}

.v2-profile-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform .3s ease;
  color: inherit;
}

.v2-profile-accordion-icon.open {
  transform: rotate(180deg);
}

.v2-profile-panel {
  display: none;
  padding: 0 4px 12px;
}

.v2-profile-panel.open {
  display: block;
}

.v2-profile-inline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.v2-profile-inline-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.v2-profile-inline-grid {
  display: grid;
  gap: 10px;
}

.v2-profile-inline-item {
  display: grid;
  gap: 3px;
}

.v2-profile-inline-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
}

.v2-profile-edit-link,
.v2-profile-cancel {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.v2-profile-edit-link {
  color: var(--pink);
  font-weight: 700;
  white-space: nowrap;
}

.v2-profile-mini-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.v2-btn-order-secondary {
  background: var(--lime);
  color: #1C1C1C;
  flex: 1;
}

.v2-profile-cancel {
  color: var(--muted);
  min-width: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.v2-profile-empty {
  text-align: center;
  padding: 22px 8px 12px;
}

.v2-btn-go {
  color: #1C1C1C;
}

.v2-profile-inline-empty {
  opacity: .95;
}


.v2-profile-mini-actions .v2-btn-order,
.v2-profile-mini-actions .v2-btn-go {
  width: auto;
  flex: 1;
  margin-top: 0;
}

.v2-profile-cancel {
  background: var(--bg);
  border-radius: 12px;
  min-height: 52px;
}

/* ── PROFILE HEADER CARD ── */
.v2-profile-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--sh);
}

.v2-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
}

.v2-profile-header-info {
  flex: 1;
  min-width: 0;
}

.v2-profile-header-name {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 2px 0;
  color: var(--text);
}

.v2-profile-header-phone {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ── PROFILE SECTION ── */
.v2-profile-section {
  margin-bottom: 16px;
}

.v2-profile-section-header {
  margin-bottom: 12px;
}

.v2-profile-section-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

/* ── PROFILE VIEW MODE ── */
.v2-profile-view-mode {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--sh);
}

.v2-profile-view-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.v2-profile-view-row:last-of-type {
  border-bottom: none;
  padding-bottom: 12px;
}

.v2-profile-view-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.v2-profile-view-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  max-width: 50%;
  word-break: break-word;
}

.v2-btn-edit {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: transform .15s, background .2s;
  font-family: inherit;
}

.v2-btn-edit:active {
  transform: scale(.98);
}

.v2-btn-edit:hover {
  background: var(--accent-hover);
}

/* ── PROFILE EDIT MODE ── */
.v2-profile-edit-mode {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--sh);
}

.v2-profile-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.v2-btn-cancel {
  flex: 1;
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, background .2s;
  font-family: inherit;
}

.v2-btn-cancel:active {
  transform: scale(.98);
}

.v2-btn-cancel:hover {
  background: var(--bg);
}

/* ── EMPTY ORDERS STATE ── */
.v2-profile-empty-orders {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--sh);
}

.v2-empty-orders-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.v2-empty-orders-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.v2-empty-orders-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.v2-dtab,
.v2-ptab {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.v2-dtab.active,
.v2-ptab.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}