    :root {
      --red: #f31224;
      --red-deep: #d9081a;
      --red-soft: #fff0f1;
      --gold: #ffb800;
      --gold-dark: #d99b00;
      --ink: #111113;
      --muted: #6e6e73;
      --line: #e5e5ea;
      --wash: #f8f9fa;
      --surface: #ffffff;
      --success: #10b981;
      --success-dark: #059669;
      --warning: #f59e0b;
      --radius-sm: 12px;
      --radius: 20px;
      --radius-lg: 28px;
      --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
      --shadow: 0 12px 32px rgba(0,0,0,0.08);
      --shadow-lg: 0 24px 60px rgba(0,0,0,0.14);
      --shadow-red: 0 14px 32px rgba(243,18,36,0.28);
      --font-body: 'Inter', system-ui, -apple-system, sans-serif;
      --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; font-family: var(--font-body); color: var(--ink); background: #ffffff; -webkit-tap-highlight-color: transparent; }
    body { margin: 0; padding: 0; overflow-x: hidden; line-height: 1.45; }

    /* Promo / Urgency Bar */
    .promo-bar {
      background: linear-gradient(90deg, var(--red), var(--red-deep));
      color: #ffffff;
      text-align: center;
      padding: 8px 12px;
      font-size: 12.5px;
      font-weight: 800;
      letter-spacing: 0.02em;
      position: relative;
      z-index: 1001;
      box-shadow: 0 2px 8px rgba(243,18,36,0.15);
      animation: pulsePromo 3s infinite;
    }
    @keyframes pulsePromo {
      0% { opacity: 0.95; }
      50% { opacity: 1; }
      100% { opacity: 0.95; }
    }

    /* Offline Alert Banner */
    .offline-banner {
      position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
      background: var(--ink); color: #fff; text-align: center;
      padding: 10px 16px; font-size: 13px; font-weight: 700;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      transform: translateY(-100%); transition: transform .3s ease;
    }
    .offline-banner.is-visible { transform: translateY(0); }
    .offline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1s infinite alternate; }
    @keyframes blink { from { opacity: 0.3; } to { opacity: 1; } }

    /* Header Ergonomics */
    .header-wrap { position: sticky; top: 0; z-index: 990; background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
    .header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: 1280px; margin: 0 auto; padding: 0 20px; position: relative; }

    /* Logo Strictly Centered */
    .brand-logo {
      position: absolute; left: 50%; transform: translateX(-50%);
      font-family: var(--font-display); font-size: 28px; font-weight: 900;
      letter-spacing: -0.04em; color: var(--red); text-decoration: none;
      display: flex; align-items: center; gap: 6px; cursor: pointer;
      user-select: none; transition: transform 0.2s ease;
    }
    .brand-logo:hover { transform: translateX(-50%) scale(1.03); }
    .brand-logo-badge { font-size: 10px; font-family: var(--font-body); font-weight: 900; background: var(--ink); color: #fff; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }

    .header-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    /* Geolocation Widget (Left) */
    .geo-btn {
      display: flex; align-items: center; gap: 10px; padding: 8px 16px;
      border-radius: 999px; background: var(--wash); border: 1px solid var(--line);
      color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer;
      transition: all 0.2s ease; max-width: 280px;
    }
    .geo-btn:hover { background: #eef0f4; border-color: #d1d5db; }
    .geo-icon { color: var(--muted); flex: 0 0 auto; }
    .geo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Live Search Widget (Right) */
    .search-box {
      position: absolute;
      right: 170px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      z-index: 1000;
    }
    .search-input {
      width: 200px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
      padding: 0 16px 0 40px; font-size: 14px; font-weight: 600; outline: none;
      background: var(--wash);
      will-change: width, box-shadow;
      transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
    }
    .search-input:focus { width: 260px; background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(243,18,36,0.12); }
    .search-icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
    .search-count {
      position: absolute; right: 12px; background: var(--red); color: #fff;
      font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; display: none;
    }
    .search-results-popup {
      position: absolute; top: 50px; right: 0; width: 320px; max-height: 380px; overflow-y: auto;
      background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line);
      box-shadow: var(--shadow-lg); display: none; z-index: 1000; padding: 8px;
    }
    .search-results-popup.is-active { display: block; }
    .search-item {
      display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
      border-radius: 10px; cursor: pointer; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600;
    }
    .search-item:hover { background: var(--wash); }
    .search-item mark { background: #ffe066; color: var(--ink); border-radius: 2px; padding: 0 2px; }

    /* Layout Container */
    .container { max-width: 1280px; margin: 0 auto; padding: 0 20px; overflow: visible; }

    /* Hero Section */
    .hero { padding: 40px 0 0; position: relative; overflow: visible; }
    .hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: center; overflow: visible; }
    .hero-grid > div:first-child { margin-bottom: 36px; }
    .hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
    .hero-title { font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 68px); font-weight: 900; line-height: 0.95; letter-spacing: -0.03em; margin: 16px 0 20px; }
    .hero-title span { color: var(--red); }
    .hero-desc { font-size: 18px; color: var(--muted); line-height: 1.5; margin-bottom: 28px; max-width: 500px; }
    .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
    
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 800; font-size: 15px; border: none; cursor: pointer; transition: all 0.2s ease; text-decoration: none; }
    .btn-primary { background: var(--red); color: #fff; }
    .btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
    
    .btn-success { background: var(--success); color: #fff; border: none; }
    .btn-success:hover { background: var(--success-dark) !important; color: #fff !important; transform: translateY(-2px); }

    .btn-secondary { background: var(--wash); color: var(--ink); border: 1px solid var(--line); }
    .btn-secondary:hover { background: #eef0f4; transform: translateY(-2px); }

    /* Hero Food Showcase Box */
    .hero-visual {
      position: relative;
      display: flex;
      justify-content: flex-end;
      align-items: flex-end;
      align-self: flex-end;
      overflow: visible;
    }
    .hero-bar-img {
      width: 130%;
      max-width: 610px;
      height: auto;
      display: block;
      margin-bottom: -36px;
      margin-right: -70px;
      position: relative;
      z-index: 1;
    }
     .hero-benefit-text {
      position: absolute;
      top: -20px;
      right: -10px;
      color: var(--red);
      font-family: var(--font-display);
      font-size: 26px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: -0.01em;
      pointer-events: none;
      z-index: 982;
      transform: rotate(5deg);
    }

    /* Trust Items Strip */
    .trust-strip { padding: 32px 0; border-bottom: 1px solid var(--line); }
    .trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .trust-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--wash); border: 1px solid var(--line); }
    .trust-icon { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--red); flex: 0 0 auto; box-shadow: var(--shadow-sm); }
    .trust-title { font-weight: 800; font-size: 14px; margin-bottom: 2px; }
    .trust-sub { font-size: 12px; color: var(--muted); }

    /* Category Nav */
    .cat-nav-wrap { position: sticky; top: 76px; z-index: 980; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 12px 0; }
    .cat-nav { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
    .cat-nav::-webkit-scrollbar { display: none; }
    .cat-item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; }
    .cat-item.active, .cat-item:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
    .cat-item img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; transition: transform 0.2s ease, filter 0.2s ease; }
    .cat-item:hover img { transform: scale(1.15); }
    .cat-item.active img, .cat-item:hover img { filter: brightness(0) invert(1); }

    /* Section Header */
    .section-title { font-family: var(--font-display); font-size: 32px; font-weight: 900; letter-spacing: -0.02em; margin: 40px 0 24px; display: flex; align-items: center; gap: 12px; }
    .section-subtitle { font-size: 14px; font-weight: 600; color: var(--muted); }

    /* Product Grid */
    .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
    .product-card {
      position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
      padding: 20px; display: flex; flex-direction: column; justify-content: space-between;
      will-change: transform;
      transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s, border-color 0.2s;
    }
    @media (hover: hover) {
      .product-card:hover {
        transform: translateY(-4px) scale(1.015);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 2px 6px rgba(0,0,0,0.01);
        border-color: #cbd5e1;
      }
    }
    .product-card:active {
      transform: scale(0.98);
    }
    .product-card.pop-anim { animation: popScale 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    @keyframes popScale { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

    /* Clean White Food Frame */
    .product-image-box {
      position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm);
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 16px; overflow: hidden;
      border: 1px solid var(--line);
    }
    .product-image-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .product-image-box svg {
      max-width: 90%;
      max-height: 90%;
      object-fit: contain;
      filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12));
    }

    .product-badge-decoy { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: 0 4px 10px rgba(243,18,36,0.3); z-index: 2; }

    /* Cartoon fire behind hit badge */
    .badge-fire-wrapper {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 2;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .badge-fire-svg {
      position: absolute;
      bottom: 4px;
      left: 50%;
      transform: translateX(-50%);
      width: 76px;
      height: 76px;
      pointer-events: none;
      z-index: -1;
      filter: drop-shadow(0 2px 8px rgba(239, 68, 68, 0.75));
    }
    .badge-fire-svg .flame {
      transform-origin: 50px 85px;
    }
    .badge-fire-svg .outer {
      animation: flame-flicker-1 1.2s infinite ease-in-out;
    }
    .badge-fire-svg .middle {
      animation: flame-flicker-2 0.8s infinite ease-in-out;
    }
    .badge-fire-svg .inner {
      animation: flame-flicker-3 0.6s infinite ease-in-out;
    }
    @keyframes flame-flicker-1 {
      0%, 100% { transform: scale(1) rotate(0deg); }
      20% { transform: scaleY(1.1) scaleX(0.95) rotate(-2deg); }
      45% { transform: scaleY(0.95) scaleX(1.05) rotate(2deg); }
      70% { transform: scaleY(1.08) scaleX(0.97) rotate(-3deg); }
    }
    @keyframes flame-flicker-2 {
      0%, 100% { transform: scale(1) rotate(0deg); }
      25% { transform: scaleY(0.93) scaleX(1.08) rotate(3deg); }
      50% { transform: scaleY(1.1) scaleX(0.92) rotate(-2deg); }
      75% { transform: scaleY(0.97) scaleX(1.03) rotate(1deg); }
    }
    @keyframes flame-flicker-3 {
      0%, 100% { transform: scale(1) rotate(0deg); }
      30% { transform: scaleY(1.12) scaleX(0.9) rotate(-3deg); }
      65% { transform: scaleY(0.9) scaleX(1.1) rotate(3deg); }
    }

    .product-name { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
    .product-desc { font-size: 13px; color: var(--muted); line-height: 1.4; margin-bottom: 16px; flex-grow: 1; }

    /* Size / Portion Selector */
    .portion-selector { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
    .portion-btn { flex: 1; min-width: 44px; padding: 8px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--wash); font-size: 13px; font-weight: 800; color: var(--ink); cursor: pointer; text-align: center; transition: all 0.15s ease; }
    .portion-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

    /* Appetizing ketchup-red glowing L button */
    #friesSizeSelector [data-size="large"] {
      position: relative;
      border-color: #ef4444 !important;
      color: #ef4444 !important;
      font-weight: 900;
      box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
      animation: sauce-pulse 2s infinite alternate ease-in-out;
      overflow: hidden;
    }
    #friesSizeSelector [data-size="large"]::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -60%;
      width: 200%;
      height: 200%;
      background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(239, 68, 68, 0.12) 40%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0) 100%
      );
      transform: rotate(30deg);
      animation: sauce-shimmer 3.5s infinite linear;
      pointer-events: none;
    }
    #friesSizeSelector [data-size="large"].active {
      background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
      color: #fff !important;
      border-color: #b91c1c !important;
      box-shadow: 0 0 16px rgba(239, 68, 68, 0.75), inset 0 0 10px rgba(255, 255, 255, 0.2);
      animation: sauce-pulse-active 1.5s infinite alternate ease-in-out;
    }
    #friesSizeSelector [data-size="large"].active::after {
      background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
      );
    }
    @keyframes sauce-pulse {
      0% {
        box-shadow: 0 0 6px rgba(239, 68, 68, 0.3), inset 0 0 4px rgba(239, 68, 68, 0.05);
        transform: scale(1);
      }
      100% {
        box-shadow: 0 0 14px rgba(239, 68, 68, 0.55), inset 0 0 6px rgba(239, 68, 68, 0.1);
        transform: scale(1.03);
      }
    }
    @keyframes sauce-pulse-active {
      0% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.55), inset 0 0 6px rgba(255, 255, 255, 0.1);
        transform: scale(1.02);
      }
      100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.85), inset 0 0 10px rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
      }
    }
    @keyframes sauce-shimmer {
      0% {
        transform: translate(-30%, -30%) rotate(0deg);
      }
      100% {
        transform: translate(30%, 30%) rotate(0deg);
      }
    }

    /* Price Row & Add Button */
    .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
    .price-group { display: flex; flex-direction: column; }
    .price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 600; }
    .price-current { font-size: 22px; font-family: var(--font-display); font-weight: 900; color: var(--ink); }
    .price-unit { font-size: 11px; font-weight: 700; color: var(--success); }

    .add-cart-btn {
      height: 48px; padding: 0 24px; border-radius: 999px;
      background: var(--red); color: #ffffff;
      font-weight: 800; font-size: 14.5px; border: none; cursor: pointer;
      transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
      display: flex; align-items: center; justify-content: center; gap: 6px;
      box-shadow: 0 4px 12px rgba(243,18,36,0.18);
    }
    .add-cart-btn:hover {
      background: var(--red-deep);
      transform: translateY(-2px) scale(1.04);
      box-shadow: 0 6px 16px rgba(243,18,36,0.28);
    }
    .add-cart-btn:active {
      transform: scale(0.95);
    }
    .add-cart-btn.added {
      background: var(--success) !important;
      color: #fff !important;
      box-shadow: 0 4px 12px rgba(46,125,50,0.25) !important;
    }

    /* Bounce Anim for Cart Helper */
    @keyframes cartBounce {
      0% { transform: translateX(-50%) translateY(0) scale(1); }
      40% { transform: translateX(-50%) translateY(-10px) scale(1.06); }
      70% { transform: translateX(-50%) translateY(2px) scale(0.98); }
      100% { transform: translateX(-50%) translateY(0) scale(1); }
    }
    .cart-helper-bar.bounce-anim {
      animation: cartBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    }

    .card-qty-control {
      display: flex; align-items: center; justify-content: space-between;
      width: 110px; height: 44px; background: var(--wash); border: 1px solid var(--line);
      border-radius: 999px; padding: 3px; box-sizing: border-box;
    }
    .card-qty-btn {
      width: 38px; height: 38px; border-radius: 50%; border: none;
      background: #ffffff; color: var(--ink); font-size: 16px; font-weight: 800;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.06); transition: all 0.15s ease; padding: 0;
    }
    .card-qty-btn:hover { background: var(--ink); color: #ffffff; }
    .card-qty-value { font-size: 14px; font-weight: 900; color: var(--ink); min-width: 20px; text-align: center; }

    .custom-calc-card {
      background: #ffffff;
      color: var(--ink);
      border-radius: var(--radius);
      padding: 24px;
      margin-top: 24px;
      border: 1px solid var(--line);
      box-shadow: var(--shadow-sm);
    }
    .custom-calc-title {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 900;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--ink);
    }
    .custom-calc-title svg {
      color: var(--red);
    }
    .custom-calc-sub {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 20px;
    }
    .custom-calc-controls {
      display: flex;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    .qty-picker {
      display: flex;
      align-items: center;
      background: var(--wash);
      border-radius: 999px;
      padding: 4px;
      border: 1px solid var(--line);
    }
    .qty-btn {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: none;
      background: #ffffff;
      color: var(--ink);
      font-size: 18px;
      font-weight: 800;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    }
    .qty-btn:hover {
      background: var(--red);
      color: #ffffff;
    }
    .qty-icon {
      display: block;
      pointer-events: none;
      width: 14px;
      height: 14px;
      flex-shrink: 0;
    }
    .qty-val {
      width: 50px;
      text-align: center;
      font-size: 18px;
      font-weight: 900;
      background: transparent;
      border: none;
      color: var(--ink);
      outline: none;
    }

    /* Sticky Cart Helper (Bottom Bar) */
    .cart-helper-bar {
      position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(150%);
      width: min(640px, calc(100% - 32px)); z-index: 999;
      background: var(--ink); color: #fff; border-radius: 999px;
      padding: 12px 16px 12px 24px; box-shadow: var(--shadow-lg);
      transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      display: flex; flex-direction: column; gap: 8px;
    }
    .cart-helper-bar.is-active { transform: translateX(-50%) translateY(0); }
    .cart-helper-bar.keyboard-open { transform: translateX(-50%) translateY(200%) !important; }

    .cart-helper-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .cart-helper-info { display: flex; align-items: center; gap: 12px; }
    .cart-count-badge { background: var(--red); color: #fff; font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 999px; }
    .cart-total-sum { font-family: var(--font-display); font-size: 20px; font-weight: 900; }

    .cart-checkout-btn {
      height: 44px; padding: 0 22px; border-radius: 999px; background: var(--red); color: #fff;
      font-weight: 800; font-size: 14px; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
      transition: all 0.2s ease;
    }
    .cart-checkout-btn:hover { background: var(--red-deep); transform: scale(1.03); }

    /* Zeigarnik Progress Bar */
    .progress-bar-track { width: 100%; height: 6px; background: #27272a; border-radius: 999px; overflow: hidden; }
    .progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--success)); width: 0%; transition: width 0.4s ease; }
    .progress-text { font-size: 11px; font-weight: 700; color: #a1a1aa; text-align: center; }

    /* Modal / Dialog Base Styles */
    dialog {
      border: none; border-radius: var(--radius-lg); padding: 0; max-width: 520px; width: 92%;
      background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
    }
    dialog::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); }
    .modal-header { padding: 20px 24px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
    .modal-title { font-family: var(--font-display); font-size: 22px; font-weight: 900; margin: 0; display: flex; align-items: center; gap: 8px; }
    .modal-close { background: var(--wash); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; }
    .modal-body { padding: 24px; max-height: 75vh; overflow-y: auto; }

    /* Cross-sell Upsell Modal */
    .upsell-grid { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
    .upsell-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; text-align: center; background: var(--wash); max-width: 240px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
    .upsell-image-box { width: 120px; height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
    .upsell-image-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
    .upsell-name { font-size: 14px; font-weight: 800; margin: 8px 0 4px; }
    .upsell-price { font-size: 15px; font-weight: 900; color: var(--red); margin-bottom: 12px; }
    .upsell-card .card-action { width: 100%; margin-top: auto; display: flex; justify-content: center; }

    /* Checkout & Logistics Form */
    .tabs-group { display: flex; background: var(--wash); padding: 4px; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 20px; }
    .tab-btn { flex: 1; height: 42px; border-radius: 999px; border: none; background: transparent; font-weight: 800; font-size: 14px; color: var(--muted); cursor: pointer; transition: all 0.2s; }
    .tab-btn.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
    .tab-btn:disabled { opacity: 0.4; cursor: not-allowed; }

    .form-group { margin-bottom: 16px; }
    .form-label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
    .form-input, .form-select { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); padding: 0 14px; font-size: 14px; font-weight: 600; outline: none; background: #fff; color: var(--ink); }
    .form-input:focus, .form-select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(243,18,36,0.1); }

    .checkbox-group { display: flex; gap: 16px; margin-bottom: 16px; }
    .checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }

    /* Live Order Tracker & Anti-Churn Modal */
    .tracker-box { text-align: center; padding: 20px 0; }
    .order-num-badge { font-family: var(--font-display); font-size: 48px; font-weight: 900; color: var(--red); letter-spacing: -0.04em; margin: 10px 0; }
    .status-steps { display: flex; justify-content: space-between; position: relative; margin: 30px 0 20px; }
    .status-steps::before { content: ""; position: absolute; top: 15px; left: 10%; right: 10%; height: 4px; background: var(--line); z-index: 1; }
    .status-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; }
    .step-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
    .status-step.active .step-icon { background: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(243,18,36,0.18); }
    .status-step.done .step-icon { background: var(--success); color: #fff; }
    .step-text { font-size: 12px; font-weight: 700; color: var(--muted); }

    /* Toast Message */
    .toast-msg {
      position: fixed; top: 20px; right: 20px; z-index: 10000;
      background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
      font-size: 14px; font-weight: 700; box-shadow: var(--shadow-lg);
      transform: translateY(-50px); opacity: 0; transition: all 0.3s ease; pointer-events: none;
    }
    .toast-msg.show { transform: translateY(0); opacity: 1; }

    /* Responsive */
    @media (max-width: 768px) {
      .header-inner {
        display: grid;
        grid-template-areas:
          "geo logo profile"
          "search search search";
        grid-template-columns: 1fr auto 1fr;
        height: auto;
        padding: 10px 12px;
        gap: 10px;
        align-items: center;
      }
      .brand-logo {
        grid-area: logo;
        position: static;
        transform: none;
        font-size: 19px;
        margin: 0;
        justify-self: center;
      }
      .brand-logo:hover {
        transform: none;
      }
      .header-left {
        grid-area: geo;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-self: start;
      }
      .geo-btn {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        height: 42px !important;
        padding: 0 16px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        max-width: 135px !important;
        margin: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
      }
      .header-status-badge {
        display: none !important;
      }
      .geo-text {
        max-width: 65px !important;
      }
      .search-box {
        grid-area: search;
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 0;
      }
      .search-input {
        width: 100% !important;
        height: 38px;
        font-size: 13px;
        padding: 0 16px 0 36px;
      }
      .search-input:focus {
        width: 100% !important;
      }
      #userProfileWrap {
        grid-area: profile;
        position: relative !important;
        left: auto !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        justify-self: stretch !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
      }
      #userProfileWrap .btn-login,
      #userProfileWrap .user-profile {
        margin: 0 !important;
        margin-right: 0 !important;
      }

      .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
      .hero-desc { margin-left: auto; margin-right: auto; }
      .hero-btns { justify-content: center; }
      .hero-visual { display: none !important; }
      
      .badge-fire-wrapper {
        transform: scale(0.8) !important;
        transform-origin: top left;
      }
      .product-card > .product-badge-decoy {
        transform: scale(0.8) !important;
        transform-origin: top left;
      }
      
      .cat-nav-wrap { top: 110px; }
      
      .toast-msg {
        top: auto;
        bottom: 24px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(50px);
        width: 90%;
        max-width: 320px;
        text-align: center;
      }
      .toast-msg.show {
        transform: translateX(-50%) translateY(0);
      }

      .trust-grid { grid-template-columns: repeat(2, 1fr); }
      .trust-card { padding: 10px; gap: 8px; }
      .trust-icon { width: 32px; height: 32px; border-radius: 8px; }
      .trust-title { font-size: 12px; }
      .trust-sub { font-size: 10px; }

      .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
      .product-card { padding: 12px; }
      .product-name { font-size: 14.5px; line-height: 1.2; margin-bottom: 4px; }
      .product-desc { font-size: 11px; line-height: 1.3; margin-bottom: 10px; }

      .portion-selector { gap: 4px; margin-bottom: 10px; }
      .portion-btn { padding: 6px 2px; font-size: 10px; border-radius: 6px; min-width: 32px; }

      .price-current { font-size: 18px; }
      .price-unit { font-size: 10px; }

      .add-cart-btn { height: 36px; padding: 0 12px; font-size: 12px; }
      .card-qty-control { width: 90px; height: 36px; }
      .card-qty-btn { width: 30px; height: 30px; font-size: 13px; }
      .card-qty-value { font-size: 12px; }

      .custom-calc-card { padding: 16px; margin-top: 16px; }

      .cart-helper-bar { bottom: 12px; padding: 8px 12px 8px 18px; gap: 6px; }
      .cart-total-sum { font-size: 16px; }
      .cart-checkout-btn { height: 36px; padding: 0 16px; font-size: 12.5px; }

      .active-orders-widget { bottom: 80px; right: 12px; left: 12px; width: auto; border-radius: 16px; }
      .upsell-card { padding: 8px; }
      .upsell-name { font-size: 12px; }
      .upsell-price { font-size: 13px; }
    }

    #userProfileWrap {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      align-items: center;
      z-index: 1000;
    }

    /* Auth & Profile Styles */
    .user-profile-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .btn-login {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 42px;
      padding: 0 16px;
      border-radius: 999px;
      background: var(--wash);
      color: var(--ink);
      font-weight: 700;
      font-size: 13.5px;
      border: 1px solid var(--line);
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .btn-login:hover {
      background: #eef0f4;
      border-color: #d1d5db;
    }

    .btn-login.btn-yandex {
      background: #111113;
      color: #ffffff;
      border-color: rgba(255, 255, 255, 0.15);
      gap: 10px;
    }
    .btn-login.btn-yandex:hover {
      background: #232327;
      border-color: rgba(255, 255, 255, 0.3);
      transform: translateY(-1px);
    }
    .btn-login.btn-yandex:active {
      transform: translateY(0) scale(0.98);
    }
    .btn-login.btn-yandex svg {
      width: 20px;
      height: 20px;
      border-radius: 4px;
    }

    .user-profile {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      padding: 4px 12px 4px 6px;
      border-radius: 999px;
      background: var(--wash);
      border: 1px solid var(--line);
      transition: all 0.2s ease;
      position: relative;
    }

    .user-profile:hover {
      background: #eef0f4;
      border-color: #d1d5db;
    }

    .avatar-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      background: var(--primary);
      color: #fff;
      font-size: 10px;
      font-weight: 800;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
      border: 1px solid var(--surface);
      z-index: 10;
    }

    .user-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
      background: var(--line);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-weight: 800;
      font-size: 14px;
    }

    .user-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--ink);
      max-width: 100px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .user-dropdown {
      position: absolute;
      top: 48px;
      right: 0;
      width: 260px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-lg);
      padding: 8px;
      display: none;
      flex-direction: column;
      gap: 4px;
      z-index: 2000;
      animation: fadeIn 0.15s ease;
    }

    .user-dropdown.active {
      display: flex;
    }

    .dropdown-info {
      padding: 8px 12px;
      font-size: 11px;
      color: var(--muted);
      border-bottom: 1px solid var(--line);
      margin-bottom: 4px;
      word-break: break-all;
    }

    .dropdown-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 700;
      color: var(--ink);
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.15s ease;
      background: transparent;
      border: none;
      width: 100%;
      text-align: left;
    }

    .dropdown-item:hover {
      background: var(--red-soft);
      color: var(--red);
    }

    /* Phone OTP Auth Styles */
    .auth-phone-container {
      display: flex;
      flex-direction: column;
      gap: 16px;
      text-align: left;
      margin-top: 8px;
    }
    .auth-phone-field {
      position: relative;
      display: flex;
      align-items: center;
    }
    .auth-phone-prefix {
      position: absolute;
      left: 14px;
      font-size: 14px;
      font-weight: 700;
      color: var(--ink);
      pointer-events: none;
    }
    .auth-phone-input {
      width: 100%;
      height: 48px;
      padding: 0 14px 0 36px;
      border: 1.5px solid var(--line);
      border-radius: 12px;
      font-size: 15px;
      font-weight: 700;
      font-family: inherit;
      color: var(--ink);
      background: var(--bg);
      outline: none;
      transition: all 0.2s ease;
    }
    .auth-phone-input:focus {
      border-color: var(--red);
      box-shadow: 0 0 0 4px rgba(243,18,36,0.08);
    }
    .auth-otp-wrap {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      margin: 16px 0;
    }
    .auth-otp-input {
      width: 54px;
      height: 54px;
      border: 2px solid var(--line);
      border-radius: 12px;
      text-align: center;
      font-size: 22px;
      font-weight: 900;
      font-family: var(--font-display);
      color: var(--ink);
      background: var(--bg);
      outline: none;
      transition: all 0.2s ease;
    }
    .auth-otp-input:focus {
      border-color: var(--red);
      box-shadow: 0 0 0 4px rgba(243,18,36,0.08);
    }
    .auth-timer {
      font-size: 13px;
      color: var(--muted);
      font-weight: 700;
      text-align: center;
      margin-top: 8px;
    }
    .auth-timer-link {
      color: var(--red);
      text-decoration: none;
      cursor: pointer;
    }
    .auth-timer-link:hover {
      text-decoration: underline;
    }
    .btn-auth-action {
      width: 100%;
      height: 48px;
      font-size: 14.5px;
      font-weight: 800;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    /* Floating Active Orders Widget */
    .active-orders-widget {
      position: fixed;
      bottom: 24px;
      right: 24px;
      width: 320px;
      max-height: 400px;
      background: var(--surface);
      border: 1.5px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-lg);
      z-index: 9999;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transform: translateY(120%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }
    .active-orders-widget.is-visible {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
    .active-orders-widget.is-collapsed {
      max-height: 52px;
    }
    .widget-header {
      padding: 14px 18px;
      background: var(--wash);
      border-bottom: 1.5px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      user-select: none;
    }
    .widget-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14.5px;
      font-weight: 800;
      color: var(--ink);
    }
    .widget-indicator-pulse {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--red);
      box-shadow: 0 0 0 0 rgba(243, 18, 36, 0.6);
      animation: widgetPulse 2s infinite;
    }
    @keyframes widgetPulse {
      0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(243, 18, 36, 0.7);
      }
      70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(243, 18, 36, 0);
      }
      100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(243, 18, 36, 0);
      }
    }
    .widget-toggle-btn {
      background: none;
      border: none;
      color: var(--muted);
      cursor: pointer;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.3s ease;
    }
    .active-orders-widget.is-collapsed .widget-toggle-btn {
      transform: rotate(180deg);
    }
    .widget-body {
      flex: 1;
      overflow-y: auto;
      padding: 8px;
      background: var(--surface);
    }
    .active-orders-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .active-order-card {
      padding: 12px 14px;
      border-radius: var(--radius-sm);
      background: var(--wash);
      border: 1.5px solid var(--line);
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .active-order-card:hover {
      border-color: var(--red);
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
    }
    .active-order-card.ready-state {
      border-color: var(--gold);
      background: #fffdf5;
      box-shadow: 0 4px 20px rgba(255, 184, 0, 0.15);
      animation: readyGlow 2.5s infinite alternate;
    }
    @keyframes readyGlow {
      0% { box-shadow: 0 4px 16px rgba(255, 184, 0, 0.1); }
      100% { box-shadow: 0 4px 24px rgba(255, 184, 0, 0.35); }
    }
    .active-order-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .active-order-num {
      font-size: 14px;
      font-weight: 800;
      color: var(--ink);
    }
    .active-order-price {
      font-size: 14.5px;
      font-weight: 900;
      font-family: var(--font-display);
      color: var(--red);
    }
    .active-order-status-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 12px;
      font-weight: 700;
      color: var(--muted);
    }
    .active-order-status-val.cooking {
      color: var(--red);
    }
    .active-order-status-val.ready {
      color: var(--gold-dark);
    }
    .active-order-status-val.paid {
      color: var(--success);
    }
    .active-order-progress {
      height: 4px;
      background: var(--line);
      border-radius: 2px;
      overflow: hidden;
      position: relative;
    }
    .active-order-progress-bar {
      height: 100%;
      background: var(--red);
      border-radius: 2px;
      transition: width 0.4s ease;
    }
    .active-order-card.ready-state .active-order-progress-bar {
      background: var(--gold);
    }

    /* History Dialog Styles */
    .history-orders-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: 500px;
      overflow-y: auto;
      padding-right: 4px;
    }
    .history-order-row {
      padding: 16px;
      border-radius: var(--radius-sm);
      background: var(--wash);
      border: 1.5px solid var(--line);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .history-order-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--line);
      padding-bottom: 8px;
    }
    .history-order-id {
      font-size: 14px;
      font-weight: 800;
    }
    .history-order-date {
      font-size: 12px;
      color: var(--muted);
      font-weight: 700;
    }
    .history-order-body {
      font-size: 13px;
      color: var(--ink);
    }
    .history-order-items {
      color: var(--muted);
      margin-top: 4px;
      font-weight: 600;
      line-height: 1.4;
    }
    .history-order-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 4px;
    }
    .history-order-price {
      font-size: 16px;
      font-weight: 900;
      font-family: var(--font-display);
      color: var(--ink);
    }
    .history-order-status-badge {
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 11.5px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .history-order-status-badge.served {
      background: var(--red-soft);
      color: var(--red);
    }
    .history-order-status-badge.cancelled {
      background: #f1f1f3;
      color: #71717a;
    }
    .history-order-status-badge.cooking, .history-order-status-badge.paid {
      background: #ecfdf5;
      color: var(--success);
    }
    .history-order-status-badge.ready {
      background: #fffbeb;
      color: var(--gold-dark);
    }

    /* Header Shift Status Badge styling */
    .header-status-badge {
      display: inline-flex;
      align-items: center;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      border: 1px solid var(--line);
      margin-left: 12px;
      transition: all 0.2s ease;
    }
    .header-status-badge[data-status="open"] {
      background: #ecfdf5;
      color: var(--success);
      border-color: #a7f3d0;
    }
    .header-status-badge[data-status="closed"] {
      background: #fef2f2;
      color: #ef4444;
      border-color: #fca5a5;
    }
    .header-status-badge[data-status="unknown"] {
      background: var(--wash);
      color: var(--muted);
      border-color: var(--line);
    }
    .header-status-badge[data-status="connection_error"] {
      background: #fffbeb;
      color: var(--warning);
      border-color: #fde68a;
    }
    .header-status-badge[data-status="status_stale"] {
      background: #fffbeb;
      color: #d97706;
      border-color: #fcd34d;
    }


