/* PRODUCT GRID */
.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 55px 15px;
}

/* PRODUCT CARD */
.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: transform .3s;
}

.product-card:hover {
  transform: translateY(-6px);
}

/* IMAGE SECTION */
.product-image {
  padding: 15px;
}

.product-image .main-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  border-radius: 10px;
}

/* THUMBNAILS */
.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
}

.thumbs img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .3s;
}

.thumbs img:hover {
  border-color: #0d6efd;
}

/* PRODUCT INFO */
.product-info {
  padding: 15px;
  text-align: center;
}

.product-info h3 {
  font-size: 18px;
 /* margin-bottom: 8px;*/
}

.price {
  font-size: 20px;
  font-weight: bold;
  color: #0d6efd;
  margin-bottom: 12px;
}

button {
  background: linear-gradient(135deg,#0d6efd,#6610f2);
  border: none;
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: .3s;
}

button:hover {
  opacity: .85;
}

/* MOBILE */
@media(max-width:600px){
  .product-image .main-img{
    height: 200px;
  }
}

/* ===== PRODUCT GRID ===== */
.product-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* ===== IMAGE AREA ===== */
.product-image {
  position: relative;
  padding: 15px;
  background: #f7f7f7;
}

.product-image img.main-img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform .3s ease;
}

.product-card:hover .main-img {
  transform: scale(1.05);
}

/* ===== THUMBNAILS ===== */
.thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.thumbs img {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .3s ease;
}

.thumbs img:hover,
.thumbs img.active {
  border-color: #0d6efd;
  transform: scale(1.1);
}

/* ===== PRODUCT INFO ===== */
.product-info {
  padding: 16px;
  text-align: center;
}

.product-info h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-info .price {
  margin: 2px 0;
  font-size: 14px;
  color: #555;
}

/* ===== BUTTON ===== */
.product-info button {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
}

.product-info button:hover {
  background: linear-gradient(135deg, #6610f2, #0d6efd);
}

/* ===== MOBILE FIX ===== */
@media (max-width: 576px) {
  .product-image img.main-img {
    height: 200px;
  }
}

/* RIGHT ALIGNED SEARCH BAR */
.product-search-header {
  max-width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 25px 20px;
}

.product-search-header input {
  width: 260px;
  padding: 10px 40px 10px 14px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  outline: none;
  transition: all 0.25s ease;
  background-color: #fff;
}

.product-search-header input:focus {
  border-color: #5fa67a;
  box-shadow: 0 0 0 3px rgba(95, 166, 122, 0.15);
}

.product-search-header i {
  position: relative;
  right: 32px;
  color: #888;
  pointer-events: none;
  font-size: 14px;
}

/* Dark Mode (optional) */
body.dark-mode .product-search-header input {
  background-color: #1e1e1e;
  color: #fff;
  border-color: #333;
}

body.dark-mode .product-search-header i {
  color: #aaa;
}
    .product-search-bar {
      max-width: 100%;
      margin: 30px 20px;
      display: flex;
      justify-content: flex-end;   /* RIGHT ALIGN */
    }
    .product-search-bar input {
      max-width: 260px;
    }
    @media (max-width: 768px) {
      .product-search-bar {
        justify-content: center;
      }
    }

    /* RIGHT ALIGNED SEARCH BAR */
.product-search-header {
  max-width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 25px 20px;
}

.product-search-header input {
  width: 260px;
  padding: 10px 40px 10px 14px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  outline: none;
  transition: all 0.25s ease;
  background-color: #fff;
}

.product-search-header input:focus {
  border-color: #5fa67a;
  box-shadow: 0 0 0 3px rgba(95, 166, 122, 0.15);
}

.product-search-header i {
  position: relative;
  right: 32px;
  color: #888;
  pointer-events: none;
  font-size: 14px;
}

/* Dark Mode (optional) */
body.dark-mode .product-search-header input {
  background-color: #1e1e1e;
  color: #fff;
  border-color: #333;
}

body.dark-mode .product-search-header i {
  color: #aaa;
}