:root {
  --bg-main: #F2EFE7;
  --bg-secondary: #9ACBD0;
  --button-color: #006A71 ;
  --button-hover: #00555B;
  --header-footer: #006A71;
  --white: #ffffff;
}
  
  body {
    margin: 0;
    font-family: sans-serif;
    background-color: var(--bg-main);
    direction: rtl;
  }
  
  header {
    background-color: var(--header-footer);
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: var(--white);

  }
  
  
  .logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
   
  .support-left {
    position: absolute;
    top: 60px;
    right: 15px;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
  }
  
  .logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    position: absolute;
    left: 20px;
    top: 15px;
  }

  .hamburger-menu {
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1000;
    color: black
  }
  
  .hamburger-menu i {
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
  }
  
  .menu-content {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: var(--white);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  
  .menu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .menu-content li {
    padding: 12px 16px; 
    cursor: pointer;
    font-size: 15px; 
    border-bottom: 1px solid #eee;
    letter-spacing: 0.5px; 
    text-align: right; 
  }
 
  .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: -160px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .submenu li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #eee;
  }
  
  .submenu li:hover {
    background-color: #f0f0f0;
  }
  
  .menu-content li.position-relative {
    position: relative;
  }
  
  
  .menu-content li:hover {
    background-color: #f0f0f0;
  }
  

  .search-bar {
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

.search-bar button {
  padding: 0.5rem;
  border: none;
  background-color: white;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 0.25rem; /* این خط فاصله ایجاد می‌کنه */
}


.search-bar input {
  padding: 0.5rem;
  border-radius: 8px;
  border: none;
  width: 200px;
}

  
  .products {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
  }
  
  .product {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 320px;
  }
  
  .product img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
  }
  
  .product h2 {
    font-size: 1rem;
    margin: 8px 0 4px;
    color: #333;
  }
  
  .product p {
    font-size: 0.85rem;
    color: #555;
    margin: 6px 0;
  }
  
  .product .price {
    font-weight: bold;
    color: #e53935;
    font-size: 0.95rem;
  }
  
  .product button {
    background-color: var(--button-color);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .product button:hover {
    background-color: var(--button-hover);
  }
  
  
  footer {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;    
    background-color: var(--header-footer);
    color: var(--white);
    text-align: center;
    padding: 1rem;
  }
  
  .bottom-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--header-footer);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.7rem 0;
    z-index: 1000;
  }
  
  .bottom-footer nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
  }
  
  .bottom-footer nav a:hover {
    color: var(--bg-secondary);
  }
  
  /* فاصله پایین صفحه اصلی برای دیده شدن محتوا زیر فوتر */
  body {
    padding-bottom: 60px;
  }
  
  .bottom-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--header-footer);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
  }
  
  .bottom-footer nav {
    display: flex;
    gap: 40px;
  }
  
  .bottom-footer a {
    text-decoration: none;
    color: #006A71;
  }
  
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    
  }
  
  .nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
  }
  
  .green-nav .nav-item i,
  .green-nav .nav-item span {
    color: greenyellow
  }
  
  @media (max-width: 768px) {
    .site-title {
      display: none !important;
    }
  }
  
  @media (max-width: 768px) {
    header {
      padding-top: 90px; 
    }
  }
  
  .bestsellers {
    padding: 20px;
    background-color: #f9f9f9;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: right;
  }
  
  .bestsellers {
    padding: 20px;
    background-color: #006A71;
    border-radius: 8px;
    margin: 20px;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    text-align: right;
  }
  
  .bestseller-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: thin;
  }
  
  .bestseller-container::-webkit-scrollbar {
    height: 8px;
  }
  .bestseller-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 8px;
  }
  .bestseller-container::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .product-card {
    flex: 0 0 auto;
    width: 180px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 320px; /* تضمین ارتفاع یکسان */
  }
  
  .product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 120px;
    object-fit: contain;
  }
  
  .product-card h3 {
    font-size: 1rem;
    margin: 8px 0 4px;
    color: #333;
  }
  
  .product-card p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 6px;
  }
  
  .product-card button {
    background-color: var(--button-color);
    color: var(--white);
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 6px;
    transition: background-color 0.3s;
  }
  
  .product-card button:hover {
    background-color: var(--button-hover);
  }
  
  .product-card span {
    font-weight: bold;
    color: #e53935;
    font-size: 0.95rem;
  }
  

  @media (max-width: 600px) {
    .search-bar {
      margin-top: -75px;
    }
  }
  
.custom-slider {
  position: relative;
  background-color: #006A71;
  margin: 20px;
  margin: 20px;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  transition: opacity 0.8s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  text-align: center;
  font-family: sans-serif;
}
.slide {
  text-decoration: none;
}


.slide.active {
  opacity: 1;
  z-index: 1;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 2;
  font-size: 18px;
  border-radius: 8px;
  display: none;
}

.nav.prev {
  left: 10px;
}

.nav.next {
  right: 10px;
}

#scrollToTopBtn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* این دکمه دایره‌ای باقی می‌ماند */
    background-color: var(--button-color);
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    z-index: 9999;
}

#scrollToTopBtn:hover {
    background-color: var(--button-hover);
}

/* فقط در دسکتاپ نشون بده */
@media (min-width: 768px) {
  .nav {
    display: block;
  }
}

@media (max-width: 600px) {
  .custom-slider {
    height: 200px;
  }

  .slide h2 {
    font-size: 18px;
  }

  .slide p {
    font-size: 14px;
  }
}


