/* =====================================
   PRODUCTS PAGE – LUXURY BOUTIQUE STYLE
====================================== */

/* Page Title */
.page-title {
  text-align: center;
  font-size: 42px;
  margin: 90px 0 70px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #2f2a26;
}

/* ===============================
   GRID LAYOUT
================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  padding: 0 8% 120px;
}

/* ===============================
   CLICKABLE PRODUCT CARD
================================= */

.product-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
}

/* ===============================
   PREMIUM IMAGE FRAME
================================= */

.product-image {
  height: 280px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f6f3ee, #ede7df);
  margin-bottom: 22px;

  /* Center image perfectly */
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  overflow: hidden;

  transition: box-shadow 0.4s ease;
}

/* IMPORTANT FIX */
.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* ensures full image visible */
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.06);
}

.product-card:hover img {
  transform: scale(1.05);
}

/* ===============================
   TYPOGRAPHY
================================= */

.product-info h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  color: #2f2a26;
}

.price {
  font-size: 15px;
  color: #8a8076;
  margin-bottom: 20px;
  font-weight: 400;
}

/* ===============================
   ACTION SECTION
================================= */

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* View Link */
.view-link {
  font-size: 13px;
  text-decoration: none;
  color: #8a8076;
  position: relative;
  letter-spacing: 0.5px;
  transition: 0.3s ease;
}

.view-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: #b76e50;
  transition: width 0.3s ease;
}

.view-link:hover::after {
  width: 100%;
}

/* Premium Add to Cart */
.product-actions button {
  background: #b76e50;
  color: white;
  border: none;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-actions button:hover {
  background: #9c5b41;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(183, 110, 80, 0.25);
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
}

@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 0 6% 100px;
  }

  .product-image {
    height: 240px;
  }

  .page-title {
    font-size: 34px;
    margin: 70px 0 50px;
  }
}
