/* ============================================================================
 * قالب المنيو الإلكتروني الحيوي للمقاهي والمطاعم (Mobile-First, RTL Arabic)
 * للعرض والتصفح فقط
 * ============================================================================ */

:root {
  --brand-primary: #1E4D3B;
  --brand-primary-dark: #133528;
  --brand-primary-soft: rgba(30, 77, 59, 0.1);
  --brand-primary-border: rgba(30, 77, 59, 0.24);
  --brand-contrast: #FFFFFF;
  --brand-accent: #C59B48;
  --brand-accent-soft: rgba(197, 155, 72, 0.18);

  --bg-page: #FAF6EE;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3ECE0;
  --border-color: #EAE0D0;

  --text-main: #1E1B18;
  --text-muted: #665E56;
  --text-light: #93897F;

  --badge-popular-bg: #FEF3C7;
  --badge-popular-text: #92400E;
  --badge-new-bg: #DCFCE7;
  --badge-new-text: #166534;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 16px rgba(34, 28, 22, 0.055);
  --shadow-card-hover: 0 10px 26px rgba(34, 28, 22, 0.1);
  --shadow-hero: 0 14px 36px rgba(26, 22, 18, 0.1);

  --font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg-page);
  background-image: radial-gradient(circle at 50% 0%, rgba(197, 155, 72, 0.08), transparent 460px);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

/* حاوية التطبيق المتجاوبة */
.app-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

/* ----------------------------------------------------------------------------
 * الهيدر بتدرج لوني وإضاءة دافئة ناعمة حول الشعار
 * ---------------------------------------------------------------------------- */
.store-header {
  position: relative;
  padding: 0 14px;
}

.header-banner {
  position: absolute;
  inset: 0 0 auto 0;
  height: 146px;
  background: linear-gradient(140deg, var(--brand-primary) 0%, var(--brand-primary-dark) 70%, #142B22 100%);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  overflow: hidden;
  z-index: 0;
}

.header-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.4;
}

.header-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 211, 138, 0.42) 0%, rgba(197, 155, 72, 0.12) 48%, transparent 72%);
  filter: blur(12px);
}

.header-card {
  position: relative;
  z-index: 1;
  margin-top: 46px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-hero);
  text-align: center;
  animation: fadeSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.header-logo-stage {
  position: relative;
  width: 92px;
  height: 92px;
  margin: -42px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-warm-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 185, 108, 0.52) 0%, rgba(197, 155, 72, 0.16) 52%, transparent 74%);
  filter: blur(8px);
  pointer-events: none;
}

.store-logo-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 3px solid var(--bg-surface);
  box-shadow:
    0 0 0 2px rgba(197, 155, 72, 0.38),
    0 10px 24px rgba(30, 27, 24, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: var(--brand-contrast);
  font-weight: 800;
  font-size: 1.8rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #ECFDF3;
  border: 1px solid #BBF7D0;
  color: #15803D;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.status-pill.is-closed {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 1.8s ease-in-out infinite;
}

.status-pill.is-closed .status-dot {
  animation: none;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.store-name {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.store-tagline {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.meta-pill .icon-svg {
  color: var(--brand-primary);
}

.meta-pill:hover {
  border-color: var(--brand-primary-border);
  background: var(--bg-subtle);
}

.meta-pill--static {
  cursor: default;
}

.meta-pill--static:hover {
  border-color: var(--border-color);
  background: var(--bg-page);
}

.icon-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------------------
 * شريط البحث الفوري
 * ---------------------------------------------------------------------------- */
.search-section {
  padding: 14px 14px 6px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}

.search-icon {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 42px 12px 40px;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-clear {
  position: absolute;
  left: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-clear svg {
  width: 15px;
  height: 15px;
}

/* ----------------------------------------------------------------------------
 * الشريط الأفقي للأصناف المميزة "✨ الأكثر طلباً"
 * ---------------------------------------------------------------------------- */
.popular-section {
  padding: 12px 0 8px;
}

.popular-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 10px;
}

.popular-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
}

.popular-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
}

.popular-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 14px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.popular-rail::-webkit-scrollbar {
  display: none;
}

.popular-card {
  flex: 0 0 156px;
  scroll-snap-align: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  opacity: 0;
  animation: fadeSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.popular-card:hover {
  border-color: var(--brand-primary-border);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.popular-card:active {
  transform: scale(0.975);
}

.popular-media {
  position: relative;
  width: 100%;
  height: 98px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-subtle), rgba(197, 155, 72, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
}

.popular-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.popular-media img[src$=".svg"],
.item-media img[src$=".svg"],
.modal-item-hero img[src$=".svg"] {
  object-fit: contain;
  padding: 6px;
}

.popular-media .item-icon-fallback {
  font-size: 2.3rem;
}

.popular-tag {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(254, 243, 199, 0.94);
  color: #92400E;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.popular-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.popular-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.popular-cal {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ----------------------------------------------------------------------------
 * تبويبات التصنيفات الثابتة بالأعلى
 * ---------------------------------------------------------------------------- */
.sticky-tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 35;
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.89rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-tab:hover {
  border-color: var(--brand-primary-border);
  color: var(--text-main);
}

.cat-tab.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--brand-contrast);
  box-shadow: 0 5px 14px var(--brand-primary-soft);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------------------
 * أقسام وبطاقات الأصناف
 * ---------------------------------------------------------------------------- */
.menu-main {
  padding: 14px 14px 18px;
}

.search-status-bar {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.menu-section {
  margin-bottom: 26px;
  scroll-margin-top: 66px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.section-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  padding: 2px 10px;
  border-radius: 999px;
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.item-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  opacity: 0;
  transform: translateY(12px);
}

.item-card.is-visible {
  animation: fadeSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.item-card:hover {
  border-color: var(--brand-primary-border);
  box-shadow: var(--shadow-card-hover);
}

.item-card:active {
  transform: scale(0.985);
}

.item-card.is-unavailable {
  opacity: 0.62;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}

.item-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.item-badge--popular {
  background: var(--badge-popular-bg);
  color: var(--badge-popular-text);
}

.item-badge--new {
  background: var(--badge-new-bg);
  color: var(--badge-new-text);
}

.item-badge--special {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
}

.item-badge--soldout {
  background: #FEE2E2;
  color: #B91C1C;
}

.item-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.item-desc {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.item-price-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.item-price {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.item-calories {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.76rem;
  color: var(--text-light);
  font-weight: 600;
}

.cal-icon {
  width: 13px;
  height: 13px;
  color: var(--brand-accent);
}

/* صورة الصنف أو الأيقونة البديلة */
.item-media {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-subtle), rgba(197, 155, 72, 0.14));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-icon-fallback {
  font-size: 2.3rem;
  line-height: 1;
}

.reset-search-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--brand-primary);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.reset-search-btn:hover {
  background: var(--brand-primary);
  color: var(--brand-contrast);
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.empty-state-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.empty-state-desc {
  margin: 6px 0 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------------------
 * الفوتر النظيف للعملاء
 * ---------------------------------------------------------------------------- */
.store-footer {
  margin: 18px 14px 6px;
  padding: 16px 12px 4px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-store {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-light);
  font-weight: 600;
}

.snc-footer-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.snc-footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.snc-footer-credit:hover {
  border-color: #111111;
  transform: translateY(-1px);
}

.snc-footer-credit strong {
  color: var(--text-main);
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: 0.4px;
}

.snc-footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #FAFAFA;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 6px;
}

/* ----------------------------------------------------------------------------
 * النوافذ السفلية الأنيقة (Bottom Sheets)
 * ---------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 17, 15, 0.54);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.sheet-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface);
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.22);
  animation: sheetSlideUp 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
}

@keyframes sheetSlideUp {
  from {
    transform: translateY(34px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sheet-handle {
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #DCD4C8;
  margin: 2px auto 12px;
  flex-shrink: 0;
}

.sheet-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--text-main);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.sheet-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.sheet-close-inline {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.item-modal-body {
  overflow-y: auto;
}

.modal-item-hero {
  width: 100%;
  height: 205px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--bg-subtle), rgba(197, 155, 72, 0.16));
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.modal-item-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-item-hero .item-icon-fallback {
  font-size: 4.5rem;
}

.modal-item-title {
  margin: 8px 0 6px;
  font-size: 1.32rem;
  font-weight: 800;
}

.modal-item-desc {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.modal-info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-info-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-info-label {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
}

.modal-info-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.modal-info-val--neutral {
  color: var(--text-main);
}

.info-modal-body {
  padding-top: 14px;
}

.hours-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-list li {
  padding: 11px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ----------------------------------------------------------------------------
 * استجابة الآيباد والديسكتوب (من 768px فما فوق بدون المساس بتصميم الجوال)
 * ---------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .app-shell {
    max-width: 960px;
    padding-inline: 24px;
  }

  .store-header {
    padding: 0;
  }

  .header-banner {
    height: 162px;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
  }

  .header-card {
    max-width: 820px;
    margin: 52px auto 0;
    padding: 22px 28px 18px;
  }

  .search-section {
    max-width: 820px;
    margin: 4px auto 0;
    padding: 16px 0 8px;
  }

  .popular-section {
    max-width: 920px;
    margin: 0 auto;
    padding: 14px 0 10px;
  }

  .popular-header {
    padding: 0 0 12px;
  }

  .popular-hint {
    display: none;
  }

  .popular-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 0 10px;
    overflow-x: visible;
  }

  .popular-card {
    flex: initial;
    width: 100%;
  }

  .popular-media {
    height: 108px;
  }

  .sticky-tabs-wrap {
    padding: 12px 0;
    margin-top: 4px;
  }

  .category-tabs {
    justify-content: center;
    gap: 10px;
    padding: 0;
    flex-wrap: wrap;
  }

  .menu-main {
    padding: 18px 0 24px;
  }

  .modal-backdrop {
    align-items: center;
    padding: 16px;
  }

  .sheet-card {
    border-radius: 26px;
    padding-bottom: 22px;
  }

  .items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .item-card {
    flex-direction: row;
    align-items: stretch;
    padding: 14px;
    gap: 14px;
  }

  .item-media {
    width: 104px;
    height: 104px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    align-self: center;
  }

  .item-content {
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .app-shell {
    max-width: 1040px;
  }

  .popular-section {
    max-width: 100%;
  }

  .items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-card,
  .popular-card,
  .item-card,
  .sheet-card,
  .status-dot {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
