@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #f6f9fc;
  color: #333;
  line-height: 1.6;
   padding-top: 100px; /* Adjust based on header height */
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.compareAndBuylogo {
  font-size: 24px;
  font-weight: bold;
  margin: 0px;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.searchSection {
  text-align: center;
  padding: 5px 20px;
}
.description {
  font-size: 18px;
  font-weight: 500;
  width: 100%;
  padding: 10px 80px;
  margin: 15px auto ;
}

.seachTitles{
    font-size: 24px;
    font-weight: bold;
}
.seachTitles {
    font-size: 24px;
    font-weight: bold;
} 

.searchSection h1, .searchSection h2, .searchSection h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.search-bar {
  position: relative;
  width: 60%;
  max-width: 600px;
  margin: 5px auto;
}

.search-bar input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-size: 16px;
  border-radius: 15px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-bar .material-icons-round {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 24px;
  color: #888;
  pointer-events: none;
}

.section-title {
  font-size: 18px;
  margin-top: 50px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: left;
  margin-left: 105px;
  color:#141414;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 cards per row */
  gap: 24px;
  padding: 10px 100px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 16px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  max-height: 5.8em; /* for ~4 lines */
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more span {
  color: #d68e3b;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive layout for smaller devices */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr; /* 1 card per row */
  }
}


.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 54px;
}

.product-description {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.read-more {
  margin-top: auto;
  font-size: 14px;
  color: #a88116;
  font-weight: 500;
 /* display: none; */
}

.how-it-works {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  background: #fff;
  margin-top: 40px;
}

.how-it-works div {
  text-align: center;
  width: 200px;
}

.how-it-works img {
  height: 50px;
  margin-bottom: 10px;
}

footer {
  background: #1a1f36;
  color: #fff;
  padding: 30px 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-top a {
  color: #ccc;
  margin-right: 20px;
  text-decoration: none;
  font-size: 14px;
}

.newsletter input {
  padding: 10px;
  border: none;
  border-radius: 4px;
  width: 200px;
}

.newsletter button {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background: #3182ce;
  color: white;
  margin-left: 10px;
}

.social-icons a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-size: 18px;
}







.read-more button {
  background-color: transparent; /* Primary blue */
  color: #ecac22;
  border: 1px solid #e9a321;
  padding: 1px 15px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.read-more button:hover {
  background-color: #e0a015;
  transform: translateY(-2px);
  color: #f7f1f1;
}

.read-more button:active {
  transform: scale(0.98);
}
