@font-face {
  font-family: 'Vazir';
  src: url('Vazir.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: 400;
}

header {
  background: var(--primary);
  padding: 12px 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  gap: 16px;
}

.logo {
  height: 44px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }
.logo.invert { filter: brightness(0) invert(1); }
#navLogo {
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#navLogo.logo-ready {
  opacity: 1;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.icons {
  display: flex;
  gap: 12px;
  font-size: 20px;
}

.icon-btn {
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.icon-btn:active {
  transform: scale(0.95);
}

.tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 14px 16px 0;
  scrollbar-width: none;
  width: 100%;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 10px 0;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
}

.tab:hover {
  color: rgba(255,255,255,0.95);
}

.tab.active {
  color: white;
  font-weight: 700;
}

.tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(-50%);
}

.tab.active::after {
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.menu-main {
  flex: 1;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 769px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.item {
  background: linear-gradient(135deg, var(--gray-light) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  padding: 20px 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  position: relative;
}

.item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s, transform 0.4s;
}

.item:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.img-wrapper {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.img-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--gray);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  background: #444;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.item:hover .img-circle {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transform: scale(1.05);
}

.skeleton {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  position: absolute;
  top: 0; left: 0;
}

.item img.loaded {
  opacity: 1;
}

.name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: #fff;
  position: relative;
  z-index: 1;
}

.name-en {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.price-btn {
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 12px;
  min-width: 110px;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: auto;
  position: relative;
  z-index: 1;
  border: none;
  cursor: pointer;
}

.price-btn:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

.price-btn:active {
  transform: translateY(-1px);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.category { display: none; }
.category.active { display: block; }

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal.active { display: flex; }

.modal-content {
  background: linear-gradient(135deg, var(--gray-light) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: 24px;
  padding: 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.modal h3 {
  margin-bottom: 14px;
  color: var(--title, #E63946);
  font-size: 20px;
  font-weight: 800;
}
.modal p {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  width: 100%;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
  margin-top: 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}
.footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: color 0.3s ease;
}
.footer a:hover {
  color: var(--primary);
}

.sms-newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.sms-newsletter-input {
  min-width: 220px;
  flex: 1 1 260px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}
.sms-newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}
.sms-newsletter-input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
}
.sms-newsletter-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
  font-size: 14px;
}
.sms-newsletter-btn:hover {
  background: var(--hover);
}
.sms-newsletter-msg {
  margin-top: 10px;
  min-height: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  text-align: center;
  transition: all 0.3s ease;
}
.sms-newsletter-msg.success {
  color: #4ade80;
}
.sms-newsletter-msg.error {
  color: #f87171;
}

.sms-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}
.sms-popup {
  width: min(420px, 100%);
  background: linear-gradient(135deg, var(--bg2) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: slideInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}
.sms-popup-close {
  appearance: none;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  float: left;
  transition: all 0.2s ease;
}
.sms-popup-close:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.1);
}
.sms-popup-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-align: center;
}
.sms-popup-text {
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 16px;
  text-align: center;
  font-size: 14px;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
  }

  .item {
    padding: 16px 12px;
  }

  .img-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 12px;
  }

  .name {
    font-size: 13px;
  }

  .name-en {
    font-size: 11px;
  }

  .price-btn {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 90px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .modal-content {
    padding: 24px;
    border-radius: 20px;
  }
}

.item-large {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--gray-light) 0%, rgba(255,255,255,0.02) 100%) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

.item-large-img {
  width: 100% !important;
  height: 180px !important;
  overflow: hidden !important;
  position: relative !important;
  background: var(--gray) !important;
  flex-shrink: 0 !important;
}

.item-large-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease, transform 0.5s ease !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

.item-large-img img.loaded { opacity: 1 !important; }
.item-large:hover .item-large-img img { transform: scale(1.06) !important; }

.item-large-body {
  padding: 16px 14px 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
}

.item-large-body .name {
  font-size: 15px !important;
  margin-bottom: 2px !important;
  text-align: right !important;
}

.item-large-body .name-en {
  font-size: 12px !important;
  margin-bottom: 10px !important;
  text-align: right !important;
}

.item-large-body .price-btn {
  width: 100% !important;
  text-align: center !important;
  margin-top: auto !important;
}

[data-menu-layout="wide"] .menu-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

@media (min-width: 769px) {
[data-menu-layout="wide"] .menu-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

.item-wide {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  padding: 12px !important;
  background: var(--bg2) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 14px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-align: right !important;
}

.item-wide:hover {
  border-color: var(--primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
}

.item-wide-thumb {
  width: 84px !important;
  height: 84px !important;
  min-width: 84px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: var(--gray) !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.item-wide-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

.item-wide-thumb img.loaded { opacity: 1 !important; }
.item-wide-thumb .skeleton { border-radius: 8px !important; }

.item-wide-details {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 84px !important;
  min-width: 0 !important;
}

.item-wide-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.item-wide-details .name {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--text) !important;
}

.item-wide-details .name-en {
  font-size: 0.78rem !important;
  color: var(--text) !important;
  opacity: 0.55 !important;
  line-height: 1.45 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 4px 0 6px !important;
}

.item-wide-price {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  text-align: left !important;
  direction: ltr !important;
  unicode-bidi: plaintext !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  min-width: auto !important;
  width: auto !important;
  margin: 0 !important;
}

.item-wide-price span {
  font-size: 0.7rem !important;
  font-weight: 400 !important;
  opacity: 0.55 !important;
  margin-right: 2px !important;
}

@media (max-width: 768px) {
  .item-large-img { height: 150px !important; }
  .item-wide { padding: 10px !important; gap: 12px !important; }
  .item-wide-thumb { width: 72px !important; height: 72px !important; min-width: 72px !important; }
  .item-wide-details { min-height: 72px !important; }
  .item-wide-details .name { font-size: 0.88rem !important; }
  .item-wide-price { font-size: 0.88rem !important; }
}
