/* === PRODUCTS PAGE === */
.products-page {
  padding: 1em var(--padding-right-for-menu-items);
}

.products-header {
  text-align: center;
  margin-bottom: 2.5em;
}

.products-header h1 {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: #222;
}

.products-header p {
  font-size: 1.1em;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2em;
}

.product-card {
  /* border: 1px solid #eee; */
  border-radius: 6px;
  overflow: hidden;
  /* background: #fff; */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* spread content evenly */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%; /* ensure uniform card height */
  min-height: 420px; /* optional baseline size */
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.product-card:hover {
  transform: none;
  box-shadow: none;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1; /* square box */
  /* background: #fafafa; */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1em;
  transition: transform 0.4s ease; /* add smooth transition */
}

.product-card:hover .product-image img {
  transform: scale(1.08); /* zoom in slightly */
}

.product-body {
  padding: 1.2em;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  margin: 0 0 0.5em;
  font-size: 1.2em;
  font-weight: 600;
  color: #222;
}

.product-body p {
  font-size: 0.95em;
  color: #555;
  flex-grow: 1; /* pushes link down */
}

.product-link {
  margin-top: 1em;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: color 0.3s ease;
}


.product-link:hover {
  color: var(--primary-dark);
}

/* === CATEGORY CUES === */
.product-category {
  margin-bottom: 4em;
}

.category-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--accent);
  /* gives each section a bold cue */
  margin-bottom: 1em;
  border-left: 6px solid var(--primary);
  padding-left: 0.5em;
}

.product-category:nth-child(even) {
  /* background: #f9f9f9; */
  padding: 1em;
  border-radius: 6px;
}


/* === SECTION DIVIDERS === */
.section-divider {
  text-align: center;
  margin: 3em 0 2em;
  position: relative;
}

.section-divider h2 {
  font-size: 1.3em;
  font-weight: 600;
  color: #4f4d4d;
  /* neutral grey */
  display: inline-block;
  background: #fff;
  padding: 0 1em;
  position: relative;
  z-index: 1;
}

.section-divider::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #ddd;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
}