:root{
  --brand:#73469B;
  --bg:#FFFFFF;
  --bgSoft:#FAF7FF;
  --text:#121212;
  --muted:#4B4B4B;
  --border:#E9E1F3;
  --chipActive:#F2ECFA;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 18px;
  --topBarH: 64px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bgSoft);
  color: var(--text);
}

.app{
 max-width: 520px;
  margin: 0 auto;

  padding: calc(14px + var(--topBarH) + env(safe-area-inset-top)) 14px 90px;
}

/* Header */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 4px 6px;
}

.brand{display:flex; align-items:center; gap:10px;}

.logoImg{
  height: 40px;       
  width: auto;        
  display:block;
  object-fit: contain;
}

.logoMark{
  width:42px;
  height:42px;
  border-radius:14px;

  background: #73469B url("icon.png") center/22px no-repeat;
 

  box-shadow: var(--shadow);
}
.brandText{display:flex; flex-direction:column; line-height:1.1}
.brandName{font-weight:700; font-size:16px}
.brandSub{font-size:12px; color:var(--muted)}

/* Language toggle */
.langToggle{
  display:flex;
  background: #fff;
  border:1px solid var(--border);
  border-radius: 999px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.langBtn{
  appearance:none;
  border:0;
  background: transparent;
  padding: 10px 12px;
  font-weight:700;
  color: var(--muted);
}
.langBtn.active{
  background: var(--chipActive);
  color: var(--brand);
}

/* Search */
.searchWrap{padding: 8px 2px 14px;}
.search{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.searchIcon{color:var(--muted); font-weight:700}
.search input{
  width:100%;
  border:0;
  outline:none;
  font-size:16px;
  background:transparent;
  color:var(--text);
}
.clearBtn{
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:16px;
  padding: 6px 8px;
  border-radius: 12px;
}
.clearBtn:active{background: #f3f3f3}
.searchHint{
  padding: 8px 6px 0;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

/* Hero */
.hero{padding: 4px 0 14px;}
.heroCard{
  background:#fff;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 16px;
  box-shadow: var(--shadow);
}
.heroTitle{font-size:22px; font-weight:800; letter-spacing:.2px;}
.heroDesc{margin-top:6px; color:var(--muted); font-size:13px;}
.heroBtns{display:flex; gap:10px; margin-top:14px;}
.btn{
  width:100%;
  height:56px;
  border-radius: 18px;
  font-size:16px;
  font-weight:800;
  border:1px solid transparent;
}
.btnPrimary{background:var(--brand); color:#fff;}
.btnPrimary:active{transform: translateY(1px)}
.btnOutline{background:#fff; border-color: var(--brand); color: var(--brand);}
.btnOutline:active{transform: translateY(1px)}

/* Panels */
.content{display:flex; flex-direction:column; gap:14px;}
.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panelHeader{padding: 16px 16px 8px;}
.panelTitle{margin:0; font-size:20px; font-weight:900;}

/* Chips (sticky) */
.chipsWrap{
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.chips{
  display:flex;
  gap:10px;
  overflow:auto;
  padding: 10px 12px;
  scroll-behavior:smooth;
  scrollbar-width: none; /* Firefox */
}
.chips::-webkit-scrollbar{ display:none; } /* Chrome/Safari */

.chip{
  flex:0 0 auto;
  max-width: 160px;
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .1px;
}
.chip.active{
  background: var(--chipActive);
  border-color: #dfcfee;
  color: var(--brand);
}

/* Menu items */
.items{padding: 6px 12px 14px;}

/* SEKCIJA — ljubičasta + jasno odvajanje */
.sectionTitle{
  margin: 20px 6px 10px;
  padding-bottom: 8px;
  font-size: 18px;
  font-weight: 950;
  color: var(--brand);
  letter-spacing: .2px;
  border-bottom: 1px solid var(--border);
}

/* Stavka */
.item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--border);
}
.item:last-child{border-bottom:0}
.itemMain{min-width:0}
.itemName{
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
}
.itemDesc{
  margin-top:4px;
  color: var(--muted);
  font-size:13px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.itemRight{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.price{
  font-weight: 900;
  font-size: 16px;
  white-space:nowrap;
}
.thumb{
  width:76px; height:76px;
  border-radius: 14px;
  border:1px solid var(--border);
  object-fit: cover;
  flex: 0 0 auto;
  background: #f5f2f8;
}

/* Bottom bar */
.bottomBar{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: min(520px, calc(100% - 20px));
  background:#fff;
  border:1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  display:flex;
  gap:6px;
  padding: 6px;
  z-index: 20;
}
.bottomBtn{
  flex:1;
  border:0;
  background: transparent;
  height:44px;
  border-radius: 999px;
  font-weight:900;
  color: var(--text);
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.bottomBtn:active{background: #f3f3f3}

/* Footer */
.footer{
  padding: 10px 4px 0;
  text-align:center;
  color: var(--muted);
  font-size: 12px;
}

.searchPreview{
  margin-top: 10px;
  display: none;
}

.app.searching .searchPreview{
  display: block;
}

.previewCard{
  background:#fff;
  border:1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.previewItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 12px;
  border-bottom:1px solid var(--border);
  cursor:pointer;
}
.previewItem:last-child{ border-bottom:0; }

.previewLeft{ min-width:0; }
.previewName{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.previewMeta{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.previewRight{
  display:flex;
  align-items:center;
  gap:10px;
}
.previewTag{
  font-size: 11px;
  font-weight: 900;
  color: var(--brand);
  background: var(--chipActive);
  border: 1px solid #dfcfee;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.previewPrice{
  font-weight: 900;
  white-space: nowrap;
}

/* dok pretražuješ, skloni hero da bi rezultati bili “bliže” */
.app.searching .hero{
  display:none;
}

.topBar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: calc(var(--topBarH) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);

  background: var(--brand);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.topLogo{
  height: 38px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}