
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Top Bar */
.top-bar{
    background:#222;
    color:#fff;
    padding:6px 40px;
    display:flex;
    justify-content:space-between;
    font-size:14px;
}

/* Header */
header{
    padding:15px 40px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}

.logo{
    font-size:26px;
    font-weight:bold;
    color:#ff6600;
}

.search-box{
    width:40%;
    display:flex;
}

.search-box input{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    outline:none;
}

.search-box button{
    padding:10px 15px;
    border:none;
    background:#ff6600;
    color:#fff;
    cursor:pointer;
}

.header-icons i{
    font-size:20px;
    margin-left:20px;
    cursor:pointer;
    color:#333;
}

/* Navigation */
nav{
    background:#ff6600;
}

nav ul{
    display:flex;
    list-style:none;
    padding:10px 40px;
}

nav ul li{
    margin-right:25px;
}

nav ul li a{
    text-decoration:none;
    color:#fff;
    font-weight:500;
}

/* Hero Slider */
.slider{
    position:relative;
    width:100%;
    height:420px;
    overflow:hidden;
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
    display:none;
}

.slide.active{
    display:block;
}

.slider-text{
    position:absolute;
    top:40%;
    left:10%;
    color:#fff;
}

.slider-text h1{
    font-size:42px;
}

.slider-text button{
    margin-top:15px;
    padding:10px 20px;
    background:#ff6600;
    border:none;
    color:#fff;
    cursor:pointer;
}

/* Categories */
.categories{
    padding:50px 40px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
}

.category{
    padding:30px;
    background:#f4f4f4;
    text-align:center;
    font-weight:bold;
    cursor: pointer;
}

/* Products */
.products{
    padding:50px 40px;
}

.products h2{
    margin-bottom:25px;
}

.product-grid{
    display:flex;
    gap:25px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.product{
    border:1px solid #ddd;
    padding:15px;
    text-align:center;
    height: 250px;
    width: 350px;
}

.product h4 {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.product img{
    width:auto;
    height:180px;
    object-fit:cover;
}

.product button{
    margin-top:10px;
    padding:8px 15px;
    background:#ff6600;
    border:none;
    color:#fff;
    cursor:pointer;
}

/* Footer */
footer{
    background:#222;
    color:#fff;
    padding:40px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:30px;
}

footer h3{
    margin-bottom:10px;
}

footer a{
    display:block;
    color:#ccc;
    text-decoration:none;
    margin-bottom:6px;
}


/* Books Section */
.books-section{
    padding:50px 40px;
    background:#f9f9f9;
}

.books-section h2{
    margin-bottom:25px;
    font-size:28px;
    color:#333;
}

.book-filters{
    display:flex;
    gap:15px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.book-filter{
    padding:10px 20px;
    background:#fff;
    border:2px solid #ff6600;
    color:#ff6600;
    font-weight:bold;
    cursor:pointer;
    border-radius:25px;
    transition:all 0.3s ease;
}

.book-filter:hover{
    background:#ff6600;
    color:#fff;
}

.book-filter.active{
    background:#ff6600;
    color:#fff;
}

/* Reviews Carousel */
.reviews-carousel{
    padding:50px 40px;
    background:#fff;
}

.reviews-carousel h2{
    margin-bottom:30px;
    font-size:28px;
    color:#333;
    text-align:center;
}

.carousel-container{
    position:relative;
    display:flex;
    align-items:center;
    gap:20px;
}

.carousel-btn{
    flex-shrink:0;
    width:50px;
    height:50px;
    border:2px solid #ff6600;
    background:#fff;
    color:#ff6600;
    font-size:24px;
    cursor:pointer;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.3s ease;
}

.carousel-btn:hover{
    background:#ff6600;
    color:#fff;
}

.reviews-wrapper{
    display:flex;
    gap:20px;
    overflow-x:auto;
    scroll-behavior:smooth;
    flex:1;
    padding:20px 0;
    scrollbar-width:none;
}

.reviews-wrapper::-webkit-scrollbar{
    display:none;
}

.review-card{
    flex-shrink:0;
    width:300px;
    background:#f5f5f5;
    border:1px solid #ddd;
    padding:25px;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover{
    transform:translateY(-5px);
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.review-stars{
    font-size:20px;
    color:#ff6600;
    margin-bottom:15px;
    letter-spacing:3px;
}

.review-text{
    font-size:14px;
    color:#666;
    margin-bottom:15px;
    line-height:1.6;
    font-style:italic;
}

.review-author{
    font-weight:bold;
    color:#333;
    font-size:14px;
}