.product-card__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px 16px;
}

.product-card {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  padding-bottom: 15px;
  border-bottom: 1px solid #007d7a;
}

.product-card__img-container {
  height: 300px;
  max-width: 250px;
  position: relative;
}

.product-card__img-container .product-card__img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Disabled state overlay for limited weeks */
.product-card--disabled .product-card__img-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.6)
  );
  z-index: 1;
}

.peak-start-img,
.peak-end-img,
.limited-week-img {
  position: absolute;
  height: 35%;
  width: 35%;
  top: -20px;
  right: -10px;
  z-index: 10;
}

.product-card__title {
  color: #000;
  font-family: DM Sans;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.product-card__price {
  color: #000;
  text-edge: cap;
  font-family: DM Sans;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.product-card p {
  margin: 0;
}

.product-card__qv-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #007d7a;
  border-color: #007d7a;
  border-radius: 4px;
  color: #fff;
  font-family: "DM Sans";
  font-size: 16px;
  font-weight: 700;
}

.product-card__qv-btn:hover {
  background-color: #005e5c;
  border-color: #005e5c;
}

.product-card__qv-btn:focus {
  background-color: #007d7a;
}

/* Hide quick view button for disabled products on all screen sizes */
.product-card--disabled .product-card__qv-btn {
  display: none;
}

/* ! new stuff */
/* Disabled state text overlay */
.product-card__disabled-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  position: absolute;
  width: 198px;
  height: 60px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #efe9e8;
  border-radius: 2px;
  text-align: center;
  opacity: 1;
  transition: opacity 200ms ease-in-out;
  z-index: 2;
  pointer-events: none;
}

.product-card__disabled-text > div {
  font-family: "DM Sans";
  font-style: bold;
  font-weight: 700;
  font-size: 16px;
  line-height: 21px;
  text-transform: uppercase;
  color: #233235;
  margin: 0;
}

.product-card__disabled-small-text {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;
  color: #233235;
  margin: 0;
  margin-top: 2px;
}

@media (min-width: 520px) {
  .product-card__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .product-card__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-card__container {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-card {
    padding: 0;
    border: none;
  }

  .product-card__qv-btn {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 200ms ease-in-out;
    cursor: not-allowed;
  }

  .product-card:hover .product-card__qv-btn {
    opacity: 1;
    cursor: pointer;
  }

  /* Hide disabled text by default on desktop (will show on hover) */
  .product-card--disabled .product-card__disabled-text {
    opacity: 0;
  }

  /* Show disabled text on hover for disabled products */
  .product-card--disabled:hover .product-card__disabled-text {
    opacity: 1;
  }
}
