html, body {
    height: 100%;
    margin: 0;
}

    body {
        margin: 0;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        background: #f5f5f5;
        color: #111;
    }
    header {
		min-height: 70px;
        background: #ffffff;
        padding: 5px 5px;
        border-bottom: 1px solid #ddd;
        top: 0;
        z-index: 1;
    }

/* MOBIL HEADER FIX */
@media(max-width: 700px) {

    header .container {
        flex-direction: column;
        align-items: stretch; /* full width */
        gap: 10px;
    }

    header form {
        width: 100%;
    }

    header input[type="text"] {
        width: 100%;
        box-sizing: border-box;
    }
}



.page-wrap {
    min-height: calc(100vh - 120px); /* footer yüksekliğine göre ayarla */
}
	
    .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 20px;
    }
    a { color:#0066cc; text-decoration: none; color: inherit; }

.site-footer {
	color:#555;
    height: 80px; /* footer yüksekliği */
    background: #f5f5f5;
    padding: 20px;
}	



.grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Tablet geniş ekran */
@media(max-width: 1200px) {
    .grid4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Küçük tablet */
@media(max-width: 900px) {
    .grid4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil */
@media(max-width: 600px) {
    .grid4 {
        grid-template-columns: repeat(1, 1fr);
    }
}


.book-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
    transition: transform .15s;
}

.book-card:hover {
    transform: translateY(-4px);
}

.book-card img {
    width: 100%;
    height: auto;          /* BOZULMAYI ÖNLER */
    aspect-ratio: 2 / 3;   /* ORANI SABİTLER */
    object-fit: cover;     /* TAŞMA / KIRPMA YOK */
    display: block;
}


.book-title {
    padding: 12px 14px;
    font-weight: 600;
    color: #111;
}

.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    padding: 8px 16px;
    background: #eee;
    border-radius: 6px;
    margin: 0 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.pagination .page-info {
    margin: 0 15px;
    font-weight: 600;
}











.book-cover-lg {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    margin: 20px 0;
}


.meta-info {
    color: #666;
    font-size: .95rem;
}

.book-content {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 20px;
    color: #222;
}


/* BREADCRUMB */
.breadcrumb {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}
.breadcrumb a {
    color: #555;
    text-decoration: none;
}

/* ===============================
   KITAP DETAY LAYOUT
================================ */
.book-detail {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: nowrap; /* Yanyana durmayı zorunlu kıl */
}

/* SOL TARAF – Kapak */
.book-left {
    width: 380px;
    flex-shrink: 0;
}

.book-left img {
    width: 100%;
    height: auto;          /* BOZULMAYI ÖNLER */
    aspect-ratio: 2 / 3;   /* ORANI SABİTLER */
    object-fit: cover;     /* TAŞMA / KIRPMA YOK */
    display: block;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* SAĞ TARAF – Bilgiler */
.book-right {
    flex: 1;
    min-width: 0; /* Flex overflow bug fix */
}

/* Kategori */
.book-category {
    margin-bottom: 10px;
}
.book-category a {
    color: #0066cc;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Başlık */
.book-detail-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.2rem;
    margin: 0 0 8px 0;
    line-height: 1.1;
}

/* Yazar */
.book-author {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 25px;
}

/* İçerik */
.book-content {
    font-size: 1.08rem;
    line-height: 1.75;
    color: #222;
}

/* MOBİL DÜZEN */
@media(max-width: 900px) {
    .book-detail {
        flex-wrap: wrap;
    }
    .book-left {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
    .book-right {
        width: 100%;
    }
}
