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

:root {
  --amber: #FFB607;
  --amber2: #FF9700;
  --red: #FF4B00;
  --bg: #0C0C0C;
  --bg2: #121212;
  --border: #272727;
  --gray: #717171;
  --white: rgba(253,253,253,0.99);
  --gradient: linear-gradient(90deg, var(--amber), var(--amber2));
  --nav-h: 60px;
  --sidebar-w: 90px;
}

html, body {
  height: 100%;
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
}

/* ── Screens ── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  background: linear-gradient(180deg, #121212 0%, #070707 100%);
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 30px;
  z-index: 100;
  flex-shrink: 0;
}
.nav-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s, transform .2s;
}
.nav-icon.active { opacity: 1; transform: scale(1.15); }
.nav-icon svg { fill: #0e0e0e; }

/* ── Scrollable content area ── */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--nav-h);
}
.scroll-area::-webkit-scrollbar { display: none; }

/* ── Page content wrapper (centers content on desktop) ── */
.page-content {
  width: 100%;
}

/* ==============================
   HOME SCREEN
============================== */
.home-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  gap: 10px;
}
.home-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 4px;
}
.home-logo { width: 54px; height: 38px; margin-top: 12px; }
.home-logo img { width: 90%; height: 100%; }

/* Language toggle */
.lang-toggle {
  display: flex;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  margin-top: 12px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--gray);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: .5px;
}
.lang-btn.active {
  background: var(--gradient);
  color: #0e0e0e;
}
.home-welcome {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-socials {
  display: flex; gap: 14px; opacity: .12; margin-top: 2px;
}
.home-socials svg { fill: #fff; width: 18px; height: 18px; }

/* Hero banner */
.hero-banner {
  margin: 22px 16px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  height: 220px;
  box-shadow: 0 4px 60px rgba(0,0,0,.7);
  cursor: pointer;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-slide img {
  position: absolute;
  right: 0; top: 0;
  width: 65%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(269deg, rgba(0,0,0,0) 5%, #0e0e0e 80%);
}
.hero-content {
  position: absolute;
  left: 22px; top: 30px;
  width: 185px;
}
.badge {
  display: inline-flex;
  background: var(--gradient);
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #0e0e0e;
  margin-bottom: 18px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}
.hero-dots {
  display: flex; gap: 6px;
  justify-content: center;
  margin: 12px 0 0;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background .3s;
}
.hero-dot.active { background: var(--amber); width: 18px; border-radius: 4px; }

/* Favourites */
.section-title {
  padding: 22px 16px 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}
.fav-list {
  display: flex;
  gap: 12px;
  padding: 0 16px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.fav-list::-webkit-scrollbar { display: none; }

/* Product card */
.product-card {
  flex-shrink: 0;
  width: 148px; height: 204px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(6,6,6,.3);
  position: relative;
  cursor: pointer;
  transition: transform .2s;
}
.product-card:hover { transform: scale(1.03); }
.product-card img {
  position: absolute;
  width: 100%; height: 60%;
  object-fit: cover;
  top: 0;
}
.product-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, #000 100%);
}
.card-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--gradient);
  border-radius: 30px;
  padding: 2px 10px;
  font-size: 9px;
  font-weight: 600;
  color: #0e0e0e;
}
.card-badge.hot {
  background: linear-gradient(90deg, #FF5A07, red);
  left: 10px; right: auto;
}
.card-info { position: absolute; bottom: 14px; left: 16px; right: 8px; }
.card-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}
.card-prices { display: flex; gap: 8px; align-items: center; }
.price-old { font-size: 12px; color: var(--gray); }
.price-new {
  font-size: 14px;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==============================
   MENU SCREEN
============================== */
.menu-header {
  padding: 14px 0 0;
  text-align: center;
  color: rgba(253,253,253,.3);
  font-size: 17px;
  font-weight: 500;
}
.menu-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 16px 24px;
}
.menu-row { display: flex; gap: 16px; }
.cat-card {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  position: relative;
  cursor: pointer;
  transition: transform .2s;
}
.cat-card:hover { transform: scale(1.02); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 60%);
}
.cat-info { position: absolute; bottom: 14px; left: 16px; right: 8px; }
.cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 3px;
}
.cat-desc { font-size: 11px; color: var(--gray); }
.cat-card .badge { position: absolute; top: 10px; right: 10px; margin: 0; }
.cat-tall { height: 220px; }
.cat-medium { height: 220px; }
.cat-short { height: 130px; }

/* ==============================
   PRODUCTS SCREEN
============================== */
.tab-bar {
  display: flex;
  padding: 10px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 15px;
  color: rgba(253,253,253,.3);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.tab.active { color: var(--white); font-weight: 600; }
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 14px; right: 14px;
  height: 3px;
  border-radius: 4px;
  background: var(--gradient);
}
.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 16px 24px;
}
.products-grid .product-card {
  width: calc(50% - 7px);
  height: 204px;
}

/* ==============================
   PRODUCT DETAIL SCREEN
============================== */
.detail-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-bottom: var(--nav-h);
}
.detail-scroll::-webkit-scrollbar { display: none; }

.detail-hero {
  position: relative;
  height: 340px;
  overflow: hidden;
  flex-shrink: 0;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,0) 40%, #0c0c0c 100%);
}

.detail-info {
  background: linear-gradient(180deg, #0c0c0c 0%, #070707 100%);
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 24px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}
.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--white);
  margin-bottom: 10px;
}
.detail-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.detail-old-price { font-size: 13px; color: var(--gray); font-weight: 500; }
.detail-price {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.detail-portion { font-size: 13px; color: var(--gray); }
.detail-kcal {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--gray);
  margin-left: auto;
}
.detail-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 28px;
}
.detail-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}
.detail-cards {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.detail-cards::-webkit-scrollbar { display: none; }
.detail-cards .product-card { flex-shrink: 0; width: 160px; height: 185px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.screen.active .hero-banner,
.screen.active .section-title,
.screen.active .fav-list,
.screen.active .menu-grid,
.screen.active .tab-bar,
.screen.active .products-grid,
.screen.active .detail-info {
  animation: fadeUp .4s ease both;
}
.screen.active .section-title { animation-delay: .05s; }
.screen.active .fav-list { animation-delay: .1s; }

/* ==============================
   DESKTOP (≥ 1024px)
============================== */
@media (min-width: 1024px) {

  /* Screen becomes a row: sidebar | content */
  .screen {
    flex-direction: row;
  }

  /* Sidebar nav */
  .bottom-nav {
    position: relative;
    bottom: auto; left: auto; right: auto;
    width: var(--sidebar-w);
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 44px;
    padding: 0;
    order: -1;
    flex-shrink: 0;
  }

  .nav-icon { width: 42px; height: 42px; }

  /* Scrollable areas lose mobile bottom padding, get thin scrollbar */
  .scroll-area {
    padding-bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .scroll-area::-webkit-scrollbar { display: block; width: 4px; }
  .scroll-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  .detail-scroll {
    padding-bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .detail-scroll::-webkit-scrollbar { display: block; width: 4px; }
  .detail-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  /* Center content with max-width */
  .page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
  }

  /* Hero */
  .hero-banner { margin: 28px 0 0; height: 300px; }
  .hero-content { width: 260px; top: 40px; left: 36px; }
  .hero-title { font-size: 30px; }

  /* Favourites */
  .section-title { padding: 28px 0 14px; }
  .fav-list { gap: 20px; padding: 0 0 32px; }
  .fav-list .product-card { width: 180px; height: 240px; }

  /* Menu */
  .menu-header { padding: 28px 0 0; font-size: 20px; }
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 20px 0 40px;
  }
  .menu-row { display: contents; }
  .cat-tall { height: 260px; }
  .cat-short { height: 160px; }

  /* Tab bar */
  .tab-bar { padding: 28px 0 0; }
  .tab { font-size: 16px; padding: 8px 20px; }

  /* Products grid — 3 columns */
  .products-grid { padding: 20px 0 40px; gap: 20px; }
  .products-grid .product-card { width: calc(33.333% - 14px); height: 240px; }

  /* Detail */
  .detail-hero { height: 460px; }
  .detail-info {
    max-width: 1100px;
    margin: -24px auto 0;
    padding: 36px 40px 48px;
  }
  .detail-title { font-size: 40px; }
  .detail-cards .product-card { width: 200px; height: 220px; }
}
