/* =============================================
   JUST CRAYON — style.css
   Mobile-first, performance-optimized
============================================= */

:root {
  --coral: #FF7F6E;
  --coral-dark: #e86b5a;
  --peach: #FFDAB9;
  --cream: #FFFDD0;
  --mint: #B2F2BB;
  --sunny: #FFEC99;
  --lavender: #E0D7FF;
  --text: #4A4A4A;
  --muted: #71717a;
  --white: #ffffff;
  --nav-h: 70px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }

h1, h2, h3, h4, .font-heading {
  font-family: 'Fredoka', sans-serif;
  line-height: 1.2;
}

/* =============================================
   NAVIGATION — Sticky + Mobile Hamburger
============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255,127,110,0.1);
  height: var(--nav-h);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--coral);
  flex-shrink: 0;
}

.logo-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid var(--coral);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255,127,110,0.2);
}

.logo-image { width: 100%; height: 100%; object-fit: cover; }
.logo-icon  { width: 22px; height: 22px; color: var(--coral); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: none;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.hamburger:hover { background: rgba(255,127,110,0.08); }

.hamburger span {
  display: block;
  width: 100%; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav menu */
.nav-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  z-index: 999;
  padding: 2rem;
  overflow-y: auto;
}

.nav-menu.open { display: flex; animation: fadeSlideDown 0.22s ease; }

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-link {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  padding: 0.9rem 2rem;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  width: 100%;
  text-align: center;
}

.nav-link:hover, .nav-link.active { color: var(--coral); background: rgba(255,127,110,0.07); }

.nav-link.nav-cta {
  background: var(--coral);
  color: white !important;
  border-radius: 12px;
  margin-top: 0.5rem;
  font-size: 1.05rem;
}
.nav-link.nav-cta:hover { background: var(--coral-dark); }

/* Desktop nav override */
@media (min-width: 768px) {
  .hamburger { display: none; }

  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    gap: 0.2rem;
    padding: 0;
    animation: none;
    justify-content: flex-end;
    overflow: visible;
  }

  .nav-link {
    font-size: 0.92rem;
    padding: 0.45rem 0.9rem;
    width: auto;
    text-align: left;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0.9rem; right: 0.9rem;
    height: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transition: transform 0.28s;
  }

  .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
  .nav-link.nav-cta::after { display: none; }
  .nav-link.nav-cta { margin-top: 0; padding: 0.45rem 1.1rem; font-size: 0.88rem; }
}

/* =============================================
   POSTER / HERO SECTION
============================================= */
.poster-section {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--cream) 0%, rgba(255,218,185,0.4) 100%);
  padding: 3rem 1.25rem;
  overflow: hidden;
}

/* Decorative blobs */
.poster-section::before,
.poster-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.poster-section::before {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,127,110,0.12) 0%, transparent 70%);
  top: -80px; right: -80px;
}
.poster-section::after {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,236,153,0.28) 0%, transparent 70%);
  bottom: -50px; left: -40px;
}

.poster-card {
  background: linear-gradient(135deg, rgba(255,253,208,0.88) 0%, rgba(255,218,185,0.55) 100%);
  border: 3px solid rgba(255,127,110,0.18);
  border-radius: 2.5rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  width: 100%;
  max-width: 860px;
  box-shadow: 0 24px 48px -8px rgba(0,0,0,0.1);
  text-align: center;
  animation: floatCard 7s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

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

.poster-header h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}

.poster-header p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: var(--muted);
}

.book-display {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.book-wrapper { position: relative; }

.book-card {
  background: white;
  padding: 10px;
  border-radius: 1rem;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
}

.book-card img {
  width: clamp(110px, 22vw, 175px);
  border-radius: 6px;
}

.tilt-left  { transform: rotate(-4deg); }
.tilt-right { transform: rotate(4deg); margin-left: -16px; }

.book-wrapper:hover .book-card {
  transform: rotate(0deg) translateY(-6px) !important;
  z-index: 10;
}

/* =============================================
   HERO TEXT SECTION
============================================= */
.hero-section {
  text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem;
  background: linear-gradient(to bottom, rgba(255,218,185,0.15), white);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,218,185,0.45);
  border: 1.5px solid rgba(255,127,110,0.25);
  padding: 7px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--coral);
  margin-bottom: 1.4rem;
}

h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  margin-bottom: 0.4rem;
  color: var(--text);
}

.text-coral { color: var(--coral); }

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.75rem);
  color: var(--muted);
  margin-top: 0.25rem;
}

.hero-desc {
  font-size: clamp(0.92rem, 2.2vw, 1.1rem);
  color: var(--muted);
  max-width: 600px;
  margin: 1.1rem auto;
  line-height: 1.75;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 26px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.93rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-hero {
  background: var(--coral);
  color: white;
  box-shadow: 0 4px 16px rgba(255,127,110,0.4);
}
.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(255,127,110,0.44);
  background: var(--coral-dark);
  color: white;
}

.btn-outline {
  border: 2px solid #e4e4e7;
  color: var(--text);
  background: white;
}
.btn-outline:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-2px);
}

/* =============================================
   TOP BOOKS (HOME)
============================================= */
.top-books-section {
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  background: white;
}

.section-header { text-align: center; margin-bottom: 2.5rem; }

.section-header h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); margin-bottom: 0.4rem; }

.section-subtitle { font-size: clamp(0.92rem, 2vw, 1.1rem); color: var(--muted); }

.top-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.view-all-container { text-align: center; }

/* =============================================
   PRODUCT CARDS
============================================= */
.product-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(255,127,110,0.17);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream);
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-container img { transform: scale(1.04); }

.product-info { padding: 1.1rem; text-align: center; }

.product-info h4 { font-size: 1.1rem; margin-bottom: 0.35rem; }

.price { font-size: 1.35rem; color: var(--coral); font-weight: 700; margin: 0.5rem 0; }

.btn-buy {
  background: var(--coral);
  color: white;
  padding: 9px 20px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-buy:hover { background: var(--coral-dark); transform: scale(1.04); color: white; }

/* =============================================
   ABOUT SECTION
============================================= */
.about-section {
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  background: linear-gradient(to bottom, white, rgba(255,218,185,0.12));
}

.about-container { max-width: 1100px; margin: 0 auto; }

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) { .about-content { grid-template-columns: 1fr 1fr; } }

.about-text h2 { font-size: clamp(1.65rem, 4vw, 2.4rem); margin-bottom: 1.1rem; }

.about-intro {
  font-size: clamp(0.98rem, 2.5vw, 1.2rem);
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 1.1rem;
  line-height: 1.65;
}

.about-text p { font-size: 0.98rem; line-height: 1.8; margin-bottom: 1.1rem; }

.about-values { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.4rem; }

.value-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,127,110,0.1);
  padding: 8px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.87rem;
  color: var(--coral);
}

.value-icon { width: 16px; height: 16px; }

.about-image { display: flex; justify-content: center; order: -1; }

@media (min-width: 768px) { .about-image { order: 0; } }

.image-wrapper {
  background: white;
  padding: 14px;
  border-radius: 1.75rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: rotate(3deg);
  transition: transform 0.5s ease;
  max-width: 360px;
  width: 100%;
}

.image-wrapper:hover { transform: rotate(0deg); }
.image-wrapper img { border-radius: 1rem; width: 100%; }

/* =============================================
   FAQ SECTION
============================================= */
.faq-section {
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  background: white;
}

.faq-container { max-width: 740px; margin: 0 auto; }

.faq-item {
  background: white;
  border: 2px solid rgba(255,127,110,0.12);
  border-radius: 1rem;
  margin-bottom: 0.7rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: rgba(255,127,110,0.3); }

.faq-question {
  width: 100%;
  padding: 1.1rem 1.35rem;
  background: none;
  border: none;
  text-align: left;
  font-size: clamp(0.92rem, 2vw, 1rem);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: 'Quicksand', sans-serif;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover { color: var(--coral); }

.faq-icon {
  width: 20px; height: 20px;
  color: var(--coral);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.active .faq-answer { max-height: 360px; padding: 0 1.35rem 1.1rem; }
.faq-answer p { font-size: 0.92rem; line-height: 1.8; color: var(--muted); }

/* =============================================
   FEATURES SECTION
============================================= */
.features-section {
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  background: linear-gradient(to bottom, rgba(255,253,208,0.4), white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 1.75rem 1.35rem;
  border-radius: 1.5rem;
  background: white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(255,127,110,0.13);
}

.feature-icon { width: 36px; height: 36px; color: var(--coral); margin: 0 auto 0.75rem; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.feature-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* =============================================
   BOOKS PAGE HEADER
============================================= */
.books-page-header {
  position: relative;
  min-height: 36vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--cream) 0%, rgba(255,218,185,0.32) 100%);
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
  text-align: center;
  overflow: hidden;
}

.books-page-header::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,127,110,0.1) 0%, transparent 70%);
  top: -80px; right: -60px;
  pointer-events: none;
}

.header-content { position: relative; z-index: 1; }
.header-content h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); margin-bottom: 0.4rem; }

.header-subtitle {
  font-size: clamp(0.92rem, 2.5vw, 1.15rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* =============================================
   FILTER TABS
============================================= */
.filter-tabs-section { padding: 1.5rem 1.25rem 0; background: white; }

.filter-tabs-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: 50px;
  border: 2px solid rgba(255,127,110,0.2);
  background: white;
  color: var(--muted);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.filter-tab:hover  { border-color: var(--coral); color: var(--coral); }
.filter-tab.active {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
  box-shadow: 0 4px 12px rgba(255,127,110,0.3);
}

/* =============================================
   BOOKSHELF GRID
============================================= */
.bookshelf-section {
  padding: clamp(2rem, 5vw, 3rem) 1.25rem clamp(3rem, 7vw, 5rem);
  background: linear-gradient(to bottom, white, rgba(255,253,208,0.3));
}

.bookshelf-container { max-width: 1300px; margin: 0 auto; }

.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
}

@media (min-width: 560px)  { .bookshelf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px)  { .bookshelf-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .bookshelf-grid { grid-template-columns: repeat(5, 1fr); } }

.book-item { cursor: pointer; transition: transform 0.28s ease; will-change: transform; }
.book-item:hover { transform: translateY(-12px); }

.book-cover {
  position: relative;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.11);
  overflow: hidden;
  transition: box-shadow 0.28s;
}

.book-item:hover .book-cover { box-shadow: 0 18px 36px rgba(255,127,110,0.25); }

.book-cover-image { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }

.book-spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, var(--coral), rgba(255,127,110,0.65));
  box-shadow: 2px 0 5px rgba(0,0,0,0.12);
}

.book-info-hover {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top,
    rgba(255,127,110,0.97) 0%,
    rgba(255,127,110,0.9) 60%,
    transparent 100%);
  padding: 1.2rem 0.85rem 0.85rem;
  transform: translateY(100%);
  transition: transform 0.26s ease;
}

.book-item:hover .book-info-hover { transform: translateY(0); }

.book-info-hover h4 {
  color: white;
  font-size: clamp(0.78rem, 1.8vw, 0.9rem);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.book-info-hover .price { color: white; font-size: 1.1rem; font-weight: 700; margin: 0.2rem 0; }

.quick-view {
  color: white;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0.35rem;
}

.quick-view i { width: 13px; height: 13px; }

/* Touch-friendly: always show on touch devices */
@media (hover: none) {
  .book-info-hover {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(255,127,110,0.88) 0%, transparent 100%);
    padding-top: 2.5rem;
  }
  .book-item:hover { transform: none; }
  .book-item:active { transform: scale(0.97); transition: transform 0.1s; }
}

/* =============================================
   CTA SECTION
============================================= */
.cta-section {
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  background: linear-gradient(to bottom, rgba(255,253,208,0.4), rgba(255,218,185,0.28));
  text-align: center;
}

.cta-content h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); margin-bottom: 0.75rem; }

.cta-content p {
  font-size: clamp(0.92rem, 2vw, 1.1rem);
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

.cta-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* =============================================
   BOOK DETAIL PAGE
============================================= */
.back-nav { max-width: 1300px; margin: 1.5rem auto; padding: 0 1.25rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--coral); }
.back-link i { width: 18px; height: 18px; }

.book-detail-section {
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem clamp(3rem, 7vw, 5rem);
  background: white;
}

.detail-container { max-width: 1300px; margin: 0 auto; }

.detail-content { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }

@media (min-width: 860px) {
  .detail-content { grid-template-columns: 1fr 1.5fr; }
  .detail-image    { position: sticky; top: calc(var(--nav-h) + 1rem); align-self: start; }
}

.image-frame {
  background: white;
  padding: 1.35rem;
  border-radius: 1.25rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.11);
}

.main-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
}

.main-display-image { width: 100%; height: auto; display: block; border-radius: 8px; }

.image-navigation {
  position: absolute;
  top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
}

.nav-arrow {
  pointer-events: all;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,127,110,0.9);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  -webkit-tap-highlight-color: transparent;
}

.nav-arrow:hover { background: var(--coral); transform: scale(1.1); }
.nav-arrow i { width: 20px; height: 20px; }

.thumbnail-gallery { margin-top: 1.35rem; }

.thumbnail-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.65rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.thumbnail-label i { width: 16px; height: 16px; color: var(--coral); }

/* --- Scroll strip (5 visible, arrow nav) --- */
.thumbnail-scroll-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.thumb-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,127,110,0.9);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  -webkit-tap-highlight-color: transparent;
}

.thumb-arrow:hover   { background: #e86b5a; transform: scale(1.1); }
.thumb-arrow:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.thumb-arrow i { width: 18px; height: 18px; }

.thumbnail-viewport { flex: 1; overflow: hidden; }

.thumbnail-track {
  display: flex;
  gap: 8px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.thumbnail-item {
  flex: 0 0 calc(100% / 5 - 7px);
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  background: #f5f5f5;
}

.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumbnail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border-color: rgba(255,127,110,0.5);
}

.thumbnail-item.active {
  border-color: var(--coral);
  box-shadow: 0 4px 12px rgba(255,127,110,0.4);
}

.thumb-counter {
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 0.5rem;
  font-weight: 600;
}

.thumbnail-badge {
  position: absolute;
  top: 3px; right: 3px;
  background: rgba(255,127,110,0.9);
  color: white;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
}

.detail-info { padding-top: 0.5rem; }

.book-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,218,185,0.4);
  border: 1.5px solid rgba(255,127,110,0.2);
  padding: 6px 13px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 0.7rem;
  font-size: 0.83rem;
}

.badge-icon { width: 13px; height: 13px; }

.book-title { font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--text); margin-bottom: 0.65rem; }

.book-price { font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--coral); font-weight: 700; margin-bottom: 1.4rem; }

.book-description, .book-features { margin-bottom: 1.65rem; }

.book-description h3, .book-features h3 { font-size: 1.15rem; margin-bottom: 0.65rem; }

.book-description p { font-size: 0.95rem; line-height: 1.8; color: var(--muted); }

.features-list { list-style: none; }

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.8rem;
  font-size: 0.93rem;
}

.check-icon { width: 20px; height: 20px; color: #10b981; flex-shrink: 0; margin-top: 1px; }

.purchase-section {
  margin-top: 1.65rem;
  padding-top: 1.65rem;
  border-top: 2px solid rgba(255,127,110,0.1);
}

.btn-buy-large {
  background: var(--coral);
  color: white;
  padding: 15px 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(255,127,110,0.36);
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) { .btn-buy-large { width: auto; } }

.btn-buy-large:hover {
  background: var(--coral-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,127,110,0.44);
  color: white;
}

.btn-buy-large i { width: 20px; height: 20px; }

.security-badges { display: flex; gap: 1.1rem; margin-top: 1.1rem; flex-wrap: wrap; }

.security-item { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.85rem; }
.security-item i { width: 16px; height: 16px; color: #10b981; }

/* =============================================
   RELATED BOOKS
============================================= */
.related-books-section {
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  background: linear-gradient(to bottom, white, rgba(255,253,208,0.28));
}

.related-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* =============================================
   A+ PRODUCT SECTION
============================================= */
.aplus-content-section {
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem;
  background: linear-gradient(to bottom, white, rgba(255,253,208,0.28));
}

.aplus-container { max-width: 1100px; margin: 0 auto; }
.aplus-images-grid { display: grid; gap: 1.35rem; margin-top: 1.35rem; }

.aplus-image-item {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.aplus-image-item img { width: 100%; height: auto; display: block; }

/* =============================================
   FOOTER
============================================= */
.site-footer {
  background: #2d2d2d;
  color: rgba(255,255,255,0.8);
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem 1.5rem;
}

.footer-container { max-width: 1100px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand { grid-column: 1 / -1; }
@media (min-width: 640px) { .footer-brand { grid-column: auto; } }

.footer-logo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  color: var(--coral);
  font-weight: 600;
  display: block;
  margin-bottom: 0.55rem;
}

.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 270px; }

.footer-col h4 { font-family: 'Fredoka', sans-serif; font-size: 0.98rem; color: white; margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul li a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--coral); }

.footer-social { display: flex; flex-direction: column; gap: 0.55rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.social-link:hover { color: var(--coral); }
.social-link i { width: 15px; height: 15px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.1rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   NEWSLETTER SECTION
============================================= */
.newsletter-section {
  padding: clamp(3rem, 7vw, 4.5rem) 1.25rem;
  background: linear-gradient(135deg, var(--coral) 0%, #e86b5a 100%);
  text-align: center;
}

.newsletter-section h2 { font-size: clamp(1.45rem, 4vw, 2.1rem); color: white; margin-bottom: 0.55rem; }

.newsletter-section p {
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.65rem;
  max-width: 440px;
  margin-left: auto; margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  min-width: 190px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  outline: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.newsletter-btn {
  padding: 12px 24px;
  background: #2d2d2d;
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.newsletter-btn:hover { background: #111; transform: translateY(-2px); }

/* =============================================
   SCROLL REVEAL
============================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.52s ease-out, transform 0.52s ease-out;
}

.reveal.active { opacity: 1; transform: translateY(0); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, .reveal, .poster-card, .book-item, .product-card {
    animation: none !important;
    transition: none !important;
  }
}