/* Overall Card Container */
.product .item-product-cat {
  /* width: 40%;  Match the width of the card */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
}

.product .item-product-cat:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* Thumbnail Container */
.product .item .thumb {
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

/* Product Image */
.product .item .thumb .photo {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.product .item-product-cat:hover .thumb .photo {
  transform: scale(1.05);
}

/* Image Overlay */
.product .item .thumb .overlay {
  width: 100%;
  height: 100%;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.4);
}

.product .item-product-cat:hover .thumb .overlay {
  opacity: 1;
  transform: scale(1);
}

/* Product Info Container */
.product .text {
  padding: 10px 16px; /* Match the container padding */
  text-align: center;
  background: #fff;
  border-radius: 0 0 15px 15px;
}

/* Product Name */
.product .text h3 {
  font-weight: 700;
  color: #c16c19;
  font-size: 18px;
  margin-bottom: 10px;
}

.product .text h3 a {
  color: #c16c19;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product .text h3 a:hover {
  color: #c16c19;
}

/* Product Price */
.product .text h4 {
  color: #c16c19;
  font-size: 20px;
  margin-bottom: 15px;
}

.product .text del {
  color: #9d9d9d;
  font-size: 14px;
}

/* Rating Section */
.product .text .rating {
  margin-bottom: 15px;
}

.product .text .rating i {
  color: #f39c12;
  margin-right: 2px;
}

/* Updated Buy Button */
.product .text p a {
  display: inline-block;
  width: 10em;
  height: 3.5em;
  border: 3px ridge #ae0316;
  outline: none;
  color: white;
  transition: all 0.2s ease;
  border-radius: 0.1em;
  font-size: 16px;
  font-weight: bold;
  line-height: 3.5em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.product .text p a:hover {
  height: 3em;
  border: 3px solid #0d1452;
  box-shadow: inset 0 0 25px #1479EA;
  background-color: #0d1452;
  color: white;
}

/* Out of Stock Positioning */
.product .out-of-stock {
  width: 100%;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
  .item-product-cat {
    width: 100% !important; /* Set width to 100% on smaller screens */
    margin-bottom: 10px; /* Maintain the bottom margin */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1); /* Optionally adjust the shadow for better appearance on mobile */
  }
}
