/* Flipbook catalog */

.fb-shell { display: flex; flex-direction: column; min-height: 100vh; }

.fb-book {
    position: relative;
    width: min(92vw, 440px);
    aspect-ratio: 3 / 4;
    margin: 10px auto 0;
    perspective: 1600px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.fb-page, .fb-leaf, .fb-face {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
}

.fb-page, .fb-face {
    background: #fff;
    border: 1px solid var(--oria-pink-line);
    box-shadow: 0 10px 30px rgba(109, 18, 32, 0.12);
}

.fb-leaf {
    transform-style: preserve-3d;
    transform-origin: right center;
    transition: transform 0.7s cubic-bezier(0.35, 0.1, 0.25, 1);
    z-index: 2;
}

.fb-face {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.fb-back { transform: rotateY(180deg); }

.fb-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
}

.fb-counter { font-size: 14px; color: var(--oria-ink-2); min-width: 90px; text-align: center; }

/* page content */
.fb-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
}

.fb-cover {
    background: linear-gradient(160deg, var(--oria-pink-soft) 0%, #fce3ea 55%, #f5c9d6 100%);
    justify-content: center;
    gap: 14px;
}
.fb-cover img.fb-cover-logo {
    width: 150px; height: 150px;
    border-radius: 50%;
    border: 5px solid #c98a4b;
    box-shadow: 0 8px 24px rgba(109, 18, 32, 0.25);
    object-fit: cover;
}
.fb-cover h2 { color: var(--oria-pink-deep); margin: 0; font-size: 30px; }
.fb-cover p { color: var(--oria-ink-2); margin: 0; font-size: 16px; }
.fb-cover .fb-cover-year { color: #c98a4b; font-weight: 700; letter-spacing: 2px; }

.fb-product { gap: 10px; }
.fb-product .fb-badge {
    background: var(--oria-pink);
    color: #fff;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
}
.fb-product img.fb-photo {
    width: 78%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--oria-pink-line);
    background: var(--oria-pink-soft);
}
.fb-product h3 { color: var(--oria-pink-deep); margin: 6px 0 0; font-size: 20px; }
.fb-product .fb-size { color: var(--oria-ink-2); font-size: 13px; margin: 0; }
.fb-product .fb-price { color: var(--oria-pink-deep); font-size: 22px; font-weight: 800; margin: 2px 0 0; }
.fb-product .fb-note { color: var(--oria-ink-2); font-size: 13px; margin: 0; }

.fb-closing { justify-content: center; gap: 14px; background: linear-gradient(160deg, #fce3ea, var(--oria-pink-soft)); }
.fb-closing img { width: 90px; height: 90px; border-radius: 50%; border: 4px solid #c98a4b; object-fit: cover; }
.fb-closing h2 { color: var(--oria-pink-deep); margin: 0; }
.fb-closing p { color: var(--oria-ink-2); margin: 0; }
.fb-closing .fb-cta { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.fb-image-page { padding: 0; }
.fb-image-page img { width: 100%; height: 100%; object-fit: cover; }

/* curl lighting + depth */
.fb-cast {
    position: absolute; inset: 0; z-index: 1; border-radius: 14px;
    background: radial-gradient(ellipse at left center, rgba(60,10,25,0.45), rgba(60,10,25,0) 70%);
    opacity: 0; pointer-events: none;
}
.fb-shade {
    position: absolute; inset: 0; border-radius: 14px;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    opacity: 0; pointer-events: none; z-index: 3;
}
.fb-shade-front { background: linear-gradient(to left, rgba(60,10,25,0.4), rgba(60,10,25,0) 60%); }
.fb-shade-back { transform: rotateY(180deg); background: linear-gradient(to right, rgba(60,10,25,0.35), rgba(60,10,25,0) 55%); }
.fb-edge {
    position: absolute; top: 2px; bottom: 2px; left: -2px; width: 5px;
    border-radius: 3px; z-index: 4; opacity: 0; pointer-events: none;
    background: repeating-linear-gradient(to bottom, #faf0f3 0 2px, #e6cfd7 2px 4px);
    box-shadow: 0 0 4px rgba(60,10,25,0.25);
}
.fb-book { cursor: grab; }
.fb-book:active { cursor: grabbing; }
.fb-leaf { will-change: transform; }
