* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6fa;
    color: #111;
}

.header {
    background: #111;
    color: #fff;
    padding: 18px 30px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
}

.card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #eee;
}

.card-body {
    padding: 18px;
}

.title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.price {
    color: #1e8449;
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    background: #111;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.92;
}

input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #111;
}

button.btn {
    border: 0;
}

.admin-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.admin-title {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 700;
}

.small-text {
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
        font-size: 20px;
    }

    .container {
        padding: 20px 14px 40px;
    }

    .card img {
        height: 260px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 900px) {
    .book-detail-layout,
    .book-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
        font-size: 20px;
    }

    .container {
        padding: 20px 14px 40px;
    }

    .card img {
        height: 260px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.info-box {
    background: #fff;
    padding: 50px 30px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

@media (max-width: 900px) {
    .book-detail-grid {
        grid-template-columns: 1fr !important;
    }
}