:root{
  --bg: #F5EFE6;
  --bg-soft: #EFE6D8;
  --card: #FFFFFF;
  --text: #2E2A26;
  --muted: #6F675E;
  --accent: #C97A2B;
  --border: rgba(46,42,38,.15);
  --shadow: 0 10px 24px rgba(46,42,38,.12);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, #FFF7EA, transparent 60%),
    radial-gradient(900px 500px at 110% 0%, #EAD7BD, transparent 55%),
    var(--bg);
  overflow-x: hidden;
}

.no-scroll{ overflow:hidden !important; height:100vh !important; }

/* ================= PIZZA LOADER ================= */
.pizza-loader{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap:12px;
  background: rgba(245,239,230,.92);
  backdrop-filter: blur(8px);
  transition: opacity .35s ease, visibility .35s ease;
}
.pizza-loader.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.pizza-bounce{
  font-size: 46px;
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(46,42,38,.18));
  animation: pizza-bounce 0.9s ease-in-out infinite;
  transform-origin: center;
}

.pizza-loader-text{
  font-weight: 900;
  color:#3A332C;
  letter-spacing:.2px;
  font-size: 14px;
}
@keyframes pizza-bounce{
  0%   { transform: translateY(0) rotate(-8deg); }
  35%  { transform: translateY(-16px) rotate(8deg); }
  70%  { transform: translateY(0) rotate(-6deg); }
  100% { transform: translateY(0) rotate(-8deg); }
}

/* ================= HEADER  ================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(245,239,230,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

/* Desktop grid: left brand | center nav | right lang */
.header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap: 12px;
}

/* Brand */
.brand{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--text);
  font-weight: 1000;
  min-width: 0;
}
.brand-text{
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.brand-left{ justify-self: start; }

.brand-center{
  display:none;
  justify-self: center;
  align-items:center;
  justify-content:center;
  gap: 10px;
}
.brand-emoji{
  font-size: 20px;
  line-height: 1;
}

/* Nav center */
.nav-pill{
  justify-self: center;
  display:flex;
  gap:6px;
  padding:6px;
  border-radius:16px;
  background: rgba(46,42,38,.05);
}
.nav-pill a{
  padding:10px 16px;
  border-radius:12px;
  font-weight:900;
  text-decoration:none;
  color:var(--text);
  white-space: nowrap;
}
.nav-pill a:hover,
.nav-pill a.active{
  background: rgba(201,122,43,.18);
}

/* Right lang */
.lang-btn{
  justify-self: end;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* Burger  */
.burger{
  display:none;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(46,42,38,.15);
  background: #fff;
  box-shadow: var(--shadow);
  cursor:pointer;
  position: relative;
  justify-self: start;
}
.burger span{
  position:absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #3A332C;
  border-radius: 999px;
}
.burger span:nth-child(1){ top: 16px; }
.burger span:nth-child(2){ top: 24px; }
.burger span:nth-child(3){ top: 32px; }

/* MOBILE */
@media(max-width:860px){
  .site-header{
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
  }

  .header-inner{
    max-width: 100%;
    margin: 10px 12px;
    padding: 12px 12px;
    display:grid;
    grid-template-columns: 56px 1fr 56px;
    gap: 10px;
    background:
      radial-gradient(700px 260px at 50% 0%, rgba(46,42,38,.20), rgba(46,42,38,.06) 50%, rgba(255,255,255,.42)),
      rgba(255,255,255,.55);
    border: 1px solid rgba(46,42,38,.12);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(46,42,38,.10);
    backdrop-filter: blur(12px);
  }

  .nav-pill{ display:none; }
  .brand-left{ display:none; }
  .burger{ display:inline-flex; }

  .brand-center{
    display:inline-flex;
  }
  .brand-center .brand-text{
    font-size: clamp(18px, 5vw, 26px);
    color: #fff;
    text-shadow: 0 8px 24px rgba(0,0,0,.35);
    max-width: 52vw;
  }
  .brand-emoji{
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.25));
  }

  .lang-btn{
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 1000;
    border: 1px solid rgba(46,42,38,.15);
    background: rgba(255,255,255,.85);
    box-shadow: var(--shadow);
  }
}

@media(max-width:420px){
  .brand-center .brand-text{
    font-size: 22px;
    max-width: 46vw;
  }
}

/* ================= Drawer ================= */
.drawer{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index: 999999;
}
.drawer.open{ display:block; }

.drawer-card{
  position:absolute;
  top: calc(env(safe-area-inset-top) + 70px);
  left: 12px;
  right: 12px;
  background: rgba(255,255,255,.96);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  border: 1px solid var(--border);
}
.drawer-nav{
  display:grid;
  gap:10px;
}
.drawer-nav a{
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration:none;
  color: var(--text);
  font-weight: 900;
  background: rgba(46,42,38,.03);
  border: 1px solid rgba(46,42,38,.10);
}
.drawer-nav a.active{
  background: rgba(201,122,43,.14);
  border-color: rgba(201,122,43,.25);
}

/* ---------------- LAYOUT ---------------- */
.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.navbar{
  display:flex;
  justify-content:flex-start;
  margin: 10px 0 14px;
}
.back{ display:none; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration:none;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn:active{ transform: translateY(1px); }
.btn.secondary{ background: rgba(46,42,38,.04); }

/* ---------------- CATEGORY GRID ---------------- */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
@media (min-width: 720px){
  .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cat-card{
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  cursor:pointer;
  position: relative;
  background: var(--card);
  box-shadow: var(--shadow);
  transform: translateZ(0);
}
.cat-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  transition: transform .22s ease;
}
.cat-card:hover .cat-img{ transform: scale(1.06); }

.cat-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(46,42,38,.75), rgba(46,42,38,.10) 60%);
}

.cat-label{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding: 12px;
  color:#fff;
  text-align:center;
}
.cat-label h2{
  margin:0;
  font-size: 16px;
  font-weight: 900;
}
.cat-label p{
  margin: 6px 0 0;
  font-size: 12px;
  opacity: .9;
}

/* ---------------- PRODUCT GRID ---------------- */
.list{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}
@media (min-width: 720px){
  .list{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------------- PRODUCT CARD ---------------- */
.item.with-img{
  background: var(--card);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.item.with-img h3{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 900;
}

.thumb{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-soft);
  margin-bottom: 8px;
}

.desc{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  margin: 6px 0 10px;
}

.price{
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
}
.price::before{
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin: 10px auto 8px;
  background: rgba(46,42,38,.25);
}

/* ---------------- BADGE ---------------- */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid var(--border);
  background: rgba(201,122,43,.12);
  color: #7A4617;
  margin: 10px auto 8px;
}

/* ---------------- TAGS / CHIPS ---------------- */
.chips{
  display:flex;
  flex-wrap: wrap;
  justify-content:center;
  gap:6px;
  margin: 8px 0 10px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: rgba(201,122,43,.10);
  color: #7A4617;
}

.legend-btn{
  display:inline-flex;
  margin: 0 auto 12px;
}

/* ---------------- ITEM BOTTOM ROW ---------------- */
.item-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 10px;
  width: 100%;
}

.item-bottom .chips{
  display:flex;
  flex-wrap: wrap;
  gap:8px;
  margin: 0;
  flex: 1;
  justify-content: flex-start;
}

.item-bottom .price{
  margin: 0 0 0 auto;
  width: auto;
  text-align:right;
  white-space: nowrap;
  flex-shrink: 0;
}

.item-bottom .price::before{
  display:none;
}

/* ---------------- LIST MODE ---------------- */
.list.extra-list{
  grid-template-columns: 1fr !important;
  justify-items: center;
  gap: 14px;
}

.extra-item{
  width: min(100%, 720px);
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align:left;
}

.extra-item h3{
  margin:0;
  font-size: 14px;
  font-weight: 900;
}

.extra-item .chips{
  justify-content:flex-start;
  margin: 0;
}

.extra-item .desc{
  margin: 6px 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.extra-item .price{
  margin: 0;
  width: auto;
  text-align:right;
  font-size: 15px;
  font-weight: 900;
  color: var(--accent);
  white-space: nowrap;
}

.extra-item .price::before{
  display:none;
}

.extra-item .thumb{
  display:block;
  width:64px;
  height:64px;
  border-radius: 14px;
  margin: 0;
  flex: 0 0 auto;
  background: var(--bg-soft);
}

/* ---------------- BREAKFAST HERO ---------------- */
.breakfast-hero-list{
  display:flex;
  justify-content:center;
  align-items:stretch;
}

.breakfast-hero-list .item.with-img{
  width: min(100%, 420px);
}

/* ---------------- MODAL ---------------- */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  background: rgba(20,18,16,.45);
  backdrop-filter: blur(6px);
  z-index: 9999;
}
.modal.open{ display:flex; }

.modal-card{
  width: min(520px, 96vw);
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  padding: 14px;
}
.modal-head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap:10px;
}
.modal-head h3{
  margin:0;
  font-size: 16px;
  font-weight: 900;
}
.modal-close{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor:pointer;
  font-size: 20px;
  font-weight: 900;
}

/* ---------------- LIGHTBOX ---------------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20,18,16,.75);
  backdrop-filter: blur(6px);
}
.lightbox.open{ display: flex; }

.lightbox-card{
  width: min(520px, 96vw);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.lightbox-img{
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-soft);
}
.lightbox-meta{
  padding: 12px 14px 14px;
  text-align: center;
}
.lightbox-close{
  position:absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

/* ---------------- FOOTER ---------------- */
.footer{
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  text-align:center;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display:grid;
  gap:10px;
}
.footer-links{
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
}
.iconlink{
  width: 42px;
  height: 42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration:none;
}
.icon{
  width: 20px;
  height: 20px;
  fill: #3A332C;
}
.footer-note{
  font-size: 12px;
}