/* استایل‌های منتقل شده از فایل HTML */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

: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: 16px;
  --font-size-large: 18px;
  --cart-bg: #1e293b;
  --cart-text: #fff;
  --border-color: #334155;
}

body {
  font-family: 'Noto Naskh Arabic', serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.bg-primary {
  background-color: var(--header-bg);
}

.text-primary {
  color: var(--header-bg);
}

.border-primary {
  border-color: var(--border-color);
}

.slider {
  transition: all 0.5s ease;
}

.product-card {
  transition: all 0.3s ease;
  position: relative;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cart-item {
  transition: all 0.3s ease;
}

.cart-item:hover {
  background-color: #334155;
}

/* Bottom Navigation Active State */
.bottom-nav-link.active {
  color: var(--hover-color);
}

/* Product Tooltip */
.product-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 4rem;
  background: rgba(30, 41, 59, 0.95);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
}

.product-card:hover .product-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.product-tooltip ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: right;
  width: 100%;
}

.product-tooltip li {
  position: relative;
  padding-right: 1.5rem;
  line-height: 1.5;
  color: var(--text-color);
}

.product-tooltip li:before {
  content: "•";
  position: absolute;
  right: 0.5rem;
  color: var(--hover-color);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .product-card {
    margin-bottom: 1rem;
  }
}

/* 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::after {
  width: 50%;
}

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

@media (max-width: 768px) {
  nav.fixed {
    display: flex; /* نمایش در موبایل */
    width: 100%;
    min-width: 320px;
  }
  
  .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;
    width: 100%;
    max-width: 100vw;
  }
  
  html, body {
    overflow-x: hidden;
  }
  
  /* اطمینان از اینکه محتوا از عرض صفحه بیشتر نشود */
  .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}