:root {
  --black: #111111;
  --white: #FFFFFF;
  --fuchsia: #FF00FF;
  --teal: #00D9CC;
  --gray: #F5F5F5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: 'Fraunces', serif; }

/* ═══════════════════════════════════════ HAMBURGER MENU */
.menu-toggle {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 1000;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  border: 2px solid var(--black);
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.menu-toggle:hover { background: var(--fuchsia); border-color: var(--fuchsia); }
.menu-toggle:hover .bar { background: white; }

.bar {
  width: 22px;
  height: 2.5px;
  background: var(--black);
  transition: all 0.3s;
  transform-origin: center;
}

/* open state */
body.menu-open .menu-toggle { background: var(--black); border-color: var(--black); }
body.menu-open .bar { background: white; }
body.menu-open .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .bar:nth-child(2) { opacity: 0; }
body.menu-open .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
  border-bottom: 3px solid var(--black);
  pointer-events: none;
}

body.menu-open .nav-overlay { transform: translateY(0); pointer-events: auto; }

.nav-overlay a {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-decoration: none;
  color: var(--black);
  letter-spacing: -1px;
  transition: color 0.2s;
}

.nav-overlay a:hover { color: var(--fuchsia); }

.nav-overlay .nav-logo {
  position: absolute;
  top: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-overlay .nav-logo img { width: 36px; height: 36px; object-fit: contain; }

.nav-overlay .nav-logo span {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════ HERO BANNER */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 56px 64px;
}

.hero-logo {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-logo img { width: 48px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }

.hero-logo-text {
  color: white;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-logo-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.hero-title {
  color: white;
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 16px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7), 0 0 60px rgba(0,0,0,0.4);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.8), 0 4px 32px rgba(0,0,0,0.7);
}

.hero-sub {
  color: white;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: inline-block;
  background: rgba(0,0,0,0.35);
  padding: 6px 14px;
  backdrop-filter: blur(4px);
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2.5px solid white;
  transition: all 0.25s;
}

.hero-cta:hover { background: var(--fuchsia); border-color: var(--fuchsia); }

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  right: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-hint svg { animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ═══════════════════════════════════════ SECTION LABEL */
.section-label {
  font-size: 0.62rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #aaa;
  text-align: center;
  padding: 52px 0 0;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-align: center;
  letter-spacing: -1px;
  line-height: 1;
  padding: 10px 0 48px;
}

.section-title em { font-style: italic; font-weight: 400; color: var(--fuchsia); }

/* ═══════════════════════════════════════ BOOKSHELF SECTION */
.shelf-section {
  padding: 0 48px 80px;
}

.bookcase-wrap {
  max-width: 1060px;
  margin: 0 auto;
}

.shelf-banner-wrap {
  position: relative;
  display: block;
}

.shelf-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.shelf-zone {
  position: absolute;
  display: block;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, outline 0.2s;
}

.shelf-zone:hover { background: transparent; }

/* ═══════════════════════════════════════ DIVIDER */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 48px;
  margin: 0 0 80px;
  border-top: 2.5px solid var(--black);
  border-bottom: 2.5px solid var(--black);
  height: 36px;
}

.od-line { flex: 1; max-width: 240px; height: 2px; background: var(--black); }
.od-dot { width: 6px; height: 6px; background: var(--black); }
.od-dot.f { background: var(--fuchsia); }
.od-dot.t { background: var(--teal); }
.od-dot.o { background: none; border: 2px solid var(--black); }
.od-label {
  font-size: 0.58rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  color: #bbb;
  padding: 0 16px;
}

/* ═══════════════════════════════════════ BOOK DETAIL SECTIONS */
.book-section {
  padding: 0 48px 100px;
  border-top: 2.5px solid var(--black);
}

.book-section-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
  padding-top: 72px;
}

.book-section.alt .book-section-inner {
  grid-template-columns: 1.5fr 1fr;
}

.book-section.alt .art { order: 2; }

/* mini shelf for each book section */
.mini-shelf-wrap {
  position: relative;
}

.mini-shelf-book-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(6px 6px 0 rgba(0,0,0,0.18));
  position: relative;
  z-index: 2;
}

/* Info */
.book-num {
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  color: #bbb;
  margin-bottom: 12px;
}

.book-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.badge-fuchsia { background: var(--fuchsia); color: white; }
.badge-teal    { background: var(--teal); color: var(--black); }

.book-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.title-bar {
  width: 52px;
  height: 4px;
  margin-bottom: 16px;
}

.tb-fuchsia { background: var(--fuchsia); }
.tb-teal    { background: var(--teal); }

.book-lang {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 20px;
}

.book-desc {
  color: #444;
  line-height: 1.75;
  margin-bottom: 26px;
  font-size: 0.95rem;
  max-width: 420px;
}

.specs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.spec {
  border: 2px solid var(--black);
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2.5px solid var(--black);
  transition: all 0.2s;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-black  { background: var(--black); color: white; }
.btn-black:hover  { background: var(--fuchsia); border-color: var(--fuchsia); }
.btn-ghost  { background: white; color: var(--black); }
.btn-ghost:hover  { background: var(--black); color: white; }

/* ═══════════════════════════════════════ SECTION IMAGE */
.section-book-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.section-book-img:hover { opacity: 0.92; }

/* ═══════════════════════════════════════ GALLERY */
.gallery-wrap {
  max-width: 1060px;
  margin: 56px auto 0;
}

.gallery-label {
  font-size: 0.62rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.gallery-label::after { content:''; flex:1; height:2px; background:var(--black); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-cell {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
}

.gallery-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-cell:hover img { transform: scale(1.06); }

/* ═══════════════════════════════════════ LIGHTBOX */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lb-overlay.open { display: flex; }
.lb-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lb-close {
  position: fixed;
  top: 20px; right: 24px;
  color: white;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  z-index: 2001;
}

/* ═══════════════════════════════════════ FAQ */
.faq-section {
  padding: 80px 48px;
  max-width: 780px;
  margin: 0 auto;
}

.faq-section .section-label { margin-bottom: 12px; }
.faq-section .section-title { margin-bottom: 48px; }

.faq-item {
  border-top: 2px solid var(--black);
}
.faq-item:last-child { border-bottom: 2px solid var(--black); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: 'Fraunces', serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.3;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform 0.3s, background 0.2s;
  font-family: 'Inter', sans-serif;
}

.faq-item.open .faq-icon {
  background: var(--black);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
}

.faq-item.open .faq-answer { display: block; }

@media (max-width: 640px) {
  .faq-section { padding: 60px 24px; }
}

/* ═══════════════════════════════════════ FREEBIE */
.freebie {
  background: #FFF0FF;
  color: var(--black);
  padding: 88px 48px;
  text-align: center;
}

.freebie h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.freebie h3 em { font-style: italic; font-weight: 400; color: var(--fuchsia); }

.freebie p { color: #996699; max-width: 400px; margin: 0 auto 36px; }

.freebie form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
}

.freebie input {
  flex: 1;
  padding: 15px 18px;
  border: 2.5px solid #cc88cc;
  border-right: none;
  background: white;
  color: var(--black);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.freebie input::placeholder { color: #bbb; }

.freebie button {
  padding: 15px 22px;
  background: var(--fuchsia);
  color: white;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2.5px solid var(--fuchsia);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  transition: background 0.2s;
}

.freebie button:hover { background: var(--black); color: white; border-color: var(--black); }
.freebie small { display:block; margin-top:16px; color:#bb88bb; font-size:0.7rem; letter-spacing:1px; }

/* ═══════════════════════════════════════ FOOTER */
footer {
  background: var(--white);
  border-top: 2.5px solid var(--black);
  padding: 30px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #888;
}

.footer-logo { display:flex; align-items:center; gap:10px; }
.footer-logo img { width:26px; height:26px; object-fit:contain; }

/* ═══════════════════════════════════════ RESPONSIVE */
/* ═══════════════════════════════════════ BUY BUTTONS */
.btn-row-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-option-label {
  font-size: 0.58rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.btn-option {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  background: #eee;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════ PAYMENT MODAL */
.pay-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.pay-modal-overlay.open { display: flex; }

.pay-modal {
  background: #fff;
  border: 2.5px solid #111;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
}

.pay-modal-header {
  background: #111;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pay-modal-header h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}

.pay-modal-sub {
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  display: block;
}

.pay-modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.6rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.2s;
}
.pay-modal-close:hover { color: #fff; }

.pay-modal-body { padding: 28px; }

.pay-price-box {
  text-align: center;
  margin-bottom: 24px;
  border: 2px solid #f0f0f0;
  padding: 20px 16px;
  background: #fafafa;
}
.pay-price-box .currency-label {
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aaa;
  display: block;
  margin-bottom: 6px;
}
.pay-price-box .price-val {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.pay-field {
  margin-bottom: 20px;
}

.pay-field label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: #888;
  margin-bottom: 8px;
}

.pay-field input {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid #ddd;
  background: #fff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: #111;
  outline: none;
  transition: border-color 0.2s;
}
.pay-field input:focus { border-color: #111; }

.pay-section-label {
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: #aaa;
  margin-bottom: 10px;
}

#payButtonsContainer { display: flex; flex-direction: column; gap: 12px; }

.btn-gateway {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border: 2.5px solid;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.btn-gateway:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-gateway.primary {
  background: var(--fuchsia);
  color: #fff;
  border-color: var(--fuchsia);
}
.btn-gateway.primary:hover { background: #cc00cc; border-color: #cc00cc; }

.btn-gateway.secondary {
  background: #fff;
  color: #111;
  border-color: #111;
}
.btn-gateway.secondary:hover { background: #111; color: #fff; }

.pay-modal-note {
  margin-top: 18px;
  font-size: 0.7rem;
  color: #bbb;
  line-height: 1.6;
  text-align: center;
}

.pay-error {
  background: #fff0f0;
  border: 1.5px solid #ffaaaa;
  color: #cc0000;
  padding: 10px 14px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  display: none;
  line-height: 1.5;
}
.pay-error.show { display: block; }

@media (max-width: 860px) {
  .hero-content { padding: 0 28px 48px; }
  .shelf-section { padding: 0 20px 60px; }
  .books-row { gap: 24px; padding: 0 20px 0; }
  .book-img { width: 150px; }
  .book-section { padding: 0 24px 80px; }
  .book-section-inner,
  .book-section.alt .book-section-inner { grid-template-columns: 1fr; gap: 40px; }
  .book-section.alt .art { order: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-cell:nth-child(3) { display: none; }
  .freebie { padding: 60px 24px; }
  .freebie form { flex-direction: column; }
  .freebie input { border-right: 2.5px solid white; border-bottom: none; }
  footer { padding: 24px; }
  .ornament-divider { margin: 0 0 60px; }
}
