.sl-shopee-products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 24px 0;
}

.sl-shopee-card {
  display: flex;
  box-sizing: border-box;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  flex: 0 0 calc((100% - 72px) / 5);
  max-width: calc((100% - 72px) / 5);
  border: 1px solid #e8e5e2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(36, 29, 24, 0.06);
}

.sl-shopee-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f7f6f5;
}

.sl-shopee-card__image-link img.sl-shopee-card__image {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
  margin: 0;
}

.sl-shopee-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.sl-shopee-card__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.8em;
  margin: 0;
  color: #302d2b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sl-shopee-card__title a {
  color: inherit;
  text-decoration: none;
}

.sl-shopee-card__store {
  overflow: hidden;
  margin: 0;
  color: #817a75;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-shopee-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.sl-shopee-card__price {
  color: #DA3B8C;
  font-size: 14px;
  font-weight: 700;
}

.sl-shopee-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  background: #DA3B8C;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  gap: 6px;
}

.sl-shopee-card__button-icon {
  display: block;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}

.sl-shopee-card__button:hover,
.sl-shopee-card__button:focus-visible {
  background: #c8327c;
  color: #fff !important;
}

/* KPOP recommendation block; other Showlove sites keep the shared card style. */
.sl-shopee-section--kpop {
  box-sizing: border-box;
  width: 100%;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #f1dce7;
  border-radius: 20px;
  background: #fff;
}

.sl-shopee-section--kpop .sl-shopee-section__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 23px;
}

.sl-shopee-section--kpop .sl-shopee-section__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #DA3B8C;
}

.sl-shopee-section--kpop .sl-shopee-section__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sl-shopee-section--kpop .sl-shopee-section__heading h2 {
  margin: 0;
  color: #a82463;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

.sl-shopee-section--kpop .sl-shopee-section__heading p {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid #e7a3c3;
  color: #51474d;
  font-size: 15px;
  line-height: 1.5;
}

.sl-shopee-section--kpop .sl-shopee-products {
  margin: 0;
}

.sl-shopee-section--kpop .sl-shopee-card {
  border-color: #f0e4ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(125, 54, 87, 0.08);
}

.sl-shopee-section--kpop .sl-shopee-card__image-link {
  position: relative;
}

.sl-shopee-section--kpop .sl-shopee-card__badge,
.sl-shopee-section--kpop .sl-shopee-card__group {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: #cf3181;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(65, 24, 46, 0.18);
}

.sl-shopee-section--kpop .sl-shopee-card__badge {
  top: 10px;
  left: 10px;
  gap: 5px;
}

.sl-shopee-section--kpop .sl-shopee-card__badge-icon {
  display: block;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
}

.sl-shopee-section--kpop .sl-shopee-card__badge-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sl-shopee-section--kpop .sl-shopee-card__group {
  bottom: 10px;
  left: 10px;
  padding: 4px 10px;
  background: rgba(207, 49, 129, 0.94);
}

.sl-shopee-section--kpop .sl-shopee-card__button {
  min-height: 34px;
  padding: 0 17px;
  border-radius: 999px;
  background: #cf3181;
  font-size: 13px;
}

.sl-shopee-section--kpop .sl-shopee-card__button:hover,
.sl-shopee-section--kpop .sl-shopee-card__button:focus-visible {
  background: #ae2369;
}

/* Shared recommendation heading for the cheer and reality-show sites. */
.sl-shopee-section--site {
  box-sizing: border-box;
  width: 100%;
  margin: 24px 0;
}

.sl-shopee-section--site .sl-shopee-section__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 23px;
}

.sl-shopee-section--site .sl-shopee-section__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #DA3B8C;
}

.sl-shopee-section--site .sl-shopee-section__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sl-shopee-section--site .sl-shopee-section__heading h2 {
  margin: 0;
  color: #a82463;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

.sl-shopee-section--site .sl-shopee-section__heading p {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid #e7a3c3;
  color: #51474d;
  font-size: 15px;
  line-height: 1.5;
}

.sl-shopee-section--site .sl-shopee-products {
  margin: 0;
}

.sl-shopee-section--site .sl-shopee-card__image-link {
  position: relative;
}

.sl-shopee-section--site .sl-shopee-card__badge,
.sl-shopee-section--site .sl-shopee-card__group {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: #DA3B8C;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(65, 24, 46, 0.18);
}

.sl-shopee-section--site .sl-shopee-card__badge {
  top: 10px;
  left: 10px;
  gap: 5px;
}

.sl-shopee-section--site .sl-shopee-card__badge-icon {
  display: block;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
}

.sl-shopee-section--site .sl-shopee-card__badge-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sl-shopee-section--site .sl-shopee-card__group {
  bottom: 10px;
  left: 10px;
  box-sizing: border-box;
}

.sl-shopee-section--site .sl-shopee-card__group-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-shopee-section--site .sl-shopee-card__button {
  min-height: 34px;
  padding: 0 17px;
  border-radius: 999px;
  background: #DA3B8C;
  color: #fff !important;
  font-size: 13px;
}

.sl-shopee-section--site .sl-shopee-card__button:hover,
.sl-shopee-section--site .sl-shopee-card__button:focus-visible {
  background: #c8327c;
  color: #fff !important;
}

@media (max-width: 1024px) {
  .sl-shopee-card {
    flex-basis: calc((100% - 36px) / 3);
    max-width: calc((100% - 36px) / 3);
  }
}

@media (max-width: 767px) {
  .sl-shopee-products {
    gap: 12px;
  }

  .sl-shopee-card {
    flex-basis: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }

  .sl-shopee-card__body {
    gap: 6px;
    padding: 9px;
  }

  .sl-shopee-card__title {
    font-size: 12px;
  }

  .sl-shopee-card__button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
  }

  .sl-shopee-section--kpop {
    padding: 14px;
    border-radius: 15px;
  }

  .sl-shopee-section--kpop .sl-shopee-section__header {
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 19px;
  }

  .sl-shopee-section--kpop .sl-shopee-section__icon {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
  }

  .sl-shopee-section--kpop .sl-shopee-section__heading {
    display: block;
    flex: 1;
    min-width: 0;
  }

  .sl-shopee-section--kpop .sl-shopee-section__heading h2 {
    margin-bottom: 6px;
    font-size: 21px;
  }

  .sl-shopee-section--kpop .sl-shopee-section__heading p {
    width: calc(100% + 36px);
    margin-left: -36px;
    padding-left: 0;
    border-left: 0;
    font-size: 12px;
  }

  .sl-shopee-section--site .sl-shopee-section__header {
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 19px;
  }

  .sl-shopee-section--site .sl-shopee-section__icon {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
  }

  .sl-shopee-section--site .sl-shopee-section__heading {
    display: block;
    flex: 1;
    min-width: 0;
  }

  .sl-shopee-section--site .sl-shopee-section__heading h2 {
    margin-bottom: 6px;
    font-size: 21px;
  }

  .sl-shopee-section--site .sl-shopee-section__heading p {
    width: calc(100% + 36px);
    margin-left: -36px;
    padding-left: 0;
    border-left: 0;
    font-size: 12px;
  }

  .sl-shopee-section--site .sl-shopee-card__badge,
  .sl-shopee-section--site .sl-shopee-card__group {
    max-width: calc(100% - 12px);
    padding: 4px 7px;
    font-size: 10px;
  }

  .sl-shopee-section--site .sl-shopee-card__badge {
    top: 6px;
    left: 6px;
    gap: 4px;
  }

  .sl-shopee-section--site .sl-shopee-card__badge-icon {
    flex-basis: 11px;
    width: 11px;
    height: 11px;
  }

  .sl-shopee-section--site .sl-shopee-card__group {
    bottom: 6px;
    left: 6px;
  }

  .sl-shopee-section--site .sl-shopee-card__button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }

  .sl-shopee-section--kpop .sl-shopee-card__badge,
  .sl-shopee-section--kpop .sl-shopee-card__group {
    max-width: calc(100% - 12px);
    padding: 4px 7px;
    font-size: 10px;
  }

  .sl-shopee-section--kpop .sl-shopee-card__badge {
    top: 6px;
    left: 6px;
    gap: 4px;
  }

  .sl-shopee-section--kpop .sl-shopee-card__badge-icon {
    flex-basis: 11px;
    width: 11px;
    height: 11px;
  }

  .sl-shopee-section--kpop .sl-shopee-card__group {
    bottom: 6px;
    left: 6px;
  }

  .sl-shopee-section--kpop .sl-shopee-card__button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }
}
