/*
Theme Name: Elong'o Publishers
Author: You
Version: 1.0
Description: Find an incredible selection of the latest and greatest books from all around the world.
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.6;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

header, footer {
    padding: 0px 0;
    background: #f8f8f8;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
}

main {
    padding: 20px 0;
}


.books-wrapper {
    max-width: 98%;
    margin: auto;
    padding: 20px;
}

.per-page-form {
    text-align: right;
    margin-bottom: 20px;
}

.books-grid {
       padding: 0 1.5% 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0px;
}

.book-card {
border: 1px solid #FAC100;
    padding:  10px;
    transition: transform .2s;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
    background-color: #fff;
    transition: transform .2s, box-shadow .2s;
    margin-left: -1px;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card img {
    width: 100%;
    height: 220px;
    border-radius: 0px;
    
    
    
    max-height: 220px;
    object-fit: contain;
}

.book-card h3 {
    font-size: 16px;
    margin-top: 10px;
}

.price {
    color: #2c7be5;
    font-weight: bold;
    margin-top: 8px;
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
}

.pagination .current {
    background: #2c7be5;
    color: #fff;
}


.filter-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-bar select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.book-category span {
    display: inline-block;
    background: #eef2ff;
    color: #333;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 20px;
    margin: 3px;
}

.book-single-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.book-left img {
    width: 100%;
    border-radius: 10px;
}

.book-right h1 {
    margin-bottom: 10px;
}

.price-display {
    font-size: 20px;
    font-weight: bold;
    color: #2c7be5;
    margin: 10px 0;
}

select, input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

button {
    margin-top: 20px;
    padding: 12px;
    width: 100%;
    background: #2c7be5;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}








.cart-wrapper table {
    width: 95%;
    border-collapse: collapse;
}

.cart-wrapper th,
.cart-wrapper td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.cart-wrapper img {
    display: block;
}



table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background: #000;
    color: #fff;
}

td, th {
    padding: 10px;
}

tr:nth-child(even) {
    background: #f4f4f4;
}

td table td {
    border: none;
    padding: 3px 0;
}


