
/* CSS for section section:features */
.features-section .container {
  padding-top: 78px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-title {
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 0 40px 0; /* Reset margin and add margin to the bottom */
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px; /* Adjust gap for a 4-column layout */
  width: 100%;
  max-width: 1200px; /* Optional: constrain max width */
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 256px;
}

.product-image-link img {
  width: 256px;
  height: 256px;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image-link:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  margin-top: 8px;
  width: 100%; /* Ensure info container takes full width of card */
}

.product-name {
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  min-height: 44px; /* Ensure consistent height for alignment */
}

.product-price {
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 21px;
  margin: 0 0 20px 0;
}

.add-to-cart-btn {
  background: rgb(23, 127, 212);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  padding: 12px 16px;
  margin-top: auto; /* Push button to the bottom */
  width: 100%; /* Make button width consistent */
  cursor: pointer;
  transition: opacity 0.3s ease;
  font-weight: bold;
}

.add-to-cart-btn:hover {
  opacity: 0.85;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 181px;
  margin-bottom: 40px; /* Add margin to the bottom */
}

.pagination .page-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  border-radius: 20px;
  transition: background-color 0.3s ease;
}

.pagination .page-link:not(.arrow):hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.pagination .page-link.active {
  background-color: var(--bg-interactive);
  cursor: default;
}

.pagination .page-link.arrow img {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .features-section .container {
    padding-top: 40px;
    padding-bottom: 60px;
  }
  .features-title {
    font-size: 32px;
    margin-bottom: 60px;
  }
  .product-grid {
    gap: 40px;
  }
  .pagination {
    margin-top: 80px;
  }
}
