@font-face {
  font-family: barbod;
  src: url(media/vazir/Vazir-Black.woff2) format('woff2'),
       url(media/vazir/Vazir-Black.woff) format('woff');
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --text: #ffffff;
  --muted: #cfcfcf;
  --accent: #FF0000;
  --border: rgba(255,255,255,.12);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: barbod, sans-serif;
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ===== هدر ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  backdrop-filter: blur(10px);
  background: rgba(18,18,18,.55);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  direction: rtl;
}

/* ===== لوگو ===== */
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  transform: translateX(-80px);
  opacity: 0;
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s;
  flex-shrink: 0;
}
.logo span { color: #FF0000; }

/* ===== منو ===== */
/* ===== منو ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  direction: rtl;
}



.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: .98rem;
  transform: translateY(-28px);
  opacity: 0;
  transition:
    transform .7s cubic-bezier(.2,.8,.2,1),
    opacity .7s cubic-bezier(.2,.8,.2,1),
    color .2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FF0000;
  transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #FF0000; }

/* ===== انیمیشن ورود ===== */
body.loaded .logo { transform: translateX(0); opacity: 1; }
body.loaded .nav-link { transform: translateY(0); opacity: 1; }

.nav-link:nth-child(1) { transition-delay: .10s; }
.nav-link:nth-child(2) { transition-delay: .18s; }
.nav-link:nth-child(3) { transition-delay: .26s; }
.nav-link:nth-child(4) { transition-delay: .34s; }
.nav-link:nth-child(5) { transition-delay: .42s; }
.nav-link:nth-child(6) { transition-delay: .50s; }
.nav-link:nth-child(7) { transition-delay: .58s; }


/* ===== همبرگر ===== */
.hamburger {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background .2s;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,.1); }

/* ===== ریسپانسیو موبایل ===== */
@media (max-width: 800px) {
  .logo {
    transform: translateX(0);
    opacity: 1;
  }

  .hamburger { display: inline-flex; align-items: center; }

  .nav {
    display: none;
    flex-direction: column;
    direction: rtl;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: rgba(12,12,12,.97);
    backdrop-filter: blur(14px);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 49;
    align-items: flex-end;
    gap: 0;
  }
  .nav.open { display: flex; }

  .nav-link {
    transform: translateY(0) !important;
    opacity: 1 !important;
    padding: 12px 8px;
    width: 100%;
    text-align: right;
    border-bottom: 1px solid var(--border);
    transition-delay: 0s !important;
  }
  .nav-link:last-child { border-bottom: none; }
}

/* ===== صفحه محصول ===== */
.page-main.product-page-section {
  padding-top: 90px;
  padding-bottom: 120px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-container {
  background-color: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px 40px 70px 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  max-width: 860px;
  width: 100%;
  position: relative;
  text-align: right;
  direction: rtl;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s ease, transform .9s ease;
}
.product-container.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== عکس بزرگ وسط ===== */
.product-image {
  width: 100%;
  text-align: center;
}

#main-product-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid rgba(255,0,0,.5);
  box-shadow: 0 0 28px rgba(255,0,0,.4);
  transition: transform .4s ease, box-shadow .4s ease;
}
#main-product-image:hover {
  transform: scale(1.02);
  box-shadow: 0 0 45px rgba(255,0,0,.65);
}

/* ===== اطلاعات زیر عکس ===== */
.product-details {
  width: 100%;
  text-align: right;
  direction: rtl;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1#product-title {
  font-size: 2.4em;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255,0,0,.4);
  margin-bottom: 24px;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease .3s, transform .8s ease .3s;
}
.product-container.in-view h1#product-title {
  opacity: 1;
  transform: translateY(0);
}

.product-description {
  color: #ccc;
  line-height: 1.9;
  font-size: 1.05em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease .5s, transform .8s ease .5s;
}
.product-container.in-view .product-description {
  opacity: 1;
  transform: translateY(0);
}

.product-description h3 {
  color: #FF0000;
  font-weight: 900;
  font-size: 1.15em;
  margin-top: 22px;
  margin-bottom: 8px;
}
.product-description p {
  font-weight: 300;
  text-align: right;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 8px;
}
.product-description ul {
  padding-right: 20px;
  margin-bottom: 10px;
}
.product-description li {
  font-weight: 300;
  margin-bottom: 6px;
}
.product-description strong { color: #fff; font-weight: 700; }
.product-description a { color: #FF0000; text-decoration: none; }
.product-description a:hover { text-decoration: underline; }

/* ===== دکمه تماس ===== */
a#contact-us-btn {
  background-color: rgba(255,0,0,.85);
  color: white;
  padding: 15px 50px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,0,0,.5);
  font-family: barbod, sans-serif;
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
  transition: background .3s, box-shadow .3s, transform .3s;
  text-decoration: none;
}
a#contact-us-btn:hover {
  background-color: #ff0000;
  transform: translateX(-50%) translateY(-4px);
  box-shadow: 0 14px 30px rgba(255,0,0,.65);
}
a#contact-us-btn:active {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 2px 5px rgba(255,0,0,.5);
}

/* ===== فوتر ===== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  color: #999;
  padding: 28px 0;
  text-align: center;
}
