.hii {
  padding: 40px 20px;
  background: #f9fafb;
}

.hii-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Each card */
.hii-card {
  flex: 1 1 calc(20% - 20px);
  /* 5 per row with gap */
  min-width: 220px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
  transition: .3s;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
  position: relative;
  cursor: pointer;

  /* Added for button alignment */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hii-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

.hii-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(to right, rgba(169, 3, 41, 1) 0%, rgba(196, 72, 72, 1) 44%, rgba(170, 34, 56, 1) 100%);
  color: #fff;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  z-index: 10;
}

.hii-tilt {
  overflow: hidden;
}

.hii-img {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  /* Prevent shrinking */
}

.hii-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.hii-card:hover .hii-img img {
  transform: scale(1.05);
}

/* Ensure content area grows */
.hii-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hii-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #71717A;
  margin-bottom: 5px;
}

.hii-title {
  font-size: 18px;
  font-weight: 700;
  color: #18181B;
  margin: 0 0 10px;
  letter-spacing: -.5px;
}

.hii-desc {
  font-size: 13px;
  color: #52525B;
  line-height: 1.4;
  margin-bottom: 12px;
}

.hii-feats {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.hii-feat {
  font-size: 10px;
  background: #F4F4F5;
  color: #71717A;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 500;
}

/* Push button to bottom */
.hii-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  margin-bottom: 12px;
}

.hii-price {
  display: flex;
  flex-direction: column;
}

.hii-old {
  font-size: 13px;
  text-decoration: line-through;
  color: #A1A1AA;
  margin-bottom: 2px;
}

.hii-new {
  font-size: 20px;
  font-weight: 700;
  color: #18181B;
}

.hii-btn {
  background: linear-gradient(45deg, #18181B, #27272A);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: .3s;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-content: center;
}

.hii-btn:hover {
  background: linear-gradient(45deg, #27272A, #3F3F46);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
}

.hii-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent);
  transition: .5s;
}

.hii-btn:hover:before {
  left: 100%;
}

.hii-icon {
  transition: transform .3s;
}

.hii-btn:hover .hii-icon {
  transform: rotate(-10deg) scale(1.1);
}

.hii-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F4F4F5;
  padding-top: 12px;
}

.hii-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hii-rcount {
  margin-left: 6px;
  font-size: 11px;
  color: #71717A;
}

.hii-stock {
  font-size: 11px;
  font-weight: 600;
  color: #22C55E;
}

/* Responsive */
@media (max-width: 1200px) {
  .hii-card {
    flex: 1 1 calc(25% - 20px);
  }
}

@media (max-width: 900px) {
  .hii-card {
    flex: 1 1 calc(33.33% - 20px);
  }
}

@media (max-width: 600px) {
  .hii-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 400px) {
  .hii-card {
    flex: 1 1 100%;
  }
}

.hii-bone {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-image: url(../img/hii/bg/bg.jpg);
  background-attachment: fixed;

  color: white;
  /* display: flex; */
  justify-content: center;
  align-items: center;
}

.bone-img img {
  height: 350px;
  border-radius: 15px;
}

.sbi-card img {
  border-radius: 30px;
  width: 300px;
}

/* .sbi-facilities {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-image: url(../img/hii/bg/bg-3.jpg);
  background-attachment: fixed;

  color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
} */