/* =============================================
   RATU SAMUDRA - Main Stylesheet
   Warna: Navy (#0B4F8A) + Gold (#C9A227)
   Font: Playfair Display + Source Sans Pro
   ============================================= */

:root {
  --navy:       #0B4F8A;
  --navy-dark:  #072a4e;
  --navy-light: #1a6bb5;
  --gold:       #C9A227;
  --gold-dark:  #a07d1a;
  --gold-light: #e8c547;
  --white:      #ffffff;
  --off-white:  #f8f9fc;
  --gray-100:   #f4f7fb;
  --gray-200:   #e8edf5;
  --gray-300:   #d0d9e8;
  --gray-500:   #8095b5;
  --gray-700:   #4a5a7a;
  --text:       #1a2a4a;
  --text-light: #5a6a8a;
  --shadow-sm:  0 2px 8px rgba(11,79,138,.08);
  --shadow-md:  0 4px 24px rgba(11,79,138,.12);
  --shadow-lg:  0 8px 48px rgba(11,79,138,.16);
  --radius:     12px;
  --radius-sm:  8px;
  --transition: .25s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans Pro', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-md); }

.header-top { background: var(--navy-dark); padding: .45rem 0; font-size: .82rem; color: rgba(255,255,255,.75); }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-contact-info { display: flex; gap: 1.5rem; }
.header-contact-info span { display: flex; align-items: center; gap: .4rem; }
.header-contact-info i { color: var(--gold); }
.header-social { display: flex; gap: .6rem; }
.header-social a { color: rgba(255,255,255,.6); font-size: .85rem; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); transition: all var(--transition); }
.header-social a:hover { background: var(--gold); color: var(--white); }

.header-main { background: var(--white); border-bottom: 3px solid var(--gold); }
.header-main-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: 2rem; }

.site-logo { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); letter-spacing: -.5px; }
.logo-tagline { font-size: .72rem; color: var(--gold-dark); font-style: italic; letter-spacing: .3px; }

.main-nav ul { display: flex; align-items: center; gap: .2rem; }
.main-nav ul li { position: relative; }
.main-nav ul li a { display: block; padding: .5rem .9rem; font-weight: 600; font-size: .92rem; color: var(--text); border-radius: var(--radius-sm); transition: all var(--transition); }
.main-nav ul li a:hover, .main-nav ul li a.active { color: var(--navy); background: var(--gray-100); }
.main-nav ul li a.active { color: var(--gold-dark); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown .dropdown { display: none; position: absolute; top: calc(100% + .5rem); left: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 240px; padding: .5rem; z-index: 100; }
.has-dropdown:hover .dropdown { display: block; animation: fadeDown .2s ease; }
.dropdown li a { display: flex; align-items: center; gap: .75rem; padding: .55rem .85rem; border-radius: var(--radius-sm); font-size: .9rem; }
.dropdown li a:hover { background: var(--gray-100); }
.dropdown li a i { width: 20px; color: var(--navy); }
.dropdown li a .badge { margin-left: auto; background: var(--navy); color: white; font-size: .72rem; padding: .1rem .4rem; border-radius: 20px; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.btn-search-icon, .btn-admin { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gray-100); color: var(--navy); font-size: .95rem; transition: all var(--transition); }
.btn-search-icon:hover, .btn-admin:hover { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all var(--transition); }

/* Flash Message */
.flash-message { padding: .7rem 0; font-size: .9rem; border-left: 4px solid; }
.flash-success { background: #e8f8f0; border-color: #2ecc71; color: #1a7a40; }
.flash-error   { background: #fdecea; border-color: #e74c3c; color: #922b21; }
.flash-message .container { display: flex; align-items: center; justify-content: space-between; }
.flash-message span { display: flex; align-items: center; gap: .5rem; }
.flash-close { background: none; border: none; cursor: pointer; color: inherit; opacity: .7; font-size: 1rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; cursor: pointer; border: 2px solid transparent; transition: all var(--transition); text-decoration: none; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); border-color: var(--navy-dark); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-navy-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-navy-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.w-full { width: 100%; justify-content: center; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero { position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); min-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-wave { position: absolute; border-radius: 50%; opacity: .04; }
.wave-1 { width: 700px; height: 700px; background: var(--gold); top: -200px; right: -150px; }
.wave-2 { width: 400px; height: 400px; background: var(--white); bottom: -100px; left: -100px; }
.hero-particles { position: absolute; inset: 0; }
.particle { position: absolute; width: 3px; height: 3px; background: var(--gold); border-radius: 50%; opacity: .4; animation: float linear infinite; }
.particle:nth-child(1)  { left: 10%; top: 20%; animation-duration: 8s; }
.particle:nth-child(2)  { left: 20%; top: 60%; animation-duration: 12s; animation-delay: 2s; }
.particle:nth-child(3)  { left: 35%; top: 15%; animation-duration: 10s; animation-delay: 1s; }
.particle:nth-child(4)  { left: 55%; top: 70%; animation-duration: 9s; animation-delay: 3s; }
.particle:nth-child(5)  { left: 70%; top: 25%; animation-duration: 11s; animation-delay: .5s; }
.particle:nth-child(6)  { left: 80%; top: 55%; animation-duration: 7s; animation-delay: 4s; }
.particle:nth-child(7)  { left: 90%; top: 10%; animation-duration: 13s; animation-delay: 1.5s; }
.particle:nth-child(8)  { left: 5%;  top: 80%; animation-duration: 10s; animation-delay: 2.5s; }
.particle:nth-child(9)  { left: 45%; top: 40%; animation-duration: 8s; animation-delay: .8s; width:5px; height:5px; }
.particle:nth-child(10) { left: 65%; top: 85%; animation-duration: 14s; animation-delay: 3.5s; }
.particle:nth-child(11) { left: 25%; top: 35%; animation-duration: 9s; animation-delay: 5s; }
.particle:nth-child(12) { left: 88%; top: 40%; animation-duration: 11s; animation-delay: 1.2s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; min-height: 80vh; padding: 6rem 0 4rem; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(201,162,39,.2); color: var(--gold-light); border: 1px solid rgba(201,162,39,.3); border-radius: 30px; padding: .4rem 1rem; font-size: .82rem; font-weight: 600; letter-spacing: .5px; margin-bottom: 1.5rem; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 1.2rem; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 480px; margin-bottom: 2rem; line-height: 1.7; }
.hero-stats { display: flex; gap: 2rem; margin-bottom: 2.5rem; }
.hero-stat { text-align: center; }
.stat-num { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: 1px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Book Stack Visual */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.book-stack { position: relative; width: 280px; height: 320px; }
.book-float { position: absolute; transition: transform .3s ease; }
.book-cover-mock { width: 80px; height: 110px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: rgba(255,255,255,.8); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.b1 { top: 0; left: 30px; transform: rotate(-12deg); animation: bookFloat1 4s ease-in-out infinite; }
.b2 { top: 60px; right: 20px; transform: rotate(8deg); animation: bookFloat2 5s ease-in-out infinite; }
.b3 { bottom: 40px; left: 10px; transform: rotate(6deg); animation: bookFloat1 6s ease-in-out infinite reverse; }
.book-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 12px 32px rgba(0,0,0,.4)); animation: bookFloat2 4s ease-in-out infinite; }
@keyframes bookFloat1 { 0%,100% { transform: rotate(-12deg) translateY(0); } 50% { transform: rotate(-12deg) translateY(-12px); } }
@keyframes bookFloat2 { 0%,100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-8px); } }

.hero-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); text-align: center; color: rgba(255,255,255,.5); font-size: .8rem; animation: bounce 2s ease infinite; z-index: 1; }
.hero-scroll-hint i { display: block; margin-top: .4rem; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-bar-section { background: var(--white); padding: 1.5rem 0; box-shadow: var(--shadow-md); position: relative; z-index: 2; }
.search-form-hero { display: flex; gap: .75rem; align-items: center; background: var(--gray-100); border: 2px solid var(--gray-200); border-radius: 50px; padding: .5rem .5rem .5rem 1.5rem; transition: border-color var(--transition); }
.search-form-hero:focus-within { border-color: var(--navy); }
.search-input-wrap { display: flex; align-items: center; gap: .75rem; flex: 1; }
.search-input-wrap i { color: var(--gray-500); font-size: 1rem; }
.search-input-wrap input { flex: 1; border: none; background: none; outline: none; font-size: 1rem; color: var(--text); font-family: inherit; }
.search-input-wrap input::placeholder { color: var(--gray-500); }
.search-form-hero select { border: none; background: none; outline: none; font-size: .9rem; color: var(--text); font-family: inherit; padding: .3rem .5rem; border-left: 1px solid var(--gray-300); }
.search-form-hero .btn { border-radius: 40px; padding: .65rem 1.75rem; }

/* ============================================================
   SECTIONS GENERAL
   ============================================================ */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: .75rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy-dark); font-weight: 700; margin-bottom: .75rem; line-height: 1.2; }
.section-desc { color: var(--text-light); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }
.section-cta { text-align: center; margin-top: 3rem; }

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-section { background: var(--gray-100); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.category-card { display: flex; align-items: center; gap: 1rem; background: var(--white); padding: 1.2rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--gray-200); text-decoration: none; color: var(--text); transition: all var(--transition); }
.category-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--text); }
.cat-icon { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.1rem; flex-shrink: 0; }
.cat-info h3 { font-size: .95rem; font-weight: 700; color: var(--navy-dark); line-height: 1.3; }
.cat-info span { font-size: .78rem; color: var(--text-light); }
.cat-arrow { margin-left: auto; color: var(--gray-300); font-size: .8rem; transition: all var(--transition); }
.category-card:hover .cat-arrow { color: var(--gold); transform: translateX(4px); }

/* ============================================================
   BOOK CARDS
   ============================================================ */
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.books-grid--large { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.books-grid--4 { grid-template-columns: repeat(4, 1fr); }

.book-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: all var(--transition); }
.book-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* === BOOK CARD COVER — 3D === */
.book-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  background: transparent;
  perspective: 900px;
  perspective-origin: center center;
}
.book-card-cover .book-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-18deg);
  transition: transform .4s ease;
}
.book-card:hover .book-card-cover .book-3d {
  transform: rotateY(-6deg);
}
/* Front face */
.book-3d-front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0 4px 4px 0;
  box-shadow: 6px 6px 20px rgba(0,0,0,.35);
}
.book-3d-front img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Spine — sisi kiri */
.book-3d-spine {
  position: absolute;
  top: 0; left: 0;
  width: 14px;
  height: 100%;
  background: linear-gradient(to right, #111 0%, #555 40%, #333 100%);
  transform: rotateY(90deg) translateZ(-7px);
  transform-origin: left center;
  border-radius: 2px 0 0 2px;
}
/* Highlight kanan */
.book-3d-front::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 100%;
  background: linear-gradient(to left, rgba(255,255,255,.18), transparent);
  pointer-events: none;
}
/* Shadow bawah */
.book-card-cover::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 10%; right: 5%;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.35) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
}
.book-card-overlay { position: absolute; inset: 0; background: rgba(11,79,138,.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; color: white; font-weight: 600; font-size: .9rem; z-index: 2; }
.book-card:hover .book-card-overlay { opacity: 1; }

.book-badge { position: absolute; top: .6rem; left: .6rem; font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 4px; letter-spacing: .3px; text-transform: uppercase; z-index: 3; }
.badge-new { background: var(--gold); color: white; }
.badge-featured { background: var(--navy); color: white; top: auto; bottom: .6rem; }

.book-card-body { padding: 1rem; }
.book-category { font-size: .72rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .3rem; display: inline-block; }
.book-title { font-size: .95rem; font-weight: 700; color: var(--navy-dark); line-height: 1.35; margin-bottom: .4rem; }
.book-title a:hover { color: var(--gold-dark); }
.book-authors { font-size: .8rem; color: var(--text-light); margin-bottom: .5rem; display: flex; align-items: center; gap: .35rem; }
.book-meta-row { display: flex; gap: 1rem; font-size: .78rem; color: var(--text-light); margin-bottom: .6rem; }
.book-meta-row i { color: var(--navy-light); margin-right: .25rem; }
.book-price-row { display: flex; align-items: center; gap: .6rem; }
.price-current { font-weight: 700; color: var(--navy); font-size: 1rem; }
.price-original { color: var(--text-light); text-decoration: line-through; font-size: .85rem; }

/* ============================================================
   WHY / FEATURES SECTION
   ============================================================ */
.why-section { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-content h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--navy-dark); line-height: 1.2; margin-bottom: 1rem; }
.why-content p { color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.8; }
.why-list { list-style: none; margin-bottom: 2rem; }
.why-list li { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; color: var(--text); }
.why-list li i { color: var(--gold); font-size: 1.1rem; }
.why-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-card { background: var(--gray-100); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--gray-200); transition: all var(--transition); }
.why-card:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.why-icon { width: 44px; height: 44px; background: var(--navy); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.2rem; margin-bottom: 1rem; }
.why-card h4 { font-weight: 700; color: var(--navy-dark); margin-bottom: .4rem; }
.why-card p { font-size: .88rem; color: var(--text-light); }

/* ============================================================
   FEATURED / LATEST SECTIONS
   ============================================================ */
.featured-section { background: var(--gray-100); }
.latest-section { background: var(--white); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); }
.testimonials-section .section-eyebrow { color: var(--gold-light); }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .section-desc { color: rgba(255,255,255,.7); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 2rem; backdrop-filter: blur(8px); transition: all var(--transition); }
.testimonial-card:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.testimonial-stars { color: var(--gold); font-size: .9rem; margin-bottom: 1rem; }
.testimonial-text { color: rgba(255,255,255,.9); line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; font-size: .98rem; }
.testimonial-author { display: flex; align-items: center; gap: .85rem; }
.author-avatar i { font-size: 2rem; color: rgba(255,255,255,.4); }
.author-name { font-weight: 700; color: var(--white); font-size: .92rem; }
.author-inst { font-size: .8rem; color: rgba(255,255,255,.6); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); padding: 4rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-content h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--white); margin-bottom: .6rem; }
.cta-content p { color: rgba(255,255,255,.85); max-width: 540px; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-actions .btn-gold { background: white; color: var(--gold-dark); }
.cta-actions .btn-gold:hover { background: var(--navy); color: white; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); padding: 3.5rem 0; color: white; }
.page-header--sm { padding: 2rem 0; }
.page-header-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.page-header-title { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: white; margin-top: .5rem; }
.page-header-desc { color: rgba(255,255,255,.75); margin-top: .5rem; }
.breadcrumb-nav { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.65); flex-wrap: wrap; }
.breadcrumb-nav a { color: rgba(255,255,255,.8); }
.breadcrumb-nav a:hover { color: var(--gold-light); }
.breadcrumb-nav i { font-size: .65rem; }

/* ============================================================
   CATALOG PAGE
   ============================================================ */
.catalog-layout { padding: 3rem 0; background: var(--gray-100); min-height: 60vh; }
.catalog-inner { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }

.catalog-sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--white); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; border: 1px solid var(--gray-200); }
.sidebar-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.sidebar-card h3 i { color: var(--gold); }
.filter-list { list-style: none; }
.filter-list li { margin-bottom: .2rem; }
.filter-list li a { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border-radius: var(--radius-sm); font-size: .9rem; color: var(--text); transition: all var(--transition); }
.filter-list li a:hover { background: var(--gray-100); color: var(--navy); }
.filter-list li a.active { background: var(--navy); color: white; }
.filter-list li a i { width: 18px; text-align: center; }
.filter-list li a .count { margin-left: auto; background: var(--gray-200); color: var(--text-light); font-size: .75rem; padding: .1rem .4rem; border-radius: 10px; }
.filter-list li a.active .count { background: rgba(255,255,255,.2); color: white; }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.catalog-info { color: var(--text-light); font-size: .9rem; }
.catalog-main .books-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.pagination { display: flex; justify-content: center; margin-top: 3rem; }
.pagination ul { display: flex; gap: .4rem; list-style: none; }
.pagination .page-link { display: block; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; background: var(--white); color: var(--text); border: 1px solid var(--gray-200); transition: all var(--transition); }
.pagination .page-item.active .page-link { background: var(--navy); color: white; border-color: var(--navy); }
.pagination .page-link:hover { background: var(--gray-100); border-color: var(--navy); }

.empty-state { text-align: center; padding: 5rem 2rem; color: var(--text-light); }
.empty-state i { font-size: 4rem; color: var(--gray-300); margin-bottom: 1rem; display: block; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--gray-700); }
.empty-state p { margin-bottom: 1.5rem; }

/* ============================================================
   BOOK DETAIL
   ============================================================ */
.book-detail-section { padding: 3rem 0; }
.book-detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
/* === DETAIL COVER — 3D === */
.cover-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  background: transparent;
  perspective: 1200px;
  perspective-origin: center 40%;
}
.cover-wrapper .book-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-22deg);
  transition: transform .5s ease;
}
.cover-wrapper:hover .book-3d {
  transform: rotateY(-8deg);
}
.cover-wrapper .book-3d-front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0 6px 6px 0;
  box-shadow: 10px 12px 40px rgba(0,0,0,.45), 2px 2px 0 rgba(0,0,0,.2);
}
.cover-wrapper .book-3d-front img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.cover-wrapper .book-3d-spine {
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 100%;
  background: linear-gradient(to right, #0a0a0a 0%, #444 45%, #222 100%);
  transform: rotateY(90deg) translateZ(-10px);
  transform-origin: left center;
  border-radius: 3px 0 0 3px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cover-wrapper .book-3d-front::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 100%;
  background: linear-gradient(to left, rgba(255,255,255,.15), transparent);
  pointer-events: none;
}
.cover-wrapper .book-3d-front::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,.25), transparent);
  pointer-events: none;
}
.cover-wrapper::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 8%; right: 4%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(6px);
}
.detail-quick-info { background: var(--gray-100); border-radius: var(--radius); padding: 1.2rem; margin-top: 1rem; }
.quick-info-item { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--gray-200); }
.quick-info-item:last-child { border: none; }
.qi-label { font-size: .85rem; color: var(--text-light); }
.qi-value { font-weight: 700; font-size: .95rem; }
.price-gold { color: var(--navy); font-size: 1.1rem; }
.price-original-sm { color: var(--gray-500); text-decoration: line-through; font-size: .85rem; margin-right: .4rem; font-weight: 400; }
.text-success { color: #27ae60; }
.text-danger  { color: #e74c3c; }
.detail-order { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }

.detail-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy-dark); margin: .5rem 0 .4rem; line-height: 1.2; }
.detail-subtitle { font-size: 1.1rem; color: var(--text-light); font-style: italic; margin-bottom: 1rem; }
.detail-authors { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; color: var(--text-light); font-size: .95rem; flex-wrap: wrap; }
.detail-authors i { color: var(--gold); }
.author-role { font-size: .78rem; background: var(--gray-200); padding: .1rem .4rem; border-radius: 4px; }

.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.specs-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--gray-200); font-size: .92rem; }
.specs-table td:first-child { color: var(--text-light); font-weight: 600; width: 140px; }

.detail-tabs { margin-bottom: 2rem; }
.tab-nav { display: flex; gap: .3rem; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.5rem; }
.tab-btn { background: none; border: none; padding: .6rem 1.2rem; font-size: .95rem; font-weight: 600; color: var(--text-light); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab-btn.active, .tab-btn:hover { color: var(--navy); border-bottom-color: var(--navy); }
.tab-content.hidden { display: none; }
.book-description, .book-toc { color: var(--text); line-height: 1.9; font-size: .98rem; }

.detail-share { display: flex; align-items: center; gap: .75rem; }
.detail-share span { font-size: .9rem; color: var(--text-light); }
.share-btn { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: .85rem; }
.fb { background: #1877f2; }
.tw { background: #1da1f2; }
.wa { background: #25d366; }

.related-section { background: var(--gray-100); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.about-img-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 1.5rem; }
.about-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-num { background: var(--gray-100); border-radius: var(--radius-sm); padding: 1rem; text-align: center; border: 1px solid var(--gray-200); }
.about-num strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--navy); }
.about-num span { font-size: .8rem; color: var(--text-light); }
.about-content h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--navy-dark); line-height: 1.2; margin-bottom: 1.2rem; }
.about-text p { color: var(--text-light); line-height: 1.9; margin-bottom: 1rem; }
.about-values { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.value-item { display: flex; gap: 1rem; }
.value-icon { width: 44px; height: 44px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; flex-shrink: 0; }
.value-item h4 { font-weight: 700; color: var(--navy-dark); margin-bottom: .25rem; }
.value-item p { font-size: .9rem; color: var(--text-light); }

.visi-misi-section { background: var(--gray-100); }
.visi-misi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.vm-card { background: var(--white); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.vm-card--gold { background: var(--navy); color: white; }
.vm-card--gold h3, .vm-card--gold p, .vm-card--gold li { color: rgba(255,255,255,.9); }
.vm-icon { width: 52px; height: 52px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; margin-bottom: 1.2rem; }
.vm-card--gold .vm-icon { background: rgba(255,255,255,.15); }
.vm-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy-dark); margin-bottom: 1rem; }
.vm-card ul { list-style: disc; padding-left: 1.3rem; }
.vm-card ul li { margin-bottom: .5rem; font-size: .95rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy-dark); margin-bottom: .75rem; }
.contact-info > p { color: var(--text-light); margin-bottom: 2rem; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--gray-100); border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 1px solid var(--gray-200); }
.contact-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; flex-shrink: 0; }
.whatsapp-icon { background: #25d366; }
.contact-card h4 { font-size: .9rem; font-weight: 700; color: var(--navy-dark); margin-bottom: .2rem; }
.contact-card p { font-size: .88rem; color: var(--text-light); }
.contact-card p a { color: var(--navy); }
.contact-hours { background: var(--navy); border-radius: var(--radius-sm); padding: 1.2rem; color: white; }
.contact-hours h4 { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.contact-hours h4 i { color: var(--gold); }
.contact-hours p { font-size: .88rem; color: rgba(255,255,255,.8); }
.contact-form-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.contact-form-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-control { width: 100%; padding: .7rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit; color: var(--text); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); outline: none; }
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,79,138,.1); }
textarea.form-control { resize: vertical; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {}
.footer-top { background: var(--navy-dark); padding: 4rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 3rem; }
.footer-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: white; font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.footer-tagline { font-style: italic; color: var(--gold-light); font-size: .85rem; margin-bottom: 1rem; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.8; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: all var(--transition); }
.footer-social a:hover { background: var(--gold); color: white; }
.footer-links h4, .footer-categories h4, .footer-contact-info h4 { font-size: .9rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.2rem; }
.footer-links ul li, .footer-categories ul li { margin-bottom: .5rem; }
.footer-links ul li a, .footer-categories ul li a { font-size: .88rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-links ul li a:hover, .footer-categories ul li a:hover { color: var(--gold-light); }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .8rem; font-size: .88rem; color: rgba(255,255,255,.65); }
.contact-list li i { color: var(--gold); margin-top: .2rem; width: 16px; }
.contact-list li a { color: rgba(255,255,255,.65); }
.contact-list li a:hover { color: var(--gold-light); }
.footer-bottom { background: rgba(0,0,0,.3); padding: 1.2rem 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.5); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* nav-close-btn: hanya tampil di mobile via JS */
.nav-close-btn { display: none; }

/* ---- BOTTOM NAVIGATION BAR (base — hidden on desktop) ---- */
.bottom-nav {
  display: none;                          /* hidden di desktop */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid #e5e7eb;
  box-shadow: 0 -2px 16px rgba(0,0,0,.12);
  padding: 2px 0 env(safe-area-inset-bottom, 2px);
  z-index: 9000;
}
.bottom-nav-items {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px 4px;
  color: #6b7280;
  font-size: .6rem;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav-item i { font-size: 1.15rem; display: block; }
.bottom-nav-item span { display: block; line-height: 1.2; }
.bottom-nav-item.active,
.bottom-nav-item:hover  { color: var(--navy, #0B4F8A); }
.bottom-nav-item.active i { color: var(--gold, #C9A227); }

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .why-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .catalog-inner { grid-template-columns: 220px 1fr; }
  .book-detail-grid { grid-template-columns: 240px 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
/* =========================================
   MOBILE — max-width: 768px (SINGLE BLOCK)
   ========================================= */
@media (max-width: 768px) {
  /* Header */
  .header-top { display: none; }
  body { padding-bottom: 70px; }

  /* Logo — auto height, max 52px agar tidak oversized */
  .logo-icon img { height: auto !important; max-height: 52px; width: auto; }
  .site-logo .logo-tagline { display: none; }
  .header-main-inner { gap: .5rem; }

  /* ---- NAV TOGGLE ---- */
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 10001; /* di atas overlay dan sidebar */
  }

  /* ---- SIDEBAR NAV — slide dari kanan, transform-based ---- */
  .main-nav {
    display: block !important;        /* selalu ada di DOM */
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: -4px 0 24px rgba(0,0,0,.18);
    overflow-y: auto;
    padding: 56px 1rem 1.5rem;
    transform: translateX(100%);      /* sembunyi ke kanan */
    transition: transform .3s ease;
    visibility: hidden;
  }
  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Tombol close di dalam sidebar */
  .nav-close-btn {
    display: flex !important;
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; cursor: pointer;
    font-size: 1.2rem; color: #6b7280; padding: 6px 10px;
    z-index: 1;
  }

  /* Nav list */
  .main-nav > ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .main-nav > ul > li > a {
    padding: .75rem .25rem;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 0;
    font-size: .95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .main-nav > ul > li:last-child > a { border-bottom: none; }

  /* ---- DROPDOWN — collapsible, default hidden ---- */
  .has-dropdown .dropdown {
    display: none !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid #f3f4f6 !important;
    background: #f9fafb;
    padding: .25rem 0 .5rem .75rem;
    border-radius: 0 0 8px 8px;
    min-width: unset;
  }
  .has-dropdown.open .dropdown {
    display: block !important;
  }
  .has-dropdown > a .fa-chevron-down {
    transition: transform .25s;
    font-size: .8rem;
  }
  .has-dropdown.open > a .fa-chevron-down {
    transform: rotate(180deg);
  }

  /* ---- NAV OVERLAY ---- */
  .nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;  /* di bawah sidebar (10000) tapi di atas konten */
  }
  .nav-overlay.show { display: block; }

  /* ---- BOTTOM NAV ---- */
  .bottom-nav { display: flex; }

  /* Layout */
  .search-form-hero { flex-direction: column; border-radius: var(--radius); padding: 1rem; }
  .search-form-hero .btn { width: 100%; justify-content: center; border-radius: var(--radius-sm); }
  .search-form-hero select { border-left: none; border-top: 1px solid var(--gray-300); padding: .5rem 0; width: 100%; }
  .catalog-inner { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; position: fixed; inset: 0; background: var(--white); z-index: 200; overflow-y: auto; padding: 1.5rem; }
  .catalog-sidebar.open { display: block; }
  .visi-misi-grid { grid-template-columns: 1fr; }
  .books-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .book-detail-grid { grid-template-columns: 1fr; }
  .book-detail-cover { width: 100%; max-width: 100%; margin: 0; }
  .cover-wrapper { max-width: 260px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .hero-stats { gap: 1.5rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  /* Catalog grid — 2 kolom presisi */
  .catalog-main .books-grid { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem; }
  .book-card-cover { aspect-ratio: 3/4; }
  .book-card-body { padding: .7rem .75rem; }
  .book-title { font-size: .82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .book-authors { font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .price-current { font-size: .9rem; }
  .price-original { font-size: .72rem; }
}
@media (max-width: 480px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .catalog-main .books-grid { grid-template-columns: repeat(2, 1fr) !important; gap: .6rem; }
  .book-card-body { padding: .6rem; }
  .book-title { font-size: .8rem; }
  .book-meta-row { display: none; }
  .book-detail-cover { width: 100%; max-width: 100%; margin: 0; }
  .cover-wrapper { max-width: 200px; margin: 0 auto; }
  .page-header-title { font-size: 1.8rem; }
}


/* ============================================================
   BOTTOM NAVIGATION BAR
   ============================================================ */
/* bottom-nav base styles moved to top of file — see below */

/* bottom-nav moved above @media queries */

/* Logo desktop — batasi tinggi maksimum */
.logo-icon img { max-height: 60px; width: auto; object-fit: contain; }

/* Site logo image sizing — controlled via CSS not HTML attributes */
.site-logo-img,
.logo-icon img,
.footer-logo img {
  height: 56px;      /* desktop default */
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.footer-logo .site-logo-img { height: 44px; }

/* ============================================================
   HALAMAN KATEGORI — /categories
   ============================================================ */
.cat-page-search-wrap {
  background: var(--navy);
  padding: 1.5rem 0;
}
.cat-page-search {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .6rem 1.25rem;
  max-width: 480px;
  transition: background .2s, border-color .2s;
}
.cat-page-search:focus-within {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
}
.cat-page-search i { color: rgba(255,255,255,.7); font-size: 1rem; }
.cat-page-search input {
  flex: 1; border: none; background: transparent; outline: none;
  color: #fff; font-size: .95rem;
}
.cat-page-search input::placeholder { color: rgba(255,255,255,.55); }

.cat-page-section { padding: 3rem 0; background: var(--gray-100); min-height: 50vh; }

.cat-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.cat-page-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none; color: var(--text);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.cat-page-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  border-color: var(--cat-color, var(--navy));
}
.cat-page-icon {
  display: flex; align-items: center; justify-content: center;
  height: 90px;
  background: var(--cat-bg, #e8f3ff);
  font-size: 2.2rem;
  color: var(--cat-color, var(--navy));
  transition: transform .25s;
}
.cat-page-card:hover .cat-page-icon { transform: scale(1.1); }
.cat-page-body { padding: 1.1rem 1.25rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.cat-page-name { font-size: 1.05rem; font-weight: 700; color: var(--navy-dark); margin: 0; }
.cat-page-desc { font-size: .83rem; color: var(--text-light); line-height: 1.5; flex: 1; margin: 0; }
.cat-page-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: .6rem; padding-top: .6rem;
  border-top: 1px solid var(--gray-100);
  font-size: .8rem;
}
.cat-page-count { color: var(--text-light); }
.cat-page-count i { color: var(--cat-color, var(--navy)); margin-right: .25rem; }
.cat-page-browse {
  color: var(--cat-color, var(--navy));
  font-weight: 600; display: flex; align-items: center; gap: .3rem;
  transition: gap .2s;
}
.cat-page-card:hover .cat-page-browse { gap: .55rem; }
.cat-page-empty {
  display: none; flex-direction: column; align-items: center;
  padding: 4rem 0; color: var(--text-light); gap: .75rem;
}
.cat-page-empty i { font-size: 3rem; color: var(--gray-300); }
.cat-page-empty p { font-size: 1rem; }

/* ============================================================
   GOOGLE USER MENU di HEADER
   ============================================================ */
.guser-menu { position: relative; display: flex; align-items: center; }
.guser-btn {
  background: none; border: 2px solid var(--gray-200);
  border-radius: 50%; cursor: pointer; padding: 0;
  width: 36px; height: 36px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
}
.guser-btn:hover { border-color: var(--navy); }
.guser-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.guser-initial {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.guser-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
  min-width: 200px; z-index: 2000; overflow: hidden;
}
.guser-dropdown.show { display: block; }
.guser-info {
  padding: .9rem 1rem .75rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex; flex-direction: column; gap: .15rem;
}
.guser-info strong { font-size: .88rem; color: var(--text); }
.guser-info small { font-size: .75rem; color: var(--text-light); }
.guser-logout {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem; font-size: .86rem; font-weight: 600;
  color: #dc2626; text-decoration: none;
  transition: background .15s;
}
.guser-logout:hover { background: #fff1f2; }

/* ============================================================
   ULASAN BUKU — Reviews Tab
   ============================================================ */
.detail-tabs-ext { margin-top: .5rem; }
.detail-tabs-ext .tab-btn {
  display: inline-flex; align-items: center; gap: .45rem;
}
.review-count-badge {
  background: var(--navy); color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: .1rem .45rem; border-radius: 20px; min-width: 20px;
  text-align: center;
}
.reviews-section { padding: 1.25rem 0; }
.review-login-prompt {
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; padding: 2rem; background: #f9fafb;
  border-radius: var(--radius); border: 1.5px dashed var(--gray-300);
  text-align: center; margin-bottom: 1.5rem;
}
.review-login-prompt p { color: var(--text-light); font-size: .9rem; margin: 0; }
.btn-google {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; border: 1.5px solid #d1d5db; border-radius: 8px;
  padding: .55rem 1.1rem; font-size: .88rem; font-weight: 600;
  color: #374151; text-decoration: none; cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
}
.btn-google:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); border-color: #9ca3af; }
.btn-google i { color: #4285f4; font-size: 1rem; }

.review-form-wrap {
  background: #f9fafb; border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}
.review-form-header {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: .85rem;
}
.review-form-header strong { font-size: .9rem; color: var(--text); }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.review-avatar-initial {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.review-textarea { resize: vertical; min-height: 90px; font-size: .88rem; }

/* Star Rating Input */
.star-rating-input {
  display: flex; flex-direction: row; gap: .25rem;
  margin-bottom: .75rem; align-items: center;
}
.star-btn {
  background: none; border: none; cursor: pointer;
  color: #d1d5db; font-size: 1.5rem; padding: 0 .1rem;
  transition: color .15s, transform .1s; line-height: 1;
}
.star-btn:hover,
.star-btn.active { color: #f59e0b; }
.star-btn:hover { transform: scale(1.15); }

/* Review items list */
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.reviews-empty {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 2rem; color: var(--text-light); text-align: center;
}
.reviews-empty i { font-size: 2.5rem; color: var(--gray-300); }
.review-item {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 1rem 1.1rem;
  animation: fadeInUp .3s ease;
}
.review-item-header {
  display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .65rem;
}
.review-meta { display: flex; flex-direction: column; gap: .2rem; }
.review-meta strong { font-size: .88rem; color: var(--text); }
.review-stars { color: #f59e0b; font-size: .8rem; letter-spacing: .05rem; }
.review-date { font-size: .75rem; color: var(--text-light); }
.review-content { font-size: .88rem; line-height: 1.65; color: var(--text); margin: 0; }

@media (max-width: 768px) {
  .cat-page-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
  .cat-page-icon { height: 72px; font-size: 1.8rem; }
  .cat-page-name { font-size: .92rem; }
}
@media (max-width: 480px) {
  .cat-page-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PATCH — Profile Icon + Review Login Banner
   ============================================================ */

/* Icon profil di header (ganti foto) */
.btn-guser-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-guser-icon:hover {
  background: var(--navy-dark, #083d6e);
  transform: scale(1.08);
  color: #fff;
}

/* Review Login Banner — horizontal, rapi */
.review-login-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f0f5fb;
  border: 1.5px solid #c7daf0;
  border-radius: var(--radius, 10px);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.review-login-banner-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--navy, #0B4F8A);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
}
.review-login-banner-text {
  flex: 1; min-width: 160px;
  display: flex; flex-direction: column; gap: .2rem;
}
.review-login-banner-text strong {
  font-size: .9rem; color: var(--navy-dark, #083d6e);
}
.review-login-banner-text span {
  font-size: .8rem; color: var(--text-light, #6b7280);
  line-height: 1.4;
}

/* Review count badge in tab button */
.tab-btn .review-count-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--navy);
  color: #fff;
  font-size: .68rem; font-weight: 700;
  min-width: 18px; height: 18px;
  padding: 0 .35rem;
  border-radius: 20px;
  margin-left: .3rem;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .review-login-banner { flex-direction: column; text-align: center; align-items: center; }
}

/* ============================================================
   HALAMAN PROFIL USER (/auth/profile)
   ============================================================ */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  align-items: start;
}
.profile-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: sticky; top: 90px;
}
.profile-avatar-wrap { margin-bottom: 1rem; }
.profile-avatar-img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; margin: 0 auto;
  border: 3px solid var(--gray-200);
}
.profile-avatar-initial {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.profile-name { font-size: 1.05rem; font-weight: 700; color: var(--navy-dark); margin: 0 0 .25rem; }
.profile-email { font-size: .8rem; color: var(--text-light); margin: 0 0 .85rem; }
.profile-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #f0f5fb; color: var(--navy);
  font-size: .75rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 20px;
  margin-bottom: 1rem;
}
.profile-badge i { color: #4285f4; }
.profile-logout { width: 100%; justify-content: center; }

.profile-main { min-width: 0; }
.profile-section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--navy-dark);
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: .5rem;
}
.profile-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: .85rem; padding: 3rem; background: #fff;
  border-radius: var(--radius); border: 1.5px dashed var(--gray-300);
  text-align: center;
}
.profile-empty i { font-size: 2.5rem; color: var(--gray-300); }
.profile-empty p { color: var(--text-light); margin: 0; }

.profile-reviews-list { display: flex; flex-direction: column; gap: .9rem; }
.profile-review-item {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-200); padding: 1rem 1.1rem;
  transition: box-shadow .2s;
}
.profile-review-item:hover { box-shadow: var(--shadow-sm); }
.profile-review-book { display: flex; gap: .9rem; align-items: flex-start; }
.profile-review-cover {
  flex-shrink: 0; display: block; width: 56px;
}
.profile-review-cover img {
  width: 56px; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 4px;
}
.profile-review-info { flex: 1; min-width: 0; }
.profile-review-title {
  font-size: .9rem; font-weight: 700; color: var(--navy-dark);
  text-decoration: none; display: block; margin-bottom: .3rem;
}
.profile-review-title:hover { color: var(--gold-dark); }
.profile-review-content { font-size: .83rem; color: var(--text-light); margin: .4rem 0 0; line-height: 1.5; }

@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
}

/* 3D Cover — reduce rotation on mobile for performance */
@media (max-width: 768px) {
  .book-card-cover .book-3d { transform: rotateY(-12deg); }
  .book-card:hover .book-card-cover .book-3d { transform: rotateY(-4deg); }
  .cover-wrapper .book-3d { transform: rotateY(-16deg); }
  .cover-wrapper:hover .book-3d { transform: rotateY(-5deg); }
  .book-3d-spine { width: 10px !important; }
  .cover-wrapper .book-3d-spine { width: 14px !important; }
}

/* Disable 3D for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .book-3d { transform: rotateY(0deg) !important; transition: none !important; }
}

/* ============================================================
   PUBLIC TESTIMONIAL SUBMIT SECTION
   ============================================================ */
.testi-submit-section { background: #f8fafc; border-top: 1px solid var(--gray-200); }
.testi-submit-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.testi-submit-info h2 { font-size: 1.5rem; color: var(--navy-dark); margin: .4rem 0 .75rem; }
.testi-submit-info p  { color: var(--text-light); line-height: 1.65; }
.testi-submit-form { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.testi-login-wall {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 2.5rem 1rem; text-align: center;
}
.testi-login-wall .testi-login-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--text-light);
}
.testi-login-wall p { color: var(--text-light); margin: 0; font-size: .9rem; }
.testi-form-card {}
.testi-form-header { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-100); }
.testi-form-header strong { font-size: .9rem; color: var(--text); }

@media (max-width: 768px) {
  .testi-submit-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   AUTHOR PROFILE PAGE
   ============================================================ */
.author-profile-section { background: var(--gray-100); }
.author-profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Kartu profil penulis */
.author-profile-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 90px;
}
.author-avatar-wrap { margin-bottom: 1rem; }
.author-profile-img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 3px solid var(--gray-200);
  display: block;
}
.author-profile-initials {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.author-profile-name {
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy-dark); margin: 0 0 .35rem;
}
.author-profile-inst {
  font-size: .8rem; color: var(--text-light);
  margin: 0 0 1rem;
}
.author-stats-row {
  display: flex; justify-content: center; gap: 1.25rem;
  padding: .85rem 0; margin: .5rem 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.author-stat { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.author-stat-num { font-size: 1.25rem; font-weight: 700; color: var(--navy-dark); line-height: 1; }
.author-stat-label { font-size: .68rem; color: var(--text-light); }
.author-bio {
  text-align: left; margin-top: 1rem;
  border-top: 1px solid var(--gray-100); padding-top: 1rem;
}
.author-bio h4 { font-size: .85rem; font-weight: 700; color: var(--navy-dark); margin: 0 0 .5rem; }
.author-bio p { font-size: .82rem; color: var(--text-light); line-height: 1.65; margin: 0; }
.author-contact-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem; font-size: .78rem; color: var(--navy);
  text-decoration: none; padding: .4rem .75rem;
  border: 1.5px solid var(--navy); border-radius: 20px;
  transition: all .2s;
}
.author-contact-btn:hover { background: var(--navy); color: #fff; }

/* Daftar buku penulis */
.author-books-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.author-books-header h2 {
  font-size: 1.1rem; font-weight: 700; color: var(--navy-dark); margin: 0;
}
.author-books-list { display: flex; flex-direction: column; gap: 1.1rem; }
.author-book-item {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 1rem 1.1rem;
  transition: box-shadow .2s;
}
.author-book-item:hover { box-shadow: var(--shadow-sm); }
.author-book-cover {
  flex-shrink: 0; width: 140px;
  display: block;
  perspective: 600px;
}
.author-book-cover .book-3d { transform: rotateY(-15deg); transition: transform .3s; }
.author-book-item:hover .author-book-cover .book-3d { transform: rotateY(-5deg); }
.author-book-cover .book-3d-front {
  position: relative; width: 140px;
  aspect-ratio: 3/4; overflow: hidden;
  border-radius: 0 4px 4px 0;
  box-shadow: 4px 6px 14px rgba(0,0,0,.3);
}
.author-book-cover .book-3d-front img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.author-book-cover .book-3d-spine {
  position: absolute; top: 0; left: 0;
  width: 10px; height: 100%;
  background: linear-gradient(to right, #111, #555, #333);
  transform: rotateY(90deg) translateZ(-5px);
  transform-origin: left center;
}
.author-book-info { flex: 1; min-width: 0; }
.author-book-title { font-size: .95rem; font-weight: 700; margin: .25rem 0; }
.author-book-title a { color: var(--navy-dark); text-decoration: none; }
.author-book-title a:hover { color: var(--gold-dark); }
.author-book-authors { font-size: .8rem; color: var(--text-light); margin: 0 0 .35rem; }
.author-book-meta { display: flex; gap: .85rem; font-size: .78rem; color: var(--text-light); }

/* Author link di halaman detail buku */
.author-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--navy-light);
  transition: color .15s, border-color .15s;
}
.author-link:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-dark);
}

@media (max-width: 768px) {
  .author-profile-layout { grid-template-columns: 1fr; }
  .author-profile-card { position: static; }
  .author-book-cover { width: 70px; }
  .author-book-cover .book-3d-front { width: 70px; }
}

/* ============================================================
   AUTHOR CLAIM & VERIFIED STYLES
   ============================================================ */
.author-verified-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #dcfce7; color: #059669;
  font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 20px;
  margin-top: .5rem;
}
.author-verified-badge i { color: #059669; }

.author-claim-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}
.author-claim-prompt {
  text-align: center;
  font-size: .82rem;
  color: var(--text-light);
}
.author-claim-prompt p { margin: .4rem 0 .6rem; }
.author-claim-status {
  display: flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600;
  padding: .45rem .75rem; border-radius: 6px;
  text-align: center; justify-content: center;
}
.author-claim-status.pending { background: #fffbeb; color: #d97706; }
.author-claim-status.rejected { background: #fff1f2; color: #dc2626; }

.btn-sm-google {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1.5px solid #d1d5db;
  border-radius: 6px; padding: .4rem .85rem;
  font-size: .8rem; font-weight: 600;
  color: #374151; text-decoration: none;
  transition: box-shadow .2s;
  margin-top: .25rem;
}
.btn-sm-google i { color: #4285f4; }
.btn-sm-google:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }

.author-owner-panel .form-label { font-size: .82rem; }
