﻿/* ریست اولیه */
* {
  box-sizing: border-box;
  direction: rtl !important;
}

/* حالت روشن (پیش‌فرض) */
body {
  margin: 0;
  padding: 0;
  background-color: #fff !important;
  direction: rtl;
  color: #222;
  transition: background 0.3s ease, color 0.3s ease;
}

/* حالت تاریک */
body.dark-mode {
  background-color: #121212 !important;
  color: #f1f1f1;
}

/* عناصر عمومی با رنگ هماهنگ */
body.dark-mode section,
body.dark-mode div,
body.dark-mode aside,
body.dark-mode main,
body.dark-mode footer,
body.dark-mode table,
body.dark-mode form,
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select,
body.dark-mode button {
  background-color: #121212 !important;
  color: #f1f1f1 !important;
  border-color: #444 !important;
}




/* دکمه دارک‌مود */
.mode-btn {
  width: 40px;
  height: 40px;
  border-radius: 20%;
  position: absolute;
  top: 22px;
  left: 160px;
  border: none;
  background-color: white;
  box-shadow: 0 0px 5px rgba(73, 73, 73, 0.125);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.4s ease, transform 0.4s ease;
  display: flex;
  z-index: 5;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

body.dark-mode .mode-btn{
  box-shadow: 0 0 12px rgba(0, 85, 255, 0.437) !important;
}
.mode-btn:hover {
  transform: rotate(15deg);
  background-color: #ffffff;
}

.mode-btn .icon {
  position: absolute;
  width: 25px;
  height: 25px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sun {
  opacity: 1;
  transform: scale(1);
}

.moon {
  opacity: 0;
  transform: scale(0);
}

/* حالت دارک‌مود */
body.dark-mode .mode-btn {
  background-color: #2a2a2a;
  box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}

body.dark-mode .mode-btn .sun {
  opacity: 0;
  transform: scale(0);
}

body.dark-mode .mode-btn .moon {
  opacity: 1;
  transform: scale(1);
}

body.dark-mode {
  color: #ffffff !important;
}

/* متن‌های عمومی */
body.dark-mode p,
body.dark-mode span,
body.dark-mode li,
body.dark-mode a,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode label,
body.dark-mode strong,
body.dark-mode em,
body.dark-mode small,
body.dark-mode .text,
body.dark-mode .title,
body.dark-mode .description {
  color: #ffffff !important;
}

/* لینک‌ها با حالت هاور زیبا */
body.dark-mode a:hover {
  color: #2f430e !important;
}

/* placeholderهای فرم‌ها */
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #cccccc !important;
}



/* رنگ‌های حالت روشن */
.gray-part {
  color: #151515;
}
/* حالت روشن */
.blue-part {
  color: #2f430e;
}

/* حالت دارک‌مود */
body.dark-mode .blue-part {
  color: #2f430e !important;
}


/* رنگ‌های حالت دارک‌مود */
body.dark-mode .gray-part {
  color: #9a9a9a !important;
}




@font-face {
  font-family: 'Tunisia Bd MRT';
  src: url('../fonts/Tunisia\ Bd_MRT.ttf') format('truetype');
 
  font-weight: normal;
  font-style: normal;
}

.header {
  background-color: #f0f7ff;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 16px;
  padding: 16px;

  /* حالت پیش‌فرض: وسط‌چین با عرض محدود */
  max-width: 1200px;
  margin: 24px auto;
  box-sizing: border-box;
}

/* حالت زیر 1247px: حفظ فاصله از دیواره‌ها */
@media screen and (max-width: 1247px) {
  .header {
    width: calc(100% - 48px); /* فاصله 24px از هر طرف */
    max-width: none;
    margin-left: 24px;
    margin-right: 24px;
  }
}


/* وسط‌چین کردن در عرض‌های بزرگ‌تر */
@media screen and (min-width: 768px) {
  .header {
    margin-left: auto;
    margin-right: auto;
  }
}


/* حالت دارک‌مود */
body.dark-mode header {
  background-color: #2a2a2a !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}
body.dark-mode .nav-menu{
  background-color: #2a2a2a !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
}


.text-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 32px;
  padding: 20px 16px;
  background-color: #ffffff;
  border-radius: 26px;
  direction: rtl;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  flex-wrap: wrap;
  
}
.mega-menu {
  position: relative;
}
.mega-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: clamp(300px, 90vw, 1000px); /* حداقل 300px، حداکثر 1000px، و ایده‌آل 90% از عرض صفحه */
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: none;
  flex-direction: column;
  z-index: 100;
}


.mega-menu:hover .mega-panel {
  display: flex;
}

.mega-content {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  width: 70%;
  display: flex;
  gap: 24px;
}

.mega-info {
  flex: 1; /* عرض کمتر نسبت به mega-columns */
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  background-color: #ffffff;
  border-radius: 10px;
  width: 30%;

}
.mega-info-text {
  display: block;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 20px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.mega-info-text:hover {
  background-color: #2f430e; /* آبی کم‌رنگ */
  color: #ffffff;            /* آبی پررنگ */
  
}

.mega-info h3 {
  font-size: 20px;
  color: #2f430e;
  margin-bottom: 8px;
  margin-right: 20px;
}

.mega-info p {
  font-size: 15px;
  color: #333;
  
}
.mega-columns {
  display: flex;
  gap: 24px;
  flex: 2;
  background-color: #e9f4ff;
  border-radius: 40px;
}

.column h4 {
  font-size: 16px;
  color: #2f430e;
  margin-bottom: 20px;
  margin-right: 30px ;
   font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}
.column a {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-right: 30px ;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  margin-bottom: 30px
}

.column a:hover {
  color: #2f430e;
}
.mega-images {
  display: flex;         /* فعال‌سازی flex */
  justify-content: center;
  align-items: center;
  gap: 170px;              /* حالا فاصله بین عکس‌ها اعمال می‌شه */
  margin: 10px auto 0;
}

.mega-images img {
  width: 90px;
  height:none;
  object-fit: cover;
}

.menu-item {
  position: relative;
}

.menu-item span {
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  color: #3c3c3c;
  cursor: pointer;
  font-size: 17px;
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 20px;
  transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
  display: inline-block;
  white-space: nowrap;
}

.menu-item span:hover {
  background-color: #2f430e;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 76, 255, 0.721);
}




/* زیرمنو حرفه‌ای */
.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  display: none;
  flex-direction: column;
  min-width: 180px;
  z-index: 10;
  border: 1px solid #ddd;
}

.submenu a {
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: 6px;
}

.submenu a:hover {
  color: #2f430e;
  background-color: #f0f4ff;
}

/* نمایش زیرمنو در حالت هاور */
.menu-item:hover .submenu {
  display: flex;
}



@media (max-width: 768px) {
  .text-container {
    display: none; /* مخفی در موبایل */
  }
}


/* موقعیت لوگو داخل هدر */
.logo-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo-top h2 {
  font-size: 2rem;
  font-weight: bold;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  text-align: center;
  margin: 0;
}

/* حالت روشن */
.logo-blue {
  color: #2f430e;
}

.logo-gray {
  color: #000000;
}
.h-logo{
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  position: relative;
  top: -50px;
}
/* حالت دارک‌مود */
body.dark-mode .logo-blue {
  color: #2f430e !important;
}

body.dark-mode .logo-gray {
  color: #bbbbbb;
}
body.dark-mode .logo-top {
  background-color: #2a2a2a !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
}
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 40px; /* فاصله بین لینک‌ها */
}

.nav-menu a {
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-decoration: none;                  /* ⛔ حذف خط زیر متن‌ها */
  position: relative;                     /* برای افکت خط hover */
  padding-bottom: 6px;                    /* کمی فاصله برای خط hover */
  letter-spacing: 0.5px;                  /* فاصله بین حروف برای حالت شیک‌تر */
  transition: color 0.3s ease;
  
}

/* ✨ خط زیر فقط در حالت هاور */
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #2f430e;
  transition: width 0.3s ease;
  box-shadow: 1px 2px 15px rgba(0, 21, 255, 0.437);
}

.nav-menu a:hover::after {
  width: 100%;
}
.nav-menu a:hover {
  color: #2f430e; /* هم‌رنگ با خط زیر متن */

}


.header-container{
  margin-left: 230px;
  
}
/* 🔸 تاپ‌بار موبایل (پیش‌فرض مخفی) */
.mobile-topbar {
  display: none;
}
.nav-menu-mobile {
  display: none;
}
.Btn1.hamburger {
  display: none;
}
/* 📱 موبایل و تبلت */
@media screen and (max-width: 768px) {


  .mobile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f0f0f0;
  }
 .Btn1.hamburger {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 25px;
  right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255, 255, 255);
  border-radius: 15%;
  z-index: 10;
  cursor: pointer;
  transition-duration: .3s;
  box-shadow: 0 0px 5px rgba(73, 73, 73, 0.125);
  border: none;
}
   

.bell1 {
  width: 25px;
}

.bell1 path {
  fill: rgb(0, 0, 0);
}

.Btn1.hamburger:hover {
  background-color: rgb(56, 56, 56);
}

.Btn1.hamburger:hover .bell1 {
  animation: bellRing 0.9s both;
}

/* bell ringing animation keyframes*/
@keyframes bellRing {
  0%,
  100% {
    transform-origin: top;
  }

  15% {
    transform: rotateZ(10deg);
  }

  30% {
    transform: rotateZ(-10deg);
  }

  45% {
    transform: rotateZ(5deg);
  }

  60% {
    transform: rotateZ(-5deg);
  }

  75% {
    transform: rotateZ(2deg);
  }
}

.Btn1.hamburger:active {
  transform: scale(0.8);
}


}







/* منوی موبایل */

@media screen and (max-width: 768px) {
  .nav-menu-mobile {
    display: flex;
    flex-direction: column;
    font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    padding: 24px;
    background: #ffffff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    scroll-behavior: smooth;
  }
  body.dark-mode .nav-menu-mobile {
    background-color: #2a2a2a !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  }
  .nav-menu-mobile.open {
    transform: translateX(0);
  }

  .close-btn1 {
    background: none;
    border: none;
    position: relative;
  z-index: 10; 
    cursor: pointer;
    padding: 6px;
    right: 10px;
    margin-left: auto;
    margin-top: -1px;
  }
  
  .icon-close {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
  }
  
  .close-btn1:hover .icon-close {
    transform: rotate(90deg);
  }
  body.dark-mode .close-btn1 {
    background-color: #2a2a2a !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  }

  .menu-header1 {
    text-align: center;
    margin-top: -40px;
    margin-bottom: -20px;
  }
  body.dark-mode .menu-header1 {
    background-color: #2a2a2a !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  }
  .menu-brand {
    font-size: 24px;
    font-weight: bold;
  }

  .brand-primary { color: #2f430e; }
  .brand-secondary { color: #555; }
  body.dark-mode .brand-primary {
    color: rgb(0, 64, 255) !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  }
  .menu-divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 8px 0;
  }

  .menu-account-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e0ecff;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .menu-account-btn:hover {
    background-color: #d0e4ff;
  }
  
  .icon-user {
    width: 24px;
    height: 24px;
    fill: #2f430e;
    flex-shrink: 0;
  }
  
  .account-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: right;
  }
  body.dark-mode .account-subtitle {
    color: rgb(0, 64, 255) !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  }
  body.dark-mode .account-title {
    color: rgb(67, 67, 67) !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  }
  .account-title {
    font-size: 15px;
    font-weight: bold;
    color: #2f430e; /* آبی برند */
  }
  
  .account-subtitle {
    font-size: 10px;
    color: #333; /* خاکستری تیره */
  }
  

  .icon-user {
    width: 30px;
    height: 30px;
    fill: #2f430e;
  }

  .menu-search-box {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 6px 10px;
    margin-top: 8px;
    font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  }

  .menu-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
  }

  .icon-search {
    width: 18px;
    height: 18px;
    fill: #999;
  }

  .menu-category-label {
    font-weight: bold;
    font-size: 20px;
    margin-top: 12px;
  }
  body.dark-mode .menu-category-label {
    color: rgb(0, 64, 255) !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  }
  .menu-category-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .menu-category-toggle {
    display: flex;
    font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
    align-items: center;
    gap: 8px;
    background: #eef3ff;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
  }

  .icon-category {
    width: 20px;
    height: 20px;
    fill: #2f430e;
  }

  .menu-category-list {
    display: none; /* مخفی در ابتدا */
    margin-top: 8px;
    padding-right: 12px;
    list-style: none;
  }
  body.dark-mode .menu-category-wrapper {
    background-color: #2a2a2a !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  }
  .menu-category-list.active {
    display: block; /* نمایش وقتی فعال شد */
  }
  
/* آیتم‌های دسته‌بندی اصلی */
.menu-category-list .menu-item {
  font-size: 15px;
  font-weight: bold;
  color: #2f430e;
  background-color: #eef3ff;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0px 10px rgba(0, 94, 255, 0.247);
}
body.dark-mode .menu-category-list .menu-item{
  background-color: #222222 !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
}
.menu-category-list .menu-item:hover {
  background-color: #dbeeff;
  transform: translateX(-2px);
}

/* زیرلیست‌ها */
.menu-sublist {
  display: none;
  margin-top: 6px;
  padding-right: 16px;
  list-style: none;
  font-size: 14px;
  color: #333;
  border-right: 2px solid #2f430e;
  margin-right: 8px;
}

.menu-sublist.active {
  display: block;
}

.menu-sublist li {
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  background-color: #f5f7fa;
  transition: background-color 0.3s ease;
  cursor: pointer;
}
body.dark-mode .menu-sublist li{
  background-color: #1b1b1b !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
}
.menu-sublist li:hover {
  background-color: #e0ecff;
}

  

  .menu-quick-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
  }
  .menu-quick-buttons {
    display: flex;
    flex-direction: column;
  }
  body.dark-mode .menu-quick-buttons {
    background-color: #2a2a2a !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  }
  .menu-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f8ff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
    font-size: 14px;
    cursor: pointer;
    width: 100%;               /* 👈 عرض کامل منو */
    box-sizing: border-box;
    justify-content: flex-start;
    transition: background-color 0.3s ease;
  }
  
  .menu-action-btn:hover {
    background-color: #dbeeff;
  }
  
  .menu-action-btn svg {
    width: 20px;               /* 👈 آیکون کوچیک‌تر */
    height: 20px;
    flex-shrink: 0;
  }
  

}

/* لوگو در موبایل */
.logo1-img {
  max-width: 120px;
  margin-bottom:10px;
}






@media screen and (max-width: 768px) {
  .header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: #f0f7ff;
    border-radius: 10px;

    margin: 24px;
    padding: 16px;

    /* عرض محدود با حفظ فاصله از چپ و راست */
    max-width: calc(100% - 48px); /* چون margin چپ و راست 24px هست */
    box-sizing: border-box;

    overflow: visible;
  }

  /* لوگو وسط‌چین */
  .logo-top {
    display: flex;
    justify-content: center;
    margin-bottom: 24px; /* فاصله از پایین لوگو */
  }

  .logo-img {
    max-height: 50px;
  }

  .mode-btn {
    position: absolute;
    top: 25px;
    left: 15px;
    z-index: 9;
    display: flex !important;
  }
  /* مخفی کردن منوی دسکتاپ */
  .header-container,
  .nav-menu {
    display: none;
  }

  
}











.button-container {
  display: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: rgb(255, 255, 255);
  border-radius: 20px;
  width: 100%;
  height: 70px;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 50;
  direction: rtl;
  pointer-events: none; /* جلوگیری از کلیک تا زمانی که نمایش داده بشه */
}
.button-container span{
  color: #2f430e;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}
.button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
}


.icon-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btnc{
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  color: #000;
}
body.dark-mode .btnc{
  color: #2f430e !important;
}

@media (max-width: 768px) {
  .button-container {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .button {
    width: 50px;
    height: 50px;
  }

  .icon {
    font-size: 24px;
  }
}
.button-container.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.button-container.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.button-container {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.group {
  display: none;
}


  .mobile-search-container {
display: none !important;
  }

@media screen and (max-width: 768px) {
  .search-box {
    display: none !important;
  }
  
  .mobile-search-container {
    position: relative;
    display: flex !important;
    background: #fff;
    border-radius: 16px;
    width: 80%;
    max-width: 240px;
    min-width: 160px;
    height: 40px;
    padding: 4px 8px;
    margin: 0 auto;
    margin-top: -20px;
    z-index: 20;
    transition: all 0.3s ease;
    font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  }
  body.dark-mode .mobile-search-input {
    background-color: 222 !important; /* خاکستری کم‌رنگ هماهنگ با دارک‌مود */
  }
  
  .mobile-search-container:hover {
    box-shadow: 0 8px 20px rgba(0, 81, 255, 0.15);
    transform: translateY(-2px);
  }
  
  .mobile-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 10px;
    color: #333;
    width: 10px;
    flex: 1;
    font-weight: 1;
  }
  
  .mobile-search-icon {
    width: 22px;
    height: 22px;
    fill: #555;
    margin-top: 7px;
    margin-left: 10px;
    flex-shrink: 0;
    transition: fill 0.3s ease;
  }
  
  .mobile-search-container:hover .mobile-search-icon {
    fill: #222;
  }
  
  .mobile-suggestions {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 20;
  }
  
  .mobile-suggestions.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  .mobile-recent-title {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
  }
  
  .mobile-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-recent-list li {
    padding: 6px 0;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
  }
  
  .mobile-recent-list li:hover {
    color: #2f430e;
  }
  
  .mobile-suggestion-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    flex-shrink: 0;
  }
  
  .mobile-clear-all {
    text-align: right;
    font-size: 14px;
    color: #d00;
    cursor: pointer;
    margin-top: 8px;
  }
  
  .mobile-popular-title {
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 8px;
    color: #555;
  }
  
  .mobile-popular-tags button {
    margin: 4px;
    padding: 6px 12px;
    border: none;
    background: #eef6ff;
    border-radius: 20px;
    cursor: pointer;
    color: #2f430e;
    transition: background 0.2s;
  }
  
  .mobile-popular-tags button:hover {
    background: #2f430e;
    color: #fff;
  }
  
  .mobile-overlay-suggest {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .mobile-overlay-suggest.active {
    opacity: 1;
    pointer-events: auto;
  }
  body.dark-mode .mobile-overlay-suggest {
    background-color: rgba(0, 0, 0, 0.66) !important; /* 👈 فقط کمی تیره، بدون سیاهی */
  }
  
  
}





/* باکس جستجو حرفه‌ای */
.search-box {
  position: relative;
  top: -5px;
  margin: 0;
  display: flex;
  background: #fff;

  border-radius: 20px;
  width: 50vw;              /* عرض باکس نسبت به عرض مرورگر */
  max-width: 300px;         /* محدودیت نهایی برای جلوگیری از خیلی بزرگ شدن */
  min-width: 200px;         /* حداقل عرض برای جلوگیری از خیلی کوچیک شدن */
  height: 52px;
  padding: 6px 10px;
  z-index: 20;
  transition: all 0.3s ease;


  margin-left: auto;       /* هل دادن به سمت راست */
  margin-right: 16px;      /* فاصله از دیواره راست */
  align-self: flex-end;


}

/* افکت هاور */
.search-box:hover {
  box-shadow: 0 8px 20px rgba(0, 81, 255, 0.15);
  transform: translateY(-2px);
}

/* ورودی داخل باکس */
.search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  padding-left: 10px;
  flex: 1;
  min-width: 0;
  font-weight: 500;
}

/* آیکون جستجو */
.search-icon {
  width: 22px;
  height: 22px;
  fill: #555;
  margin-top: 7px;
  margin-left: 10px;
  flex-shrink: 0;
  transition: fill 0.3s ease;
}

.search-box:hover .search-icon {
  fill: #222;
}
/* جستجوهای پیشنهادی */

.suggestions {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 20;
}

.suggestions.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.section {
  margin-bottom: 16px;
}

.section h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
}

.recent-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-list li {
  padding: 6px 0;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}

.recent-list li:hover {
  color: #2f430e;
}

.popular-tags button {
  margin: 4px;
  padding: 6px 12px;
  border: none;
  background: #eef6ff;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  color: #2f430e;
  transition: background 0.2s;
}

.popular-tags button:hover {
  background: #2f430e;
  color: #fff;
}

.clear-all {
  text-align: right;
  font-size: 14px;
  color: #d00;
  cursor: pointer;
  margin-top: 8px;
}
/* حالت پایه */
.overlay-suggest {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* برای لایت مود */
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* فعال شدن overlay */
.overlay-suggest.active {
  opacity: 1;
  pointer-events: auto;
}

body.dark-mode .overlay-suggest {
  background-color: rgba(0, 0, 0, 0.66) !important; /* 👈 فقط کمی تیره، بدون سیاهی */
}





/*user*/
.icon-bar {
  position: absolute;
  top: 20px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.dropdown {
  position: relative;
}

.button-user {
  width: 50px;
  height: 50px;
  position: relative; /* تغییر از absolute به relative */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-radius: 20%;
  cursor: pointer;
  transition: 0.3s ease;
  border: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
  overflow: hidden;
}
body.dark-mode .button-user {
  background-color: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 0 6px rgba(47, 67, 14, 0.6);
}


.button-user:hover {
  background-color: rgba(255, 255, 255, 0.575);
}

.button-user:hover .bell {
  animation: bellRing 0.9s both;
}

.button-user:active {
  transform: scale(0.8);
}

/* منوی کشویی زیر دکمه */
.dropdown-menu {
  position: absolute;
  top: 60px;
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  min-width: 180px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 50;
}
body.dark-mode .dropdown-menu {
  background-color: #2a2a2a !important;
  border: none;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
}


@media screen and (max-width: 1236px) {

  .button-user{
    margin-left: 20px;
  }

}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}



.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #f0f4ff;
  color: #2f430e;
}

.dropdown-menu .icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/*لیست حساب کاربر*/

/*ایکون سبد خرید*/
.button-shopping {
  width: 120px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 0px 5px rgba(73, 73, 73, 0.125);
  border-radius: 10px;
  cursor: pointer;
  transition-duration: .3s;
  border: none;
  gap: 8px; /* فاصله بین آیکون و متن */
}
body.dark-mode .button-shopping {
  background-color: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 0 6px rgba(47, 67, 14, 0.6);
}
.label {
  padding: 2px 6px;
  background-color: #2f430e;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  white-space: nowrap;
  border: 2px solid transparent;
}

/* حالت هاور نرم و لطیف */
.button-shopping:hover .label {
  background-color: #ffffff;
  color: #2f430e;
  border-color: #2f430e;
  box-shadow: 0 0 8px rgba(47, 67, 14, 0.2);
  transform: scale(1.05);
}


.bell {
  width: 35px;
}

.bell path {
  fill: #2f430e;
}

.button-shopping:hover {
  background-color: rgb(255, 255, 255);
}

.button-shopping:hover .bell {
  animation: bellRing 0.9s both;
}
.overlay-cart {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay-cart.active {
  opacity: 1;
  pointer-events: auto;
}
body.dark-mode .overlay-cart {
  background-color: rgba(0, 0, 0, 0.66) !important; /* 👈 فقط کمی تیره، بدون سیاهی */
}



/* bell ringing animation keyframes*/
@keyframes bellRing {
  0%,
  100% {
    transform-origin: top;
  }

  15% {
    transform: rotateZ(10deg);
  }

  30% {
    transform: rotateZ(-10deg);
  }

  45% {
    transform: rotateZ(5deg);
  }

  60% {
    transform: rotateZ(-5deg);
  }

  75% {
    transform: rotateZ(2deg);
  }
}

.button-shopping:active {
  transform: scale(0.8);
}
@media screen and (max-width: 768px) {
  .button-shopping{
    display: none;
  }
}
@media screen and (max-width: 1160px) and (min-width: 768px) {
  .button-shopping {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 10;
  }
}

/*محصولات داخل سبد خرید*/
/* محصولات داخل سبد خرید */
.cart-panel {
  position: fixed;
  top: 0;
  left: -100%; /* در ابتدا مخفی باشه از سمت چپ */
  width: 320px;
  height: 100%;
  background: white;
  box-shadow: 4px 0 12px rgba(0,0,0,0.15);
  transition: left 0.4s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  left: 0; /* باز شدن پنل از سمت چپ */
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
  font-size: 18px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-weight: bold;
  white-space: nowrap; /* جلوگیری از شکستن متن */
  overflow: hidden;     /* جلوگیری از اسکرول افقی */
}

.close-btn1 {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}
.close-btn1:hover {
  color: crimson;
}

.cart-items {
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #2f430e;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  font-size: 14px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  margin-bottom: 0px;
}


.item-details p {
  font-weight: bold;
  margin: 0;
color: #2f430e;
}


.quantity-control1 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgb(248, 248, 248);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.quantity-control1 button {
  width: 26px;
  height: 26px;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: #e0e9ff;
  color: #2f430e;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(73, 73, 73, 0.501);
}
.quantity-control1 button:hover {
  background: #2f430e;
  transform: scale(1.05);
  color: #000;
}
.remove-btn1 {
  background: #d1e0ff;
  color: rgb(0, 85, 255);
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  margin: 0 auto;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.remove-btn1:hover {
  background: #2f430e;
  color:#d1e0ff ;
  box-shadow: 0 4px 12px rgba(77, 127, 255, 0.4);
  transform: translateY(-1px);
}


.cart-footer {

  padding: 16px;
  border-top: 1px solid #ccc;
  text-align: center;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.submit-order {
  background: #2f430e;
  color: white;
  border: none;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.submit-order:hover {
  background: #d2deff;
  box-shadow: 0 4px 12px rgba(0, 81, 255, 0.4);
  transform: translateY(-1px);
  color: #2f430e;
  
}

/* مخفی کردن کامل همه سکشن‌های محصولات در صفحه‌ی اصلی به درخواست کاربر */
.product-showcase,
.shoe-section,
.newproduct-section {
  display: none !important;
}
@media (max-width: 768px) {
  .cart-header {
    padding: 12px 16px;
    font-size: 15px;
    gap: 8px; /* فاصله بین متن و دکمه */
  }

  .close-btn1 {
    font-size: 20px;
    margin-right: 150px;
  }
}
@media (max-width: 358px) {
  .cart-panel {
    width: 100vw;
    max-width: 100%;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  }

  .cart-header {
    padding: 12px 12px;
    font-size: 14px;
  }

  .close-btn1 {
    font-size: 20px;
    margin-right: 0;
  }

  .cart-items {
    padding: 12px;
  }

  .cart-item {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .cart-item img {
    width: 50px;
    height: 50px;
  }

  .item-details h4 {
    font-size: 13px;
    text-align: center;
  }

  .item-details p {
    font-size: 12px;
    text-align: center;
  }

  .quantity-control1 {
    gap: 8px;
    padding: 6px 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .quantity-control1 button {
    width: 24px;
    height: 24px;
    font-size: 18px;
  }

  .remove-btn1 {
    font-size: 11px;
    padding: 4px 8px;
    margin-right: 0;
  }

  .cart-footer {
    padding: 12px;
  }

  .submit-order {
    font-size: 14px;
    padding: 6px 12px;
  }
}






/*کادر عکس*/
.slider {
  width: 95%;            /* عرض واکنش‌گرا */
  max-width: 1200px;     /* حداکثر عرض در دسکتاپ */
  height: 400px;
  margin: 30px auto;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow:
  0 8px 16px rgba(0, 0, 0, 0.3),
  0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}
@media screen and (max-width: 768px) {
  .slider {
    height: 150px;        /* کوچیک‌تر کردن تصویر در موبایل */
    margin: -10px auto;    /* فاصله کمتر از بالا و وسط‌چین */
    border-radius: 10px;  /* کمی گردتر و جمع‌وجورتر */
    margin-top: 10px; /* فاصله بالا عکس */
  }

  .slide {
    object-fit: cover;
  }
}
/* بخش اصلی دسته‌بندی */
.category-section {
  display: flex;
  flex-direction: column;
  background-color: none;
  align-items: center;
  margin: 40px 0;
  width: 100%;
  background-color: #fff;
}

/* عنوان بخش */
.section-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

/* لیست دسته‌بندی‌ها */
.category-grid {
  grid-template-columns: repeat(4, 1fr); /* 4 ستون در هر خط */
  grid-template-rows: repeat(2, auto);   /* 2 خط */
  gap: 16px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* کارت هر دسته‌بندی */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000;
  transition: transform 0.3s ease;
  width: 22vw; /* سایز نسبی نسبت به عرض صفحه */
  max-width: 120px;
  min-width: 70px;
  flex: 0 0 auto;
    flex-shrink: 1;
}

.category-card:hover {
  transform: scale(1.05);
}

/* دایره آیکون */
.icon-wrapper {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0px 10px rgba(45, 45, 45, 0.377);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.icon-shoe {
  width: 48px;
  height: 48px;
  fill: currentColor;
  color: #000000;
  transition: color 0.3s ease;
}

body.dark-mode .icon-shoe {
  color: #2f430e;
}
body.dark-mode .icon-wrapper {
  box-shadow: 0 0px 15px rgba(47, 67, 14, 0.377);
}
.icon-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* تصویر داخل دایره */
.icon-wrapper img {
  width: 65%;
  height: auto;
  object-fit: contain;
}

/* متن زیر آیکون */
.category-label {
  font-size: 14px;
  margin-top: 4px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}
@media (max-width: 768px) {
  .category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 100%;
  }

  .category-card {
    width: calc((100% - 48px) / 3); /* 3 آیتم در هر ردیف با gap 12px */
    max-width: 90px;
    min-width: 70px;
    flex: 0 0 auto;
  }

  .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .icon-shoe {
    width: 28px;
    height: 28px;
  }

  .category-label {
    font-size: 12px;
  }

  .section-title {
    font-size: 20px;
  }
}


/* حالت ویژه برای عرض‌های خیلی کم مثل موبایل‌های کوچیک */
@media (max-width: 396px) {
  .category-card {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
  }

  .icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .icon-wrapper img {
    width: 50%;
  }

  .category-label {
    font-size: 9px;
  }

  .section-title {
    font-size: 16px;
  }
}







/* بخش  کیت های ورزشی (غیرفعال شده) */
.product-showcase {
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
body.dark-mode .product-showcase {
  background: transparent !important;
}
body.dark-mode .product-content {
  background:#1f1f1f!important;
}
body.dark-mode .kit-text {
  background:#1f1f1f!important;
}
body.dark-mode .p-scroll-container {
  background:#1f1f1f!important;
}
body.dark-mode .p-scroll-container1 {
  background:#1f1f1f!important;
}
body.dark-mode .header-buttons {
  background:#1f1f1f!important;
}
body.dark-mode .header-buttons1 {
  background:#1f1f1f!important;
}
body.dark-mode .new-price {
 color:#2f430e!important;
}
body.dark-mode .old-price {
  color:#6e6e6e!important;
 }
 body.dark-mode .currency {
  color:#035fff!important;
  background-color: #bfd2ff;
 }
 body.dark-mode  .discount-line span {
  color:#035fff!important;
 }

/* عنوان و توضیح */

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}


.product-icons {
  position: absolute;
  top: 5px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.icon-btn {
  background: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;

  /* اضافه‌شده برای وسط‌چین کردن آیکون */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* اطمینان از نبود فاصله اضافی */
}


.icon-btn:hover {
  background-color: #e0ecff;
  transform: scale(1.1);
}
.icon-btn svg{

  width: 20px;
  height: 20px;
}





/* لیست محصولات */
.product-list-wrapper {
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
}


/* کارت محصول */
.product-card {
  position: relative;
  display: flex;
  max-width: 500px;
  width: 200px;
  height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  background-color: #fff;
  transition: transform 0.3s ease;
  margin-bottom: 10px;

  min-width: 220px;
  flex-shrink: 0;
  height: 300px;
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background-color: #fefefe;
}

.product-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.discount-line {
  position: absolute;
  top: 8%;
  left: 151px;
  transform: translateY(-50%);
  display: flex;
  flex-wrap: nowrap;         /* جلوگیری از شکستن خطوط */
  align-items: center;
  justify-content: flex-start;
  gap: 12px;                 /* فاصله بین آیتم‌ها */
  white-space: nowrap;       /* جلوگیری از رفتن زیر هم */
  z-index: 5;
  border-radius: 10px;
  color: #222;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-size: 1rem;
}



.discount-line::before {
  content: "";
  display: block;
  width: 4px;
  height: 40px;
  background-color: #2f430e;
  border-radius: 2px;
}

.discount-line span {
  font-size: 0.8rem;
  color: #2f430e;
  font-weight: bold;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}
.currency {
  background-color: #e0ecff;
  color: #2f430e;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-size: 0.8rem;
  margin-right: 4px;
}


.image-container {
  position: relative;
  width: 90%;
  top: 20px;
  max-width: 250px;
  height: 200px; /* 👈 اینو اضافه کن */
  overflow: hidden;
}

.image-container img {
  width: 90%;
  border-radius: 8px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.kit-text h2{
  color: #000;
  margin-top: -20px;
  margin-bottom: 1px !important;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.main-img {
  opacity: 1;
  z-index: 1;
}

.hover-img {
  opacity: 0;
  z-index: 2;
  transform: scale(1.05) rotate(1deg);
}

.image-container:hover .main-img {
  opacity: 0;
  transform: scale(0.95) rotate(-1deg);
}

.image-container:hover .hover-img {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}



.p-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
}

.product-card {
  min-width: 220px;
  flex-shrink: 0;
}

.p-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.p-scroll-container::-webkit-scrollbar-thumb {
  background-color: #2f430e;
  border-radius: 4px;
}


.header-buttons {
  display: flex;
  gap: 10px;
}

.header-buttons button {
  background-color: #ffffff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 4px  10px rgba(0, 119, 255, 0.234);
  cursor: pointer;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header-buttons button:hover {
  background-color: #2f430e;
  transform: scale(1.05);
}
body.dark-mode .product-header {
  background-color: transparent !important;
}
body.dark-mode .section-wrapper,
body.dark-mode .section-box {
  background-color: transparent !important;
}

.scroll-btn {
  padding: 8px 10px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .product-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }




 




  .kit-text {
    margin-bottom: 16px;
  }

  .header-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }

  .view-more {
    margin-left: auto; /* بره سمت راست */
  }

  .scroll-btn:first-child {
    margin-right: 8px; /* فاصله بین دکمه‌های اسکرول */
  }

  .scroll-btn {
    /* بدون تغییر سایز */
    max-width: unset;
    flex: unset;
  }

 
}





.info-card {
  display: none;
}
body.dark-mode .info-card {
  display: none !important;
}

.info-title {
  font-size: 18px;
  color: #2f430e;
  margin-bottom: 12px;
}

.info-image img {
  width: 50%;
  border-radius: 12px;
  margin-bottom: 12px;
}
body.dark-mode .info-image {
  background: #3c3c3c !important;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}
.info-description {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}


.product-card h3 {
  font-size: 1.1rem;
  margin: 10px 0 6px;
  text-align: center;
  color: #333;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.new-price {
  font-weight: bold;
  color: #2e8b57;
  font-size: 1rem;
}

.old-price {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
}
@media (max-width: 1237px) {
  .product-list-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    box-sizing: content-box;
    padding-bottom: 10px;
    padding-left: 10px !important;
    padding-right: 10px;
  }
  .product-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    margin-inline: auto; /* 👈 وسط‌چین کل لیست در موبایل */
  }
  .product-card {
    flex-shrink: 0;
  }
  
.product-list-wrapper {
  display: block; /* یا flex بدون center */
}
body.dark-mode .product-list-wrapper {
  background-color:#1f1f1f!important;
 }

}


.p-scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;

  /* حذف scrollbar در مرورگرهای مختلف */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.p-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
@media (max-width: 768px) {
  .info-card {
    display: none;
  }
}

/* دکمه‌ها به‌صورت پیش‌فرض نمایش داده می‌شن */
.mobile-only {
  display: inline-flex;
}

/* در سایزهای بزرگ‌تر از 768px مخفی می‌شن */
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}








/* سکشن برند */







/*کفش ها*/
.shoe-section {
  max-width: 1400px;
  margin: 24px auto 40px auto; /* فاصله منطقی از بالا و پایین */
  padding: 24px 20px;          /* کمی فضای داخلی، نه خیلی زیاد */
  background-color: #c3c6cb00;
  border-radius: 20px;
  overflow-y: hidden; /* ✅ حذف اسکرول عمودی */
}

body.dark-mode .title-with-buttons {
  background: #1f1f1f !important;
  border-radius: 20px;
  padding-inline: 20px;
}
.shoe-title {
  font-size: clamp(20px, 4vw, 28px);
  text-align: center;
  margin-bottom: 12px;
    font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}
.discount-line1 {
  position: absolute;
  top: 92%;
  left: 128px;
  transform: translateY(-50%);
  display: flex;
  flex-wrap: nowrap;         /* جلوگیری از شکستن خطوط */
  align-items: center;
  justify-content: flex-start;
  gap: 12px;                 /* فاصله بین آیتم‌ها */
  white-space: nowrap;       /* جلوگیری از رفتن زیر هم */
  z-index: 5;
  border-radius: 10px;
  color: #222;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-size: 1rem;
}
body.dark-mode .discount-line1 {
  box-shadow: 0 1px 7px rgba(0, 64, 255, 0.4);
}
body.dark-mode .discount-line1 span {
  color: #2f430e !important;
}

.header-buttons1 {
  display: flex;
  gap: 10px;
}

.header-buttons1 button {
  background-color: #ffffff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 4px  10px rgba(0, 119, 255, 0.234);
  cursor: pointer;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header-buttons1 button:hover {
  background-color: #2f430e;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .header-buttons1 {
   margin: 0 auto;
   margin-bottom: 10px;
  }

}
.discount-line1::before {
  content: "";
  display: block;
  width: 4px;
  height: 40px;
  background-color: #2f430e;
  border-radius: 2px;
}

.discount-line1 span {
  font-size: 0.8rem;
  color: #2f430e;
  font-weight: bold;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}
.shoe-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  padding-top: 30px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  -ms-overflow-style: none;     /* برای IE و Edge */
  scrollbar-width: none; 
  gap: 16px;
  overflow-y: hidden; /* ✅ جلوگیری از اسکرول عمودی ناخواسته */
  position: relative;
  
}
.shoe-scroll-container::before,
.shoe-scroll-container::after {
  content: "";
  flex: 0 0 20px; /* اندازه فاصله از چپ و راست */
  margin-right: 20px;
}



a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.shoe-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: clamp(120px, 18vw, 160px);
  height: auto;
  background: #2f430e00;
  overflow: hidden; /* ✅ جلوگیری از بیرون‌زدگی داخلی */
  border-radius: 12px;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  margin-left: 10px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 200px;
  margin-inline: 4px;
  flex-shrink: 0;
}
.shoe-card:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 1px 7px rgba(176, 209, 255, 0.479);
}
.shoe-card img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}


.shoe-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}





/* نوار تخفیف افقی */
.discount-bar {
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #ff2a2f, #ff5a5f);
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 0 8px 8px 0;
  text-align: left;
  direction: rtl;
}

/* آیکون‌های قلب و چشم */
.card-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-icons svg {
  width: 20px;
  height: 20px;
  fill: #555;
  cursor: pointer;
}

/* قیمت‌ها */
.price-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
  direction: rtl;
 
}
.old-price1 {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}
.new-price1 {
  font-weight: bold;
  color: #000000;
  font-size: 15px;
  
}
.currency1 {
  background-color: #cee6ff;
  color: #2f430e;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

/* دکمه مشاهده بیشتر */
.view-more-btn {
  position: absolute;
  bottom: -30px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  left: 50%;
  transform: translateX(-50%);
  background-color: #cfe2ff;
  color: rgb(0, 106, 255);
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  z-index: 5;
  transition: bottom 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}
body.dark-mode .view-more-btn {
  color: #2f430e !important;
 background-color: #2b2b2b !important;
}
body.dark-mode .old-price1 {
  color: #3c3c3c !important;
}
body.dark-mode .new-price1 {
  color: #2f430e !important;
}
body.dark-mode .currency1 {
  color: #2f430e !important;
}
/* افکت هاور */
.shoe-card:hover .card-icons {
  opacity: 1;
}
.shoe-card:hover .view-more-btn {
  bottom: 10px;
  opacity: 1;
}











/* افکت فید روی نام کفش */
.shoe-name, .shoe-price {
  transition: color 0.3s ease;
}
.shoe-card:hover .shoe-name {
  color: #555;
}
.shoe-card:hover .shoe-price {
  color: #ff2a2f;
}
.shoe-name {
  font-size: 14px;
  margin: 6px 0;
}

.shoe-price {
  font-weight: bold;
  color: #ff5a5f;
}
.shoe-carousel {
  position: relative;
  display: flex;
  align-items: center;
}
.shoe-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.title-with-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.shoe-title {
  margin-left: auto;
  text-align: right;
  direction: rtl;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-size: 30px;
  color: #333;
}



@media (max-width: 768px) {
  .title-with-buttons {
    flex-direction: column;
    align-items: flex-end;
  }

  .shoe-title {
    margin: 0 auto;
    text-align: center;
  }
}











.newproduct-box {
  background: #e2ebff;
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 24px;
  margin: 32px auto;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  position: relative;
}

.newproduct-title {
  margin-left: auto;
  text-align: right;
  direction: rtl;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-size: 30px;
  color: #333;
  margin-bottom: -70px;
}

.newproduct-title .highlight {
  color: #2f430e; /* سبز یشمی برند */
  font-weight: bold;
}

.newproducts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 100px;
  align-items: start; /* ✅ این خط باعث هم‌ترازی عمودی میشه */
}


.newproduct-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(203, 216, 255, 0.4);
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;

  width: 100%;
  height: 240px; /* ارتفاع ثابت برای همه کارت‌ها */
  min-height: unset; /* حذف ارتفاع حداقلی قبلی */
  display: flex;
  flex-direction: row;
}

.newproduct-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(61, 129, 255, 0.33);
  background: linear-gradient(135deg, #f7f7f7, #ffffff);
}
.newproduct-box {
  position: relative; /* پایه برای موقعیت‌دهی داخلی */
}

.view-more-container {
  position: absolute;
  top: 25px;
  left: 20px;
  z-index: 10;
}
body.dark-mode .view-more-container {
 box-shadow: 0 2px 18px rgba(0, 68, 255, 0.426);
 border-radius: 10px;
}

.header-buttons-container {
  position: absolute;
  top: 45px;
  left: 20px;
  z-index: 10;
}

.header-buttons-container button {
  background-color: #ffffff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 4px  10px rgba(0, 119, 255, 0.234);
  cursor: pointer;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header-buttons-container button:hover {
  background-color: #2f430e;
  transform: scale(1.05);
}
@media (max-width: 440px) {
  .header-buttons-container {
   margin: 0 auto;
   right: 0px;
   position: relative;
  }

}


.view-more {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff !important;
  border: none;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-more:hover {
  background-color: #e0ecff;
  transform: scale(1.03);
}

.view-more svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 768px) {
  .view-more-container {
    position: absolute;
    top: 40px;       /* ⬇️ دکمه میاد پایین‌تر */
    left: 12px;      /* ⬅️ دکمه سمت چپ می‌مونه */
    right: unset;
    z-index: 10;
  }

  .view-more {
    padding: 6px 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }
}
@media (max-width: 440px) {
  .newproduct-title {
    margin: 0 auto;
    text-align: center;
    margin-bottom: -30px;
  }
  
  

  .view-more-container {
    position: relative; /* از absolute خارج می‌کنیم */
    display: flex;
    justify-content:flex-end;
    margin-top: 10px;
    margin-bottom: -60px;
  }

  .view-more {
    padding: 6px 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    margin: 0 auto;
    border-radius: 10px;
  }
}




.view-text {
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-size: 14px;
  color: #ffffff;
  background-color: #2f430e;
  padding: 4px 8px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .view-more-container {
    top: 10px;
    left: 10px;
  }

  .view-more-button {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

.product1-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product1-image img {
  width: 90%;
  height: auto;
  object-fit: contain;
}

.product-text {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  position: relative;
}

.product-text h4 {
  font-size: 0.9rem;
  font-weight: bold;
  margin: -10px 0 -10px 0;
  color: #000;
}

.product-text p {
  font-size: 0.7rem;
  color: #8f8f8f;
  margin: 0;
}
body.dark-mode .product-text p {
  color: #4e4e4e !important;
 }
.product-rating {
  font-size: 1rem;
  margin-top: -10px;
  color: rgb(212, 184, 25);
}

.product-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.price-box {
  display: flex;
  flex-direction: column;
font-family: none;
}

.new-price {
  font-size: 0.9rem;
  font-weight: bold;
  color: #2f430e;
}

.old-price {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: #888;
}
.btn-shop{
  background-color: white;
  border: none;
  border-radius: 20px;
  box-shadow: 0 1px 22px rgba(0, 106, 255, 0.1);
  transition: all 0.3s ease;
}
.btn-shop:hover {
  background-color: #ffffff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 16px rgba(0, 81, 255, 0.2);
}@media (max-width: 768px) {
  .newproduct-card {
    display: flex;
    flex-direction: row; /* حفظ چیدمان افقی */
    align-items: center;
    gap: 12px;
    padding: 12px;
  }
  .product-rating {
   margin-bottom: -10px;
   margin-top: -5px;
  }
  .product1-image {
    flex: 0 0 40%; /* تصویر در سمت چپ با عرض ثابت */
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
  }

  .product-text {
    flex: 1;
    padding: 0;
    font-size: 0.9rem;
  }

  .newproducts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 80px;
  }
}


/* حالت تبلت */
@media (max-width: 1024px) and (min-width: 769px) {
  .newproducts-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 90px;
  }

  .newproduct-box {
    padding: 24px;
  }
}






















.product1-section {
  display: flex;
  max-width: 1400px; /* یا هر عددی که دوست داری */
  width: 100%;
  flex-wrap: wrap;
  gap: 24px;
  padding: 40px;
  background: #ffffff;
  font-family: 'Tunisia Bd MRT', sans-serif;
  direction: rtl;
  margin: 0 auto;     /* وسط‌چین کردن */
  align-items: flex-start;
}
body.dark-mode .main-card {
 box-shadow: 0 1px 10px rgb(0, 72, 255);
}
body.dark-mode .highlight-text {
  background-color: #2a2a2a !important;
  color: #2f430e !important;
 }
 body.dark-mode .features-list span{
  background-color: #2a2a2a !important;
  color: #2f430e !important;
 }
 body.dark-mode .old1-price {
  color: #656565 !important;
 }
 body.dark-mode .new1-price {
  color: #2f430e !important;
 }
 body.dark-mode .circle-percent {
  background-color: #2f430e !important;
 }
 body.dark-mode .circle-percent span {
  color: #000000 !important;
 }
 body.dark-mode .satisfaction-box {
  background-color: #353535 !important;
 }

 
.main-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  display: flex;
  min-height: 450px; /* یا height: 500px; */
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.268);

  display: flex;
  flex-direction: column;
}

.product-image {
  flex: 1;
  height: auto;
}



.product-image img {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}
.glow-blue {
  width: clamp(80px, 20vw, 160px);
  height: auto;
  object-fit: contain;
  border-radius: 12px;

  /* 👇 هاله آبی */
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.6),
              0 0 24px rgba(0, 123, 255, 0.4),
              0 0 24px rgba(0, 123, 255, 0.4);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glow-blue:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(0, 123, 255, 0.7),
              0 0 32px rgba(0, 123, 255, 0.5);
}



.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-text {
  background: #e0efff;
  color: rgb(0, 123, 255);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  width: fit-content;
  
}

.features-title {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  margin-left: 210px;
}

.features-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  
}

.features-list span {
  background-color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 13px;
  color: #333;
}
.features-wrapper {
  direction: rtl;
}


.bottom1-boxes {
  display: flex;
  gap: 16px;
  position: relative;
  top: 0px;
  margin-top: auto;
  max-height: 50px;
}


.new1-price {
  font-weight: bold;
  font-size: 20px;
  color: #2f430e;
  white-space: nowrap;     /* 👈 جلوگیری از رفتن به خط بعد */
  display: inline-block;   /* 👈 حفظ رفتار خطی و قابل استایل‌دهی */
}
.old1-price {
  color: #999; /* رنگ قیمت قبلی مثلاً خاکستری */
  font-size: 14px;
  text-decoration: line-through;
}



.satisfaction-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  background-color: #eef3ff;
  font-size: 10px;
  padding: 8px 12px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 10px;
  color: #2f430e;
  text-align: center;
  width: fit-content;
}

/* دایره درصد */
.circle-percent {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #cce0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  flex-shrink: 0;
}

/* متن رضایت */
.satisfaction-box p {
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
}

.down-logo {
  margin-top: 32px;
  margin-right: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}




.rating-star {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 15px;
  color: rgb(0, 0, 0);
}

.side-card {
  flex: 0 0 auto;
  width: 420px;
  max-width: 500px;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.header-view-more{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.header-view-more button {
  background-color: #ffffff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 1px  10px rgba(0, 68, 255, 0.558);
  cursor: pointer;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.header-view-more button:hover {
  background-color: #2f430e;
  transform: scale(1.05);
}

.view-more1 {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff !important;
  border: none;
  border-radius: 12px;
  z-index: 1;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.view-more1:hover {
  background-color: #e0ecff;
  transform: scale(1.03);
}

.view-more1 svg {
  width: 20px;
  height: 20px;
}


.side-header {
  display: flex;
  align-items: center;
  margin-bottom: -70px;
  gap: 12px;
  font-weight: bold;
  font-size: 16px;
  z-index: 1;
}
body.dark-mode .side-header span{
  color: #2f430e !important;
  }
  body.dark-mode .blue-details p{
    color: #2f430e !important;
    }
    body.dark-mode .blue-box{
      background-color: #212121 !important;
      }
      body.dark-mode .blue-details{
        background-color: #212121 !important;
        }
.side-header img {
  width: 52px;
  height: 52px;
}

.blue-box {
  background: #e6f0ff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.blue-box img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.blue-details h4 {
  margin: 0;
  font-size: 15px;
}

.blue-details p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #555;
}

.products-grid1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-product {
  text-align: center;
  font-size: 13px;
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 94, 255, 0.559); /* 👈 هاله‌ی آبی دور کل کارت */
  transform: translateY(-4px); /* 👈 یه حرکت کوچیک به بالا */
  background-color: #f0f8ff;   /* 👈 زمینه‌ی آبی خیلی روشن */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}



.mini-product img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mini-product:hover img {
  transform: scale(1.05); /* 👈 زوم نرم تصویر */
}


.more-btn {
  background: #2f430e;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  align-self: center;
}







.thumbnail-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  max-width: 100%;
}

.thumbnail-gallery img {
  width: clamp(32px, 10vw, 60px);
  height: clamp(32px, 10vw, 60px);
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}


.thumbnail-gallery img:hover {
  transform: scale(1.1);
}

.selected-thumbnail {
  border: 3px solid #2f430e;
  border-radius: 50%;
  padding: 4px;
  box-sizing: border-box;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .product1-section {
    width: 100%;
    max-width: clamp(800px, 95vw, 1400px); /* 👈 افزایش عرض به 1400px */
    margin: 0 auto;
    padding: 32px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  
  
  .down-logo{
    display: none;
  }
  .main-card,
  .side-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: clamp(500px, 95vw, 900px); /* 👈 افزایش عرض کارت‌ها */
    margin: 0 auto;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #fff;
  }
  

  .main-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .product-image {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .product-image img {
    width: 120px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: -60px;
  }

  .thumbnail-gallery {
    display: flex;
    justify-content: center;
    margin-top: 200px;
    flex-wrap: wrap;
    max-width: 90vw;
  }

  .thumbnail-gallery img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .thumbnail-gallery img:hover {
    transform: scale(1.1);
  }

  .selected-thumbnail {
    border: 2px solid #2f430e;
    padding: 2px;
    border-radius: 50%;
  }
}


@media (min-width: 1025px) {
  .product1-section {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(16px, 4vw, 32px); /* فاصله بین کارت‌ها ریسپانسیو */
    justify-content: center;
    align-items: flex-start;
    padding: 40px clamp(16px, 5vw, 48px); /* پدینگ ریسپانسیو */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .main-card {
    max-width: clamp(600px, 60vw, 720px);
  }
  .side-card {
    max-width: clamp(280px, 30vw, 360px);
  }
  .product-image img {
    max-width: clamp(240px, 30vw, 320px);
  }
  
  .main-card {
    flex: 1 1 0;
    width: 100%;
    max-width: clamp(300px, 90vw, 600px); /* ریسپانسیو واقعی */
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }

  .side-card {
    flex: 1 1 0;
    width: 100%;
    max-width: clamp(300px, 90vw, 600px); /* ریسپانسیو واقعی */
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }

  .product-image img {
    width: 100%;
    max-width: clamp(240px, 30vw, 320px); /* تصویر هم ریسپانسیو */
    height: auto;
    object-fit: contain;
  }

  .thumbnail-gallery {
    margin: 0 auto;
    max-width: 90%;
  }
}


@media (max-width: 768px) {
  .product1-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }
.header-view-more{
  justify-content: flex-end;
}
  .main-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 900px;
    max-width: 100%;
  }
.features-title{
  margin: 0 auto;
  margin-bottom: 10px;
}

.down-logo{
  margin: 0 auto;
}
  .product-image {
    width: 100%;
    display: flex;
    margin-top: 20px;
    justify-content: center;
  }

  .product-image img {
    width: clamp(120px, 40vw, 200px);
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  .product-details {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-top: 40px;

    align-items: center;
    gap: 12px;
  }

  .thumbnail-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 70px;
    flex-wrap: wrap;
  }

  .thumbnail-gallery img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
  }

  .selected-thumbnail {
    border: 2px solid #2f430e;
    padding: 2px;
  }

  .price1-box {
    flex-direction: column; /* 👈 چینش عمودی در موبایل */
    align-items: flex-start;
    order: 1; /* اول نمایش داده بشه */
  }
  .satisfaction-box {
    order: 2; /* بعد از قیمت بیاد */
    margin:  0 auto;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .parent-container {
    display: flex;
    flex-direction: column;
  }
  .side-card {
    width: 900px;
    max-width: 100%;
    margin-top: 24px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .products-grid1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .price1-box{
    margin-top: 20px;
  }
}
@media (max-width: 272px) {
  .satisfaction-box {
    
    margin:  0 auto;
    margin-top: 10px;
    margin-bottom: 20px !important;
  }
}

@media (max-width: 420px) {
  .header-view-more {
    margin: 0 auto;
  }
 

  .side-header {
    margin-top: -10px;
    margin-bottom: -10px;
  }
}
@media (max-width: 310px) {
  .blue-box {
    flex-direction: column; /* 👈 تبدیل به ستون */
    align-items: flex-start;
  }

  .blue-box img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
  }

  .products-grid1 {
    display: flex;           /* 👈 تبدیل گرید به فلکس */
    flex-direction: column; /* 👈 چینش عمودی */
    gap: 12px;
  }

  .mini-product {
    width: 100%;
  }
}













/*ضمانت ها*/
.scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center; /* وسط‌چین کردن inline-flex */
}
body.dark-mode .service-cards .card{
  background-color: #212121 !important;
  box-shadow: 0 1px 8px rgba(47, 67, 14, 0.497);
  }
  body.dark-mode .service-cards p{
    color: #2f430e !important;
    }
.service-cards {
  display: inline-flex;
  gap: 16px;
  justify-content: flex-start; /* شروع از چپ یا راست */
  align-items: stretch;
  scroll-snap-type: x mandatory;
  padding: 20px;
  min-width: max-content; /* مهم‌ترین بخش برای اسکرول کامل */
}

.service-cards .card {
  background-color: #ffffff ;
  flex: 0 0 auto;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  scroll-snap-align: start;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  padding: clamp(12px, 2vw, 16px);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

    min-width: clamp(140px, 60vw, 180px); /* در موبایل بهتره vw بیشتر باشه */
  
  
}

.service-cards .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-cards img {
  width: clamp(36px, 8vw, 48px);
  height: auto;
  margin-bottom: 12px;
}

.service-cards h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.service-cards p {
  font-size: 13px;
  color: #666;
}

/* فضای خالی انتهایی برای اسکرول کامل */
.service-cards::after {
  content: '';
  width: 16px;
  flex: 0 0 auto;
}

/* بخش محصولات لباس */
.clothing-products-section {
  width: 100%;
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

.products-container {
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: bold;
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

.section-title .blue-part {
  color: #0155fe;
}

.section-title .gray-part {
  color: #666;
}

.view-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #0155fe;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #0140cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 85, 254, 0.3);
}

.view-all-btn svg {
  width: 20px;
  height: 20px;
}

.clothing-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.clothing-product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.clothing-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.clothing-product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #f5f5f5;
}

.clothing-product-info {
  padding: 16px;
}

.clothing-product-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #222;
  line-height: 1.4;
}

.clothing-product-price {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.clothing-product-price .new-price {
  font-size: 18px;
  font-weight: bold;
  color: #0155fe;
}

.clothing-product-price .old-price {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}

.clothing-product-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #ff4444;
  color: white;
  font-size: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* حالت تاریک */
body.dark-mode .clothing-product-card {
  background: #1f1f1f;
  box-shadow: 0 2px 8px rgba(47, 67, 14, 0.3);
}

body.dark-mode .clothing-product-title {
  color: #f1f1f1;
}

body.dark-mode .clothing-product-price .new-price {
  color: #4a9eff;
}

body.dark-mode .clothing-product-image {
  background: #2a2a2a;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .clothing-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
  
  .clothing-product-image {
    height: 200px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .view-all-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .scroll-wrapper {
    text-align: start;
  }

  .service-cards {
    justify-content: flex-start;
    min-width: max-content;
    padding: 16px;
  }

  .service-cards .card {
    min-width: clamp(140px, 60vw, 180px);
  }
}

.p-scroll-container1 {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
}


.p-scroll-container1::-webkit-scrollbar {
  height: 8px;
}

.p-scroll-container1::-webkit-scrollbar-thumb {
  background-color: #2f430e;
  border-radius: 4px;
}
.p-scroll-container1 {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;

  /* حذف scrollbar در مرورگرهای مختلف */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.p-scroll-container1::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}















/*فرم لاگین*/
  .form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    padding: 30px;
    width: 450px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  }
  
  .form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .form-logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
  }
  
  .form-title {
    font-size: 24px;
    font-weight: 700;
    color: #2f430e;
    font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
    margin-bottom: -20px;
    margin: 0;
  }
  
::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #767676;
  
}

.form button {
  align-self: flex-end;
}

.flex-column > label {
  color: #2f430e;
  font-weight: 600;
}

.inputForm {
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
  transition: 0.2s ease-in-out;
  background-color: none;

}
.inputForm svg{
  margin-left: 6px;
}
.input-login {
  margin-left: 10px;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border: none;
  width: 100%;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  height: 100%;
  background-color: #ffffff;
  color: #000000;

}

.input-login:focus {
  outline: none;
}

.inputForm:focus-within {
  box-shadow: 0 1px 14px rgba(0, 106, 255, 0.43);
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.flex-row > div > label {
  font-size: 14px;
  color: #000000;
  font-weight: 400;
}

.span {
  font-size: 14px;
  margin-left: 5px;
  color: #2d79f3;
  font-weight: 500;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  cursor: pointer;
}

.button-submit {
  margin: 20px 0 10px 0;
  background-color: #2d79f3;
  border: none;
  color: rgb(0, 0, 0);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  height: 50px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  width: 100%;
  cursor: pointer;
}

.p {
  text-align: center;
  color: #000000;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  font-size: 14px;
  margin: 5px 0;
}

.btn {
  margin-top: 10px;
  width: 100%;
  height: 50px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  gap: 10px;
  border: 1px solid #333;
  background-color: #2b2b2b;
  color: #f1f1f1;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.btn:hover {
  border: 1px solid #2d79f3;
}
/*ثبت رمز عبور جدید*/
.hint {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
  margin-bottom: 8px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.eye-icon {
  cursor: pointer;
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.eye-icon:hover {
  transform: scale(1.1);
}
/*کده otp*/
.otp-inputs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0;
}

.otp-box {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.otp-box:focus {
  outline: none;
  border-color: #2f430e;
  box-shadow: 0 0 8px rgba(0,106,255,0.3);
}

.hint {
  font-size: 14px;
  color: #555;
  margin-top: 6px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.timer {
  color: #2f430e;
  font-weight: bold;
}


























/*پنل کاربری*/
.user-account {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  min-height: clamp(280px, 50vh, 400px); /* کمترش کردم */
  gap: 24px;
}

.account-page {
  display: flex;
  flex-direction: row; /* اضافه‌شده برای وضوح */
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}


/* ستون سمت راست */
.sidebar {
  flex: 1;
  min-width: 280px;
max-height: 620px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 64, 255, 0.297);
  padding: 24px;
  position: sticky;
  top: 32px;
  transition: all 0.3s ease;
 
}
@media (max-width: 950px) {
  .sidebar {
    position: static;
    top: auto;
  }
}
.profile-box {
  text-align: center;
  margin-bottom: 24px;
}

.avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 57, 246, 0.804);
  border: 4px solid #2f430e;
  object-fit: cover;
}

.username {
  margin-top: 12px;
  font-size: 18px;
  font-weight: bold;
}

.mobile {
  font-size: 14px;
  color: #2f430e;
}
body.dark-mode .mobile{
  color: #2f430e !important;
  }
.menu-user ul {
  list-style: none;
  padding: 0;
}

.menu-user li {
    padding: 10px 10px; /* ارتفاع کمتر */
    font-size: 16px; /* متن کوچکتر برای هماهنگی */
    gap: 8px; /* فاصله آیکون و متن کمتر */
  display: flex;
  align-items: center;
  font-weight: 100;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-user li:hover {
  background: #e0e9ff;
  color: #2f430e;
}

/* ستون سمت چپ */
.dashboard {
  flex: 3;
  min-width: 800px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  padding: 24px;
}

.top-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.icon-circle {
  width: 48px;
  height: 48px;
  background: #e0e9ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(47, 67, 14, 0.447);
}

.icon-circle:hover {
  background: #2f430e;
  transform: scale(1.05);
}



.icon-circle svg {
  width: 24px;
  height: 24px;
  stroke: #2f430e;
  transition: all 0.3s ease;
}

.stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  flex: 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 1px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(47, 67, 14, 0.447);
}

.stat-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 14px;
  color: #555;
}

.orders-box h3{
  margin-bottom: 24px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  color: #2f430e;
}

.orders-table {
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  width: 100%;
  border-collapse: collapse;
}

.orders-table th, .orders-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.product--info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.address{
  color: #2f430e;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}
.product--info img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
}

.status.canceled {
  color: crimson;
  font-weight: bold;
}

.status.paid {
  color: green;
  font-weight: bold;
}

.address-box {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}
body.dark-mode .dashboard{
  box-shadow: 0 0 10px rgba(0, 106, 255, 0.392);
}
body.dark-mode .address-box{
 border: 1px solid #4e4e4e;
}
.address-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.add-address {
  color: #2f430e;
  text-decoration: none;
  font-size: 14px;
}

.address-item {
  background: #fff;
  padding: 16px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}
@media (max-width: 1024px) {
  .user-account {
    flex-direction: column;
    min-height: auto;
  }

  .sidebar,
  .dashboard {
    max-width: 100%;
    min-width: 100%;
    padding: 16px;
  }

  .stats-row {
    flex-direction: column;
    gap: 12px;
  }

  .stat-card {
    padding: 12px;
  }

  .top-icons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
  }

  .icon-circle svg {
    width: 20px;
    height: 20px;
  }

  .orders-table th,
  .orders-table td {
    font-size: 13px;
    padding: 8px;
  }

  .product--info img {
    width: 60px;
    height: 60px;
  }

  .menu-user li {
    padding: 8px;
    font-size: 15px;
    gap: 6px;
  }

  .address-box,
  .address-item {
    padding: 12px;
  }

  .add-address {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .account-page {
    padding: 12px;
    gap: 16px;
  }

  .username {
    font-size: 16px;
  }

  .mobile {
    font-size: 13px;
  }

  .stat-card h4 {
    font-size: 14px;
  }

  .stat-card p {
    font-size: 13px;
  }

  .orders-box h3,
  .address-header h3 {
    font-size: 16px;
  }

  .menu-user li {
    font-size: 14px;
    padding: 6px;
  }

  .icon-circle {
    width: 36px;
    height: 36px;
  }

  .icon-circle svg {
    width: 18px;
    height: 18px;
  }

  .product--info img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 358px) {
  .user-account {
    flex-direction: column;
    padding: 0 8px;
    gap: 12px;
  }

  .account-page {
    padding: 8px;
    gap: 12px;
  }

  .sidebar,
  .dashboard {
    padding: 12px;
    border-radius: 8px;
    min-width: 100%;
  }

  .avatar img {
    width: 64px;
    height: 64px;
    border-width: 2px;
  }

  .username {
    font-size: 14px;
  }

  .mobile {
    font-size: 11px;
  }

  .menu-user li {
    font-size: 12px;
    padding: 6px 8px;
    gap: 4px;
  }

  .icon-circle {
    width: 28px;
    height: 28px;
  }

  .icon-circle svg {
    width: 14px;
    height: 14px;
  }

  .stats-row {
    flex-direction: column;
    gap: 8px;
  }

  .stat-card h4 {
    font-size: 13px;
  }

  .stat-card p {
    font-size: 11px;
  }

  .orders-table {
    font-size: 11px;
  }

  .orders-table th,
  .orders-table td {
    padding: 6px;
    font-size: 11px;
  }

  .product--info {
    flex-direction: column;
    align-items: center;
  }

  .product--info img {
    width: 48px;
    height: 48px;
  }

  .address-box,
  .address-item {
    padding: 10px;
    border-radius: 6px;
  }

  .address-header h3 {
    font-size: 14px;
  }

  .add-address {
    font-size: 11px;
  }
}
@media (max-width: 1192px) and (min-width: 931px) {
  .account-page {
    max-width: 100%;
    padding: 16px;
    gap: 16px;
  }

  .dashboard {
    flex: 3;
    min-width: auto;
    width: 100%;
  }

  .sidebar {
    flex: 1;
    min-width: 510px;
  }
}
@media (max-width: 930px) {
  .user-account {
    flex-direction: column;
    padding-inline: 1rem;
  }

  .account-page {
    flex-direction: column;
    align-items: center;
    padding: 16px;
    gap: 24px;
  }

  .sidebar {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: static;
    top: auto;
  }

  .dashboard {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
  }
}
@media (max-width: 1080px) and (min-width: 1025px) {
  .dashboard {
    min-width: auto;
    flex: 3;
    width: 100%;
  }

  .sidebar {
    flex: 1;
    min-width: 510px;
  }

  .account-page {
    flex-wrap: nowrap; /* جلوگیری از شکستن چیدمان */
    gap: 16px;
  }
}










/*سبد خرید*/

.cart-page {
  padding: 32px;
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  margin: 0 auto;
  max-width: 1200px;
  border-radius: 16px;

  /* ریسپانسیو شدن محتوا */
  width: 100%;
  box-sizing: border-box;
}

/* حالت تبلت و موبایل */
@media screen and (max-width: 768px) {
  .cart-page {
    padding: 24px 16px;
    border-radius: 12px;
  }
}

/* حالت خیلی کوچک (مثلاً موبایل‌های قدیمی) */
@media screen and (max-width: 480px) {
  .cart-page {
    padding: 16px 12px;
    border-radius: 8px;
  }
}

.breadcrumb {
  font-size: 14px;
  color: #2a94ff;
  margin-bottom: 20px;
  padding: 8px 16px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  border-radius: 8px;
}
.cart-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;

  /* ریسپانسیو شدن محتوا */
  justify-content: space-between;
  align-items: stretch;
}

/* حالت تبلت */
@media screen and (max-width: 768px) {
  .cart-layout {
    gap: 24px;
    flex-direction: column;
  }
}

/* حالت موبایل */
@media screen and (max-width: 480px) {
  .cart-layout {
    gap: 16px;
    flex-direction: column;
  }
}


.cart-box, .summary-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}
.cart-box:hover, .summary-box:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.cart-box {
  flex: 2;
  min-width: 300px;
  width: 100%;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  box-sizing: border-box;
}

/* حالت تبلت */
@media screen and (max-width: 768px) {
  .cart-box {
    flex: 1 1 100%;
    min-width: auto;
  }
}

/* حالت موبایل */
@media screen and (max-width: 480px) {
  .cart-box {
    flex: 1 1 100%;
    padding: 0 8px;
  }
}


.summary-box {
  flex: 1;
  min-width: 260px;
  max-height: 270px;
  background: linear-gradient(135deg, #f0f4ff, #ffffff);
}
body.dark-mode .summary-box{
  box-shadow: 0 0 10px #2f430e!important;
}
.cart-header-cart {
  display: flex;
  justify-content: space-between;
  margin-top: -30px;
  align-items: center;
  
}

.clear-cart {
  display: inline-flex;
  align-items: center;       /* وسط‌چین عمودی */
  justify-content: center;   /* وسط‌چین افقی */
  gap: 8px;                  /* فاصله بین آیکن و متن */
  background: none;
  border: none;
  color: #ff0000;
  cursor: pointer;
  font-size: 15px;
  vertical-align: middle;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.clear-cart svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.clear-cart:hover {
  color: #cc0000;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: nowrap;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
  box-shadow: 0 1px 10px rgba(0, 94, 255, 0.249);
  position: relative;
  padding: 16px;
  border: 1px dashed #2f430e;
  border-radius: 12px;
}

.remove-btn-cart {
  position: absolute;
  top: 8px;
  left: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.remove-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.remove-btn-cart:hover .remove-icon {
  transform: scale(1.2);
}

.product-img {
  width: 180px !important;
  height: 180px !important;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 1px 10px rgba(0, 94, 255, 0.601);
}

.product-details-cart {
  flex: 1;
  color: #333;
}
.color-label {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* فاصله بین دایره و متن */
  font-size: 14px;
  color: #444;
}

.color-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #aaa;
  flex-shrink: 0;
}
body.dark-mode .color-indicator{
  background-color: #2f430e !important;
}
.color-indicator {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 8px 0;
  border: 2px solid #ccc;
}

.feature-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-size: 14px;
  color: #2f430e;
}

.icon {
  width: 20px;
  height: 20px;
  transition: fill 0.3s ease;
}
.icon:hover {
  fill: #2f430e;
}

.quantity-control-cart {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.quantity-control-cart button {
  background-color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 1px 10px rgba(0, 94, 255, 0.601);
  color: #333;
  transition: background-color 0.3s ease;
}
.quantity-control-cart button:hover {
  background-color: #92b8ff;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 15px;
  color: #444;
}

.summary-row.total {
  font-weight: bold;
  font-size: 17px;
  color: #222;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #2f430e, #2f430e);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s ease;
}
.checkout-btn:hover {
  background: linear-gradient(90deg, #2f430e, #2f430e);
}

@media (max-width: 768px) {
  .cart-layout {
    flex-direction: column;
  }

  .cart-item {
    flex-direction: column;
    align-items: center;
  }

  .product-img {
    width: 120px;
    height: 120px;
  }

  .product-details-cart {
    text-align: center;
  }

  .summary-box {
    margin-top: 24px;
  }
}


/*پرداخت*/
.checkout-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  direction: rtl;
}

.breadcrumb {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
  padding: 8px 0;
  border-bottom: 1px dashed #ccc;
}

.checkout-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
body.dark-mode .checkout-form {
  box-shadow: 0 0 10px rgba(0, 94, 255, 0.875) !important;
}
.checkout-form {
  flex: 2;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.checkout-form:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.checkout-form h2,
.checkout-form h3 {
  margin-bottom: 16px;
  color: #222;
  font-weight: bold;
  font-size: 20px;
}

.checkout-form .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.checkout-form input[type="text"],
.checkout-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.checkout-form input[type="text"]:focus,
.checkout-form textarea:focus {
  border-color: #2f430e;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
  outline: none;
}
body.dark-mode .checkout-form input[type="text"]:focus,
.checkout-form textarea:focus  {
  border-color: #2f430e !important;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3) !important;
  outline: none; 
}
.checkout-form textarea {
  resize: vertical;
  height: 100px;
  margin-top: 8px;
}

.shipping-method {
  margin-top: 32px;
}

.shipping-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: #f1f1f1;
  transition: background 0.3s ease;
}

.shipping-options:hover {
  background: #e0e0e0;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2f430e, #2f430e);
  color: #fff;
  border: none;
  border-radius: 10px;
  margin-top: 16px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  cursor: pointer;
  font-size: 17px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.checkout-btn:hover {
  background: linear-gradient(135deg, #2f430e, #2f430e);
  transform: translateY(-2px);
}

.checkout-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.summary-box,
.order-history {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.order-history{
  margin-top:30px;
}
body.dark-mode .order-history{
  box-shadow: 0 0px 10px rgb(0, 85, 255);
}
.order-date {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.order-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: #f8f8f8;
  transition: background 0.3s ease;
}

.order-item:hover {
  background: #eaeaea;
}

.order-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.order-item:hover img {
  transform: scale(1.05);
}

.item-details h4 {
  margin: 0;
  font-size: 17px;
  color: #222;
}

.item-details p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}

.color-dot {
  width: 26px;
  height: 26px;
  background: #2f430e;
  border-radius: 50%;
  margin: 8px 0;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
}

.item-price {
  font-weight: bold;
  color: #2f430e;
  font-size: 15px;
}

/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
  .checkout-grid {
    flex-direction: column;
  }

  .checkout-form,
  .checkout-side {
    width: 100%;
  }

  .form-row {
    flex-direction: column;
  }

  .shipping-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ساختار اصلی */
.checkout-layout {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap; /* جلوگیری از رفتن به خط بعد */
  align-items: flex-start;
  overflow-x: auto; /* اسکرول افقی در موبایل */
  padding-bottom: 16px;

}

/* مستطیل بزرگ */
.checkout-main {
  flex: 1;
  background-color: #ffffff;
  padding: 24px;
  border-radius: 12px;
}

/* بخش کناری */
.checkout-side {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* سفارش‌ها و خلاصه */
.order-history {
  background-color: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

/* سفارش‌ها */
.order-item {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.order-item img {
  width: 80px;
  height: auto;
  border-radius: 8px;
}

.item-details {
  flex: 1;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #2f430e;
  margin: 4px 0;
}

/* دکمه‌ها */
.checkout-btn,
.apply-btn {
  width: 100%;
  padding: 10px 16px;
  background-color: #2f430e;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
}

/* ورودی تخفیف */
.discount-input {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.discount-input input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed #2f430e;
  background-color: #fff;
  color: #000;
}

/* مسیر بالا */
.checkout-breadcrumb {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}

/* پرداخت */
.payment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.payment-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.checkout-payment-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.checkout-payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #2f430e;
  background-color: #fff;
  cursor: pointer;
}

.checkout-payment-option input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #2f430e;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

.checkout-payment-option input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: #2f430e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.option-text {
  font-size: 15px;
  color: #000;
}
body.dark-mode .checkout-payment-option{
  background-color: #000 !important;
}
@media (max-width: 768px) {
  .checkout-layout {
    flex-direction: column;
    gap: 16px;
  }

  .checkout-main {
    min-width: 100%;
    width: 100%;
  }

  .checkout-side {
    width: 100%;
  }
}


/* صفحه 404 */
.error-404 {
  margin-bottom: 400px;
  position: relative;
  margin-top: 200px;
}

.space-404 {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  max-width: 500px;
  width: 100%;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  color: white;
  font-family: 'Vazirmatn', sans-serif;
  box-sizing: border-box;
}

/* عنوان خطا */
.not-found {
  font-size: 35px;
  color: #2f430e;
  margin-bottom: 50px;
  margin-top: -20px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  text-shadow: 0 10px 8px #2f430ea8;
  word-break: break-word;
}

/* عدد 404 */
.error-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 200px;
  font-weight: bold;
  position: relative;
  color: white;
  gap: 65px;
  flex-wrap: wrap;
}

.digit {
  font-size: 140px;
  font-weight: bold;
  color: #2f430e;
  text-shadow:
    0 0 6px #1b3b5f,
    0 0 12px #2793ff,
    0 0 20px #93c9ff;
}

/* ریسپانسیو زیر 768px */
@media (max-width: 768px) {
  .error-404 {
    margin-bottom: 470px;
  }

  .space-404 {
    max-width: 90%;
    padding: 30px 20px;
  }

  .not-found {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .error-graphic {
    font-size: 160px;
    gap: 30px;
  }

  .digit {
    font-size: 100px;
  }
}




.zero-wrapper {
  position: relative;
  display: inline-block;
}

.astronaut-on-zero {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;   /* اندازه پیش‌فرض در دسکتاپ */
  height: auto;
  transform: translate(-50%, -60%);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -60%); }
  50% { transform: translate(-50%, -70%); }
}

/* وقتی عرض <= 768px شد */
@media (max-width: 768px) {
  .astronaut-on-zero {
    width: 120px;   /* کوچیک‌تر از حالت دسکتاپ */
  }
}

.back-button {
  margin-top: 30px;
  color: rgb(209, 230, 255);
  background: linear-gradient(135deg, #2f430e, #2f430e);
  box-shadow:
    0 6px 18px rgba(0, 106, 255, 0.6),
    0 0 12px rgba(0, 106, 255, 0.4),
    0 0 24px rgba(0, 106, 255, 0.2);
  transform: translateY(-2px) scale(1.03);
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  max-width: 180px;
  margin: 0 auto;
  letter-spacing: 0.5px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  
}
.back-button:hover {
  background: linear-gradient(135deg, #2f430e, #2f430e);
  box-shadow:
    0 6px 18px rgba(0, 106, 255, 0.6),
    0 0 12px rgba(0, 106, 255, 0.4),
    0 0 24px rgba(0, 106, 255, 0.2);
  transform: translateY(-2px) scale(1.03);
}
.back-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  transform: rotate(45deg);
  transition: opacity 0.4s ease;
  opacity: 0;
}

.back-button:hover::after {
  opacity: 1;
}




/*پرداخت موفق*/
.payment-success {
  max-width: 500px;
  margin: 80px auto;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  direction: rtl;
}
body.dark-mode .info-card-successful-payment {
box-shadow: 0 0 10px rgb(0, 72, 255);
}
.success-icon {
  width: 100px;
  margin-top: -70px;
}

.success-title {
  font-size: 24px;
  color: #20d013;
  margin-bottom: 0px;
}

.success-subtext {
  font-size: 15px;
  color: #555;
  margin-bottom: 30px;
}

.info-card-successful-payment {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: right;
}

.info-card-successful-payment h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.info-card-successful-payment hr {
  border: none;
  border-top: 1px solid #ddd;
  margin-bottom: 15px;
}

.info-row-successful-payment {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
  color: #444;
}

.account-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2f430e, #2f430e);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.account-button:hover {
  background: linear-gradient(135deg, #2f430e, #2f430e);
  transform: translateY(-2px);
}

/*پرداخت ناموفق*/
.payment-fail {
  max-width: 500px;
  margin: 80px auto;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  direction: rtl;
}
body.dark-mode .info-card-fail-payment{
  box-shadow:  0 0 10px #2f430e;
}
.fail-icon {
  width: 100px;
  margin-top: -70px;
}

.fail-title {
  font-size: 24px;
  color: #ff0000;
  margin-bottom: 0px;
}

.fail-subtext {
  font-size: 15px;
  color: #555;
  margin-bottom: 30px;
}

.info-card-fail-payment {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: right;
}

.info-card-fail-payment h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.info-card-fail-payment hr {
  border: none;
  border-top: 1px solid #ddd;
  margin-bottom: 15px;
}

.info-row-fail-payment {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
  color: #444;
}

.again-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2f430e, #2f430e);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.again-button:hover {
  background: linear-gradient(135deg, #2f430e, #2f430e);
  transform: translateY(-2px);
}










/*ارتباط با ما */
.contact-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.contact-form,
.contact-info {
  flex: 1;
  margin-top: 20px;
  margin-bottom: 20px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 76, 255, 0.06);
  border: 1px solid #e0eaff;
}
body.dark-mode .contact-form
 {
  box-shadow: 0 0px 12px #2f430e;
  border: none;
}
body.dark-mode .contact-info{
  box-shadow: 0 0px 12px #2f430e;
  border: none;
}
/* فرم تماس */
.form-title {
  font-size: 1.4rem;
  color: #2f430e;
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-row input:focus {
  border-color: #2f430e;
  outline: none;
}
body.dark-mode .form-row input:focus{
  border-color: #2f430e !important;
  outline: none !important;
}
textarea {
  width: 100%;
  height: 150px;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  resize: none;
  transition: border-color 0.3s ease;
  margin-bottom: 1rem;
}

textarea:focus {
  border-color: #2f430e;
  outline: none;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-note {
  font-size: 0.85rem;
  color: #666;
}

.send-btn {
  background-color: #2f430e;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.send-btn:hover {
  background-color: #2f430e;
}

/* اطلاعات تماس */
.info-title {
  text-align: center;
  font-size: 1.4rem;
  color: #2f430e;
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #333;
}

.info-list li span:first-child {
  font-weight: bold;
  color: #2f430e;
}

/* حالت موبایل */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    padding: 0 20px;
  }
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .send-btn {
    align-self: flex-end;
  }
}
@media (min-width: 768px){
  .contact-container {
    padding: 0 20px;
  }
}





/*سوالات*/


.faq-page {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.faq-title {
  font-size: 1.8rem;
  color: #2f430e;
  margin-bottom: 0.5rem;
}

.faq-subtext {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.faq-search input {
  width: 100%;
  max-width: 400px;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.faq-search input:focus {
  border-color: #2f430e;
  outline: none;
}
.faq-category-title {
  font-size: 1.6rem;
  color: #2f430e;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  margin: 2rem 0 1rem;
  text-align: center;
}
body.dark-mode .faq-card{
  background: linear-gradient(180deg, #1f1f1f 0%, #353535 100%);
  border: none;
}
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 3rem;
}

.faq-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
  border: 1px solid #d0e4ff;
  border-radius: 16px;
  padding: 1.2rem;
  width: 160px;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 76, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 76, 255, 0.12);
  background-color: #e6f0ff;
}

.faq-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.6rem;
  stroke: #2f430e;
  fill: none;
  stroke-width: 2;
  transition: stroke 0.3s ease;
}

.faq-card:hover .faq-icon {
  stroke: #2f430e;
}

.faq-card span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #2f430e;
}
.faq-section-title {
  font-size: 1.6rem;
  color: #2f430e;
 
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  text-align: center;
  margin-top: 3rem;
}

.faq-section-subtext {
  font-size: 0.95rem;
  color: #666;
  text-align: center;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  margin-bottom: 2rem;
}

.faq-questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}
body.dark-mode .faq-question-card{
  background: linear-gradient(180deg, #1f1f1f 0%, #353535 100%);
  border: none;
}
.faq-question-card {
  margin-bottom: 10px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
  border: 1px solid #d0e4ff;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 76, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.faq-question-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 76, 255, 0.1);
  background-color: #e6f0ff;
}

.faq-question-text {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  text-align: right;
  flex: 1;
}

.faq-question-icon {
  width: 24px;
  height: 24px;
  stroke: #2f430e;
  fill: none;
  stroke-width: 2;
  margin-left: 12px;
  flex-shrink: 0;
  transition: stroke 0.3s ease;
}

.faq-question-card:hover .faq-question-icon {
  stroke: #2f430e;
}





/* درباره ما */
/* ساختار کلی */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  direction: rtl;
}

/* بخش‌ها */
.about-section {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}



/* متن */
.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h1 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: #2f430e;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.about-text h2 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #333;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  color: #555;
  line-height: 1.8;
}

/* تصویر */
.about-image {
  flex: 1;
  min-width: 280px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 76, 255, 0.1);
  object-fit: cover;
}

/* آیکون */
.about-icon {
  width: 24px;
  height: 24px;
  stroke: #2f430e;
  fill: none;
  stroke-width: 2;
}

/* باکس اطلاعات */
.about-info {
  margin-top: 1.5rem;
  background-color: #e6f0ff;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: #2f430e;
}

/* دکمه */
.about-btn {
  background-color: #2f430e;
  color: #fff;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.about-btn:hover {
  background-color: #2f430e;
}

/* 📱 حالت ریسپانسیو */
@media (max-width: 600px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-info {
    flex-direction: column;
    text-align: center;
  }

  .about-btn {
    width: 100%;
  }
}

@media (max-width: 317px) {
  .about-container {
    padding: 1rem;
    gap: 2rem;
  }

  .about-text h1,
  .about-text h2,
  .about-text p {
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
  }

  .about-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}


/*طلاعات حساب کاربری */

.user-account-information {
  margin: 0 auto; /* وسط‌چینی کل سکشن */
  max-width: 1200px; /* محدود کردن عرض برای فاصله از دیواره‌ها */
  padding: 2rem;
  font-family: 'Vazir', sans-serif;
  direction: rtl;
  background-color: #f9f9fb00;
}

.dashboard-layout-information {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* باکس پروفایل */
.profile-sidebar {
  flex: 1 1 280px;
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-box {
  text-align: center;
  margin-bottom: 1rem;
}

.avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2f430e;
  box-shadow: 0 0 10px rgba(0, 57, 246, 0.3);
}

.username {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 0.5rem;
  color: #2f430e;
}

.mobile {
  font-size: 0.9rem;
  color: #555;
}

.menu-user ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.menu-user li {
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.menu-user li:hover {
  background-color: #e0e9ff;
  color: #2f430e;
}

/* باکس اطلاعات حساب */
.account-info-panel {
  flex: 2 1 600px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,76,255,0.08);
}
.box-name{
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}
.panel-title {
  font-size: 1.4rem;
  color: #2f430e;
  margin-bottom: 1.5rem;
}

.info-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}


.info-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin:  0 auto;
}

.info-field span {
  display: block;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.4rem;
  
}
body.dark-mode .input-wrapper-account {
  box-shadow: 0 0 10px rgb(30, 30, 30);
}
.input-wrapper-account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f1f6ff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.input-wrapper-account input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  color: #919191;
}

.input-wrapper input:focus {
  outline: none;
}

.edit-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.edit-btn svg {
  width: 20px;
  height: 20px;
  stroke: #2f430e;
  fill: none;
}

.input-wrapper-account input {
  flex: 1;
  width: 100%;
  min-width: 0;
}

/* حالت موبایل */
@media (max-width: 576px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .panel-title {
    text-align: center;
  }

  .info-field span {
    font-size: 0.9rem;
  }

  .input-wrapper-account {
    padding: 0.5rem 0.8rem;
  }

  .input-wrapper-account input {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .info-grid {
    display: flex;
    flex-direction: column;
    align-items: center; /* وسط‌چینی ستون‌ها */
    gap: 1.5rem;
  }

  .info-column {
    width: 100%;
    max-width: 400px; /* عرض محدود برای زیبایی */
  }

  .input-wrapper-account {
    width: 100%;
    max-width: 100%;
    margin: 0 auto; /* وسط‌چینی تکست‌باکس */
    padding: 0.6rem 1rem;
  }

  .input-wrapper-account input {
    font-size: 0.9rem;
  }

  .panel-title {
    text-align: center;
  }
}


/* حالت بین 1192px تا 931px → فقط عرض کمتر بشه */
@media (max-width: 1192px) and (min-width: 931px) {
  .dashboard-layout-information {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .profile-sidebar {
    flex: 1 1 260px;
  }

  .account-info-panel {
    flex: 2 1 auto;
    width: 100%;
  }

  .user-account-information {
    padding-inline: 1rem;
  }
  .info-column{
    margin: 0 auto;
  }
}

/* حالت زیر 930px → چیدمان ستونی، وسط‌چینی */
@media (max-width: 930px) {
  .dashboard-layout-information {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .profile-sidebar {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .account-info-panel {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    padding: 2rem 1.5rem;
  }
  .info-column{
    margin: 0 auto;
  }
  .user-account-information {
    padding-inline: 1rem;
  }
}








/* مورد علاقه */
.user-account-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Vazir', sans-serif;
  direction: rtl;
  background-color: #f5f7fb;
}

.account-layout {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  align-items: flex-start;
}

/* ستون پروفایل */
.profile-sidebar {
  flex: 0 0 280px;
  max-width: 280px;
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-info {
  text-align: center;
}

.profile-avatar img {
  width: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.profile-name {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.profile-mobile {
  font-size: 0.9rem;
  color: #666;
}

.profile-menu li {
  list-style: none;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.profile-menu li:hover {
  background-color: #e0e9ff;
  color: #2f430e;
}

/* محصولات مورد علاقه */
.filters-favorite {
  flex: 0 0 320px;
  max-width: 100%;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.07);
  font-family: 'Vazir', sans-serif;
  color: #333;
  position: sticky;
  top: 32px;
  z-index: 1;
  transition: all 0.3s ease;
}

.filters-favorite:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 2px rgba(0, 76, 255, 0.1);
}

/* ✅ حالت ریسپانسیو زیر 1401px */
@media (max-width: 1400px) {
  .filters-favorite {
    flex: 1 1 100%;
    max-width: 500px;
    margin: 0 auto;
    position: static;
    top: auto;
    border-radius: 12px;
    position: sticky;
  top: 32px;
  z-index: 1;
  transition: all 0.3s ease;
  margin-inline: 1.3rem;
  }

  .filters-favorite .profile-box {
    text-align: center;
  }

  .filters-favorite .avatar img {
    width: 72px;
    border-radius: 50%;
    margin-bottom: 1rem;
  }

  .filters-favorite .username {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .filters-favorite .mobile {
    font-size: 0.85rem;
    color: #666;
  }

  .filters-favorite .menu-user {
    margin-top: 1.5rem;
  }

  .filters-favorite .menu-user li {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.3s ease;
  }

  .filters-favorite .menu-user li:hover {
    background-color: #e0e9ff;
    color: #2f430e;
  }
}
@media (max-width: 850px) {
 
  .layout {
    flex-direction: column;
    align-items: center; /* وسط‌چینی کل محتوا */
  }
  .filters-favorite {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem auto; /* وسط‌چینی و فاصله پایین */
    position: static;
    top: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 2rem 2rem;
  }

  .dashboard-favorites {
    width: 100%;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-inline: 1rem;
  }

  .favorite-card {
    max-width: 500px;
    margin: 0 auto;
  }
  .shop-info-favorite{
    margin-inline: 1rem;
  }
}






/*پیام ها */
.message-wrapper {
  display: flex;
  flex-direction: column; /* چیدمان ستونی */
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: center; /* وسط‌چینی باکس‌ها */
}

.message-card {
  width: 100%;
  max-width: 800px; /* عرض زیاد ولی کنترل‌شده */
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.5rem;
  font-family: 'Vazir', sans-serif;
  transition: transform 0.3s ease;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.message-card:hover {
  transform: translateY(-4px);
}
body.dark-mode .message-card{
  box-shadow: 0 0px 12px #2f430e;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.message-header h3 {
  font-size: 1rem;
  color: #2f430e;
  margin: 0;
}

.track-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #e0e9ff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #2f430e;
  cursor: pointer;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  transition: background 0.3s ease;
}

.track-btn:hover {
  background-color: #d0dcff;
}

.message-card p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1rem;
}

.message-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .message-wrapper {
    grid-template-columns: 1fr;
  }

  .track-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .message-header h3 {
    font-size: 0.95rem;
  }

  .message-card p {
    font-size: 0.9rem;
  }

  .message-footer {
    font-size: 0.8rem;
  }
}







.center-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center; /* وسط افقی */
  align-items: center;     /* وسط عمودی */
  gap: 1rem;
  background-color: #f9f9fb;
  z-index: 1;
}


.open-alert {
  padding: 0.6rem 1.2rem;
  background-color: #fff;
  color: #2f430e;
  border: none;
  border-radius: 8px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.open-alert:hover {
  background-color: #2f430e;
}

.alert-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.4);
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.alert-overlay.show {
  display: flex;
}

.alert-popup {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.alert-icon {
  margin-bottom: 1rem;
}

.alert-popup h3 {
  font-size: 1.2rem;
  color: #e74c3c;
  margin-bottom: 0.5rem;
}

.alert-popup p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.alert-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.alert-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.alert-btn.cancel {
  background-color: #e0e0e0;
  color: #333;
}

.alert-btn.confirm {
  background-color: #2f430e;
  color: #fff;
}

.alert-btn.cancel:hover {
  background-color: #ccc;
}

.alert-btn.confirm:hover {
  background-color: #2f430e;
}

/* ریسپانسیو */
@media (max-width: 480px) {
  .alert-popup {
    padding: 1.5rem;
  }

  .alert-actions {
    flex-direction: column;
  }

  .alert-btn {
    width: 100%;
  }
}


/*لودنیگ*/
.loading-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;

 
}

.loading-box {
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background-color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important; /* سایه حرفه‌ای */
  animation: fadeIn 0.6s ease-in-out;
}

.loading-logo {
  width: 100px;
  height: auto;
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  background-color: #2f430e;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* انیمیشن‌ها */
@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ریسپانسیو */
@media (max-width: 480px) {
  .loading-logo {
    width: 80px;
  }

  .loading-dots span {
    width: 10px;
    height: 10px;
  }
}










/* فاکتور فروش */
.invoice-sale {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  direction: rtl;
}

/* هدر */
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.invoice-logo {
  width: 80px;
  height: auto;
}

.invoice-title {
  font-size: 1.8rem;
  color: #2f430e;
  margin: 0;
  flex: 1;
  text-align: center;
}

.invoice-meta {
  font-size: 0.95rem;
  text-align: left;
  min-width: 180px;
}

/* اطلاعات طرفین */
.invoice-party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  background-color: #f9f9fb;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.party-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  flex-direction: column;
}

.info-row label {
  font-weight: bold;
  color: #2f430e;
  margin-bottom: 0.3rem;
}

.info-value {
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #ddd;
  color: #333;
  font-size: 0.95rem;
}

/* بخش‌ها */
.invoice-section {
  margin-bottom: 2rem;
}

.invoice-section h2 {
  font-size: 1.2rem;
  color: #2f430e;
  margin-bottom: 1rem;
}

/* جدول‌ها */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  overflow-x: auto;
}

.invoice-table th,
.invoice-table td {
  padding: 0.8rem;
  border: 1px solid #eee;
  text-align: center;
}

.invoice-table tfoot td {
  background-color: #f1f6ff;
  font-weight: bold;
  color: #2f430e;
}




















/*فوتر*/
.nazastore-footer {
  background-color: #f0f7ff;
  color: #000000;
  padding: 40px 24px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  position: relative;
  border-radius: 20px;
  /* اضافه‌شده‌ها برای محدود کردن عرض */
  max-width: 1200px; /* یا هر عددی که دوست داری، مثلاً 800px */
  margin: 0 auto;    /* وسط‌چین کردن فوتر */
  margin-bottom: 50px;
}


.footer-social {
  position: absolute;
  left: 24px;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-social a {
  font-size: 20px;
  color: #2f430e;
  transition: transform 0.3s;
}

.footer-social a:hover {
  transform: scale(1.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-left: 80px; /* فضای خالی برای آیکون‌ها */
}

.footer-section {
  flex: 1 1 220px;
  min-width: 200px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
}

.footer-section h3 {
  font-size: 18px;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  margin-bottom: 12px;
  color: #2f430e;
}

.footer-section p,
.footer-section ul {
  font-size: 14px;
  color: #ccc;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #2f430e;
}

.trust-img {
  width: 130px;
  height: auto;
  margin: 8px 0;
  background-color:none;
  border-radius: 6px;
  padding: 4px;
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  gap: 16px;
}

.brand-text {
  font-size: 40px;
  font-weight: bold;
  
}

.brand-text .blue {
  color: #2f430e;
}

.comment-form {
  display: flex;
  gap: 8px;
  
}

.comment-form input {
  padding: 8px;
  background-color: #d8e7ff; /* رنگ ملایم آبی */
  border-radius: 4px;
  border: none;
  min-width: 200px;
}

.comment-form button {
  padding: 8px 16px;
  background-color: #2f430e;
  font-family: 'Tunisia Bd MRT', 'Gill Sans', sans-serif;
  border: none;
  border-radius: 4px;
  color: #000;
  cursor: pointer;
  font-weight: bold;
}
.footer-social-vertical {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-social-vertical svg {
  transition: transform 0.3s ease;
  cursor: pointer;
}

.footer-social-vertical svg:hover {
  transform: scale(1.2);
  fill: #2f430e;
}
@media (max-width: 1258px) {
  .nazastore-footer {
  margin-left: calc(3vw);  /* فاصله از چپ به اندازه 5% از عرض صفحه */
  margin-right: calc(3vw); /* فاصله از راست به اندازه 5% از عرض صفحه */
  }

}
/* 📱 حالت ریسپانسیو برای عرض‌های زیر 768px */
@media (max-width: 768px) {
  .nazastore-footer {
    max-width: 100%;
    border-radius: 0;
    padding: 32px 16px;
      /* فاصله اتوماتیک از چپ و راست */
  margin-left: calc(5vw);  /* فاصله از چپ به اندازه 5% از عرض صفحه */
  margin-right: calc(5vw); /* فاصله از راست به اندازه 5% از عرض صفحه */
  }

  .footer-content {
    flex-direction: column;
    margin-left: 0;
    gap: 24px;
  }

  .footer-social {
    position: static;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
  }

  .footer-section p,
  .footer-section ul {
    font-size: clamp(0.85rem, 2vw, 1rem);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .brand-text {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .comment-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .comment-form input {
    min-width: unset;
    width: 100%;
    font-size: 0.9rem;
  }

  .comment-form button {
    width: 100%;
    font-size: 0.9rem;
  }

  .trust-img {
    margin: 0 auto;
  }
  .footer-section.links{
    margin-top: -100px;
  }
  .footer-social-vertical {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }
}

/* 📱 حالت خیلی کوچک زیر 360px */
@media (max-width: 360px) {
  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-section p,
  .footer-section ul {
    font-size: 0.8rem;
  }

  .comment-form input,
  .comment-form button {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .footer-social a {
    font-size: 18px;
  }

  .footer-bottom {
    gap: 8px;
  }
}
