* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
i {
  display: flex;
  justify-content: center;
  align-items: center;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.navbar-nav .nav-link.active {
  color: #ffd700 !important; /* طلایی برای آیتم فعال */
}

.navbar-nav .nav-link {
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: #ccebc5 !important; /* سبز روشن روی hover */
}

main {
  flex: 1; /* پر کردن فضای وسط */
}

/* خط افقی */
.box-outline {
  position: relative;
  padding: 0;
  display: flex;
  justify-content: flex-start; /* در RTL: باکس سمت راست */
}

.box-outline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 44px; /* فاصله دقیق از باکس */
  left: 0; /* خط تا انتهای چپ بره */
  height: 2px;
  background: #1f2328;
  z-index: -2;
}

/* خود باکس */
.box {
  position: relative;
  margin-bottom: -2px;
  padding: 0.65rem 1.3rem;
  background: #1f2328;
  clip-path: polygon(
    0 14px,
    0 100%,
    calc(100% - 14px) 100%,
    100% calc(100% - 14px),
    100% 0,
    14px 0
  );
}

/* مرز داخلی */
.box::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: #1f2328;
  clip-path: inherit;
  z-index: -1;
}

/* پس‌زمینه */
.box::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #fff;
  clip-path: inherit;
  z-index: -1;
}

.box h3 {
  font-weight: 700;
}

@media (max-width: 576px) {
  .box {
    padding: 0.5rem 1rem;
    clip-path: polygon(
      0 10px,
      0 100%,
      calc(100% - 10px) 100%,
      100% calc(100% - 10px),
      100% 0,
      10px 0
    );
  }

  .box h3 {
    font-size: 1.05rem;
  }
}

.products-header .header-box {
  max-width: 750px;
  padding: 2rem 1rem;
  position: relative;
}

.products-header h1 {
  font-size: 2.3rem;
  color: #2f6151;
  font-weight: 800;
}

.products-header p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.products-header .header-line {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #004d25, #11823b);
  border-radius: 3px;
  margin-top: 1.5rem;
}
.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.product-img {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.product-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-body h5 {
  margin-bottom: 0.5rem;
}

.product-footer .btn {
  border-radius: 8px;
  font-weight: 600;
}

/* Hover effect */
.footer-link:hover {
  color: #adb5bd !important; /* خاکستری روشن در هاور */
  transition: color 0.2s ease-in-out;
}
