/* ==================================================
   SIPHYRA - Mobile App-Style Shell
   Only visible below 768px. Makes the site feel like
   a food delivery app rather than a shrunk website.
   ================================================== */

.mobile-topbar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--brand-dark);
    padding: 14px 16px;
    color: #fff;
  }
  .mobile-topbar .brand-mini { display: flex; align-items: center; gap: 8px; }
  .mobile-topbar .brand-mini img { height: 32px; }
  .mobile-topbar .brand-mini .greet { font-size: 12px; color: rgba(255,255,255,0.65); }
  .mobile-topbar .brand-mini .name { font-weight: 700; font-size: 15px; }
  .mobile-topbar .actions { display: flex; gap: 10px; }
  .mobile-topbar .icon-btn { background: rgba(255,255,255,0.1); color: #fff; width: 38px; height: 38px; }
  .mobile-topbar .icon-btn .badge { background: var(--brand-orange); }

  /* Promo hero card, app-style */
  .mobile-promo {
    margin: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--brand-green-dark), var(--brand-green));
    color: #fff;
    padding: 22px;
    position: relative;
    overflow: hidden;
  }
  .mobile-promo::after {
    content: '';
    position: absolute;
    right: -30px; bottom: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(245,137,30,0.35);
  }
  .mobile-promo .tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
  }
  .mobile-promo h2 { font-size: 20px; margin: 0 0 6px; max-width: 75%; }
  .mobile-promo p { font-size: 13px; margin: 0 0 16px; color: rgba(255,255,255,0.85); max-width: 75%; }

  /* Fixed bottom navigation */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: #fff;
    box-shadow: 0 -4px 18px rgba(22,36,27,0.1);
    height: var(--bottom-nav-height);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
  }
  .bottom-nav a .nav-icon { font-size: 20px; }
  .bottom-nav a.active { color: var(--brand-orange); }
  .bottom-nav a .cart-badge {
    position: absolute;
    top: 2px; right: 26%;
    background: var(--brand-orange);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
  }

  /* Sticky mini cart bar shown while items are in cart */
  .sticky-cart-bar {
    position: fixed;
    left: 16px; right: 16px;
    bottom: calc(var(--bottom-nav-height) + 12px);
    z-index: 150;
    background: var(--brand-dark);
    color: #fff;
    border-radius: 999px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  }
  .sticky-cart-bar span.count {
    background: var(--brand-orange);
    border-radius: 50%;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    margin-right: 8px;
  }
  .sticky-cart-bar .view-cart { font-weight: 700; font-size: 14px; }
}
