/* products.css
   Product page styling moved out of HTML.
   Preserves the existing site theme while improving card structure.
*/

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid rgba(88, 84, 77, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(88, 84, 77, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 72px rgba(88, 84, 77, 0.12);
}

.product-card-image {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #f7f2eb;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-body {
  padding: 1.8rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
}

.product-card-body h3 {
  font-size: 1.55rem;
  margin: 0;
  color: var(--primary);
}

.product-card-body p {
  color: rgba(88, 84, 77, 0.78);
  line-height: 1.82;
  margin: 0;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.product-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(88, 84, 77, 0.75);
  font-size: 0.98rem;
  line-height: 1.7;
}

.product-feature i {
  color: var(--primary);
  margin-top: 0.18rem;
  min-width: 18px;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

.product-card-footer .btn {
  border-radius: 999px;
  padding: 0.88rem 1.5rem;
  font-weight: 700;
  transition: transform 0.22s ease;
}

.product-card-footer .btn:hover {
  transform: translateY(-2px);
}

.product-meta-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.product-meta-card {
  background: #ffffff;
  border: 1px solid rgba(88, 84, 77, 0.08);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(88, 84, 77, 0.06);
}

.product-meta-card strong {
  display: block;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

.product-meta-card p {
  color: rgba(88, 84, 77, 0.78);
  margin: 0;
}

.product-hero-image { border-radius: 20px; width: 100%; }
.product-title { margin-bottom: 12px; color: var(--primary); }
.product-summary { color: rgba(88, 84, 77, 0.8); }

@media (max-width: 991.98px) {
  .product-card-grid,
  .product-meta-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .product-card-body {
    padding: 1.5rem 1.5rem 1.8rem;
  }
}
