/* ???????????????????????????????????????????????????????????
   GAGA'S DRINK · Mobile Web Menu (browse only)
   ??????????????????????????????????????????????????????????? */

:root {
  --color-bg: #F6FAF7;
  --color-bg-deep: #EAF4EE;
  --color-text: #2E3D36;
  --color-text-muted: #6B7F74;
  --color-accent: #5FAF7A;
  --color-accent-dark: #3D8F5E;
  --color-brand-orange: #E8651A;
  --color-border: #D4E8DC;
  --color-card: #FFFFFF;
  --color-price: #2A6B42;
  --color-image-bg: #EAF4EE;

  --font-display: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --font-arabic: "Noto Sans Arabic", "Segoe UI", sans-serif;
  --font-cn: "Noto Sans SC", "Microsoft YaHei", sans-serif;

  --header-h: 3.25rem;
  --radius: 0.75rem;
  --shadow: 0 2px 12px rgba(46, 61, 54, 0.08);
  --max-w: 32rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--color-bg-deep);
  color: var(--color-text);
  line-height: 1.4;
  min-height: 100dvh;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.menu-web {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--color-bg);
  box-shadow: var(--shadow);
}

/* ?? Sticky header ????????????????????????????????????????? */

.menu-web-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--header-h);
  padding: 0.5rem 0.85rem;
  padding-top: max(0.5rem, env(safe-area-inset-top));
  background: rgba(246, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.menu-web-header__logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.menu-web-header__text {
  flex: 1;
  min-width: 0;
}

.menu-web-header__cn {
  font-family: var(--font-cn);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-brand-orange);
  line-height: 1.1;
}

.menu-web-header__title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.menu-web-header__back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-bg-deep);
  color: var(--color-accent-dark);
  flex-shrink: 0;
}

.menu-web-header__back svg {
  width: 1.1rem;
  height: 1.1rem;
}

.menu-web--series .menu-web-header__back {
  display: flex;
}

.menu-web--series .menu-web-header__logo,
.menu-web--series .menu-web-header__text {
  display: none;
}

.menu-web-header__series-title {
  display: none;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.menu-web--series .menu-web-header__series-title {
  display: block;
}

.menu-web-header__series-title span {
  display: block;
  font-family: var(--font-arabic);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

/* ?? Views ??????????????????????????????????????????????????? */

.menu-view {
  display: none;
  padding: 0.85rem 0.85rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.menu-view--active {
  display: block;
}

/* ?? Home hero ????????????????????????????????????????????? */

.menu-hero {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.menu-hero__subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 0.25rem;
}

.menu-hero__subtitle-ar {
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text-muted);
}

.menu-hero__meta {
  margin-top: 0.75rem;
  padding: 0.55rem 0.75rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.menu-hero__meta strong {
  color: var(--color-accent-dark);
}

.menu-hero__meta p + p {
  margin-top: 0.2rem;
}

/* ?? Series grid (home) ???????????????????????????????????? */

.series-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.series-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border-radius: var(--radius);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px rgba(46, 61, 54, 0.04);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.series-card:active {
  transform: scale(0.98);
}

.series-card__thumb {
  aspect-ratio: 4 / 3;
  background: var(--color-image-bg);
  overflow: hidden;
}

.series-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-card__body {
  padding: 0.55rem 0.6rem 0.65rem;
  border-top: 3px solid var(--series-accent, var(--color-accent));
}

.series-card__en {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.series-card__ar {
  display: block;
  font-family: var(--font-arabic);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
  text-align: right;
}

.series-card__count {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-top: 0.25rem;
}

/* ?? Series panel ???????????????????????????????????????????? */

.series-panel__intro {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--series-accent, var(--color-accent));
  border-radius: var(--radius);
}

.series-panel__intro-en {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
}

.series-panel__intro-ar {
  font-family: var(--font-arabic);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: right;
  margin-top: 0.15rem;
}

.series-panel__price-hint {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

/* ?? Dish list ??????????????????????????????????????????????? */

.dish-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dish-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.dish-item__image {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: var(--color-image-bg);
  flex-shrink: 0;
}

.dish-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-item__name-ar {
  font-family: var(--font-arabic);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.dish-item__name-en {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
  line-height: 1.25;
}

.dish-item__prices {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.dish-item__price {
  flex: 1;
  text-align: center;
  padding: 0.25rem 0.35rem;
  background: var(--color-bg);
  border-radius: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-price);
  line-height: 1.2;
}

.dish-item__price span {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.05rem;
}

/* ?? Footer ?????????????????????????????????????????????????? */

.menu-web-footer {
  text-align: center;
  padding: 1rem 0.85rem 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg);
}

.menu-web-footer p + p {
  margin-top: 0.2rem;
}

/* ?? Larger phones / small tablets ??????????????????????????? */

@media (min-width: 380px) {
  .series-card__en {
    font-size: 0.78rem;
  }

  .dish-item {
    grid-template-columns: 5rem 1fr;
  }

  .dish-item__image {
    width: 5rem;
    height: 5rem;
  }
}

@media (min-width: 480px) {
  .menu-view {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}
