:root{
  --bg:#fff7e8;
  --surface:#fffdf7;
  --card:#ffffff;
  --ink:#24201d;
  --coffee:#201c19;
  --mocha:#4d3b2e;
  --copper:#ef6c1f;
  --accent:#f5b82e;
  --accent-soft:#fff0c8;
  --muted:#80746b;
  --line:#eadbc8;
  --shadow:0 14px 34px rgba(71,43,20,.11);
  --shadow-strong:0 18px 42px rgba(88,48,18,.16)
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 10% 0%,rgba(245,184,46,.13),transparent 28%),
    radial-gradient(circle at 100% 18%,rgba(239,108,31,.08),transparent 25%),
    linear-gradient(180deg,#fffaf0 0%,#fff5e4 100%);
  font-family:"DM Sans",Arial,sans-serif;
  color:var(--ink)
}
button,input{font:inherit}

.topbar{
  position:sticky;top:0;z-index:40;height:78px;padding:0 24px;
  display:grid;grid-template-columns:52px 1fr 52px;align-items:center;
  background:rgba(32,28,25,.97);backdrop-filter:blur(16px);color:#fff;
  border-bottom:3px solid var(--accent)
}
.brand{text-align:center;font-size:24px;font-weight:800;letter-spacing:-.4px}
.icon-btn{border:0;background:transparent;color:#fff;font-size:46px;line-height:1;padding:0;cursor:pointer}
.menu-btn{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center}
.menu-btn span{width:30px;height:3px;background:var(--accent);border-radius:4px}

main{max-width:760px;margin:auto}
.intro{text-align:center;padding:38px 26px 22px}
.intro h1{font-size:36px;line-height:1.05;margin:0 0 10px;color:var(--coffee);font-weight:850;letter-spacing:-1px}
.intro h1::after{content:"";display:block;width:54px;height:5px;margin:15px auto 0;border-radius:99px;background:linear-gradient(90deg,var(--accent),var(--copper))}
.intro h2{font-size:14px;margin:0 0 12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--copper)}
.intro p{font-size:18px;line-height:1.5;margin:0 0 30px;color:var(--muted)}

.search-row{display:grid;grid-template-columns:1fr;gap:14px;align-items:center}
.search-box{
  min-height:62px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.92);
  box-shadow:0 8px 24px rgba(72,43,20,.07);display:flex;align-items:center;padding:0 19px;gap:12px
}
.search-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px rgba(245,184,46,.16),0 10px 26px rgba(72,43,20,.08)}
.search-icon{font-size:32px;color:var(--copper);transform:rotate(-20deg)}
.search-box input{width:100%;border:0;outline:0;background:transparent;font-size:20px;color:var(--ink)}
.search-box input::placeholder{color:#a89b90}
.filter-btn{border:0;background:var(--coffee);color:#fff;font-size:24px;width:52px;height:52px;border-radius:14px}
.search-status{font-size:15px;line-height:1.4;margin:12px 0 0;color:var(--muted)}

.category-cards,.category-tabs{
  display:flex;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;
  touch-action:pan-x pan-y;cursor:grab;user-select:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity
}
.category-cards.is-dragging,.category-tabs.is-dragging{cursor:grabbing;scroll-snap-type:none}
.category-cards::-webkit-scrollbar,.category-tabs::-webkit-scrollbar{display:none}
.category-cards{gap:14px;padding:10px 0 26px;margin-inline:27px}
.category-card{flex:0 0 178px;scroll-snap-align:start;cursor:pointer}
.category-card img{
  width:100%;height:128px;object-fit:cover;border-radius:16px;display:block;border:2px solid #fff;
  outline:1px solid rgba(63,42,27,.08);box-shadow:0 10px 24px rgba(60,37,21,.12);transition:.22s
}
.category-card.active img{transform:translateY(-4px);outline-color:var(--accent);box-shadow:0 16px 32px rgba(239,108,31,.22)}
.category-card span{display:block;font-size:18px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:11px;color:var(--coffee)}
.category-card.active span{color:var(--copper)}

.category-tabs-wrap{
  position:sticky;top:78px;z-index:30;background:rgba(255,248,235,.94);backdrop-filter:blur(16px);
  border-top:1px solid rgba(239,108,31,.05);border-bottom:1px solid var(--line)
}
.category-tabs{gap:10px;padding:14px 0;margin-inline:26px}
.category-tab{
  flex:0 0 auto;scroll-snap-align:start;padding:13px 20px;border:1px solid var(--line);border-radius:12px;
  background:#fff;color:var(--mocha);font-size:17px;font-weight:700;white-space:nowrap;cursor:pointer
}
.category-tab.active{
  background:linear-gradient(135deg,#f6bc32,#ef7d22);border-color:transparent;color:#241d18;
  box-shadow:0 9px 22px rgba(224,116,23,.24)
}

.menu-section{padding:44px 27px 10px;scroll-margin-top:154px}
.section-banner{width:100%;height:220px;object-fit:cover;object-position:center;border-radius:20px;display:block;box-shadow:var(--shadow-strong);border:3px solid #fff}
.section-title{text-align:center;font-size:31px;line-height:1.1;margin:30px 0 10px;color:var(--coffee);font-weight:850;letter-spacing:-.6px}
.section-title::after{content:"";display:block;width:42px;height:4px;margin:12px auto 0;border-radius:99px;background:var(--accent)}
.section-desc{text-align:center;font-size:19px;line-height:1.45;margin:0 auto 30px;color:var(--muted)}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}

.product-card{
  --product-media-extension:28px;--product-info-min-height:112px;
  position:relative;background:rgba(255,255,255,.97);border:1px solid rgba(111,73,42,.12);border-radius:18px;
  overflow:hidden;box-shadow:var(--shadow);transition:transform .22s,box-shadow .22s;cursor:pointer
}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-strong)}
.product-media{position:relative;aspect-ratio:1/1;margin-bottom:var(--product-media-extension);overflow:visible;background:#f7efe4}
.product-media img{position:absolute;left:0;top:0;width:100%;height:calc(100% + var(--product-media-extension));object-fit:cover;object-position:center bottom}
.badge{
  position:absolute;left:12px;top:48px;background:linear-gradient(135deg,#ef6c1f,#d94e0b);color:#fff;
  font-size:10px;font-weight:800;padding:7px 9px;border-radius:8px;text-transform:uppercase;letter-spacing:.35px;
  box-shadow:0 5px 14px rgba(196,70,5,.24)
}
.badge.badge-with-calories{top:48px}
.calorie-badge{
  position:absolute;left:12px;top:12px;background:rgba(32,28,25,.84);color:#fff;font-size:11px;font-weight:700;
  padding:7px 9px;border:0;border-radius:8px;backdrop-filter:blur(7px)
}
.product-info{position:relative;padding:14px 16px 9px;min-height:var(--product-info-min-height);border-top:1px solid rgba(237,219,196,.75)}
.product-info h3{font-size:20px;line-height:1.22;margin:0 0 7px;color:var(--coffee);font-weight:800}
.price{display:inline-flex;align-items:center;font-size:22px;color:#d85612;font-weight:850;letter-spacing:-.4px}

.to-top{
  position:fixed;right:20px;bottom:24px;width:58px;height:58px;border:0;border-radius:16px;
  background:linear-gradient(135deg,var(--accent),var(--copper));color:#211a16;font-size:32px;font-weight:900;
  box-shadow:0 12px 28px rgba(211,102,17,.28);display:none;z-index:50
}

.drawer{position:fixed;inset:0;background:rgba(24,18,14,.64);z-index:80;opacity:0;pointer-events:none;transition:.2s}
.drawer.open{opacity:1;pointer-events:auto}
.drawer-panel{
  margin-left:auto;width:min(84vw,360px);height:100vh;height:100dvh;background:var(--surface);padding:72px 28px;
  padding-bottom:calc(72px + env(safe-area-inset-bottom,0px));position:relative;overflow-x:hidden;overflow-y:auto;
  overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;border-left:4px solid var(--accent)
}
.drawer-panel h3{font-size:30px;color:var(--coffee)}
.drawer-panel a{display:block;color:var(--coffee);text-decoration:none;font-size:20px;font-weight:700;padding:15px 0;border-bottom:1px solid var(--line)}
.drawer-panel a:hover{color:var(--copper)}
.drawer-close,.modal-close{position:absolute;right:18px;top:15px;border:0;background:transparent;font-size:38px;color:var(--coffee)}

.modal{position:fixed;inset:0;background:rgba(25,18,14,.72);z-index:90;display:none;align-items:flex-end;justify-content:center;padding:18px}
.modal.open{display:flex}
.modal-card{
  position:relative;width:min(100%,560px);max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);
  background:var(--surface);border-radius:22px;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 28px 80px rgba(22,15,10,.3)
}
.modal-card img{display:block;width:100%;height:clamp(300px,60vh,520px);height:clamp(300px,60dvh,520px);object-fit:contain;object-position:center;background:#f4eadb}
.modal-card img[hidden]{display:none}
.modal-content{padding:24px}
.modal-content h3{font-size:28px;margin:0 0 12px;color:var(--coffee)}
.modal-content p{font-size:18px;line-height:1.5;color:var(--muted)}
.modal-content strong{font-size:26px;color:var(--copper)}
.modal-close{color:#fff!important;text-shadow:0 1px 5px rgba(0,0,0,.65)}
.modal-calorie-badge{
  position:absolute;left:18px;top:18px;background:rgba(32,28,25,.86);color:#fff;font-size:13px;font-weight:700;
  padding:8px 11px;border:0;border-radius:9px;box-shadow:0 6px 18px rgba(0,0,0,.16)
}
.modal-calorie-badge[hidden]{display:none}
#modalImage[hidden]+.modal-calorie-badge:not([hidden]){position:static;display:inline-block;margin:20px 24px 0}
#modalImage[hidden]+.modal-calorie-badge:not([hidden])+.modal-content{padding-top:12px}

#menuSections.search-results .section-banner,#menuSections.search-results .section-desc{display:none}
#menuSections.search-results .menu-section{padding-top:28px}
#menuSections.search-results .section-title{margin:0 0 18px}

@media(max-width:560px){
  .topbar{height:64px;grid-template-columns:44px 1fr 44px;padding:0 18px}
  .brand{font-size:20px}.icon-btn{font-size:38px}.menu-btn span{width:25px}
  .intro{padding:29px 20px 15px}.intro h1{font-size:30px}.intro h2{font-size:13px}.intro p{font-size:16px}
  .search-box{min-height:56px}.search-box input{font-size:18px}
  .category-tabs-wrap{top:64px}.category-card{flex-basis:174px}
  .menu-section{padding:34px 22px 6px;scroll-margin-top:140px}.section-banner{height:210px}
  .section-title{font-size:28px}.section-desc{font-size:18px}
  .product-grid{gap:16px}.product-card{--product-media-extension:26px;--product-info-min-height:106px}
  .product-info{padding:12px 14px 8px}.product-info h3{font-size:18px}.price{font-size:20px}
  #menuSections.search-results .menu-section{padding-top:24px}#menuSections.search-results .section-title{margin-bottom:16px}
}

@media(max-width:390px){
  .category-cards,.category-tabs{margin-inline:16px}
  .product-grid{gap:12px}.menu-section{padding-left:14px;padding-right:14px}
  .product-card{--product-media-extension:22px;--product-info-min-height:102px;border-radius:15px}
  .product-info{padding:11px 11px 7px}.product-info h3{font-size:16.5px}.price{font-size:19px}
}
