/* ════════════════════════════════
   ROOT & BASE
════════════════════════════════ */
:root {
  --primary:   #3e2723;
  --secondary: #6d4c41;
  --accent:    #d4a96a;
  --accent2:   #f5e6d0;
  --bg:        #fdf6ee;
  --card:      #ffffff;
  --text:      #2c1810;
  --subtext:   #7a5c4e;
  --shadow:    0 4px 24px rgba(62,39,35,0.10);
  --radius:    18px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 60px;
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #1a0a06 0%, #3e2723 40%, #6d4c41 100%);
  padding: 50px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated background circles */
.hero-bg-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.c1 {
  width: 300px; height: 300px;
  background: var(--accent);
  top: -100px; right: -80px;
  animation: floatCircle 8s ease-in-out infinite;
}

.c2 {
  width: 200px; height: 200px;
  background: #fff;
  bottom: -80px; left: -50px;
  animation: floatCircle 10s ease-in-out infinite reverse;
}

.c3 {
  width: 150px; height: 150px;
  background: var(--accent);
  top: 40%; left: 30%;
  animation: floatCircle 6s ease-in-out infinite 2s;
}

@keyframes floatCircle {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}

/* Hero inner content */
.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.hero-time {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px;
  padding: 5px 12px;
  color: #a5d6a7;
  font-size: 0.78rem;
}

.status-dot {
  width: 7px; height: 7px;
  background: #69f0ae;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* Logo */
.cafe-logo-wrap {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 20px;
}

.cafe-logo {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, var(--accent), #e8c080);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 4px rgba(212,169,106,0.25);
}

.logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(212,169,106,0.4);
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Texts */
.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-sub {
  color: var(--accent);
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 24px auto;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px 10px;
  max-width: 320px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.stat-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

/* Badges */
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 30px;
  padding: 7px 16px;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}

.hero-badge i {
  color: var(--accent);
}

/* ════════════════════════════════
   TABS
════════════════════════════════ */
.tabs-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding: 12px 16px;
  box-shadow: 0 2px 16px rgba(62,39,35,0.09);
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 2px solid var(--accent2);
  background: var(--card);
  color: var(--subtext);
  border-radius: 30px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  outline: none;
}

.tab-btn i {
  font-size: 0.85rem;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--secondary);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(62,39,35,0.28);
}

/* ════════════════════════════════
   SECTION TITLE
════════════════════════════════ */
.section {
  padding: 0 14px;
  margin-top: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.icon-wrap {
  width: 42px; height: 42px;
  background: var(--accent2);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.section-title h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  flex: 1;
}

.count-badge {
  font-size: 0.75rem;
  color: var(--subtext);
  background: var(--accent2);
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ════════════════════════════════
   MENU GRID & CARDS
════════════════════════════════ */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 360px) {
  .menu-grid { grid-template-columns: 1fr; }
}

@media (min-width: 600px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.menu-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1.5px solid transparent;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(62,39,35,0.15);
  border-color: var(--accent);
}

/* Wide card */
.menu-card.wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
}

.menu-card.wide .card-image {
  width: 130px;
  min-width: 130px;
  height: auto;
  min-height: 110px;
  font-size: 3.5rem;
  border-radius: 0;
}

/* Card image area */
.card-image {
  width: 100%;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-image .emoji {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* Badges */
.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.badge-popular {
  background: var(--accent);
  color: var(--primary);
}

.badge-new {
  background: #e53935;
  color: #fff;
}

.badge-hot {
  background: #ff7043;
  color: #fff;
}

/* Card body */
.card-body {
  padding: 10px 12px 12px;
}

.menu-card.wide .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
}

.card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.72rem;
  color: var(--subtext);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}

.price small {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--subtext);
  margin-right: 2px;
}

/* ════════════════════════════════
   SECTIONS VISIBILITY
════════════════════════════════ */
.menu-section {
  display: none;
}

.menu-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════
   INFO BAR
════════════════════════════════ */
.info-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 22px 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  margin: 28px 14px 0;
  border-radius: var(--radius);
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(62,39,35,0.2);
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  min-width: 90px;
}

.info-item i {
  color: var(--accent);
  font-size: 1.3rem;
}

.info-item span {
  font-size: 0.7rem;
  opacity: 0.65;
}

.info-item strong {
  font-size: 0.82rem;
  text-align: center;
}

/* ════════════════════════════════
   SCROLL TOP BUTTON
════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 18px;
  width: 46px; height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(62,39,35,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  text-align: center;
  padding: 28px 16px 10px;
  color: var(--subtext);
  font-size: 0.82rem;
}

.footer-sub {
  margin-top: 4px;
  font-size: 0.72rem;
  opacity: 0.5;
}
