/* SHOP PAGE css*/

/* STRUCTURE */
.shop-container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NAVBAR  */

.shop-nav {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.shop-brand img {
    height: 55px;
}

.nav-links a {
    margin-left: 28px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-links .active {
    color: var(--blue);
    font-weight: 600;
}

/* BANNER  */

.shop-banner {
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1)), url("../images/book-banner.jpg");
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.banner-content h1 {
    font-family: "Poppins";
    font-size: 42px;
    margin-bottom: 12px;
}

.banner-content p {
    font-size: 17px;
    opacity: .9;
}

.search-box {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.search-box input {
    width: 350px;
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    outline: none;
}

.search-box button {
    background: var(--gold);
    border: none;
    padding: 14px 22px;
    color: var(--dark);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.search-box button:hover {
    background: #d48b06;
}

/* BOOK GRID  */

.book-section {
    padding: 60px 0;
}

.section-title {
    font-family: "Poppins";
    font-size: 26px;
    margin-bottom: 30px;
    color: var(--dark);
}

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

/* BOOK CARD */
.book-card {
    background: var(--white);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.book-thumb {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.book-info h3 {
    font-family: "Poppins";
    font-size: 18px;
    margin: 10px 0 4px;
}

.book-info p {
    font-size: 14px;
    color: var(--text);
    margin: 3px 0;
}

.book-price {
    margin-top: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--blue);
}

/* BUY BUTTON */
.buy-btn {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--blue);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    font-family: "Poppins";
}

.buy-btn:hover {
    background: #1740b0;
}

/* PAGINATION  */

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

.page-btn {
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin: 0 8px;
    cursor: pointer;
    transition: .2s;
}

.page-btn:hover {
    background: #eef2ff;
}

/* FOOTER  */

.shop-footer {
    background: var(--white);
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: var(--text);
}

/* RESPONSIVE  */
@media (max-width: 600px) {
    .search-box {
        flex-direction: column;
    }

}
