/* ریست اولیه */
:root {
  --bg-color: #0f172a; /* سرمه‌ای تیره */
  --text-color: #f8fafc;
  --header-bg: #1e293b;
  --header-text: #fff;
  --card-bg: #1e293b;
  --footer-bg: #0f172a;
  --hover-color: #3b82f6;
  --font-size-base: 18px; /* افزایش سایز فونت پایه */
  --font-size-large: 20px; /* افزایش سایز فونت بزرگ */
  --cart-bg: #1e293b;
  --cart-text: #fff;
  --border-color: #334155;
  --font-family: 'Sahel-Black-FD', sans-serif; /* اضافه کردن فونت وزیرمتن */
}
html{
  direction: rtl;
  font-size: 25px;
  font-family: var(--font-family);
  }
.bg-gray-50{
  background-color: var(--bg-color);
}

[data-theme='dark'] {
  --bg-color: #1a1a1a;
  --text-color: #fff;
  --header-bg: #1e293b;
  --header-text: #fff;
  --card-bg: #333;
  --footer-bg: #1e293b;
  --hover-color: #ffd700;
  --cart-bg: #1e293b;
  --cart-text: #fff;
}

[data-theme='blue'] {
  --bg-color: #f0f8ff;
  --text-color: #1e293b;
  --header-bg: #1e293b;
  --header-text: #fff;
  --card-bg: #fff;
  --footer-bg: #1e293b;
  --hover-color: #3b82f6;
  --cart-bg: #1e293b;
  --cart-text: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* بدنه و تایپوگرافی */
body {
  font-family: sans-serif;
  line-height: 1.6;
  direction: rtl;
  font-size: var(--font-size-base);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

header {
  background: var(--header-bg);
  color: var(--header-text);
  transition: background-color 0.3s;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  }

.nav-links {
  list-style: none;
  display: flex;
  }

.nav-links li {
  margin-left: 1rem;
  }

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: color .3s;
  }

.nav-links a:hover {
  color: var(--hover-color);
}

/* منوی همبرگری */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  }

.burger span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  transition: all .3s;
  }

/* بخش‌ها */
.section {
  padding: 2rem;
  text-align: center;
  }

.products-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

.product-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.colorr{
  color: black;
  font-family: 'Sahel-Black-FD', sans-serif;
  font-size: 10px;
  }

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* فوتر و اسلایدر */
footer {
  background: var(--footer-bg);
  color: var(--header-text);
  padding: 1rem;
  text-align: center;
  transition: background-color 0.3s;
}

.footer-slider {
  max-width: 300px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  }

.slide {
  display: none;
  animation: fade 1s ease-in-out;
  }

.slide.active {
  display: block;
  }

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
  }

/* پاسخگویی */
/* Bottom Navigation */
.bottom-nav-link {
  position: relative;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.bottom-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--hover-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.bottom-nav-link.active {
  color: var(--hover-color);
}

.bottom-nav-link.active::after {
  width: 50%;
}

/* تنظیمات bottom navigation */
nav.fixed {
  display: none; /* مخفی در حالت پیش‌فرض (دسکتاپ) */
  width: 100%;
  min-width: 320px;
}

/* Contact Form Styles */
.contact-form {
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.contact-form input,
.contact-form textarea {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
  transform: translateY(-2px);
}

.contact-form label {
  transform: translateY(0);
  transition: all 0.3s ease;
}

.contact-form input:focus + label,
.contact-form textarea:focus + label {
  transform: translateY(-2px);
  color: var(--color-primary);
}

.contact-form button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-form button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
}

.contact-form button:hover::after {
  animation: shimmer 1.5s infinite;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Hero Slider Responsive */
.hero-slider-bg {
  height: 100vh;
}

@media (min-width: 1024px) {
  .hero-slider-bg {
    height: 100vh;
    min-height: 800px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-slider-bg img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* نمایش bottom navigation در حالت موبایل */
  nav.fixed {
    display: flex;
  }

  .bottom-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  .bottom-nav-link i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  /* تنظیم حداقل عرض صفحه برابر با عرض bottom navigation */
  body {
    min-width: 320px; /* حداقل عرض برای اطمینان از نمایش مناسب bottom navigation */
    width: 100%;
    max-width: 100vw;
  }

  html, body {
    overflow-x: hidden; /* جلوگیری از اسکرول افقی */
  }

  /* اطمینان از اینکه محتوا از عرض صفحه بیشتر نشود */
  .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
