.product-card-list {
  z-index: 10;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-inline: 16px;
  padding-bottom: 70px;
}

@media (min-width: 768px) {
  .product-card-list {
    flex-direction: row;
    justify-content: center;
    padding-inline: 0;
  }
}

.product-card {
  position: relative;
  color: black;
  width: 100%;
  max-width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  border-radius: 20px;
  padding: 40px 12px;
  border: 2px solid var(--primary);
  background: white;
  box-shadow: var(--shadow);
}

.product-card.main-card {
  background: var(--gradient-primary);
  color: white;
  width: 100%;
}

.product-card.pink-theme {
  border-color: var(--pink);
}

.product-card.height-auto {
  height: auto;
}

.product-card.pink-theme.main-card {
  background: var(--pink);
}

@media (min-width: 768px) {
  .product-card {
    height: 590px;
    max-width: 300px;
  }

  .product-card.main-card {
    height: 620px;
    max-width: 320px;
  }

  .product-card.height-auto {
    height: auto;
    padding-inline: 40px;
  }
}

.product-card-banner {
  position: absolute;
  display: block;
  background: var(--primary);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  width: 100%;
  height: 30px;
  inset: 0;
}

.product-card-banner.hidden {
  display: none;
}

.product-card.pink-theme .product-card-banner {
  background: var(--pink);
}

@media (min-width: 768px) {
  .product-card-banner {
    max-height: 100px;
    height: 100%;
  }
}

.product-card-content {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 10;
  color: inherit;
}

.product-card-header {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  align-items: center;
  color: inherit;
}

.product-card-image {
  margin-top: 0;
  max-width: 100%;
  height: auto;
}

.product-card-header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: inherit;
}

.product-card-title {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.25rem;
  text-align: center;
}

.product-card-description {
  font-size: 0.875rem;
  font-weight: normal;
  text-transform: uppercase;
  text-align: center;
  max-width: 170px;
}

@media (min-width: 768px) {
  .product-card-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-inline: 0;
  }

  .product-card-header {
    flex-direction: column;
    gap: 0;
  }

  .product-card-image {
    margin-top: -64px;
    max-width: 295px;
    max-height: 185px;
  }

  .product-card-header-text {
    gap: 8px;
  }

  .product-card-title {
    font-size: 1.5rem;
  }

  .product-card-description {
    font-size: 1.125rem;
    max-width: 250px;
  }
}

.separator {
  display: none;
  width: 100%;
  height: 1px;
  margin-top: 8px;
  margin-bottom: 12px;
  background-color: rgba(0, 0, 0, 0.2);
}

.product-card.main-card .separator {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .separator {
    display: block;
  }
}

.product-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card-info-content {
  display: flex;
  color: inherit;
  flex-direction: column;
  max-width: 224px;
  align-items: center;
}

@media (max-width: 768px) {
  .product-card-info-content {
    display: flex;
    flex-direction: column-reverse;
    max-width: 100%;
    align-items: flex-start;
  }
}

.product-card-benefits {
  width: 100%;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
  padding-top: 20px;
  color: inherit;
}

@media (min-width: 768px) {
  .product-card-benefits {
    padding-top: 0;
  }
}

.product-card-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.product-card-benefits li img {
  min-width: 15px;
  min-height: 15px;
}

.product-card-benefits li span {
  text-align: left;
  font-weight: 400;
  color: inherit;
  font-size: 12px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .product-card-benefits li span {
    font-size: 17px;
  }
}

.product-card-price-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: inherit;
}

.product-card-price-left {
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-card-price-left small {
  font-weight: 400;
  font-size: 12px;
}

.product-card-price-left span {
  font-weight: 700;
  font-size: 60px;
}

.product-card-price-right {
  text-align: left;
  font-weight: 400;
  font-size: 10px;
}

@media (min-width: 768px) {
  .product-card-price-left small {
    font-size: 16px;
  }

  .product-card-price-left span {
    font-size: 72px;
  }

  .product-card-price-right {
    font-size: 16px;
  }
}

.product-card-footer {
  display: flex;
  flex-direction: column;
  max-width: 250px;
  padding-top: 0;
  align-items: center;
}

@media (min-width: 768px) {
  .product-card-footer {
    padding-top: 24px;
  }
}

.product-card-footer-button,
.buylink {
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  padding: 4px 28px;
  border-radius: 5px;
  border: 2px solid var(--orange);
  background: var(--custom-yellow-gradient);
  transition: transform 0.2s;
  color: inherit;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
}

.product-card-footer-button:hover,
.buylink:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .product-card-footer-button,
  .buylink {
    display: flex;
  }
}

.product-card.main-card .product-card-footer-button,
.product-card.main-card .buylink {
  background: var(--custom-orange-gradient);
}

.product-card.buttonText .product-card-footer-button,
.product-card.buttonText .buylink {
  padding: 8px 24px;
}

.product-card-footer-button div,
.buylink div {
  display: flex;
  flex-direction: column;
  padding-inline: 16px;
}

.product-card-footer-button div span,
.buylink div p {
  font-weight: 700;
  font-size: 1.25rem;
  max-width: 120px;
  text-align: left;
  line-height: 1.2;
}

.buylink p {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.25;
  max-width: 10ch;
}

.product-card-footer-button div small,
.buylink div span {
  font-weight: 500;
  font-size: 0.875rem;
  text-align: center;
}

.product-card-total {
  font-size: 12px;
  margin-top: 8px;
  color: inherit;
}

@media (min-width: 768px) {
  .product-card-total {
    font-size: 16px;
  }
}

.product-card-total .old-price {
  text-decoration: line-through;
  text-decoration-color: var(--orange);
  color: inherit;
}

.product-card-shipping {
  font-size: 12px;
  text-transform: uppercase;
  color: inherit;
}

.product-card-shipping-free {
  font-weight: bold;
  color: var(--orange);
}

.pink-theme.main-card .product-card-shipping-free {
  color: white;
}

@media (min-width: 768px) {
  .product-card-shipping {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .product-card-content {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .product-card-footer{
    display: grid;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-inline: auto;
  }

  .product-card-footer img{
    margin-inline: auto;
  }

  .buylink {
    width: 100%;
    grid-row: 4;
    grid-column: 1/-1;
    margin-top: 20px;
    white-space: nowrap;
  }

  .upgradeBtn{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px;
  }

  .upgradeBtn p{
    text-align: center;
    max-width: 10ch;
    white-space: wrap;
  }
}

@media (max-width: 550px) {
  .product-card-content {
    grid-template-columns: 1fr;
  }
}

.upgradeBtn{
  text-align: center;
}