* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff;
  color: #2c2c2c;
}
img { 
  display: block; 
  max-width: 100%;
 }
button { 
  border: 0; 
  background: none; 
  cursor: pointer;
 }


:root{
  --green: #748f69;           
  --green-600: #6a855f;
  --green-100: #e2eadf;        
  --text: #594022;
  --muted: #6b6b6b;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --radius: 18px;
  --hero-h: 200px;            
}

.app {
  max-width: 420px;
  margin: 0 auto;
}
.app-header{
  position: relative;
  background: var(--green);
  color: #fff;
  padding: 24px 20px 64px;
  border-bottom-left-radius: 48% 18%;
  border-bottom-right-radius: 48% 18%;
}
.header-bar{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.title-row{
 display: flex;
  align-items: center;          
  justify-content: space-between; 
  padding: 0 16px;
  margin-top: 10px;
  position: relative;
  z-index: 10;
}

#searchInput {
  display: none;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  min-width: 180px;
  background: #fff;
  color: #111827;
}
.title-row.search-open #searchInput { display: inline-block; }
.logo {
  width: 150px;
  height: 120px;
  display: grid;
  place-items: center;
  margin: 0 auto;       
  margin-top: -10px;
  position: relative;
  z-index: 7;
}
.search-btn{
  width: 40px;
  height: 40px; 
  border-radius: 50%;
  background: #fff;
  display: grid; 
  place-items: center;
  position: relative;
  z-index: 7;    
}

.search-btn svg{ 
  width: 18px;
  height: 18px;
 }

.header-title{
  font-size: 20px;
  font-weight: 700;
  color: #fff;                  
  margin: 0;
  line-height: 1;
}

.section{ 
  margin-top: 20px; 
  padding: 0 16px; 
}
.section h3{ 
  font-size: 22px; 
  font-weight: 800; 
  color: var(--text); 
}

.hidden{
  display: none !important;
}

.hidden-scrollbar::-webkit-scrollbar{ 
  display: none;
}
.hidden-scrollbar{ 
  -ms-overflow-style: none; 
  scrollbar-width: none; 
}

@media (min-width: 768px){
  :root{ --hero-h: 260px; }
  .app{ max-width: 720px; }
  .app-header{ border-bottom-left-radius: 36% 20%; border-bottom-right-radius: 36% 20%; }
  .section h3{ font-size: 24px; }
}

@media (min-width: 1024px){
  :root{ --hero-h: 300px; }
  .app{ max-width: 960px; }
  .categories{ gap: 18px; }
  .category-card{ min-width: 180px; }
}

  @media (min-width: 1280px){
    :root{ --hero-h: 340px; }
    .app{ max-width: 1120px; }
  }


.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1000;
}

.modal--open {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}

.modal__content {
  position: relative;
  width: min(92vw, 520px);
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  animation: pop .18s ease-out;
}

@keyframes pop {
  0%   { transform: translateY(6px) scale(.96); opacity: 0; }
  100% { transform: translateY(0)   scale(1);   opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.modal__close:hover { background: #e5e7eb; }

.modal__title {
  margin: 8px 8px 4px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.modal__ingredients {
  margin: 0 8px;
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
}
