/* ==========================================
   Royal Mart - Local Shop
   Developed by GenX Technologies
========================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
scroll-behavior:smooth;
}

body{
background:#f8f8f8;
color:#222;
overflow-x:hidden;
}

a{
text-decoration:none;
}

ul{
list-style:none;
}

img{
width:100%;
display:block;
}

.container{
width:90%;
max-width:1200px;
margin:auto;
}

/* ================= NAVBAR ================= */

header{
position:fixed;
top:0;
left:0;
width:100%;
background:rgba(18,18,18,.95);
backdrop-filter:blur(12px);
z-index:999;
}

.navbar{
height:80px;
display:flex;
justify-content:space-between;
align-items:center;
width:90%;
max-width:1200px;
margin:auto;
}

.logo{
font-size:30px;
font-weight:700;
color:#FFC107;
}

.logo i{
margin-right:10px;
}

.nav-links{
display:flex;
gap:35px;
}

.nav-links a{
color:#fff;
transition:.3s;
}

.nav-links a:hover{
color:#FFC107;
}

/* ================= BUTTONS ================= */

.btn{
display:inline-block;
padding:14px 30px;
background:#FFC107;
color:#111;
border-radius:40px;
font-weight:600;
transition:.3s;
}

.btn:hover{
background:#fff;
transform:translateY(-4px);
}

.btn-outline{
display:inline-block;
padding:14px 30px;
border:2px solid #FFC107;
color:#FFC107;
border-radius:40px;
margin-left:15px;
transition:.3s;
}

.btn-outline:hover{
background:#FFC107;
color:#111;
}

/* ================= HERO ================= */

.hero{
height:100vh;
background:
linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.65)),
url("../images/hero.jpg") center/cover;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
padding:120px 20px;
}

.hero-content{
max-width:850px;
color:white;
}

.hero h1{
font-size:60px;
margin-bottom:20px;
}

.hero p{
font-size:20px;
color:#ddd;
margin-bottom:35px;
}

/* ================= TITLES ================= */

.section-title{
text-align:center;
font-size:42px;
margin-bottom:60px;
color:#111;
}

/* ================= CATEGORIES ================= */

.categories{
padding:100px 0;
background:white;
}

.categories .container{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.category{
background:#fff;
border-radius:20px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,.08);
transition:.35s;
text-align:center;
}

.category:hover{
transform:translateY(-10px);
}

.category img{
height:240px;
object-fit:cover;
}

.category h3{
margin:20px 0;
}

.category .btn{
margin-bottom:25px;
}

/* ================= PRODUCTS ================= */

.products{
padding:100px 0;
background:#f4f4f4;
}

.products .container{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.product{
background:white;
border-radius:20px;
overflow:hidden;
box-shadow:0 15px 35px rgba(0,0,0,.08);
transition:.35s;
text-align:center;
}

.product:hover{
transform:translateY(-10px);
}

.product img{
height:250px;
object-fit:cover;
}

.product h3{
margin:20px 0 10px;
}

.product p{
font-size:22px;
font-weight:700;
color:#27ae60;
margin-bottom:20px;
}

.product .btn{
margin-bottom:25px;
}

/* ================= OFFER ================= */

.offers{
padding:90px 20px;
background:#121212;
text-align:center;
color:white;
}

.offers h2{
font-size:42px;
margin-bottom:20px;
}

.offers p{
margin-bottom:35px;
font-size:18px;
color:#ddd;
}

/* ================= ABOUT ================= */

.about{
padding:100px 0;
background:white;
}

.about .container{
display:grid;
grid-template-columns:1fr 1fr;
gap:60px;
align-items:center;
}

.about img{
border-radius:20px;
}

.about h4{
color:#FFC107;
margin-bottom:10px;
}

.about h2{
font-size:40px;
margin-bottom:20px;
}

.about p{
color:#666;
line-height:1.8;
margin-bottom:30px;
}

/* ================= OWNER ================= */

.owner{
padding:100px 0;
background:#f4f4f4;
}

.owner-card{
width:350px;
margin:auto;
background:white;
border-radius:20px;
overflow:hidden;
text-align:center;
box-shadow:0 15px 35px rgba(0,0,0,.08);
transition:.35s;
}

.owner-card:hover{
transform:translateY(-10px);
}

.owner-card img{
height:340px;
object-fit:cover;
}

.owner-card h3{
margin-top:20px;
}

.owner-card p{
margin:15px 0;
color:#666;
}

.owner-card .btn{
margin-bottom:25px;
}

/* ================= CONTACT ================= */

.contact{
padding:100px 20px;
background:#FFC107;
text-align:center;
color:#111;
}

.contact h2{
font-size:42px;
margin-bottom:20px;
}

.contact p{
font-size:18px;
margin-bottom:35px;
}

/* ================= FOOTER ================= */

footer{
background:#111;
color:#aaa;
text-align:center;
padding:25px;
}

/* ================= POPUP ================= */

.popup{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.75);
justify-content:center;
align-items:center;
z-index:99999;
}

.popup-box{
width:90%;
max-width:520px;
background:white;
padding:40px;
border-radius:20px;
text-align:center;
box-shadow:0 20px 50px rgba(0,0,0,.25);
}

.popup-box h2{
color:#FFC107;
margin-bottom:20px;
}

.popup-box p{
color:#555;
line-height:1.8;
margin-bottom:30px;
}

.popup-buttons{
display:flex;
justify-content:center;
gap:15px;
flex-wrap:wrap;
}

/* ================= RESPONSIVE ================= */

@media(max-width:991px){

.nav-links{
display:none;
}

.categories .container,
.products .container{
grid-template-columns:1fr;
}

.about .container{
grid-template-columns:1fr;
}

.hero h1{
font-size:42px;
}

}

@media(max-width:600px){

.hero h1{
font-size:32px;
}

.hero p{
font-size:16px;
}

.section-title{
font-size:32px;
}

.about h2{
font-size:30px;
}

.contact h2{
font-size:30px;
}

.btn,
.btn-outline{
display:block;
width:220px;
margin:10px auto;
}

.owner-card{
width:100%;
}

}