:root{
  --bg: #0f1012;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --line: rgba(255,255,255,.14);
  --accent: #d6b16d; 
  --accent2: #9be7c4;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(214,177,109,.18), transparent 55%),
    radial-gradient(700px 450px at 85% 0%, rgba(155,231,196,.12), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  font-family: "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* ==================== HEADER ==================== */
.top {
  position: fixed;
  top: 0;           /* بالای صفحه */
  left: 0;
  width: 100%;
  z-index: 1000;    /* بالاتر از همه عناصر */
  background: radial-gradient(circle at 50% 0%, rgba(214,177,109,0.15), rgba(15,16,18,1) 90%);
  padding: 28px 18px 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top.is-active {
  transform: translateY(0);
  opacity: 1;
}

.brand{
  text-align: center;
  padding: 22px 14px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.logo-mark{
  width: 200px;
  height: 65px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cafe-name{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: .5px;
  text-transform: lowercase;
  color: #fff;
}

.tagline{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ==================== TABS ==================== */
.tab-btn{
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.tab-btn .label{ font-size: 14px; }
.tab-btn .icon{ display: inline-flex; color: rgba(255,255,255,.9); }

.tab-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.05); }
.tab-btn.is-active{
  border-color: rgba(214,177,109,.5);
  background: linear-gradient(180deg, rgba(214,177,109,.18), rgba(255,255,255,.04));
}

/* ==================== MAIN CONTENT ==================== */
.tabs {
  margin-top: 20px; /* فاصله از پایین هدر */
  z-index: 999;
  position: relative; /* نباید fixed باشه */
  display: flex;
  justify-content: center;
}

.main {
  margin-top: 400px; /* فاصله از تب‌ها تا محتوا */
}
.panel{
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head{
  padding: 18px 18px 8px;
  border-bottom: 1px solid var(--line);
  margin-top: 0; /* حذف 300px قدیمی */
}
.panel-head h2{
  margin: 0 0 4px;
  font-size: 18px;
}
.panel-head p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.featured-head{
  border-top: 1px solid var(--line);
}

.grid{
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  grid-column: span 12;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.03));
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
@media (min-width: 640px){ .card{ grid-column: span 6; } }
@media (min-width: 980px){ .card{ grid-column: span 4; } }

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(214,177,109,.35);
}

.thumb{
  height: 150px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120px 80px at 35% 35%, rgba(214,177,109,.24), transparent 60%),
    radial-gradient(140px 80px at 65% 65%, rgba(155,231,196,.18), transparent 65%),
    rgba(255,255,255,.04);
  position: relative;
}

.badge{
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
}

.card-body{ padding: 14px; }
.row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.title{
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.price{
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.desc{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  min-height: 44px;
}

.fade-in{
  animation: fadeIn .22s ease both;
}
@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

.footer{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 18px 28px;
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}
.a{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}