/* ================= BASIC RESET ================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f5f7;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* ================= PRODUCT LAYOUT ================= */
.product-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
}

/* ================= IMAGE SECTION ================= */
.image-section img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  cursor: pointer;
}

/* THUMBNAILS */
.thumb-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.thumb-row img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
}

/* ================= BRAND LABEL ================= */
.brand-label {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ================= PRODUCT DETAILS ================= */
.product-title {
  font-size: 26px;
  margin: 10px 0;
}

.price {
  font-size: 24px;
  color: #b12704;
  font-weight: bold;
  margin: 10px 0;
}

/* ================= SPECIFICATIONS ================= */
.spec-box {
  margin-top: 15px;
}

.spec-box h3 {
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.spec-box ul {
  padding-left: 18px;
}

.spec-box li {
  margin-bottom: 6px;
  font-size: 15px;
}

/* ================= ACTION BUTTONS FIX ================= */
.product-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.add-cart-btn,
.enquiry-btn {
  flex: 1;
  min-width: 160px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  white-space: nowrap; /* PREVENT TEXT BREAK */
}

/* ADD TO CART */
.add-cart-btn {
  background: #f9a825;
  color: #000;
}

/* ENQUIRY */
.enquiry-btn {
  background: #2e7d32;
  color: #fff;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
  .product-actions {
    flex-direction: column;
  }

  .add-cart-btn,
  .enquiry-btn {
    width: 100%;
  }
}


/* ================= IMAGE MODAL ================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
}

.modal span {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {
  .product-wrapper {
    grid-template-columns: 1fr;
  }
}

/* CATEGORY PAGE GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.product-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform .3s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

.product-name {
  font-weight: 600;
  text-decoration: none;
  color: #111;
  margin: 8px 0;
}

.product-name:hover {
  color: darkred;
  text-decoration: underline;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.active {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}
