/* =========================
GLOBAL
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Poppins',sans-serif;
background:#f5f5f5;
color:#111;
}

/* =========================
TOP BAR
========================= */

.top-bar{
background:#131921;
color:white;
text-align:center;
padding:8px;
font-size:14px;
}

/* =========================
HEADER
========================= */

header{
background:#232f3e;
padding:15px 5%;
display:flex;
align-items:center;
justify-content:space-between;
gap:20px;
position:sticky;
top:0;
z-index:1000;
}

.logo{
color:white;
font-size:28px;
font-weight:700;
}

.search-box{
flex:1;
display:flex;
max-width:600px;
}

.search-box input{
width:100%;
padding:12px;
border:none;
outline:none;
border-radius:5px 0 0 5px;
}

.search-box button{
padding:12px 20px;
border:none;
background:#febd69;
cursor:pointer;
border-radius:0 5px 5px 0;
}

nav ul{
display:flex;
gap:20px;
list-style:none;
}

nav ul li a{
text-decoration:none;
color:white;
font-size:15px;
font-weight:500;
}

.nav-right{
display:flex;
align-items:center;
gap:20px;
color:white;
font-size:22px;
}

.cart{
position:relative;
cursor:pointer;
}

#cart-count{
position:absolute;
top:-10px;
right:-10px;
background:red;
color:white;
width:20px;
height:20px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:12px;
}

.menu-btn{
display:none;
cursor:pointer;
}

/* =========================
HERO
========================= */

.hero{
height:85vh;
background:
linear-gradient(rgba(0,0,0,.5),rgba(0,0,0,.5)),
url("https://images.unsplash.com/photo-1511707171634-5f897ff02aa9?q=80&w=1600");
background-size:cover;
background-position:center;
display:flex;
align-items:center;
padding:0 8%;
color:white;
}

.hero-content{
max-width:600px;
}

.hero-content h1{
font-size:60px;
margin-bottom:20px;
}

.hero-content p{
font-size:20px;
margin-bottom:30px;
}

.hero-buttons{
display:flex;
gap:15px;
}

.hero-buttons button{
padding:15px 35px;
border:none;
background:#febd69;
font-size:16px;
font-weight:600;
cursor:pointer;
border-radius:5px;
}

/* =========================
CATEGORY
========================= */

.category-section{
padding:60px 5%;
}

.category-section h2{
margin-bottom:30px;
font-size:32px;
}

.categories{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
}

.cat-card{
background:white;
padding:40px;
text-align:center;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,.08);
font-size:50px;
transition:.3s;
cursor:pointer;
}

.cat-card:hover{
transform:translateY(-10px);
}

.cat-card h3{
font-size:22px;
margin-top:15px;
}

/* =========================
PRODUCTS
========================= */

.products-section{
padding:60px 5%;
}

.products-section h2{
font-size:32px;
margin-bottom:30px;
}

#products{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.card{
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 5px 15px rgba(0,0,0,.08);
transition:.3s;
}

.card:hover{
transform:translateY(-8px);
}

.card img{
width:100%;
height:250px;
object-fit:cover;
}

.card-content{
padding:20px;
}

.card-content h3{
margin-bottom:10px;
}

.card-content p{
font-size:20px;
font-weight:700;
color:#ff6600;
margin-bottom:15px;
}

.card-content button{
width:100%;
padding:12px;
border:none;
background:#232f3e;
color:white;
font-size:15px;
cursor:pointer;
border-radius:5px;
}

/* =========================
OFFER
========================= */

.offer-banner{
margin:60px 5%;
background:linear-gradient(45deg,#ff6600,#ff9900);
padding:60px;
text-align:center;
border-radius:15px;
color:white;
}

.offer-banner h2{
font-size:40px;
margin-bottom:15px;
}

.offer-banner button{
margin-top:20px;
padding:15px 40px;
border:none;
background:white;
color:#111;
font-weight:700;
cursor:pointer;
border-radius:5px;
}

/* =========================
BOOK SECTION
========================= */

.book-preview{
padding:60px 5%;
}

.book-preview h2{
font-size:32px;
margin-bottom:30px;
}

.book-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.book-card{
background:white;
padding:20px;
border-radius:10px;
text-align:center;
box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.book-card img{
width:100%;
height:260px;
object-fit:contain;
margin-bottom:15px;
}

.book-card h3{
margin-bottom:10px;
}

.book-card p{
color:#ff6600;
font-weight:700;
margin-bottom:15px;
}

.book-card button{
padding:12px 30px;
border:none;
background:#232f3e;
color:white;
cursor:pointer;
border-radius:5px;
}

/* =========================
WHATSAPP
========================= */

.whatsapp{
position:fixed;
bottom:20px;
right:20px;
width:60px;
height:60px;
background:#25d366;
color:white;
font-size:30px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
text-decoration:none;
z-index:999;
}

/* =========================
FOOTER
========================= */

footer{
background:#131921;
color:white;
padding:60px 5% 20px;
margin-top:50px;
}

.footer-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
margin-bottom:30px;
}

.footer-container h3{
margin-bottom:15px;
}

.footer-container a{
display:block;
color:white;
text-decoration:none;
margin-bottom:10px;
}

.copy{
text-align:center;
border-top:1px solid rgba(255,255,255,.2);
padding-top:20px;
}

/* =========================
RESPONSIVE
========================= */

@media(max-width:900px){

nav{
display:none;
position:absolute;
top:80px;
left:0;
width:100%;
background:#232f3e;
padding:20px;
}

nav.active{
display:block;
}

nav ul{
flex-direction:column;
}

.menu-btn{
display:block;
}

.hero-content h1{
font-size:40px;
}

.search-box{
display:none;
}

}