

/* 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-local);
  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: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 87px;
  width: 100%;
}

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

.product-image-link {
  background-color: white;
  padding: 20px; /* 增加一些內邊距讓內容不至於貼邊 */
  border-radius: 8px; /* 圓角 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 輕微陰影 */
  display: block; /* 讓 padding 和 border-radius 生效 */
}

.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-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px; /* Adjust space below the name */
}

.product-price {
  color: var(--text-muted);
  font-family: var(--font-body);
  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-body);
  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 {
  color: var(--color-text-primary);
  font-family: var(--font-heading-local);
  font-weight: 400;
  font-size: 40px;
  margin: 0 auto 40px; /* Center the title horizontally and add margin to the bottom */
}
  .pagination {
    margin-top: 80px;
  }
}
