@font-face{
  font-family: "Vazir";
  src: 
    url("./../fonts/Vazir.woff2") format("woff2"),
    url("./../fonts/Vazir.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

* {
  font-family: "Vazir", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ececec;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: #222;
  position: relative;
  overflow-x: hidden;
  background: transparent;
}

/* بکگراند اصلی */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("./../img/background.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: translateZ(0);
  will-change: transform;
}

/* افکت روی بکگراند */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(251,212,144,0.03) 2%, transparent 2.5%);
  background-size: 35px 35px;
  pointer-events: none;
  z-index: -1;
}

/* HERO */
.hero {
  min-height: 65svh;
min-height: 65dvh;
  position: relative;
  text-align: center;
  padding: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
  overflow: hidden;
  background-image: url("./../img/heroBack.svg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  color: white;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border-radius: 40px;
  padding: 25px 35px;
  border: 1px solid rgba(251, 212, 144, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.lgo {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #fbd490;
  box-shadow: 0 0 0 3px rgba(251, 212, 144, 0.3), 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

/* FIXED clamp (vm -> vw) */
.hero h1 {
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #fff 30%, #fbd490 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero h2 {
  font-size: clamp(14px, 3vw, 18px);
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 20px;
}

.hero p {
  line-height: 1.8;
  font-size: clamp(13px, 2.5vw, 15px);
  margin-bottom: 24px;
  opacity: 0.85;
}

.contact {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fbd490;
  color: #2c2c2c;
  font-weight: 600;
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
  transition: all 0.2s;
}

.contact:hover {
  transform: scale(1.02);
  background: #ffdd99;
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* CATEGORIES */
.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* FIX iOS scroll */
  padding: 15px;
  scrollbar-width: none;
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(5px) saturate(180%);
  background: linear-gradient(135deg, rgba(224, 224, 224, 0.15) 0%, rgba(224, 224, 224, 0.3) 100%);
  border: 1px solid rgba(224, 224, 224, 0.25);
  border-radius: 12px;
  margin: 5px;
  position: relative;
  border-bottom: 3px solid rgba(251, 212, 144, 0.5);
  scroll-behavior: smooth;
  transform: translateZ(0);
will-change: scroll-position;
}

.categories button {
  width: 82px;
  height: 82px;
  min-width: 82px;
  min-height: 82px;

  padding: 8px;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  flex-shrink: 0;

  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;

  border: none;
  cursor: pointer;

  color: #353535;

  border-radius: 45px 45px 0 0;

  background-color: rgba(251, 212, 144, 0.92);

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.categories button.active {
  background-color: #fbd490;
  border: 3px solid rgba(251, 212, 144, 0.55);
  transform: scale(1.02);
}

.categories button.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20%;
  width: 60%;
  height: 3px;
  background: #fbd490;
  border-radius: 3px;
  box-shadow: 0 0 5px #fbd490;
}

/* MENU */
.menu-container {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;

  padding: 14px;
  opacity: 0;
  transition: 0.25s;
}

.menu-item {
  padding: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  overflow: hidden;
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(5px) saturate(180%);
  background-color: rgba(224, 224, 224, 0.25);
  border: 1px solid rgba(251, 212, 144, 0.3);
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transform: translateZ(0);
will-change: transform, opacity;
min-width: 0;
}

.menu-item.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(251, 212, 144, 0.8);
  background-color: rgba(224, 224, 224, 0.35);
}

.menu-item img {
  width: 100%;
  aspect-ratio: 1 / 1;

  height: auto;

  object-fit: cover;
  border-radius: 12px;

  display: block;
}

.menu-item img:hover {
  transform: scale(1.04);
}

.menu-item h3,
.menu-item p,
.menu-item span {
  padding: 10px;
}

.item-info span{
padding: 10px;
}

/* LOADER */
.lod {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* EMPTY STATE */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(224, 224, 224, 0.4);
  border: 1px dashed #fbd490;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.empty-state h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero-content {
    padding: 15px 20px;
  }

  .categories button {
    width: 70px;
    height: 70px;
    padding: 10px;
  }

  .hero h1 {
    font-size: 32px;
  }
}

/* TEXT FIX */
.menu-item .item-info h3,
.menu-item .item-info p,
.menu-item .item-info span {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.menu-item .item-info {
  padding: 5px 0 0 0;
}

.menu-item .item-info p {
  font-size: 13px;
  opacity: 0.85;
}

.menu-item .item-info span {
  display: inline-block;
  margin: 5px;
  font-weight: 600;
  background: rgba(0,0,0,0.3);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 14px;
  }
  
 @media (hover: hover) and (pointer: fine) {
  .menu-item:hover {
    transform: translateY(-4px);
  }
} 
  
