
.card.skeleton .images-card img {
    display: none;
}
.card.skeleton .card-body .skeleton-text {
    position: relative;
    background: #e2e2e2;
    color: transparent !important;
    overflow: hidden;
}

.card.skeleton .card-body .skeleton-text:before {
    content: '';
    position: absolute;
    left: 0%;
    top: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(to right, #e2e2e2 25%, #fff 70%, #e2e2e2 100%);
    animation: animasi-skeleton 2s infinite;
    filter: blur(10px);
}

.skeleton-hidden {
    display: none;
}
/* Animasi */
@keyframes animasi-skeleton {
    from {
        left: 0%;
    }
    to {
        left: 100%;
    }
}

.badge-discount{
    background-color: #FFE5E5;
    color: #FF3939;
    z-index: 10;
    border-radius: 0px 3px 3px 3px;
    font-size: 12px;
    width: 85px;
    height: 25px;
    margin-top: 2px;
}
.badge-discount p {
    margin-bottom: 0;
}

.swiper-slide {
  height: auto !important;
}

/* Card Lihat Buku Lainnya pada Desktop */
@media only screen and (min-width: 992px){
  .card-other-book{
    height: 366px !important;
  }
}
/* Card Lihat Buku Lainnya pada Mobile Tablet */
@media only screen and (min-width: 601px) and (max-width: 991px){
  .card-other-book{
    height: 310px !important;
  }
}
/* Card Lihat Buku Lainnya pada Mobile Smartphone */
@media only screen and (max-width: 600px){
  .card-other-book{
    height: 290px !important;
  }
}



/* Card Book Desktop */
@media only screen and (min-width: 992px) {
  .images-card {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    display: flex;
    padding: 2px;
    justify-content: center;
    align-items: flex-start;
  }
  .images-card img {
    height: 247px !important;
    object-fit: cover;
  }
    .card.skeleton .images-card:before {
        content: "";
        width: 100%;
        height: 247px;
        background: #e2e2e2;
    }
  .card-book {
    position: absolute;
    padding: 5px;
    gap: 4px;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(112, 144, 176, 0.1);
    margin-bottom: 20px !important;
  }
  #pointer-card {
    text-decoration: none;
    color: black;
  }
  #pointer-card:hover {
    color: #ff7b54;
  }
  .card-body-book {
    padding: 0.25rem;
    height: 122px;
  }
  .card-title-book {
    font-weight: 600;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 0.005em;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-subtitle-book {
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
    letter-spacing: 0.005em;
    color: #aca6a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .text-price {
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
  }
  .img-star {
    width: 14px;
    height: 14px;
  }
}

/* Card Book Mobile Tablet */
@media only screen and (min-width: 601px) and (max-width: 991px) {
  .images-card {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    display: flex;
    padding: 2px;
    justify-content: center;
    align-items: flex-start;
  }
  .images-card img {
    height: 190px !important;
    object-fit: cover;
  }
    .card.skeleton .images-card:before {
        content: "";
        width: 100%;
        height: 190px;
        background: #e2e2e2;
    }

  .card-book {
    position: absolute;
    padding: 5px;
    gap: 4px;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(112, 144, 176, 0.1);
    margin-bottom: 20px !important;
  }
  #pointer-card {
    text-decoration: none;
    color: black;
  }
  #pointer-card:hover {
    color: #ff7b54;
  }
  .card-body-book {
    padding: 0.25rem;
    height: 122px;
  }
  .card-title-book {
    font-weight: 600;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 0.005em;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-subtitle-book {
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
    letter-spacing: 0.005em;
    color: #aca6a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .text-price {
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
  }
  .img-star {
    width: 14px;
    height: 14px;
  }
}

/* Card Book Mobile Smartphone */
@media only screen and (max-width: 600px) {
  .images-card {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    display: flex;
    padding: 2px;
    justify-content: center;
    align-items: flex-start;
  }
  .images-card img {
    height: 170px !important;
    object-fit: cover;
  }

    .card.skeleton .images-card:before {
        content: "";
        width: 100%;
        height: 170px;
        background: #e2e2e2;
    }
  .card-book {
    position: absolute;
    padding: 5px;
    gap: 4px;
    border-radius: 8px;
    box-shadow: 0px 2px 6px rgba(112, 144, 176, 0.1);
    margin-bottom: 20px !important;
  }
  #pointer-card {
    text-decoration: none;
    color: black;
  }
  #pointer-card:hover {
    color: #ff7b54;
  }
  .card-body-book {
    padding: 0.25rem;
    height: 122px;
  }
  .card-title-book {
    font-weight: 600;
    font-size: 14px;
    line-height: 120%;
    letter-spacing: 0.005em;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-subtitle-book {
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
    letter-spacing: 0.005em;
    color: #aca6a6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .text-price {
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
  }
  .img-star {
    width: 14px;
    height: 14px;
  }
}
