/* --- AMBIENCE & GENERAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #09090b;
    color: #e4e4e7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: 0.02em;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- SYSTEM CONTAINERS --- */
.container {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 24px;
}
.narrow-container { max-width: 700px; }

/* --- ARCHITECTURE NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background-color: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
}
.nav-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 14px;
    margin-left: 30px;
    transition: color 0.3s ease;
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
}

/* --- CINEMATIC HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 120px 24px 8px 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}
.hero-subtitle {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #71717a;
    display: block;
    margin-bottom: 20px;
}
.hero-section h1 {
    font-family: "Georgia", serif;
    font-size: 42px;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 25px;
}
.hero-section p {
    font-size: 15px;
    color: #a1a1aa;
    max-width: 580px;
    margin: 0 auto;
}

/* --- CATALOGUE ELEMENTS --- */
.section-header {
    margin-bottom: 50px;
}
.section-header h2 {
    font-family: "Georgia", serif;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 15px;
}
.line-accent {
    width: 40px;
    height: 1px;
    background-color: #ffffff;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
}
.book-card {
    display: flex;
    gap: 30px;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.book-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.08);
}
.book-cover-wrapper {
    position: relative;
    flex-shrink: 0;
}
.book-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}

/* Image Cover Settings */
.book-cover-img {
    width: 150px;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    position: relative;
    z-index: 2;
}
.book-cover-fallback {
    width: 150px;
    height: 220px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}
.placeholder-title {
    font-family: "Georgia", serif;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.3;
}
.book-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}
.book-meta {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #a1a1aa;
    font-weight: 600;
}
.book-info h3 {
    font-family: "Georgia", serif;
    font-size: 20px;
    color: #ffffff;
    margin-top: 5px;
    font-weight: 400;
}
.book-description {
    font-size: 13px;
    color: #71717a;
    margin-top: 10px;
    margin-bottom: 20px;
}
.book-footer-ui {
    margin-top: auto;
}
.book-price {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    display: block;
    margin-bottom: 12px;
}
.action-buttons {
    display: flex;
    gap: 12px;
}

/* --- BUTTON ARCHITECTURE --- */
.btn {
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}
.btn-primary {
    background-color: #ffffff;
    color: #09090b;
    border: 1px solid #ffffff;
}
.btn-primary:hover {
    background-color: #e4e4e7;
}
.btn-secondary {
    background-color: transparent;
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}
.btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}
.btn-large {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* --- DETAIL NOVEL LAYOUT --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}
.large-wrapper { width: 320px; margin: 0 auto; }
.book-cover-img.large-img { width: 320px; height: 460px; }
.large-placeholder { height: 460px; }
.large-text { font-size: 28px; }
.author-tag { font-size: 14px; color: #71717a; margin-top: 5px; }
.author-tag span { color: #ffffff; }
.divider { height: 1px; background-color: rgba(255, 255, 255, 0.05); margin: 30px 0; }
.synopsis-paragraph { color: #a1a1aa; font-size: 15px; margin-bottom: 20px; text-align: justify; }
.metadata-box {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 6px;
    margin: 30px 0;
}
.meta-item { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 10px; }
.meta-item:last-child { margin-bottom: 0; }
.meta-item span { color: #71717a; }
.meta-item strong { color: #ffffff; font-weight: 500; }
.checkout-section { display: flex; flex-direction: column; gap: 20px; }
.price-box { display: flex; align-items: baseline; gap: 15px; }
.old-price { text-decoration: line-through; color: #52525b; font-size: 16px; }
.new-price { font-size: 32px; color: #ffffff; font-weight: 600; }

/* --- FAQ INTERFACE --- */
.page-title-center { text-align: center; margin-bottom: 60px; }
.page-title-center h1 { font-family: "Georgia", serif; font-size: 36px; font-weight: 400; color: #ffffff; }
.faq-wrapper { display: flex; flex-direction: column; gap: 30px; }
.faq-card { background-color: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.03); padding: 30px; border-radius: 6px; }
.faq-card h3 { font-family: "Georgia", serif; font-size: 18px; color: #ffffff; margin-bottom: 12px; font-weight: 400; }
.faq-card p { color: #a1a1aa; font-size: 14px; }

/* --- SYSTEM FOOTER --- */
.footer { text-align: center; padding: 40px 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 120px; font-size: 12px; color: #52525b; }

/* --- ADAPTIVE LAYOUT (MOBILE RESPONSIVE) --- */
@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; gap: 50px; }
    .large-wrapper { width: 260px; }
    .book-cover-img.large-img, .book-cover-fallback.large-placeholder { width: 260px; height: 380px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .navbar { padding: 20px; }
    .nav-links a { margin-left: 15px; font-size: 13px; }
    .hero-section h1 { font-size: 32px; }
    .books-grid { grid-template-columns: 1fr; gap: 30px; }
    .book-card { flex-direction: column; gap: 20px; }
    .book-cover-img, .book-cover-fallback { width: 100%; height: 240px; }
    .container { margin: 40px auto; }
}