body{
  padding-top: 20px;
}
.section {
  padding: 50px 0;
}
.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  padding-right: 40px; /* space for icon */
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #888;
  pointer-events: none; /* click input instead */
  pointer-events: auto;
  cursor: pointer;
}


/* CARD */
.test-card {
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  transition: 0.3s;
  height: 80%;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* IMAGE BOX */
.img-box {
  width: 100%;
  aspect-ratio: 1/1; /* 🔥 perfect square */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fb;
  border-radius: 10px;
  overflow: hidden;
}

/* IMAGE */
.test-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* TITLE */
.test-title {
  font-size: 13px;
  font-weight: 500;
  margin: 8px 0;
  min-height: 38px;
  line-height: 1.3;
}

/* PRICE */
.test-price {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ff8000;
}

/* BUTTON */
.btn-cart {
  width: 100%;
  border-radius: 25px;
  padding: 8px;
  font-size: 14px;
  background: #1f2327;
  color: #fff;
  border: none;
  transition: 0.3s;
}

.btn-cart:hover {
  background: #000;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 576px) {

  .test-card {
    padding: 10px;
  }

  .test-title {
    font-size: 12px;
    min-height: 32px;
  }

  .test-price {
    font-size: 13px;
  }

  .btn-cart {
    font-size: 12px;
    padding: 7px;
  }
}


/* Pop up css */
.cart-popup {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 280px;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@media(max-width:576px){
  .row.g-3 {
    --bs-gutter-x: 10px;
    --bs-gutter-y: -30px;
  }
}
