:root{
  --bg:#2a1a10;
  --card:#ffffff;
  --text:#1b1410;
  --muted:#6b7280;
  --line:#eadfce;
  --gold:#b48a3a;
  --brown:#5b3a1e; /* tünd kariçnivi */
  --cream:#fbf2df;
  --shadow: 0 10px 30px rgba(0,0,0,.18);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--cream);
  padding-bottom:78px;
}

/* subtle eastern pattern */
body:before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 20px 20px, rgba(180,138,58,.12) 2px, transparent 3px) 0 0/40px 40px,
    radial-gradient(circle at 20px 20px, rgba(91,58,30,.10) 1px, transparent 2px) 20px 20px/40px 40px;
  pointer-events:none;
  opacity:.7;
}

.hero{
  position:relative;
  background:linear-gradient(180deg, #2a1a10, #3a2416);
  padding:14px 14px 0;
}
.hero__bg{
  height:150px;
  border-radius:16px;
  background:
    linear-gradient(135deg, rgba(180,138,58,.30), rgba(0,0,0,.55)),
    url("https://images.unsplash.com/photo-1523906834658-6e24ef2386f9?auto=format&fit=crop&w=1200&q=60");
  background-size:cover;
  background-position:center;
  filter:saturate(1.05);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.hero__top{
  position:absolute;
  left:14px; right:14px;
  top:14px;
  display:flex;
  gap:10px;
  justify-content:space-between;
}
.pill{
  display:flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:12.5px;
  backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.18);
}
.pill__dot{opacity:.95}

.hero__card{
  position:relative;
  margin-top:-34px;
  background:linear-gradient(180deg, #ffffff, #fff8ea);
  border-top-left-radius:26px;
  border-top-right-radius:26px;
  padding:56px 14px 14px;
  box-shadow: 0 -18px 40px rgba(0,0,0,.18);
  border-top:1px solid rgba(180,138,58,.25);
}

.logoWrap{
  position:absolute;
  left:50%;
  top:-36px;
  transform:translateX(-50%);
  width:74px;height:74px;
  border-radius:999px;
  background:#fff;
  box-shadow:var(--shadow);
  display:grid;
  place-items:center;
  border:1px solid rgba(180,138,58,.35);
}
.logo{width:62px;height:62px;border-radius:999px;object-fit:cover}

h1{
  margin:0;
  font-size:24px;
  text-align:center;
  letter-spacing:.2px;
}
.tagline{
  margin:6px 0 0;
  text-align:center;
  color:var(--brown);
  font-weight:700;
  opacity:.9;
}

.socialRow{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}
.round{
  width:44px;height:44px;
  border-radius:999px;
  display:grid; place-items:center;
  border:1px solid rgba(91,58,30,.22);
  text-decoration:none;
  background:#fff;
  color:var(--brown);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
.round svg{width:22px;height:22px;fill:currentColor}

.lang{display:flex; gap:6px; margin-left:6px}
.langBtn{
  border:1px solid rgba(91,58,30,.22);
  background:#fff;
  padding:7px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  color:var(--brown);
}
.langBtn.active{
  border-color:rgba(180,138,58,.55);
  box-shadow:0 0 0 3px rgba(180,138,58,.18)
}

.toolbar{
  padding:12px 12px 0;
  background:transparent;
}
.search{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(91,58,30,.18);
  padding:10px 12px;
  border-radius:14px;
  background:#fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}
.search input{
  border:0;
  outline:none;
  flex:1;
  font-size:15px;
}
.cats{
  margin:10px 0 12px;
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:6px;
}
.cat{
  white-space:nowrap;
  border:1px solid rgba(91,58,30,.18);
  background:#fff;
  border-radius:999px;
  padding:9px 12px;
  font-weight:800;
  font-size:13px;
  color:var(--brown);
}
.cat.active{
  background:rgba(180,138,58,.14);
  border-color:rgba(180,138,58,.35)
}

.content{padding:12px}
.sectionTitle{
  margin:12px 4px 10px;
  font-size:22px;
  color:var(--brown);
}

/* 2 columns (2x2 grid look), square 1:1 images */
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.item{
  background:#fff;
  border:1px solid rgba(91,58,30,.15);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.thumb{
  width:100%;
  aspect-ratio: 1 / 1;
  background:#111;
}
.thumb img{
  width:100%; height:100%;
  object-fit:cover;
}
.itemBody{padding:10px}
.itemName{margin:0; font-size:16px}
.itemMeta{
  margin-top:4px;
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:13px;
}
.price{font-weight:900; color:var(--brown)}
.muted{color:var(--muted)}
.addRow{margin-top:10px; display:flex; gap:8px}
.addBtn{
  border:1px solid rgba(180,138,58,.35);
  background:linear-gradient(180deg, rgba(180,138,58,.18), rgba(180,138,58,.06));
  border-radius:12px;
  padding:10px 10px;
  font-weight:900;
  width:100%;
  color:var(--brown);
}

.cartBar{
  position:fixed;
  left:0; right:0; bottom:0;
  background:#fff;
  border-top:1px solid rgba(91,58,30,.18);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  z-index:30;
}
.cartBar__left{display:flex; gap:10px; align-items:center}
.cartIcon{font-size:18px}
.primary{
  border:0;
  padding:10px 12px;
  border-radius:12px;
  background:var(--brown);
  color:#fff;
  font-weight:900;
}

.modal{position:fixed; inset:0; z-index:60}
.modal.hidden{display:none}
.modal__backdrop{position:absolute; inset:0; background:rgba(0,0,0,.5)}
.modal__sheet{
  position:absolute;
  left:0; right:0; bottom:0;
  background:#fff;
  border-top-left-radius:22px;
  border-top-right-radius:22px;
  padding:14px;
  max-height:84vh;
  overflow:auto;
}
.modal__head{display:flex; justify-content:space-between; align-items:center}
.x{
  border:1px solid rgba(91,58,30,.18);
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  font-weight:900;
  color:var(--brown);
}

.cartItems{display:flex; flex-direction:column; gap:10px; margin:10px 0}
.cartRow{
  display:flex; gap:10px; align-items:center;
  border:1px solid rgba(91,58,30,.15);
  padding:10px;
  border-radius:14px;
}
.cartRow img{width:54px;height:54px;border-radius:12px;object-fit:cover}
.cartRow__mid{flex:1}
.cartRow__name{font-weight:900; color:var(--brown)}
.cartRow__sub{font-size:12.5px;color:var(--muted)}
.cartRow__right{display:flex; flex-direction:column; align-items:flex-end; gap:6px}
.stepper{display:flex; gap:6px; align-items:center}
.stepper button{
  width:34px;height:34px;border-radius:10px;
  border:1px solid rgba(91,58,30,.18);
  background:#fff;
  font-weight:900;
  color:var(--brown);
}

.form input, .form textarea{
  width:100%;
  border:1px solid rgba(91,58,30,.18);
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
  margin-top:10px;
}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.sumRow{display:flex; justify-content:space-between; align-items:center; margin:12px 2px 10px}
.waOrder{
  width:100%;
  border:0;
  border-radius:14px;
  padding:12px 12px;
  background:#25D366;
  color:#fff;
  font-weight:1000;
}
.ghost{
  width:100%;
  margin-top:10px;
  border:1px dashed rgba(91,58,30,.28);
  border-radius:14px;
  padding:12px 12px;
  background:#fff;
  font-weight:900;
  color:var(--brown);
}

@media (max-width:380px){
  .grid{grid-template-columns:1fr}
}


/* ensure cart fully visible on phones */
.modal__sheet{
  max-height: 92vh;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}
body{ padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

/* logo fit */
.logo{object-fit:contain; background:#fff}

/* lightbox */
.imgModal{position:fixed; inset:0; z-index:80}
.imgModal.hidden{display:none}
.imgModal__backdrop{position:absolute; inset:0; background:rgba(255,255,255,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);}
.imgModal__panel{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(92vw, 520px);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(180,138,58,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.imgModal__panel img{
  width:100%;
  height:auto;
  display:block;
}
.imgModal__cap{
  padding:10px 12px 12px;
  color:var(--brown);
  font-weight:800;
}
.imgModal__x{
  position:absolute;
  right:10px; top:10px;
  width:38px; height:38px;
  border-radius:12px;
  border:1px solid rgba(91,58,30,.18);
  background:rgba(255,255,255,.92);
  color:var(--brown);
  font-weight:900;
}


/* modal layering fix (backdrop must be behind sheet) */
.modal{position:fixed; inset:0; z-index:60}
.modal__backdrop{z-index:0}
.modal__sheet{z-index:1; position:relative}
