/* ---------- Products Page Layout ---------- */

body {
  background: #f4f6f1;
}

.container {
  max-width: 1200px;
  margin: 80px auto;
  padding: 50px 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

/* Title */
.container h1 {
  text-align: center;
  margin-bottom: 40px;
}

/* Controls */
.product-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.product-controls input {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid #ddd;
  min-width: 280px;
}

/* Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px auto 0;
  max-width: 1100px;
}

/* Card */
.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
}

.product-image {
  width: 100%;
  height: 180px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f6f7f4;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Buttons */
.quote-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.quote-btn {
  background: linear-gradient(135deg, #6b7f4a, #8fa870);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
}

.call-btn {
  border: 1px solid #6b7f4a;
  color: #6b7f4a;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}

.call-btn:hover {
  background: #6b7f4a;
  color: #fff;
}

/* Scroll behavior fix */
html, body {
  height: auto;
  overflow-y: auto;
  scroll-behavior: smooth;
}

* {
  scroll-snap-type: none !important;
}

/* Fix anchor cards */
.products-grid > a.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Prevent nested anchor conflict */
.product-card .quote-btn,
.product-card .call-btn {
  position: relative;
  z-index: 2;
}

