
/* =========================================
   استایل صفحه راهنمای خرید سبزایران
   رنگ اصلی: rgb(4, 158, 4)
========================================= */

.buy-guide-page {
  --guide-green: rgb(4, 158, 4);
  --guide-green-dark: rgb(2, 105, 2);
  --guide-green-deep: rgb(1, 80, 1);
  --guide-green-light: #e5f6e5;
  --guide-green-pale: #f3faf1;
  --guide-text: #26372b;
  --guide-muted: #718074;
  --guide-border: #dcebdc;

  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 22px 70px;
  color: var(--guide-text);
  font-family: inherit;
  box-sizing: border-box;
}

/* تنظیم اندازه تمام عناصر داخل صفحه */

.buy-guide-page *,
.buy-guide-page *::before,
.buy-guide-page *::after {
  box-sizing: border-box;
}


/* =========================================
   بخش معرفی صفحه
========================================= */

.buy-guide-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  min-height: 310px;
  padding: 55px 60px;

  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 255, 255, 0.8),
      transparent 32%
    ),
    linear-gradient(135deg, #eff9ed, #d8f0d5);

  border: 1px solid #e0f0dc;
  border-radius: 28px;
  overflow: hidden;
}

/* محتوای متنی بخش معرفی */

.buy-guide-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

/* برچسب بالای عنوان */

.buy-guide-eyebrow,
.buy-guide-section-label {
  display: inline-block;
  color: var(--guide-green);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

/* عنوان اصلی صفحه */

.buy-guide-hero h1 {
  margin: 0 0 18px;
  color: var(--guide-green-dark);
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.6;
  font-weight: 800;
}

/* توضیحات بخش معرفی */

.buy-guide-hero p {
  max-width: 620px;
  margin: 0;
  color: #526754;
  font-size: 16px;
  line-height: 2.1;
}

/* دکمه مشاهده محصولات */

.buy-guide-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  margin-top: 26px;
  padding: 14px 26px;

  color: #fff;
  background: var(--guide-green);
  border: 1px solid var(--guide-green);
  border-radius: 12px;

  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 6px 16px rgba(4, 158, 4, 0.18);

  transition: all 0.25s ease;
}

/* افکت هنگام رفتن نشانگر روی دکمه */

.buy-guide-hero-button:hover {
  color: #fff;
  background: var(--guide-green-dark);
  border-color: var(--guide-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 9px 20px rgba(4, 158, 4, 0.25);
}

.buy-guide-hero-button span {
  font-size: 20px;
}


/* تزئینات گیاهی بخش معرفی */

.buy-guide-hero-decoration {
  position: relative;
  flex: 0 0 230px;
  height: 220px;
}

.buy-guide-leaf {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 35px rgba(4, 100, 4, 0.09);
}

/* برگ تزئینی اول */

.buy-guide-leaf.leaf-one {
  width: 125px;
  height: 125px;
  top: 35px;
  right: 40px;
  font-size: 65px;
  transform: rotate(-12deg);
}

/* برگ تزئینی دوم */

.buy-guide-leaf.leaf-two {
  width: 85px;
  height: 85px;
  top: 5px;
  right: 135px;
  font-size: 43px;
  transform: rotate(20deg);
}

/* برگ تزئینی سوم */

.buy-guide-leaf.leaf-three {
  width: 95px;
  height: 95px;
  bottom: 5px;
  right: 0;
  font-size: 48px;
  transform: rotate(12deg);
}


/* =========================================
   عنوان بخش مراحل خرید
========================================= */

.buy-guide-steps-section {
  padding: 70px 0 45px;
}

.buy-guide-section-heading {
  text-align: center;
  margin-bottom: 38px;
}

/* عنوان بخش مراحل */

.buy-guide-section-heading h2 {
  margin: 0 0 12px;
  color: var(--guide-green-dark);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.7;
  font-weight: 800;
}

/* توضیحات زیر عنوان مراحل */

.buy-guide-section-heading p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 15px;
  line-height: 2;
}


/* =========================================
   کارت‌های مراحل خرید
========================================= */

.buy-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* ظاهر کلی هر کارت */

.buy-guide-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;
  padding: 30px 25px;

  background: #fff;
  border: 1px solid var(--guide-border);
  border-radius: 20px;

  box-shadow: 0 8px 28px rgba(34, 75, 44, 0.045);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

/* افکت کارت‌ها هنگام رفتن نشانگر روی آن‌ها */

.buy-guide-step:hover {
  transform: translateY(-5px);
  border-color: #9cda9c;
  box-shadow: 0 15px 35px rgba(4, 120, 4, 0.10);
}

/* شماره هر مرحله */

.buy-guide-step-number {
  position: absolute;
  top: 18px;
  left: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 35px;
  height: 35px;

  color: #fff;
  background: var(--guide-green);
  border-radius: 50%;

  font-size: 15px;
  font-weight: 800;
}

/* کادر آیکون هر مرحله */

.buy-guide-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;
  margin-bottom: 20px;

  background: var(--guide-green-light);
  border: 1px solid #d5eed5;
  border-radius: 18px;

  font-size: 31px;
}

/* عنوان هر مرحله */

.buy-guide-step-content h3 {
  margin: 0 0 12px;
  color: var(--guide-green-dark);
  font-size: 19px;
  line-height: 1.8;
  font-weight: 800;
}

/* توضیحات هر مرحله */

.buy-guide-step-content p {
  margin: 0;
  color: #68766a;
  font-size: 14px;
  line-height: 2.15;
}


/* =========================================
   بخش نکات مهم خرید
========================================= */

.buy-guide-tips {
  display: flex;
  align-items: flex-start;
  gap: 22px;

  margin-top: 25px;
  padding: 32px;

  background: linear-gradient(135deg, #f5fbf2, #eaf6e7);
  border: 1px solid #d9ecd5;
  border-radius: 22px;
}

/* آیکون نکات مهم */

.buy-guide-tips-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 58px;
  width: 58px;
  height: 58px;

  background: #dff1db;
  border-radius: 17px;
  font-size: 28px;
}

/* محتوای متنی نکات مهم */

.buy-guide-tips-content {
  min-width: 0;
}

/* عنوان نکات مهم */

.buy-guide-tips-content h2 {
  margin: 0 0 18px;
  color: var(--guide-green-dark);
  font-size: 21px;
  line-height: 1.8;
  font-weight: 800;
}

/* چیدمان فهرست نکات مهم */

.buy-guide-tips-content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 25px;

  margin: 0;
  padding: 0;
  list-style: none;
}

/* متن هر نکته */

.buy-guide-tips-content li {
  position: relative;
  padding-right: 25px;

  color: #526754;
  font-size: 14px;
  line-height: 2;
}

/* علامت تیک کنار نکات */

.buy-guide-tips-content li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 2px;

  color: var(--guide-green);
  font-weight: 900;
  font-size: 16px;
}


/* =========================================
   بخش پایانی و دعوت به خرید
========================================= */

.buy-guide-bottom {
  position: relative;
  margin-top: 35px;
  padding: 48px 25px;

  text-align: center;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(255, 255, 255, 0.09),
      transparent 25%
    ),
    linear-gradient(135deg, rgb(4, 158, 4), rgb(2, 105, 2));

  border-radius: 25px;
  overflow: hidden;
}

/* آیکون گیاه در بخش پایانی */

.buy-guide-bottom-leaf {
  display: block;
  margin-bottom: 12px;
  font-size: 34px;
}

/* عنوان بخش پایانی */

.buy-guide-bottom h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.8;
  font-weight: 800;
}

/* توضیحات بخش پایانی */

.buy-guide-bottom p {
  max-width: 600px;
  margin: 0 auto;

  color: #e4f5e4;
  font-size: 15px;
  line-height: 2;
}

/* دکمه رفتن به فروشگاه */

.buy-guide-bottom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 24px;
  padding: 14px 30px;

  color: var(--guide-green-dark);
  background: #fff;
  border: 1px solid #fff;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 800;
  text-decoration: none;

  transition: all 0.25s ease;
}

/* افکت دکمه پایانی هنگام رفتن نشانگر روی آن */

.buy-guide-bottom-button:hover {
  color: var(--guide-green-dark);
  background: #e7f6e5;
  border-color: #e7f6e5;
  transform: translateY(-3px);
}


/* =========================================
   تنظیمات نمایش در تبلت
========================================= */

@media (max-width: 900px) {

  .buy-guide-page {
    padding: 25px 18px 55px;
  }

  .buy-guide-hero {
    padding: 40px 35px;
  }

  .buy-guide-hero-decoration {
    flex-basis: 170px;
    transform: scale(0.85);
    transform-origin: center;
  }

  /* نمایش کارت‌ها در دو ستون */

  .buy-guide-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .buy-guide-step {
    padding: 25px 22px;
  }

  /* نمایش نکات مهم به‌صورت تک‌ستونه */

  .buy-guide-tips-content ul {
    grid-template-columns: 1fr;
  }
}


/* =========================================
   تنظیمات نمایش در موبایل
========================================= */

@media (max-width: 600px) {

  .buy-guide-page {
    padding: 18px 14px 40px;
  }

  /* تغییر چیدمان بخش معرفی */

  .buy-guide-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    min-height: auto;
    padding: 30px 22px 20px;
    border-radius: 22px;
  }

  .buy-guide-hero h1 {
    font-size: 27px;
    line-height: 1.7;
  }

  .buy-guide-hero p {
    font-size: 14px;
    line-height: 2.1;
  }

  /* تمام‌عرض شدن دکمه معرفی */

  .buy-guide-hero-button {
    width: 100%;
    margin-top: 22px;
  }

  /* کوچک‌تر شدن تزئینات معرفی */

  .buy-guide-hero-decoration {
    align-self: center;
    flex: none;

    width: 180px;
    height: 135px;
    margin-top: 5px;

    transform: scale(0.75);
    transform-origin: top center;
  }

  /* کاهش فاصله بخش مراحل خرید */

  .buy-guide-steps-section {
    padding: 45px 0 25px;
  }

  .buy-guide-section-heading {
    margin-bottom: 25px;
  }

  .buy-guide-section-heading h2 {
    font-size: 23px;
  }

  .buy-guide-section-heading p {
    font-size: 14px;
  }

  /* نمایش کارت‌ها در یک ستون */

  .buy-guide-steps {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .buy-guide-step {
    padding: 23px 20px;
    border-radius: 17px;
  }

  .buy-guide-step-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
    font-size: 27px;
  }

  .buy-guide-step-content h3 {
    font-size: 18px;
  }

  .buy-guide-step-content p {
    font-size: 14px;
  }

  /* تغییر چیدمان بخش نکات مهم */

  .buy-guide-tips {
    flex-direction: column;
    gap: 15px;

    margin-top: 18px;
    padding: 23px 20px;
    border-radius: 18px;
  }

  .buy-guide-tips-content h2 {
    font-size: 19px;
  }

  .buy-guide-tips-content ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* تنظیم بخش پایانی */

  .buy-guide-bottom {
    margin-top: 22px;
    padding: 35px 20px;
    border-radius: 20px;
  }

  .buy-guide-bottom h2 {
    font-size: 22px;
  }

  .buy-guide-bottom p {
    font-size: 14px;
  }

  .buy-guide-bottom-button {
    width: 100%;
  }
}


/* =========================================
   تنظیمات گوشی‌های کوچک
========================================= */

@media (max-width: 360px) {

  .buy-guide-hero h1 {
    font-size: 24px;
  }

  .buy-guide-step {
    padding: 20px 16px;
  }

  .buy-guide-step-number {
    top: 14px;
    left: 14px;
  }

  .buy-guide-tips {
    padding: 20px 16px;
  }

  .buy-guide-bottom {
    padding: 30px 16px;
  }
}


/* =========================================
   رعایت تنظیمات کاهش حرکت دستگاه
========================================= */

@media (prefers-reduced-motion: reduce) {

  .buy-guide-page *,
  .buy-guide-page *::before,
  .buy-guide-page *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
