body {
    margin: 0;
    font-family: sans-serif;
}

/* HEADER */
header {
    background: linear-gradient(45deg,#ff5e57,#ff9966);
    color: white;
    text-align: center;
    padding: 20px;
}

/* 🔥 SLIDER (এইটাই তোমার main fix) */
.slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: contain;   /* ছবি কাটবে না */
    object-position: top;  /* উপরের অংশ দেখাবে */

    background: #fff;
    opacity: 0;
    transition: opacity 1s ease;
}


.slide.active {
    opacity: 1;
}

/* BOOK SECTION */
.books-section {
    padding: 30px;
    text-align: center;
}

#bookContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 20px;
}

/* CARD */
.book {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* IMAGE */
.book-img {
    width: 100%;
    height: 220px;

    object-fit: contain;   /* পুরো ছবি দেখা যাবে */
    object-position: center;

    background: #fff;
    border-radius: 8px;
}

/* TEXT */
.details {
    font-size: 13px;
    color: gray;
}

.price {
    color: #ff5e57;
    font-weight: bold;
}

/* BUTTON */
button {
    width: 100%;
    padding: 10px;
    background: #ff5e57;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* FOOTER */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 15px;
}