
@font-face {
  font-family: dirooz;
  src: url("/font/Dirooz-FD.woff2");
}
@font-face {
  font-family: estedad;
  src: url("/font/Estedad.ttf");
}
@font-face {
  font-family: iranNastaliq;
  src: url("/font/IranNastaliq.ttf");
}
@font-face {
  font-family: sahel;
  src: url("/font/Sahel-FD.ttf");
}
@font-face {
  font-family: shabnam;
  src: url("/font/Shabnam-Medium.ttf");
}
 
 @font-face {
  font-family: tanha;
  src: url("/font/Tanha.ttf");
}
@font-face {
  font-family: yekan;
  src: url("/font/Yekan.ttf");
}
@font-face {
  font-family: arsoo;
  src: url("/font/FP_Arsoo.ttf");
}
@font-face {
  font-family: iranianSans;
  src: url("/font/IranianSans.ttf");
}

  body {

        color: #1a1a1a;
        overflow-x: hidden;
        user-select: none;
        -moz-user-select: none;
        -webkit-user-drag: none;
        -webkit-user-select: none;
      }
      .glass {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
      }
      .no-scrollbar::-webkit-scrollbar {
        display: none;
      }
      #info-content{
      max-width: 450px;
      max-height: 90vh;
      }


.animate-pulse-ring {
  animation: pulse-ring 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.pulse-green {
  animation: pulse-green 2s infinite;
}

.pulse-red {
  animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}
      .btn-premium {
        background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
        box-shadow: 0 10px 20px -5px rgba(244, 63, 94, 0.4);
      }
      .food-card {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      }
      .active-pill {
        background: var(--primary-gradient) !important;
        color: white !important;
        transform: scale(1.05);
      }
      .pulse-green {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
        animation: pulse 2s infinite;
      }
      @keyframes pulse {
        70% {
          box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        }
      }
      .bottom-sheet {
        transform: translateY(100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .bottom-sheet.active {
        transform: translateY(0);
      }
      .variant-btn.active {
        border-color: #f43f5e;
        background: #fff1f2;
        color: #f43f5e;
      }
      #lightbox-image {
    transition: opacity 0.3s ease;
}
#lightbox-image.opacity-0 {
    opacity: 0;
}

.gallery-slide {
    width: 100%;
}
      /* CSS جدید - اضافه کن به استایل‌های موجودت */
#tracking-modal {
    display: none; /* ابتدا مخفی */
}

#tracking-modal.active {
    display: flex; /* وقتی فعال شد، وسط صفحه نشون بده */
    z-index: 9999999999999999999999999;
}

/* انیمیشن نرم ورود مادل */
#tracking-modal .relative {
  
    transform-origin: center;
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


.modal-content h3{
    color: #fff;
}
.reviews-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
  }
  
  .section-title {
    font-size: 1.35rem;
    font-weight: 600;
 
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255,199,0,0.3), transparent);
  }
  
  /* لیست نظرات */
  .reviews-list {

    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,199,0,0.3) transparent;
  }
  
  .reviews-list::-webkit-scrollbar {
    width: 6px;
  }
  .reviews-list::-webkit-scrollbar-thumb {
    background: rgba(255,199,0,0.3);
    border-radius: 20px;
  }
  
  /* کارت نظر */
  .review-item {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgb(91 91 91 / 16%);
    border-radius: 16px;
    padding: 1.1rem 1.3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  
  .review-item:hover {
    transform: translateY(-3px);
  
  }
  
  .review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
  }
  
  .reviewer-name {
    font-weight: 600;
    color: var(--text-auto);
    font-size: 0.95rem;
  }
  
  .review-stars {
    color: #ffc700;
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
  
  .review-text {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  
  .admin-reply {
    background: rgba(255, 199, 0, 0.1);
    border-left: 3px solid #ffc700;
    padding: 10px 14px;
    margin: 12px 0;
    border-radius: 8px;
    color: #ffeb9f;
    font-size: 0.92rem;
  }
  
  .review-item small {
    color: #666;
    font-size: 0.8rem;
  }
  .loading-reviews {
    text-align: center;
    padding: 2rem 0;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .no-reviews {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #777;
    background: rgba(255,255,255,0.04);
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.1);
  }
  
  .no-reviews i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    opacity: 0.6;
  }
  
  .no-reviews p {
    margin: 0;
    font-size: 0.95rem;
  }
  /* دکمه ثبت نظر */
  .btn-review {
    width: 100%;
    margin-top: 1.3rem;
    padding: 14px 20px;
    background: rgba(255, 199, 0, 0.15);
    color: #ffc700;
    border: 1px solid rgba(255, 199, 0, 0.4);
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .btn-review:hover {
    background: rgba(255, 199, 0, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 199, 0, 0.25);
  }
  
  /* ====================== مودال ثبت نظر ====================== */
  .review-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  
  .review-modal.active {
    display: flex;
  }
  
  .modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 199, 0, 0.2);
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    padding: 2rem 1.8rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  @keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
  }
  
  .modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #888;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
  }
  
  .modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  /* ستاره‌ها */
  .star-rating {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 2.4rem;
    margin: 1.2rem 0;
    cursor: pointer;
  }
  
  .star-rating span {
    color: #444;
    transition: all 0.2s;
  }
  
  .star-rating span:hover,
  .star-rating span.active {
    color: #ffc700;
    transform: scale(1.2);
  }
  
  .rating-text {
    text-align: center;
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
  }
  
  /* تکست‌اریا */
  #reviewText {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 16px;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
    min-height: 110px;
    margin-bottom: 1.2rem;
  }
  
  #reviewText:focus {
    outline: none;
    border-color: #ffc700;
    box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.15);
  }
  
  /* نوع نظر */
  .review-type-select {
    display: flex;
    gap: 16px;
    margin-bottom: 1.5rem;
  }
  
  .review-type-select label {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-size: 0.95rem;
  }
  
  .review-type-select input[type="radio"] {
    display: none;
  }
  
  .review-type-select input:checked + span,
  .review-type-select label:has(input:checked) {
    background: rgba(255, 199, 0, 0.2);
    border-color: #ffc700;
    color: #ffc700;
  }
  
  /* دکمه ارسال */
  .btn-submit-review {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ffc700, #ffaa00);
    color: #000;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 199, 0, 0.4);
  }
/* بخش متنی */

/* اسکرول نرم و بدون اسکرول‌بار */
#info-content::-webkit-scrollbar {
    display: none;
}
#info-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#info_re::-webkit-scrollbar {
      display: none; /* کروم، سافاری، اج */
    }



#info-modal.active {
    display: flex; /* وقتی فعال شد، وسط صفحه نشون بده */
    z-index: 9999999999999999999;
}
#info-modal.active {
    opacity: 1;
    pointer-events:auto;
}

#info-modal.active #info-content {
    scale: 1;
}


#tracking-content::-webkit-scrollbar,
#restaurant-info-content::-webkit-scrollbar {
    display: none;
}

#tracking-content,
#restaurant-info-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* انیمیشن ورود مادل محصول از پایین به وسط صفحه - خیلی نرم و حرفه‌ای */
#product-sheet:not(.hidden) > div:nth-child(2) {
  animation: modalSlideUp 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* مخفی کردن اسکرول‌بار اما نگه داشتن اسکرول نرم */
#product-detail-content::-webkit-scrollbar {
  display: none;
}
#product-detail-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* انیمیشن نرم باز شدن سبد خرید از پایین */
#cart-sheet:not(.hidden) > div:nth-child(2) {
  animation: slideUpCart 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes slideUpCart {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* اسکرول نرم و بدون اسکرول‌بار ظاهری */
#cart-content::-webkit-scrollbar {
  display: none;
}
#cart-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#heart-click{
  cursor: pointer;
}
@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* مخفی کردن اسکرول‌بار اما نگه داشتن قابلیت اسکرول */
#info-content::-webkit-scrollbar {
    display: none;
}
#info-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

