/* ============================
   استایل‌های اختصاصی صفحه محصول
=============================== */

/* فونت فارسی Vazirmatn - نسخه محلی */
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Vazirmatn", system-ui, Segoe UI, Roboto, sans-serif;
}

/* هدر ثابت مخصوص صفحه محصول */
.glass-header.static,
.glass-header.static.scrolled {
  background-color: rgba(15, 15, 15, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
}

/* گالری محصول */
#prod-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#thumbs .thumb {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#thumbs .thumb[aria-pressed="true"] {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.6);
}

/* باکس مشخصات فنی */
#specs {
  scroll-margin-top: 100px; /* جبران هدر ثابت */
}

/* باکس دانلودها */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.download-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* متن دانلود قرمز + افکت هاله */
.download-link span:last-child {
  color: #ef4444; /* red-500 */
  font-weight: 600;
  transition: color 0.3s ease;
}

.download-link:hover span:last-child {
  color: #f87171; /* red-400 */
}

/* آیکون قرمز روی هاور */
.download-link:hover span.text-xl {
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.8));
}

/* هاله قرمز روی کل کارت */
.download-link:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
  background-color: rgba(239, 68, 68, 0.05);
}

/* بزرگ‌تر کردن تصاویر thumbnail بدون دست‌زدن به JS */
#thumbs img {
    width: 96px;   /* 24rem Tailwind ≈ w-24 */
    height: 96px;  /* 24rem Tailwind ≈ h-24 */
  }

  /* مگامنو در صفحات محصول */
.glass-header .megamenu-style {
    background: rgba(30, 30, 30, 0.80);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
  }
  
  .glass-header.scrolled .megamenu-style {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  }

/* Product-only: نمایش بدون پرش، بدون دخالت در transform های داخلی منوها */
#site-header {
  opacity: 0;              /* تا آماده شود، نامرئی اما در جریان لایه‌بندی */
}

/* وقتی آماده شد، نشان بده (بدون هیچ انیمیشن) */
#site-header.is-ready {
  opacity: 1;
}

/* فقط در زمان هیدریشن: ترنزیشن/انیمیشن‌ها را خاموش کن
   (توجه: transform را عمداً دست نمی‌زنیم تا dropdown ها کار کنند) */
#site-header.hydrating,
#site-header.hydrating * {
  transition: none !important;
  animation: none !important;
}