/* "Espreitar lá dentro" — livro com folhas que dobram (PageFlip). */
.fb-ov { position: fixed; inset: 0; z-index: 500; display: none; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 42%, #5a4d3f 0%, #2f2820 70%, #221d17 100%); color: #fffdf8; font-family: 'Poppins', sans-serif;
  padding: 16px; animation: fbfade .4s ease; }
.fb-ov.open { display: flex; }
@keyframes fbfade { from { opacity: 0 } to { opacity: 1 } }
.fb-top { position: absolute; top: 14px; left: 18px; right: 14px; display: flex; align-items: center; gap: 12px; z-index: 5; }
.fb-title { font-family: 'Darumadrop One', cursive; font-size: clamp(1.3rem, 3vw, 1.8rem); text-shadow: 2px 2px 0 rgba(176,150,106,.45); flex: 1; }
.fb-close { width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,253,248,.92); color: #5b5346; font-size: 1.4rem; cursor: pointer; }
.fb-stage { position: relative; margin-top: 34px; }
/* sombra suave do livro no "tampo da mesa" */
.fb-stage::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -22px; height: 34px; border-radius: 50%;
  background: radial-gradient(rgba(0,0,0,.5), transparent 70%); filter: blur(6px); z-index: 0; pointer-events: none; transition: left .8s, right .8s; }
.fb-ov.fb-closed .fb-stage::after { left: 30%; right: 30%; }
.fb-holder { position: relative; z-index: 1; }
.fb-page { background: #fbf7ef; overflow: hidden; }
.fb-page img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
/* capa e contracapa: cartão grosso, cantos arredondados do lado de fora, brilho suave */
.fb-page.fb-hard { background: #e8d9c2; }
.fb-page.fb-hard::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.18) 0, rgba(255,255,255,.06) 3%, transparent 8%, transparent 92%, rgba(0,0,0,.08)); }
/* vinco do meio: luz e sombra junto à lombada */
.stf__item.--left .fb-page:not(.fb-hard)::after, .fb-page.--left:not(.fb-hard)::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(270deg, rgba(0,0,0,.2), rgba(0,0,0,.04) 6%, transparent 16%); }
.stf__item.--right .fb-page:not(.fb-hard)::after, .fb-page.--right:not(.fb-hard)::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.04) 6%, transparent 16%); }
.fb-end { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 100%;
  padding: 10%; color: #5b5346; background: url('/images/bg-livro.jpg') center/cover; }
.fb-end h3 { font-family: 'Darumadrop One', cursive; font-weight: 400; font-size: clamp(1.1rem, 2.6vw, 1.9rem); line-height: 1.25; margin: 0 0 .8em; }
.fb-end p { font-size: clamp(.75rem, 1.4vw, .95rem); line-height: 1.6; margin: 0 0 1.2em; }
.fb-end img { width: 34%; max-height: 42%; object-fit: contain; margin-bottom: 1.2em; filter: drop-shadow(0 8px 12px rgba(91,83,70,.25)); }
.fb-buy { display: inline-block; background: #C0A687; color: #fffdf8; text-decoration: none; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: clamp(.62rem, 1.2vw, .78rem); padding: 1em 2em; border-radius: 30px; text-shadow: 0 1px 2px rgba(80,68,52,.4); position: relative; z-index: 3; }
.fb-nav { display: flex; align-items: center; gap: 22px; margin-top: 48px; }
.fb-arrow { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(255,253,248,.6); background: rgba(255,253,248,.1);
  color: #fffdf8; font-size: 1.5rem; cursor: pointer; transition: background .2s, transform .2s, opacity .2s; }
.fb-arrow:hover:not(:disabled) { background: rgba(255,253,248,.25); transform: scale(1.06); }
.fb-arrow:disabled { opacity: .25; cursor: default; }
.fb-hint { margin-top: 14px; font-size: .78rem; opacity: .7; text-align: center; }
/* botão que abre o livro */
.fb-open-btn { display: inline-flex; align-items: center; gap: .5em; cursor: pointer; border: 1.5px solid #C0A687; background: rgba(255,253,248,.85);
  color: #5b5346; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .85em 1.6em; border-radius: 30px; transition: background .2s, color .2s, transform .2s; box-shadow: 0 8px 20px rgba(91,83,70,.12); }
.fb-open-btn:hover { background: #C0A687; color: #fffdf8; transform: translateY(-2px); }
@media (max-width: 700px) { .fb-end { padding: 9%; } }
