/* Base styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: rgba(147, 147, 147, 1) !important;
}

.topbar {
  background-color: white;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between; /* push logo left, contact right */
  padding: 10px 20px;
  height: 80px;
}

.logo img {
  height: 60px;
  width: auto;
}

.search-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgb(0, 0, 0);
  font-size: 14px;
  line-height: 1.4;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* Logo stays at left */
.logo {
  position: relative;
  z-index: 2; /* ensures it doesn't overlap search bar */
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

/* Search bar is perfectly centered using absolute positioning */

.search-container input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  outline: none;
  font-size: 16px;
}

.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.search-container {
  flex-grow: 1;
  margin: 0 20px;
  display: flex;
  justify-content: center;
}

.search-container input {
  width: 50%;
  padding: 8px;
  border-radius: 5px;
  border: none;
  outline: none;
  font-size: 16px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 4 products per row */
  gap: 20px;
  padding: 40px 80px;
  justify-items: center;
}


/* Product card */
.product-card {
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  width: 100%;
  max-width: 200px; /* keeps cards uniform */
}

.product-card:hover {
  transform: translateY(-5px);
}

/* Product images */
.product-card img {
  width: 100%;
  height: 200px;         /* force consistent image height */
  object-fit: cover;     /* crop instead of stretch */
  border-radius: 10px;
  display: block;
  background-color: #fff;
}

.product-name {
  margin-top: 10px;
  font-weight: bold;
  font-size: 16px;
}

/* Responsive layouts */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
@keyframes expand {
  from { opacity: 0; transform: scaleY(0.9); }
  to { opacity: 1; transform: scaleY(1); }
}

.product-details-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 60px;
  flex-wrap: wrap;
}

.product-details-page img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.product-details-page h1 {
  margin-top: 0;
}

.product-details-page div {
  max-width: absolute;
}

button.close-detail-btn {
  background-color: #0083D9;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 20px;
}

button.close-detail-btn:hover {
  background-color: #006bb3;
}

.search-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
}

.search-container input {
  width: 100%;
  padding: 10px 40px 10px 40px; /* room for icon */
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #fff
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="black" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7" stroke="black" stroke-width="2" fill="none"/><line x1="16.65" y1="16.65" x2="21" y2="21" stroke="black" stroke-width="2" stroke-linecap="round"/></svg>')
    no-repeat 10px center;
  background-size: 18px 18px;
  box-sizing: border-box;
}

.search-container input::placeholder {
  color: #999;
}

/* Floating buttons container */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

/* Button style */
.float-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-enquiry-section {
  max-width: 500px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f5f7fa;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.product-enquiry-section h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #0083D9;
}

.product-enquiry-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-enquiry-section input,
.product-enquiry-section textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  resize: none;
}

.product-enquiry-section textarea {
  height: 120px;
}

.product-enquiry-section button {
  padding: 12px;
  border: none;
  background-color: #0083D9;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.product-enquiry-section button:hover {
  background-color: #006bb3;
}

#formStatus {
  margin-top: 15px;
  font-weight: bold;
  color: green;
}
