@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap');


* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.book-sale {
    margin-top: 8rem;
}

.book-sale .heading {
    display: flex;
    justify-content: space-between;
    padding: 0px 30px;
}

.book-sale .heading h4 {
    font-size: 20px;
    color: #131428;
}

.book-sale .book-container {
    display: flex;
    justify-content: center;
}

.book-container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.wrapper3 {
    max-width: 100%;
    width: 100%;
    position: relative;
    margin-top: 0;
    margin-bottom: 1rem;
    display: block;
}

/* ══════════════════════════════════
   BOOK CONTAINER — full width
══════════════════════════════════ */
.ck-book-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

.ck-book-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 6px 2px 14px;
    width: 100%;
    box-sizing: border-box;
    /* scroll di sini */
    overflow-x: scroll;
    overflow-y: visible;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ck-book-list::-webkit-scrollbar {
    display: none;
}

/* 6 buku tetap per view, sisanya scroll */
.ck-card {
    flex: 0 0 calc((100% - 5 * 14px) / 6);
    min-width: 0;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

/* ── Outer wrapper dengan tombol navigasi ── */
.ck-carousel-outer {
    position: relative;
    width: 100%;
}

/* ── Track scrollable — hanya sebagai wrapper visual ── */
.ck-carousel-track {
    overflow: visible;
    padding: 0;
    width: 100%;
}

/* ── Outer wrapper dengan tombol navigasi ── */
.ck-carousel-outer {
    position: relative;
    width: 100%;
    overflow: visible;
}

/* ── Tombol navigasi modern ── */
.ck-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    outline: none;
    transition: transform 0.2s ease;
}

/* Kedua ikon di-stack */
.ck-nav-btn .nav-icon-off,
.ck-nav-btn .nav-icon-on {
    position: absolute;
    width: 36px;
    height: 36px;
    display: block;
    transition: opacity 0.2s ease;
}

/* Tombol PREV: flip agar panah mengarah kiri */
.ck-nav-prev .nav-icon-off,
.ck-nav-prev .nav-icon-on {
    transform: scaleX(-1);
}

/* MODE OFF (default): coklat transparan, kuning tersembunyi */
.ck-nav-btn .nav-icon-off {
    opacity: 0.35;
}

.ck-nav-btn .nav-icon-on {
    opacity: 0;
}

/* MODE ON (hover / active / focus): kuning muncul, coklat hilang */
.ck-nav-btn:hover .nav-icon-off,
.ck-nav-btn:active .nav-icon-off,
.ck-nav-btn:focus .nav-icon-off {
    opacity: 0;
}

.ck-nav-btn:hover .nav-icon-on,
.ck-nav-btn:active .nav-icon-on,
.ck-nav-btn:focus .nav-icon-on {
    opacity: 1;
}

/* Scale saat hover */
.ck-nav-btn:hover {
    transform: translateY(-50%) scale(1.15);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.20));
}

/* Posisi kiri/kanan */
.ck-nav-prev {
    left: -18px;
}

.ck-nav-next {
    right: -18px;
}

/* Selalu tampil (hapus opacity:0 default lama) */
.ck-carousel-outer:hover .ck-nav-btn {
    opacity: 1;
    transform: translateY(-50%);
}

.ck-carousel-outer:hover .ck-nav-btn:hover {
    transform: translateY(-50%) scale(1.15);
}

/* ── Book wrap (gambar + overlay) ── */
.ck-book-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

.ck-book-wrap img {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ck-book-wrap:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.ck-no-cover {
    width: 100%;
    height: 240px;
    background: #f0e4ca;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ca9c42;
    font-size: 36px;
}

/* Badge */
.ck-badge {
    background-color: #ff764c;
    border-radius: 0 10px 10px 0;
    color: #fff;
    position: absolute;
    z-index: 2;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 10px;
    left: 0;
    top: 8%;
}

.ck-badge-private {
    background-color: #6c757d;
}

/* Owner action buttons */
.ck-owner-action {
    margin-top: 6px;
    display: flex;
    gap: 4px;
}

/* ── Carousel list (lama — agar tidak bentrok) ── */
.wrapper3 .carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    overflow: visible;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}

/* card lama */
.carousel .card2 {
    list-style: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 0 0;
    min-width: 0;
    scroll-snap-align: start;
}

.carousel .card2 .img {
    position: relative;
    width: 100%;
}

.carousel .card2 img {
    width: 100%;
    height: 240px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    border: none;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel .card2 .img:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.carousel .card2 .img .badge {
    background-color: #ff764c;
    border-radius: 0 10px 10px 0;
    color: #fff;
    position: absolute;
    z-index: 1;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 10px;
    left: 0;
    top: 8%;
}


.carousel .card2 h5 {
    font-size: 17px;
    color: #131428;
    font-family: Rubik, sans-serif;
    font-weight: 500;
    margin-top: 1rem;
    padding: 0;
    line-height: 1.3em;

}

.carousel .card2 .authors span {
    /*color: #6c5dd4;*/
    color: #16a085;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    margin-top: 1rem;
    padding: 0;
}

.carousel .card2 .footer2 {
    display: flex;
    width: 100%;
    margin-top: 0.6rem;
    /*justify-content: space-between;*/
    align-items: center;
}

.carousel .card2 .footer2 .star {
    font-size: 11px;
    color: #ff764c;
    font-weight: 600;
}

.carousel .card2 .footer3 {
    display: flex;
    width: 100%;
    margin-top: 0.6rem;
    /*justify-content: space-between;*/
    align-items: center;
}

.carousel .card2 .footer3 .authors {
    font-family: Rubik, sans-serif;
    font-weight: 600;
    color: rgb(10, 88, 202);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    /*margin-top: 0.6rem;*/
    padding: 0;
}

.carousel .card2 .category {
    /*display: flex;*/
    width: 100%;
    margin-top: 1rem;
    /*justify-content: space-between;*/
    align-items: center;
}

.carousel .card2 .category span:nth-child(1) {
    color: #6c5dd4;
    font-size: 15px;
    font-weight: 400;
}

.carousel .card2 .category span:nth-child(2) {
    font-size: 12px;
    color: #a0a1a6;
}

@media screen and (max-width: 1100px) {
    .wrapper3 .carousel {
        gap: 12px;
    }
}

@media screen and (max-width: 768px) {
    .ck-card {
        flex: 0 0 calc((100% - 2 * 10px) / 3);
    }

    .ck-book-wrap img,
    .ck-no-cover {
        height: 145px !important;
    }

    .ck-nav-prev {
        left: -12px;
    }

    .ck-nav-next {
        right: -12px;
    }

    .ck-nav-btn {
        width: 40px;
        height: 40px;
    }

    .ck-nav-btn .nav-icon-off,
    .ck-nav-btn .nav-icon-on {
        width: 28px;
        height: 28px;
    }

    .book-container {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .ck-card {
        flex: 0 0 calc((100% - 1 * 10px) / 2);
    }

    .ck-book-wrap img,
    .ck-no-cover {
        height: 145px !important;
    }

    .ck-nav-btn {
        /* di layar kecil: selalu tampil ikon coklat transparan */
        opacity: 1 !important;
        transform: translateY(-50%) !important;
    }

    .ck-nav-btn:hover {
        transform: translateY(-50%) scale(1.15) !important;
    }
}

/*@media (min-width: 768px) and (max-width: 1000px) {
	.wrapper3 .carousel {
      grid-auto-columns: 100%;
	  display: grid;
	  width: 100% !important;
	  justify-content: center;
	  /*grid-template-columns: repeat(2, 1fr);*/
/*    }
   .carousel .card2 {
	  /*padding: 2rem;*/
/*	  padding: 0.5rem;
	  margin-left: auto;
	  margin-right: auto;
	  /*padding-left: 15px;
	  padding-right: 15px;*/
/*	}
/*}*/

.btn2.btn-icon.btn-icon-mini.btn-round.btn-primary {
    /*background: #ff9640;*/
    background: #3fb618;
    border-color: #3fb618;
    color: #fff;

}

.btn2.btn-icon.btn-icon-mini.btn-round.btn-primary:hover {
    /*background: #ff9640;*/
    background: #369b14;
    border-color: #329213;
    color: #fff;

}

.btn2.btn-icon.btn-icon-mini.btn-round.btn-primary {
    border: 1px solid;
    border-radius: 3px;
    font-family: Open Sans, sans-serif;
    font-size: 14px;
    letter-spacing: .2px;
    outline: 0 !important;
    transition: .2s ease-in-out;

    cursor: pointer;
    display: inline-block;
    font-weight: 400;
    line-height: 1.42857143;
    margin-bottom: 0;
    padding: 6px 10px;
    text-align: center;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    margin-top: 10px;
}

.btn3.btn-icon.btn-icon-mini.btn-round.btn-danger {
    background: #ff0039;
    border-color: #ff0039;
    color: #fff;

}

.btn3.btn-icon.btn-icon-mini.btn-round.btn-danger:hover {
    background: #d90030;
    border-color: #cc002e;
    color: #fff;

}

.btn3 {
    border: 1px solid;
    border-radius: 3px;
    font-family: Open Sans, sans-serif;
    font-size: 14px;
    letter-spacing: .2px;
    outline: 0 !important;
    transition: .2s ease-in-out;

    cursor: pointer;
    display: inline-block;
    font-weight: 400;
    line-height: 1.42857143;
    margin-bottom: 0;
    padding: 6px 10px;
    text-align: center;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    /*position: absolute;
	bottom: 113px;
	left: 60px;*/
    position: relative;
    top: -33px;
    left: 45px;
}



/* ── Book hover overlay — slide up dari bawah ── */
.ck-book-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* Overlay hanya separuh bawah buku — slide up dari bawah */
.ck-book-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.28s ease, transform 0.28s ease;
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

.ck-book-wrap:hover .ck-book-overlay {
    opacity: 1;
    transform: translateY(0);
}

.ck-book-overlay-inner {
    padding: 6px 10px 8px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ck-ov-title {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    color: #1a1a2e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ck-ov-author,
.ck-ov-cat {
    font-size: 10px;
    font-weight: 400;
    color: #555;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ck-ov-author i,
.ck-ov-cat i {
    margin-right: 3px;
    font-size: 9px;
    color: #ca9c42;
}

/* Tombol tepat di tengah */
.ck-ov-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 14px;
    background: #ca9c42;
    color: #fff !important;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
    letter-spacing: 0.3px;
    align-self: center;
}

.ck-ov-btn:hover {
    background: #b8882e;
    color: #fff !important;
}