/* Etalase publik (buku, testimoni, video) — dibuat terpisah agar halaman lain tetap ringan.
   Slider (.h-track) & <x-testimonial-card> berasal dari app.css. */
.showcase-hero { position: relative; overflow: hidden; color: #fcf1d0; background: linear-gradient(125deg, #010736 0%, #0d1c42 58%, #22396f 100%); }
.showcase-hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(circle at 20% 20%, #fcf1d0 0 1px, transparent 1.5px); background-size: 28px 28px; }
.showcase-hero-grid { position: relative; z-index: 2; display: grid; min-height: 520px; align-items: center; gap: 2rem; padding-block: 4rem; }
.showcase-copy { max-width: 700px; }
.showcase-kicker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; color: #fcf1d0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.showcase-kicker i { color: #d8a2a2; animation: showcase-twinkle 2.8s ease-in-out infinite; }
.showcase-copy h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(2rem, 1.35rem + 3.2vw, 4.5rem); line-height: 1.08; letter-spacing: -.045em; }
.showcase-copy > p { max-width: 620px; margin: 1.15rem 0 0; color: rgba(255, 255, 255, .78); font-size: clamp(.92rem, .84rem + .35vw, 1.08rem); line-height: 1.75; }
/* Ringkasan angka di hero Etalase & Etalase Project: tiga kolom sejajar, juga di ponsel. */
.showcase-facts { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: clamp(.75rem, 3vw, 1.6rem); margin-top: 1.75rem; }
.showcase-facts span { display: grid; min-width: 0; gap: .1rem; align-content: start; padding-left: clamp(.6rem, 2vw, 1rem); border-left: 2px solid rgba(216, 162, 162, .75); }
.showcase-facts strong { color: #fff; font-size: 1rem; }
.showcase-facts small { color: rgba(255, 255, 255, .62); font-size: .65rem; }
.showcase-hero-cta { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.75rem; padding: .78rem 1.2rem; border-radius: 999px; background: #fcf1d0; color: #010736; font-size: .82rem; font-weight: 700; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7); }
.showcase-hero-cta:hover { color: #010736; background: #fff; transform: translateY(-2px); }
.showcase-featured { position: relative; display: none; max-width: 390px; justify-self: end; }
.showcase-featured-label { position: absolute; top: -16px; left: -20px; z-index: 4; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .8rem; border-radius: 999px; background: #d8a2a2; color: #010736; font-size: .68rem; font-weight: 700; box-shadow: 0 10px 22px rgba(1, 7, 54, .3); transform: rotate(-4deg); }
.showcase-cover-stage { position: relative; padding: 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 24px; background: rgba(255, 255, 255, .1); box-shadow: 0 28px 55px -22px rgba(0, 0, 0, .75); backdrop-filter: blur(12px); animation: showcase-float 5.5s ease-in-out infinite; }
.showcase-cover-stage img { position: relative; z-index: 2; display: block; width: 100%; aspect-ratio: 3 / 2; border-radius: 14px; object-fit: cover; }
.showcase-ring { position: absolute; top: -45px; right: -35px; width: 150px; height: 150px; border: 1px solid rgba(252, 241, 208, .42); border-radius: 50%; animation: showcase-spin 18s linear infinite; }
.showcase-ring::before, .showcase-ring::after { content: ""; position: absolute; border-radius: 50%; background: #fcf1d0; }
.showcase-ring::before { top: 16px; left: 10px; width: 10px; height: 10px; }
.showcase-ring::after { right: 18px; bottom: 12px; width: 7px; height: 7px; background: #d8a2a2; }
.showcase-featured-copy { display: grid; gap: .1rem; padding: 1rem .3rem 0; }
.showcase-featured-copy strong { color: #fff; font-size: .92rem; }
.showcase-featured-copy span { color: rgba(255, 255, 255, .62); font-size: .72rem; }
.showcase-orb { position: absolute; z-index: 1; border-radius: 50%; filter: blur(1px); }
.showcase-orb.is-one { top: -80px; right: 8%; width: 230px; height: 230px; border: 55px solid rgba(216, 162, 162, .12); }
.showcase-orb.is-two { bottom: -100px; left: 38%; width: 200px; height: 200px; background: rgba(252, 241, 208, .07); }

.showcase-main { min-height: 600px; padding-block: 2.2rem 4rem; background: linear-gradient(180deg, #f7f4eb 0%, #fff 28%, #f5f7fb 100%); }
.showcase-toolbar { display: grid; gap: .75rem; margin-top: -4rem; position: relative; z-index: 4; }
.showcase-search { display: flex; min-width: 0; align-items: center; gap: .65rem; padding: .55rem .6rem .55rem 1rem; border: 1px solid rgba(13, 28, 66, .09); border-radius: 16px; background: #fff; box-shadow: 0 22px 45px -24px rgba(1, 7, 54, .48); }
.showcase-search > i { color: #667085; }
.showcase-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: #010736; font-size: .82rem; }
.showcase-search button { min-height: 42px; padding: 0 1rem; border: 0; border-radius: 11px; background: #22396f; color: #fff; font-size: .76rem; font-weight: 700; }
.showcase-sort { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .55rem .75rem; border: 1px solid rgba(13, 28, 66, .09); border-radius: 14px; background: #fff; box-shadow: 0 16px 35px -26px rgba(1, 7, 54, .45); }
.showcase-sort label { display: flex; align-items: center; gap: .4rem; margin: 0; color: #667085; font-size: .7rem; }
.showcase-sort select { min-width: 140px; border: 0; outline: 0; background: transparent; color: #010736; font-size: .75rem; font-weight: 600; }
.showcase-categories { display: flex; gap: .55rem; margin-block: 1.4rem 2rem; overflow-x: auto; padding: .25rem .1rem .6rem; scrollbar-width: none; }
.showcase-categories::-webkit-scrollbar { display: none; }
.showcase-categories a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .85rem; border: 1px solid rgba(13, 28, 66, .12); border-radius: 999px; background: rgba(255, 255, 255, .82); color: #475467; font-size: .7rem; font-weight: 600; }
.showcase-categories a span { display: grid; min-width: 22px; height: 22px; padding-inline: 5px; place-items: center; border-radius: 99px; background: #f0f2f6; color: #22396f; font-size: .6rem; }
.showcase-categories a.active { border-color: #22396f; background: #22396f; color: #fff; box-shadow: 0 9px 20px -12px rgba(1, 7, 54, .7); }
.showcase-categories a.active span { background: #fcf1d0; color: #010736; }
.showcase-result-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.showcase-result-head span { color: #8ea66b; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.showcase-result-head h2 { margin: .15rem 0 0; color: #010736; font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); }
.showcase-result-head p { margin: 0; color: #667085; font-size: .72rem; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.showcase-card { min-width: 0; overflow: hidden; border: 1px solid rgba(13, 28, 66, .1); border-radius: 16px; background: #fff; box-shadow: 0 15px 34px -24px rgba(1, 7, 54, .52); transition: transform .26s ease, box-shadow .26s ease; }
.showcase-card:hover { transform: translateY(-6px); box-shadow: 0 24px 45px -24px rgba(1, 7, 54, .5); }
.showcase-card-cover { position: relative; display: block; padding: 9px; overflow: hidden; aspect-ratio: 3 / 2; background: linear-gradient(145deg, #0d1c42 0 12%, #fcf1d0 12% 88%, #d8a2a2 88%); }
.showcase-card-frame { position: absolute; inset: 5px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 12px; }
.showcase-card-cover img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: cover; transition: transform .45s ease; }
.showcase-card:hover .showcase-card-cover img { transform: scale(1.035); }
.showcase-discount { position: absolute; top: 15px; left: 15px; z-index: 3; padding: .3rem .45rem; border-radius: 7px; background: #d8a2a2; color: #010736; font-size: .62rem; font-weight: 800; }
.showcase-card-shine { position: absolute; top: -80%; left: -75%; z-index: 2; width: 40%; height: 250%; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent); transform: rotate(20deg); transition: left .7s ease, opacity .25s ease; }
.showcase-card:hover .showcase-card-shine { left: 145%; opacity: 1; }
.showcase-card-body { padding: .8rem; }
.showcase-card-tags { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .35rem; margin-bottom: .45rem; }
.showcase-card-tags > span { max-width: 68%; overflow: hidden; padding: .23rem .45rem; border-radius: 99px; background: #fcf1d0; color: #0d1c42; font-size: .62rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.showcase-card-tags small { color: #8ea66b; font-size: .6rem; font-weight: 700; white-space: nowrap; }
.showcase-card h3 { min-height: 2.8em; margin: 0; color: #010736; font-size: .76rem; line-height: 1.4; }
.showcase-author { margin: .25rem 0 .45rem; overflow: hidden; color: #8a94a6; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.showcase-description { display: none; margin: 0 0 .8rem; color: #667085; font-size: .68rem; line-height: 1.6; }
.showcase-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; padding-top: .65rem; border-top: 1px solid rgba(13, 28, 66, .08); }
.showcase-price { display: grid; min-width: 0; }
.showcase-price del { color: #98a2b3; font-size: .62rem; }
.showcase-price strong { color: #010736; font-size: .78rem; }
.showcase-card-footer > a { display: inline-flex; width: 34px; height: 34px; flex: 0 0 34px; align-items: center; justify-content: center; gap: .35rem; border-radius: 10px; background: #22396f; color: #fff; font-size: .64rem; font-weight: 700; }
.showcase-card-footer > a span { display: none; }
.showcase-empty { grid-column: 1 / -1; padding: 4rem 1rem; border: 1px dashed rgba(13, 28, 66, .2); border-radius: 20px; background: rgba(255, 255, 255, .72); text-align: center; }
.showcase-empty > i { color: #d8a2a2; font-size: 2.5rem; }
.showcase-empty h2 { margin: .75rem 0 .25rem; color: #010736; font-size: 1.15rem; }
.showcase-empty p { color: #667085; font-size: .78rem; }
.showcase-pagination { display: flex; justify-content: center; margin-top: 2rem; }

/* Pemilih koleksi (Buku | Testimoni): satu halaman, isi mengikuti pilihan pengunjung. */
.showcase-switch { display: flex; gap: .3rem; padding: .3rem; overflow-x: auto; border: 1px solid rgba(13, 28, 66, .09); border-radius: 16px; background: #fff; box-shadow: 0 22px 45px -24px rgba(1, 7, 54, .48); scrollbar-width: none; }
.showcase-switch::-webkit-scrollbar { display: none; }
.showcase-switch a { display: inline-flex; flex: 1 1 0; min-width: max-content; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: 0 clamp(.5rem, 2.4vw, 1rem); border-radius: 12px; color: #475467; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.showcase-switch a span { display: grid; min-width: 22px; height: 22px; padding-inline: 5px; place-items: center; border-radius: 99px; background: #f0f2f6; color: #22396f; font-size: .6rem; }
.showcase-switch a:hover { color: #010736; background: #f7f8fc; }
.showcase-switch a.active { background: #22396f; color: #fff; }
.showcase-switch a.active span { background: #fcf1d0; color: #010736; }
.showcase-toolbar + .showcase-result-head { margin-top: 1.9rem; }

/* Koleksi testimoni */
.showcase-testimonials { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem 1.1rem; }
.showcase-testimonials .testimonial-photo { aspect-ratio: 16 / 9; }
.showcase-featured .testimonial-card { box-shadow: 0 28px 55px -22px rgba(0, 0, 0, .75); }

/* Slider video YouTube (Konten Etalase jenis video, diatur superadmin) */
.showcase-videos { padding-bottom: 5.5rem; background: linear-gradient(180deg, #0d1c42 0%, #010736 100%); }
.showcase-videos-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 2.2rem; }
.showcase-videos-head span { display: inline-flex; align-items: center; gap: .4rem; color: #d8a2a2; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.showcase-videos-head h2 { margin: .35rem 0 0; color: #fff; font-size: clamp(1.15rem, 1rem + 1vw, 1.75rem); }
.showcase-videos .h-track { margin-inline: -.25rem; padding: 1.15rem .25rem 1.3rem; scroll-padding-inline: .25rem; }
.showcase-videos .track-dots { justify-content: flex-start; }
.showcase-videos .track-dot { background: rgba(252, 241, 208, .32); }
.showcase-videos .track-dot.is-active { background: #fcf1d0; }
.showcase-videos .track-nav button { background: rgba(255, 255, 255, .12); color: #fff; }
.showcase-videos .track-nav button:last-child { background: #fcf1d0; color: #010736; }
.video-card { display: flex; flex: 0 0 min(320px, 82vw); flex-direction: column; overflow: hidden; border: 1px solid rgba(252, 241, 208, .14); border-radius: 16px; background: rgba(255, 255, 255, .06); }
.video-body { display: flex; flex: 1; flex-direction: column; padding: .85rem 1rem 1rem; }
.video-body h3 { margin: 0 0 .3rem; color: #fff; font-size: .9rem; line-height: 1.4; }
.video-body p { margin: 0 0 .6rem; color: rgba(255, 255, 255, .66); font-size: .74rem; line-height: 1.55; }
.video-body a { display: inline-flex; min-height: 2.5rem; align-items: center; gap: .35rem; margin-top: auto; color: #fcf1d0; font-size: .74rem; font-weight: 600; }
.video-body a:hover { color: #fff; }

/* Halaman detail Etalase (/etalase/{koleksi}/{id}) — buku: sampul, data, sinopsis & form pesan WhatsApp. */
.book-visual-frame { position: relative; padding: 12px; overflow: hidden; border-radius: 16px; background: linear-gradient(145deg, #0d1c42 0 10%, #fcf1d0 10% 90%, #d8a2a2 90%); box-shadow: 0 18px 34px -18px rgba(1, 7, 54, .5); }
.book-visual-frame::after { content: "\2726"; position: absolute; top: 14px; right: 17px; z-index: 2; color: #fff; font-size: 1.1rem; text-shadow: 0 2px 7px rgba(1, 7, 54, .35); }
.book-visual-frame img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 11px; aspect-ratio: 3 / 2; object-fit: cover; }
.book-facts { display: grid; gap: .55rem; margin-bottom: 1rem; }
.book-facts div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: .75rem; padding-bottom: .45rem; border-bottom: 1px solid #eef0f4; }
.book-facts dt { color: #667085; font-size: .7rem; font-weight: 500; }
.book-facts dd { margin: 0; color: #0d1c42; font-size: .78rem; font-weight: 600; }
.book-order-card { border-color: rgba(13, 28, 66, .1); box-shadow: 0 22px 44px -26px rgba(1, 7, 54, .48); }
.book-order-card h2 { margin: .35rem 0 .25rem; font-size: 1.25rem; }
.book-order-status { display: inline-flex; align-items: center; gap: .4rem; color: #47752c; font-size: .75rem; font-weight: 700; }
.book-order-summary { display: grid; gap: 0; margin: 1.25rem 0; border: 1px solid rgba(13, 28, 66, .1); border-radius: 14px; background: #fff; }
.book-order-summary div { display: grid; gap: .25rem; padding: .75rem .9rem; }
.book-order-summary div + div { border-top: 1px solid rgba(13, 28, 66, .08); }
.book-order-summary dt { color: var(--fm-muted); font-size: .68rem; font-weight: 500; }
.book-order-summary dd { margin: 0; color: #010736; font-size: .82rem; font-weight: 600; white-space: pre-line; }
.book-order-summary small { display: block; color: var(--fm-muted); font-size: .64rem; font-weight: 400; }
.book-order-whatsapp { background: #267647; border-color: #267647; }
.book-order-whatsapp:hover { background: #1f633b; border-color: #1f633b; }
.book-order-admin-note { margin: .65rem 0 0; color: var(--fm-muted); font-size: .67rem; line-height: 1.5; text-align: center; }

.showcase-detail { min-height: 70vh; padding-block: 1.1rem 3.5rem; background: linear-gradient(180deg, #f7f4eb 0%, #fff 34%, #f5f7fb 100%); }
.showcase-breadcrumb { display: flex; min-width: 0; align-items: center; gap: .45rem; margin-bottom: 1.25rem; overflow: hidden; color: #98a2b3; font-size: .75rem; white-space: nowrap; }
.showcase-breadcrumb a { display: inline-flex; align-items: center; gap: .35rem; color: var(--fm-primary-700); font-weight: 600; }
.showcase-breadcrumb span { overflow: hidden; color: #475467; text-overflow: ellipsis; }
.book-detail-layout { display: grid; gap: 1.5rem; align-items: start; }
.book-detail-main { display: grid; gap: 1.25rem; min-width: 0; }
.book-detail-head h1 { margin: .15rem 0 .25rem; color: #010736; font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; }
.book-detail-head > p { margin: 0; color: var(--fm-muted); font-size: .9rem; }
.book-detail-price { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: .85rem 1rem; border-radius: 14px; background: #fcf1d0; color: #010736; }
.book-detail-price > span { color: #667085; font-size: .75rem; }
.book-detail-price div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: .2rem .5rem; }
.book-detail-price del { color: #98a2b3; font-size: .78rem; }
.book-detail-price small { padding: 1px 6px; border-radius: 5px; background: #dcfae6; color: #079455; font-size: .68rem; font-weight: 700; }
.book-detail-price strong { font-size: 1.3rem; }
.book-detail-synopsis { padding: 1.1rem 1.15rem; border: 1px solid rgba(13, 28, 66, .08); border-radius: 16px; background: #fff; }
.book-detail-synopsis h2 { margin: 0 0 .5rem; font-size: 1rem; }
.book-detail-synopsis p { margin: 0; color: #475467; font-size: .9rem; line-height: 1.8; white-space: pre-line; }
.book-order-card { scroll-margin-top: calc(var(--fm-header-h) + 1rem); }
.showcase-related { margin-top: 3rem; }
.showcase-related .showcase-result-head { align-items: center; }

.testimonial-detail { display: grid; gap: 1.5rem; align-items: start; }
.testimonial-detail-photo { margin: 0; overflow: hidden; border-radius: 22px; background: #0d1c42; box-shadow: 0 26px 50px -30px rgba(1, 7, 54, .65); }
.testimonial-detail-photo img { display: block; width: 100%; height: auto; }
.testimonial-detail-story { position: relative; display: grid; gap: .9rem; padding: 1.5rem 1.3rem; border: 1px solid rgba(13, 28, 66, .08); border-radius: 22px; background: #fff; box-shadow: 0 22px 44px -32px rgba(1, 7, 54, .5); }
.testimonial-detail-story .book-genre { justify-self: start; margin: 0; }
.testimonial-detail-story h1 { margin: 0; color: #010736; font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); }
.testimonial-detail-story blockquote { margin: 0; color: var(--fm-ink-strong); font-size: clamp(1.05rem, .95rem + .6vw, 1.4rem); font-weight: 600; line-height: 1.55; }
.testimonial-detail-mark { position: absolute; top: -20px; right: 22px; display: grid; width: 48px; height: 48px; place-items: center; border: 4px solid #fff; border-radius: 50%; background: var(--fm-primary-600); color: #fcf1d0; font-size: 1.5rem; animation: fm-bob 3s ease-in-out infinite; }

html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--reveal-delay, 0ms), transform .6s cubic-bezier(.2, .7, .25, 1) var(--reveal-delay, 0ms); }
html.reveal-ready [data-reveal="right"] { transform: translateX(20px); }
html.reveal-ready [data-reveal].is-revealed { opacity: 1; transform: none; }

@keyframes showcase-float { 0%, 100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-9px) rotate(-.6deg); } }
@keyframes showcase-spin { to { transform: rotate(360deg); } }
@keyframes showcase-twinkle { 0%, 100% { opacity: .7; transform: scale(1) rotate(0); } 50% { opacity: 1; transform: scale(1.22) rotate(14deg); } }

@media (min-width: 576px) {
    .showcase-testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .showcase-card-body { padding: 1rem; }
    .showcase-card h3 { font-size: .88rem; }
    .showcase-description { display: block; }
    .showcase-price strong { font-size: .9rem; }
    .showcase-card-footer > a { width: auto; padding-inline: .75rem; }
    .showcase-card-footer > a span { display: inline; }
}

@media (min-width: 768px) {
    .showcase-toolbar { grid-template-columns: auto minmax(0, 1fr); }
    .showcase-toolbar.has-sort { grid-template-columns: auto minmax(0, 1fr) auto; }
    .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

@media (min-width: 992px) {
    .book-detail-layout { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 2rem; }
    .book-order-card { position: sticky; top: calc(var(--fm-header-h) + 1rem); }
    .testimonial-detail { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 2rem; }
    .showcase-hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr); }
    .showcase-featured { display: block; }
    .showcase-main { padding-block: 2.7rem 5rem; }
    .showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
    .showcase-testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .video-card { flex-basis: 360px; }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-kicker i, .showcase-cover-stage, .showcase-ring, .testimonial-detail-mark { animation: none; }
    .showcase-card, .showcase-card-cover img, .showcase-card-shine, .showcase-hero-cta { transition: none; }
}
