@font-face {
  font-family: "IRANSans";
  src: url("fonts/IRANSansWeb.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANSans";
  src: url("fonts/IRANSansWeb_Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body,
button,
input,
textarea,
select {
  font-family: "IRANSans", Tahoma, sans-serif;
}



:root {
  --green: #08783e;
  --dark-green: #064d2d;
  --light-green: #eaf4ec;
  --text: #252a26;
  --muted: #758078;
  --page: #f5f7f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, 94%);
  margin: auto;
}

/* سربرگ */
.header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: #fff;
  box-shadow: 0 3px 16px #0000000c;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  position: relative;
  display: block;
  width: 150px;
  overflow: hidden;
}

.logo img {
  display: block;
  width: 100%;
}

/* انیمیشن رد شدن هاله‌ی نور از لوگو */
.logo::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -70%;
  width: 35%;
  height: 160%;
  background: linear-gradient(90deg, transparent, #ffffffdd, transparent);
  transform: rotate(22deg);
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%, 25% { right: -70%; }
  75%, 100% { right: 140%; }
}

.navigation {
  display: flex;
  align-items: center;
  gap: 5px;
}

.navigation > a,
.dropdown-button {
  display: block;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.navigation > a:hover,
.dropdown-button:hover {
  color: var(--green);
  background: var(--light-green);
}

.nav-dropdown {
  position: relative;
}

.dropdown-button::after {
  content: "⌄";
  margin-right: 5px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: none;
  width: 185px;
  padding: 7px;
  background: white;
  border: 1px solid #e9eee9;
  border-radius: 10px;
  box-shadow: 0 10px 25px #00000015;
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.dropdown-menu a:hover {
  color: var(--green);
  background: var(--light-green);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icons button {
  border: 0;
  background: transparent;
  font-size: 21px;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
}

/* اسلایدر اصلی */
.hero {
  padding-top: 18px;
}

.hero-slider {
  position: relative;
  height: 310px;
  overflow: hidden;
  border-radius: 17px;
  background: #eaf2eb;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-text {
  z-index: 1;
  padding: 28px 8%;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: bold;
}

.hero-text h1,
.hero-text h2 {
  margin: 5px 0;
  color: var(--dark-green);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.6;
}

.hero-text p {
  margin: 8px 0 17px;
  color: #58645b;
  font-size: 14px;
}

.green-button {
  display: inline-block;
  padding: 8px 17px;
  border-radius: 20px;
  background: var(--green);
  color: white;
  font-size: 13px;
}

.green-button:hover {
  background: var(--dark-green);
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.delivery-art {
  display: grid;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #eaf4ec, #c8e6d0);
  font-size: 105px;
}

.slider-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 35px;
  height: 35px;
  border: 0;
  border-radius: 50%;
  background: #ffffffdf;
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-arrow:hover {
  background: white;
}

.slider-arrow.previous {
  right: 10px;
}

.slider-arrow.next {
  left: 10px;
}

.slider-dots {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 12px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffffa0;
  cursor: pointer;
}

.slider-dots button.active {
  width: 20px;
  border-radius: 8px;
  background: var(--green);
}

/* ردیف محصولات */
.product-section {
  padding-top: 25px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.section-heading > a {
  color: var(--green);
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.product-card {
  overflow: hidden;
  border: 1px solid #edf0ed;
  border-radius: 12px;
  background: white;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #00000010;
}

.product-card img {
  display: block;
  width: 100%;
  height: 125px;
  object-fit: cover;
  background: #eef2ee;
}

.product-card span {
  display: block;
  padding: 9px 5px;
  font-size: 12px;
}

/* ارسال */
.shipping {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
  padding: 17px 24px;
  border: 1px solid #e1ebe2;
  border-radius: 12px;
  background: white;
}

.shipping h2 {
  margin: 0;
  color: var(--dark-green);
  font-size: 17px;
}

.shipping p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.shipping-icon {
  font-size: 40px;
  animation: drive 2s ease-in-out infinite alternate;
}

@keyframes drive {
  to { transform: translateX(-10px); }
}

/* درباره ما */
.about-section {
  display: grid;
  grid-template-columns: 130px 1fr 1.2fr;
  align-items: center;
  gap: 22px;
  margin-top: 25px;
  padding-top: 20px;
  padding-bottom: 20px;
  border: 1px solid #edf0ed;
  border-radius: 12px;
  background: white;
}

.about-logo img {
  width: 115px;
}

.about-section h2 {
  margin: 0 0 5px;
  font-size: 17px;
}

.about-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.stats {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  text-align: center;
}

.stats div {
  display: grid;
  color: var(--green);
}

.stats strong {
  font-size: 21px;
}

.stats span {
  color: var(--muted);
  font-size: 11px;
}

/* فوتر */
.footer {
  margin-top: 28px;
  padding: 26px 0 10px;
  background: #064a2b;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 30px;
}

.footer-logo {
  width: 130px;
  padding: 5px;
  border-radius: 5px;
  background: white;
}

.footer h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer p,
.footer a {
  display: block;
  margin: 4px 0;
  color: #e3eee6;
  font-size: 12px;
}

.copyright {
  margin: 20px 0 0 !important;
  padding-top: 9px;
  border-top: 1px solid #ffffff25;
  text-align: center;
}

/* موبایل و تبلت */
@media (max-width: 760px) {
  .header-inner {
    position: relative;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .logo {
    width: 120px;
  }

  .mobile-menu-button {
    display: block;
    border: 0;
    background: transparent;
    font-size: 23px;
    cursor: pointer;
  }

  .navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 10px;
    background: white;
    box-shadow: 0 8px 15px #00000012;
  }

  .navigation.show {
    display: flex;
    flex-direction: column;
  }

  .nav-dropdown,
  .navigation > a {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .hero-slider {
    height: 390px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .hero-text {
    grid-row: 2;
    padding: 8px 7%;
  }

  .hero-slide > img,
  .delivery-art {
    grid-row: 1;
    height: 190px;
  }

  .delivery-art {
    font-size: 75px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-logo img {
    width: 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .header-icons {
    gap: 5px;
  }

  .product-card img {
    height: 105px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
