/* ================= Base Styles ================= */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn[wght].woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazirmatn";
  background: #f7f9fa;
  color: #444;
  line-height: 1.6;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn.primary {
  background-color: #3498db;
  color: #fff;
}

.btn.primary:hover {
  background-color: #2980b9;
}

/* ================= Header ================= */
.header {
  position: sticky;
  top: 0px;
  width: 100%;
  z-index: 1000;
  background: #243447;
  color: #fff;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f39c12;
}

.header .logo a {
  color: inherit;
}

.main-menu {
  flex-grow: 1;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  padding: 0.5rem 0;
  display: block;
  transition: color 0.3s;
}

.nav-links a {
  color: #fff;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #f39c12;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  background-color: #1e2a38;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s;
  z-index: 10;
  border-radius: 5px;
}

.has-dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
}

.dropdown-menu li a {
  padding: 0.8rem 1rem;
  display: block;
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-form {
  display: flex;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.search-form input {
  border: none;
  padding: 0.5rem;
  outline: none;
  width: 150px;
  text-align: right;
  font-family: inherit;
}

.search-form button {
  background: #f39c12;
  border: none;
  color: #fff;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-actions a {
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.3s;
  position: relative;
}

.user-actions a:hover {
  color: #f39c12;
}

.favorite-link {
  position: relative;
  display: inline-block;
}

.fav-badge {
  position: absolute;
  top: -5px;
  left: -10px;
  background-color: red;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
}

.cart-badge {
  position: absolute;
  top: -5px;
  left: -10px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
}

/* ================= Features Section ================= */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.feature-box {
  background: #f7f9fa;
  padding: 1.2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-box i {
  font-size: 2rem;
  color: #f39c12;
  margin-bottom: 0.8rem;
}

.feature-box p {
  font-size: 1rem;
  font-weight: bold;
  color: #2c3e50;
}

/* ================= Footer ================= */
.site-footer {
  margin-top: 2rem;
  background: #243447;
  color: #fff;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: right;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #444;
}

.footer-grid .col h4 {
  font-size: 1.2rem;
  color: #f39c12;
  margin-bottom: 1rem;
}

.footer-grid .col ul {
  padding: 0;
}

.footer-grid .col li {
  margin-bottom: 0.5rem;
}

.footer-grid .col a {
  color: #bbb;
  transition: color 0.3s;
}

.footer-grid .col a:hover {
  color: #fff;
}

.footer-grid .col p {
  color: #bbb;
  margin-bottom: 0.5rem;
}

.footer-grid .col i {
  margin-left: 0.5rem;
  color: #f39c12;
}

.social-icons a {
  font-size: 1.5rem;
  margin-left: 1rem;
  color: #fff;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #f39c12;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
}

.copyright {
  font-size: 0.85rem;
  color: #bbb;
}

/* ================= Modal Styles ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-box h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: #27ae60;
}

.modal-box p {
  margin: 0;
  color: #444;
}

.modal-actions {
  margin-top: 1.5rem;
}

.modal-actions .btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}
