/* ── Reset & Base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', 'Comic Neue', sans-serif;
  background: #fef8ef;
  scroll-behavior: smooth;
  color: #3b2a1f;
}

:root {
  --primary-coral:    #ff8a5c;
  --primary-sun:      #ffcd3c;
  --soft-mint:        #b5f0e4;
  --gentle-lavender:  #e0c3ff;
  --warm-peach:       #ffe2bf;
  --deep-brown:       #5a3e2b;
}

/* ── Navbar ── */
.navbar {
  background: linear-gradient(135deg, #ffcd3c, #ffb347);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  padding: 0.7rem 1rem;
  border-bottom: 3px solid #ff8a5c;
}
.navbar-brand {
  padding: 0;
}
.navbar-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 576px) {
  .navbar-logo { height: 40px; }
}
@keyframes bounceSoft {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.nav-link {
  font-weight: 700;
  font-size: 1rem;
  color: #fff9e8 !important;
  margin: 0 0.2rem;
  transition: 0.2s;
  border-radius: 50px;
  padding: 0.45rem 0.9rem;
}
.nav-link:hover {
  background-color: #ffc471;
  color: #6b3c1a !important;
  transform: scale(1.02);
}
.btn-cart {
  background: #ff6f42;
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
  font-size: 0.95rem;
}
.btn-cart:hover {
  background: #e55a2c;
  color: white;
  transform: scale(1.02);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(120deg, #ffefcf, #ffe0b5);
  border-radius: 0 0 70px 70px;
  padding: 2.5rem 1rem 3rem;
  margin-bottom: 2rem;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(145deg, #c0392b, #f39c12);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .brand-badge {
  background: #ffbc6e;
  display: inline-block;
  padding: 0.3rem 1.2rem;
  border-radius: 60px;
  font-weight: bold;
  font-size: 0.95rem;
}
.btn-explore {
  background: #ff8a5c;
  border: none;
  border-radius: 60px;
  padding: 12px 28px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 0 #b5512a;
  transition: 0.08s linear;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-explore:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #b5512a;
}

/* Hero book image */
.hero-book-wrap {
  display: inline-block;
  position: relative;
}
.hero-book-img {
  max-height: 360px;
  width: auto;
  filter: drop-shadow(8px 12px 0 rgba(0,0,0,0.08));
}
.hero-badge-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Hero tags */
.hero-tag {
  background: #fff;
  border: 1.5px solid #ffcd7e;
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a3e2b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Age badge */
.age-badge {
  background: #e8f5e9;
  border-radius: 18px;
  padding: 5px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2e7d32;
  border: 1.5px solid #a5d6a7;
}

/* ── Book Card ── */
.book-card {
  background: #ffffff;
  border-radius: 48px;
  overflow: hidden;
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
  border: 2px solid #ffcf8a;
  transition: all 0.3s ease;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 35px -12px rgba(0,0,0,0.2);
  border-color: #ffae5a;
}
.book-img {
  background: #fff5e8;
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 4px dotted #ffe0af;
}
@media (min-width: 768px) {
  .book-img {
    border-bottom: none;
    border-right: 4px dotted #ffe0af;
  }
}
.book-img img {
  width: 100%;
  object-fit: contain;
  transition: transform 0.2s;
}
.book-img img:hover {
  transform: scale(1.02);
}
.book-title {
  font-weight: 800;
  font-size: 1.55rem;
  color: #e2672e;
}
.book-desc {
  color: #6b4c3b;
  font-weight: 500;
}

/* Bestseller tag */
.bestseller-tag {
  background: linear-gradient(90deg, #ff8a5c, #ffcd3c);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Book features list */
.book-features-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: #e67e22;
}
.btn-buy {
  background: #ffb347;
  border: none;
  border-radius: 40px;
  font-weight: 800;
  padding: 12px 24px;
  font-size: 1rem;
  color: #3e2a1c;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-buy:hover {
  background: #ff9f1a;
  color: #2b1c0f;
  transform: scale(0.98);
}
.amazon-badge {
  background: #ffc439;
  border-radius: 18px;
  padding: 5px 12px;
  font-weight: bold;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Country selector grid */
.country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.country-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff9ee;
  border: 2px solid #ffd98a;
  border-radius: 50px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #5a3e2b;
  text-decoration: none;
  transition: 0.15s;
}
.country-btn:hover {
  background: #ffcd7e;
  border-color: #ff9c44;
  color: #3b1c06;
  transform: translateY(-2px);
}
.country-btn .flag {
  font-size: 1.2rem;
  line-height: 1;
}
.country-btn .country-code {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ── Book Slider ── */
.book-slider {
  position: relative;
  width: 100%;
  user-select: none;
}
.slider-img-wrap {
  width: 100%;
}
.slider-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.13);
  object-fit: cover;
  animation: slideIn 0.22s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,179,71,0.92);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #3e2a1c;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: background 0.15s, transform 0.1s;
  z-index: 10;
}
.slider-arrow-left  { left: 10px; }
.slider-arrow-right { right: 10px; }
.slider-arrow:hover {
  background: #ff9f1a;
  transform: translateY(-50%) scale(1.1);
}
.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}
.slider-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  font-weight: 700;
  color: #9b6d43;
  background: rgba(255,243,220,0.92);
  border-radius: 50px;
  padding: 3px 16px;
  border: 1.5px solid #ffd98a;
  white-space: nowrap;
  z-index: 10;
}
.book-img {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 48px 0 0 48px;
}

/* ── What's Inside ── */
.inside-card {
  background: #fff;
  border-radius: 24px;
  border: 2px solid #ffe9c0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.inside-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.1);
  border-color: #ffb85c;
}
.inside-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #ffeec9, #ffcf8a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  color: #c25d2e;
}

/* ── Learning Tips ── */
.tips-card {
  background: #eef7f2;
  border-radius: 48px;
  padding: 1.8rem;
  border-left: 12px solid #ffab66;
}
.tips-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* This Book Belongs To */
.this-book-belongs {
  background: #fffaf0;
  border: 2px solid #ffcd7e;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* ── Section titles ── */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  background: #ffcd7e;
  display: inline-block;
  padding: 0.3rem 1.8rem;
  border-radius: 60px;
  color: #3b2a1f;
}

/* ── FAQ ── */
.faq-item {
  border-radius: 16px !important;
  margin-bottom: 12px;
  overflow: hidden;
  border: 2px solid #ffd98a !important;
  background: #fff !important;
}
.faq-btn {
  background: #fff9ee !important;
  font-weight: 700 !important;
  font-size: 0.97rem !important;
  color: #3b2a1f !important;
  border: none !important;
  padding: 1rem 1.4rem !important;
}
.faq-btn:not(.collapsed) {
  background: #fff3d6 !important;
  color: #c25d2e !important;
  box-shadow: none !important;
}
.faq-btn::after {
  filter: sepia(1) saturate(3) hue-rotate(340deg) !important;
}
.faq-body {
  background: #fffcf5 !important;
  font-size: 0.96rem !important;
  color: #4a3525 !important;
  padding: 1rem 1.4rem !important;
  line-height: 1.75 !important;
}

/* ── About ── */
.about-card {
  background: #fffbee;
}
.about-tag {
  background: #ffecb8;
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #6b3c1a;
  border: 1.5px solid #ffd98a;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Coming Soon ── */
.coming-soon-card {
  background: linear-gradient(145deg, #ffefcf, #ffe3b1);
}

/* ── Footer ── */
.footer-brand {
  background: #ffdba5;
  border-radius: 40px 40px 0 0;
  padding: 2.5rem 1rem 1.5rem;
}
.footer-country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-country-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff9ee;
  border: 1.5px solid #ffd98a;
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a3e2b;
  text-decoration: none;
  transition: 0.15s;
}
.footer-country-link:hover {
  background: #ffcd7e;
  color: #3b1c06;
}
.footer-link {
  display: block;
  color: #5a3e2b;
  text-decoration: none;
  font-weight: 600;
  padding: 3px 0;
  transition: 0.15s;
}
.footer-link:hover {
  color: #ff8a5c;
}
.social-icon {
  background: #ff9f5b;
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 4px;
  transition: 0.2s;
  color: white;
}
.social-icon:hover {
  background: #e57a38;
  transform: scale(1.08);
}

/* ── Go Top ── */
.go-top {
  position: fixed;
  bottom: 25px;
  right: 20px;
  background: #ff8f4a;
  width: 48px;
  height: 48px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 99;
  transition: background 0.2s;
}
.go-top:hover {
  background: #e57a38;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1          { font-size: 1.9rem; }
  .section-title    { font-size: 1.5rem; padding: 0.3rem 1.2rem; }
  .hero-book-img    { max-height: 240px; }
}
@media (max-width: 576px) {
  .country-grid     { gap: 6px; }
  .country-btn      { padding: 5px 10px; font-size: 0.78rem; }
  .book-title       { font-size: 1.35rem; }
  .tips-card        { border-radius: 24px; border-left-width: 6px; }
}
