@import url('/fonts/font.css');

:root {
  --primary-color: #ff3c78;
  --accent-color: #00ffff;
  --black: #000;
  --white: #fff;
  --grey: #aaa;
  --bg-dark: #0f182a;
  --text-light: rgba(255, 255, 255, 0.9);
  --shadow-glow: 0 0 10px rgba(255, 255, 255, 0.2),
                 0 0 20px rgba(255, 0, 255, 0.3),
                 0 0 30px rgba(0, 255, 255, 0.3);
}

body {
  font-family: shabnam, sans-serif;
  background: var(--bg-dark);
  margin: 0;
  padding: 0;
  direction: rtl;
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

/* بخش بالای هدر */
.top-txt {
  background-color: var(--black);
  padding: 15px 0;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  color: var(--text-light);
  font-size: 14px;
}

.head-txt {
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  animation: pulseColor 25s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255,0,0,0.5),
               0 0 20px rgba(0,255,0,0.5),
               0 0 30px rgba(0,0,255,0.5);
}

@keyframes pulseColor {
  0%   { color: red; }
  25%  { color: #00ff99; }
  50%  { color: #ff9900; }
  75%  { color: #00ffff; }
  100% { color: red; }
}

.head a {
  text-decoration: none;
  color: var(--text-light);
  margin: 0 10px;
  transition: color 0.3s ease;
}

.head a:hover {
  color: var(--accent-color);
}

/* دکمه‌های ورود و ثبت‌نام */
.button-container {
  display: flex;
  gap: 10px;
}

.custom-button {
  background: linear-gradient(45deg, #ff3c78, #ff9900);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #ff3c78;
}

/* لوگو */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  order: 1;
}

.logoZ {
  width: 90px;
}

/* متن متحرک */
.magic-text {
  order: 3;
  font-size: 28px;
  font-weight: bold;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(270deg, #00ffff, #ff00ff, #ff9900, #00ff99);
  background-size: 800% 800%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  text-shadow: var(--shadow-glow);
  transition: transform 0.3s ease;
  margin-left: 2rem;
}

.magic-text:hover {
  transform: scale(1.05);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ناوبر */
.navbar {
  position: fixed;
  width: 100%;
  top: 66px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.navbar--top {
  top: 0 !important;
  background-color: rgba(15, 24, 42, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: top 0.3s ease, background-color 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  flex-direction: row;
  position: relative;
}

/* منو */
.menu-items {
  order: 2;
  display: flex;
  flex-direction: row;
  margin-right: 3rem;
  transition: all 0.3s ease;
}

.menu-items li {
  list-style: none;
  margin-left: 1.5rem;
  font-size: 1.2rem;
}

.navbar-container ul a {
  text-decoration: none;
  color: var(--white);
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-container ul a:after {
  content: "";
  position: absolute;
  background: var(--primary-color);
  height: 3px;
  width: 0;
  left: 0;
  bottom: -10px;
  transition: 0.3s;
}

.navbar-container ul a:hover {
  color: var(--accent-color);
}

.navbar-container ul a:hover:after {
.dropdown-container {
        position: relative;
        display: inline-block;
    }

    .dropdown-toggle {
        background-color: #3498db;
        color: white;
        padding: 10px 15px;
        border: none;
        border-radius: 8px;
        font-weight: bold;
        cursor: pointer;
        font-family: shabnam;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 45px;
        right: 0;
        background-color: #fff;
        min-width: 160px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        z-index: 2000;
        overflow: hidden;
    }

    .dropdown-menu a {
        color: #333;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        font-family: shabnam;
        transition: background-color 0.3s;
    }

    .dropdown-menu a:hover {
        background-color: #f1f1f1;
    }
@media (max-width: 1024px) {
  .neon-box {
    width: 100%;
    margin-left: 0;
    height: auto;
    flex-direction: column;
    padding: 20px;
    border-radius: 30px;
  }

  .best-seller {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .best-p1 {
    width: 90%;
    max-width: 300px;
    margin: 10px auto;
  }

  .best-p1 img {
    width: 100%;
    height: auto;
    border-radius: 15px;
  }

  .sjmrate {
    width: 45px;
    font-size: 14px;
  }

  .agedes {
    font-size: 0.8rem;
    padding: 2px 6px;
  }

  .hover-text {
    font-size: 0.9rem;
    padding: 6px;
  }

  .top-sales-header {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .top-sales-header h2,
  .top-sales-header p {
    font-size: 1rem;
  }

  .view-all-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .l-news {
    flex-direction: column;
    align-items: center;
    gap: 140px;
    padding: 0 10px;
  }

  .l-news1, .l-news2, .l-news3 {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .news1-conte, .news2-conte, .news3-conte {
    position: static;
    padding: 15px;
    margin-top: 10px;
    text-align: center;
  }

  .news-heading h2 {
    font-size: 24px;
  }

  .news-heading p {
    font-size: 16px;
  }

  .custom-button {
    font-size: 18px;
    padding: 10px 20px;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 10px;
  }

  .footer-container > div {
    margin-bottom: 30px;
  }

  .footer-container img {
    width: 150px;
    height: auto;
  }

  .f-mail {
    flex-direction: column;
    gap: 10px;
  }

  .f-design .f-design-txt {
    font-size: 13px;
  }

  .menu-items {
    display: none;
    flex-direction: column;
    background-color: rgba(246, 241, 241, 0.95);
    position: absolute;
    top: 100px;
    right: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 999;
  }

  .menu-items.show {
    display: flex;
  }

  .menu-items li {
    margin: 10px 0;
    text-align: center;
  }

  .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }

  .logoZ {
    width: 90px;
  }

  .magic-text {
    font-size: 20px;
    margin-right: 0;
    text-align: center;
  }

  #backgroundImage {
    height: 400px;
  }
}

/* 🖥 مانیتورهای بزرگ (عرض بیشتر از 1440px) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .magic-text {
    font-size: 32px;
    margin-right: -800px;
  }

  .menu-items li {
    font-size: 1.4rem;
  }

  .neon-box {
    width: 1350px;
    height: 500px;
  }

  .seller .best-p1 {
    width: 280px;
    height: 400px;
  }
}

/* 💻 دسکتاپ معمولی (1025px تا 1439px) */
@media (min-width: 1025px) and (max-width: 1439px) {
  .container {
    max-width: 1200px;
  }

  .magic-text {
    font-size: 28px;
    margin-right: -600px;
  }

  .menu-items li {
    font-size: 1.2rem;
  }

  .neon-box {
    width: 1200px;
    height: 480px;
  }

  .seller .best-p1 {
    width: 260px;
    height: 380px;
  }
}

/* 📲 تبلت افقی و لپ‌تاپ کوچک (769px تا 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  body {
    font-size: 15px;
  }

  .container {
    width: 90%;
  }

  .logo {
    margin-right: 30px;
    flex-direction: row;
    justify-content: flex-start;
  }

  .magic-text {
    font-size: 24px;
    margin-right: -300px;
  }

  .navbar-container {
    flex-direction: row;
    height: auto;
    padding: 10px 20px;
  }

  .menu-items {
    flex-direction: row;
    justify-content: center;
    margin-right: 1rem;
  }

  .menu-items li {
    margin: 10px;
    font-size: 17px;
  }

  #backgroundImage {
    height: 600px;
  }

  .head-txt {
    font-size: 17px;
  }

  .neon-box {
    width: 100%;
    margin-left: 0;
    height: auto;
    flex-direction: column;
  }

  .collections {
    flex-direction: column;
  }

  .seller {
    flex-direction: column;
    align-items: center;
  }

  .form {
    flex-direction: column;
  }

  .form .form-txt,
  .form .form-details {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .l-news {
    flex-direction: column;
    gap: 30px;
  }
}

/* 📳 موبایل متوسط (481px تا 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  body {
    font-size: 14px;
    transform: scale(0.95);
    transform-origin: top center;
  }

  .logo {
    margin-right: 0;
    margin-bottom: 10px;
    flex-direction: row;
    justify-content: center;
  }

  .logoZ {
    width: 40px;
  }

  .container {
    width: 95%;
    padding: 0 10px;
  }

  .head {
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    text-align: center;
  }

  .magic-text {
    font-size: 20px;
    margin-right: 0;
    text-align: center;
  }

  .navbar-container {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }

  .menu-items {
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 10px 0;
  }

  .menu-items li {
    margin: 10px 0;
    font-size: 16px;
  }

  .navbar-container ul a {
    font-size: 16px;
  }

  #backgroundImage {
    height: 400px;
    margin-top: 60px;
  }

  .head-txt {
    font-size: 16px;
    text-align: center;
    padding: 10px;
  }

  .neon-box {
    width: 100%;
    margin-left: 0;
    height: auto;
    flex-direction: column;
  }

  .collections {
    flex-direction: column;
  }

  .seller {
    flex-direction: column;
    align-items: center;
  }

  .seller .best-p1 {
    width: 90%;
    margin: 20px 0;
  }

  .form {
    flex-direction: column;
  }

  .form .form-txt,
  .form .form-details {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .l-news {
    flex-direction: column;
    gap: 30px;
  }

  .l-news img {
    width: 100%;
    height: auto;
  }

  .l-news1,
  .l-news2,
  .l-news3 {
    width: 100%;
    height: auto;
  }

  .news1-conte,
  .news2-conte,
  .news3-conte {
    position: static;
    padding: 15px;
  }
}

/* 📱 موبایل کوچک (عرض کمتر از 480px) */
@media (max-width: 480px) {
  body {
    font-size: 13px;
    transform: scale(0.9);
    transform-origin: top center;
  }

  .logoZ {
    width: 35px;
  }

  .magic-text {
    font-size: 18px;
    text-align: center;
    margin-right: 0;
  }

  .menu-items li {
    font-size: 15px;
  }

  .head-txt {
    font-size: 15px;
  }

  #backgroundImage {
    height: 300px;
  }

  .custom-button {
    font-size: 18px;
    padding: 10px 20px;
  }

  .news-heading h2 {
    font-size: 24px;
  }

  .form .form-details input,
  .form .form-details textarea {
    margin: 15px 0;
    width: 100%;
  }

  .footer-container .content_1 img {
    width: 150px;
    height: auto;
  }
}
