/* ===============================
    Swiper Title
=============================== */
h2.swiper-title {
  color: var(--primary);
  margin-bottom: 20px;
}

/* ===============================
    Product Card
=============================== */
.product {
  border: 1px solid var(--primary);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--background, white);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.details {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product .enroll {
  margin: 0 auto 20px;
  padding: 10px 25px;
  background-color: var(--primary);
  color: white !important;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.product .enroll:hover {
  background-color: #814200;
  transform: scale(1.05);
}

/* ===============================
    Text Styling
=============================== */
.product p.title {
  font-size: 16px;
  font-weight: 600;
}

.product .details * {
  color:var(--text-color, #333);
  font-size: 14px;
}

span.end-date {
  white-space: nowrap; /* Fix for nowrap issue */
}

p.sold-out {
  color: red;
  font-weight: bold;
}

/* ===============================
    Finished Bid Overlay
=============================== */
.finished-bid .img {
  position: relative;
}

.finished-bid .img::before {
  content: "";
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 20px 20px 0 0;
}

.finished-bid .img::after {
  content: url(../../img/ended.png);
  position: absolute;
  z-index: 6;
  left: 0;
  top: 15%;
}

/* .wish{
  position: absolute;
  z-index: 1;
  top: 10%;
  right: 5%;
  cursor: pointer;
  border: unset;
  padding: 5px;
  box-shadow: 0px 0 9px 0px #0000004f;
  border-radius: 50%;
  font-size: 23px;
} */

/* ===============================
    Price Styling
=============================== */
span.last-price {
  font-weight: bold;
}

/* ===============================
    Responsive Adjustments
=============================== */
@media (max-width: 1250px) and (min-width: 1090px), (max-width: 420px) {
  .product p.title,
  .product .enroll {
    font-size: 14px;
  }

  .product .details * {
    font-size: 12px;
  }
}
