body {
  font-family: "Qaf", sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
  direction: rtl;
}

::selection {
  background: #4caf50;
  color: #fff;
}
::-moz-selection {
  background: #4caf50;
  color: #fff;
}

.loader-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(245, 247, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  position: relative;
}

.loader:before {
  content: "";
  width: 48px;
  height: 5px;
  background: #4caf4f3c;
  position: absolute;
  top: 60px;
  left: 0;
  border-radius: 50%;
  animation: shadow324 0.5s linear infinite;
}

.loader:after {
  content: "";
  width: 100%;
  height: 100%;
  background: #4caf50;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
  animation: jump7456 0.5s linear infinite;
}

@keyframes jump7456 {
  15% {
    border-bottom-right-radius: 3px;
  }
  25% {
    transform: translateY(9px) rotate(22.5deg);
  }
  50% {
    transform: translateY(18px) scale(1, 0.9) rotate(45deg);
    border-bottom-right-radius: 40px;
  }
  75% {
    transform: translateY(9px) rotate(67.5deg);
  }
  100% {
    transform: translateY(0) rotate(90deg);
  }
}

@keyframes shadow324 {
  0%,
  100% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.2, 1);
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #4caf50;
  border-radius: 20px;
  transition: 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d9a40;
  transition: 0.2s ease;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  background-color: transparent;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0;
  background-color: #fafafab3;
  border-radius: 0 0 50px 50px;
}

header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-top: 5px;
  transition: transform 0.3s;
}

.header-logo img:hover {
  transform: scale(1.05);
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}

.header-logo-text span:first-child {
  font-size: 1.1rem;
  font-weight: bold;
  color: #6c5d2e;
}

.header-logo-text span:first-child .highlight {
  color: #4caf50;
}

.header-logo-text span:last-child {
  font-size: 0.75rem;
  color: #9ca3af;
}

nav.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  margin-right: 30px;
}

nav.header-nav.show {
  max-height: 500px;
  width: 80%;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  padding: 10px 0;
  transform: translateY(0);
  opacity: 1;
}

nav.header-nav a {
  text-decoration: none;
  color: #333333;
  transition: color 0.3s;
}

nav.header-nav a.active,
nav.header-nav a:hover {
  color: #4caf50;
}

@media (max-width: 768px) {
  nav.header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin: 10px auto 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    overflow: hidden;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: max-height 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
      transform 0.45s ease, opacity 0.4s ease;
    z-index: 49;
  }

  nav.header-nav.show {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  nav.header-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: color 0.3s;
  }

  nav.header-nav a:last-child {
    border-bottom: none;
  }

  nav.header-nav a.active,
  nav.header-nav a:hover {
    color: #4caf50;
  }
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #747474;
  font-size: 1.5rem;
  font-weight: 500;
  transition: background 0.3s;
  transition: 0.5s ease;
}

.cart-btn:hover {
  color: #333333;
  transition: 0.5s ease;
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.625rem;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 50%;
}

.btn-logout,
.btn-login {
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: 0.3s ease;
  color: #747474;
}

.btn-logout {
  transition: 0.3s ease;
  font-family: "Qaf", sans-serif;
  background-color: none;
}

.btn-logout:hover {
  transition: 0.3s ease;
  transform: scale(1.05);
}

.btn-login {
  transition: 0.3s ease;
}

.btn-login:hover {
  color: #000;
  transition: 0.3s ease;
  transform: scale(1.05);
}

.hamburger-btn {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #747474;
}

.hamburger-btn:hover {
  color: #000;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

@media (max-width: 768px) {
  header .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 0;
  }

  .btn-login-mobile {
    display: inline-flex;
    padding: 8px 18px;
    color: #747474;
    gap: 5px;
    align-items: center;
    transition: 0.5s ease;
    font-weight: 500;
    text-decoration: none;
  }
}

.footer {
  width: 100%;
  background: linear-gradient(135deg, #5aba4f, #3b7a34);
  border-radius: 100px 100px 0 0;
  color: #fff;
  overflow: hidden;
}

.footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 80px 10%;
}

.footer-row .footer-col {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-row .footer-col h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-col .links {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}

.footer-col .links li {
  margin-bottom: 10px;
}

.footer-col .links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-col .links li a:hover {
  color: #315632;
}

.footer-col p {
  margin: 20px 0;
  max-width: 300px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
}

.footer-col form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.footer-col form input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.footer-col form button {
  background: #fff;
  color: #4caf50;
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.footer-col form button:hover {
  background: #315632;
  color: #fff;
}

.footer-col .icons {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
  font-size: 1.3rem;
  justify-content: flex-start;
}

.footer-col .icons i {
  color: #fff;
  transition: 0.3s ease;
  cursor: pointer;
}

.footer-col .icons i:hover {
  color: #315632;
}

.footer-bottom {
  text-align: center;
  background-color: #43893b;
  color: #fff;
  padding: 20px;
  font-size: 1rem;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 992px) {
  .footer .footer-row {
    padding: 60px 8%;
    gap: 1.5rem;
  }
  .footer-col {
    flex: 1 1 45%;
    text-align: center;
  }
  .footer-col .icons {
    justify-content: center;
  }
  .footer-col p {
    margin: 15px auto;
  }
}

@media (max-width: 576px) {
  .footer {
    border-radius: 50px 50px 0 0;
  }

  .footer .footer-row {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-col {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .footer-col h4 {
    font-size: 1.2rem;
  }

  .footer-col p {
    font-size: 0.95rem;
  }

  .footer-col .links li a {
    font-size: 1rem;
  }

  .footer-col form {
    flex-direction: column;
    gap: 8px;
  }

  .footer-col form input,
  .footer-col form button {
    width: 100%;
  }

  .footer-col .icons {
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }

  .footer-bottom {
    font-size: 0.9rem;
    padding: 15px;
  }
}



/*
 =========================================
 👨‍💻 Developer Information
 Author: Mohammad Hosein Habibi
 GitHub: @mandosein2025
 Instagram: @mohammadhosein_habb
 Tel: 09030428445
 =========================================
 */
