@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root{
--main:#ff7a00;
--dark:#0f172a;
--light:#f8fafc;
--border:#e5e7eb;
--green:#10b981;
--blue:#3b82f6;
--gray:#64748b;
--white:#ffffff;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Cairo',sans-serif;
scroll-behavior:smooth;
}

body{
background:#f1f5f9;
direction:rtl;
padding-top:85px;
}

/* HEADER */

.header{
position:fixed;
top:0;
right:0;
left:0;
height:75px;
background:rgba(255,255,255,.95);
backdrop-filter:blur(12px);
display:flex;
align-items:center;
justify-content:space-between;
padding:0 30px;
box-shadow:0 4px 20px rgba(0,0,0,.06);
z-index:999;
}

.logo{
font-size:28px;
font-weight:800;
color:var(--dark);
}

.header-icons{
display:flex;
align-items:center;
gap:10px;
}

.admin-btn,
.cart-icon{
width:44px;
height:44px;
border-radius:14px;
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
font-size:20px;
transition:.3s;
position:relative;
}

.admin-btn{
background:#f1f5f9;
color:var(--dark);
}

.cart-icon{
background:var(--main);
color:white;
}

.admin-btn:hover,
.cart-icon:hover{
transform:translateY(-3px);
}

.cart-count{
position:absolute;
top:-4px;
left:-4px;
background:red;
color:white;
width:18px;
height:18px;
border-radius:50%;
font-size:10px;
display:flex;
align-items:center;
justify-content:center;
font-weight:bold;
}

/* HERO */

.hero{
height:400px;
margin:18px;
border-radius:28px;
background:
linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
url('./uploads/frame2.png');
background-size:cover;
background-position:center;
display:flex;
align-items:center;
padding:55px;
color:white;
}

.hero-content{
max-width:520px;
}

.hero h1{
font-size:48px;
line-height:1.3;
margin-bottom:18px;
font-weight:800;
}

.hero p{
font-size:17px;
line-height:1.8;
margin-bottom:26px;
}

.hero-btn{
background:var(--main);
color:white;
padding:14px 26px;
border-radius:14px;
text-decoration:none;
font-weight:700;
display:inline-block;
transition:.3s;
}

.hero-btn:hover{
transform:translateY(-4px);
}

/* CONTAINER */

.container{
width:95%;
max-width:1400px;
margin:auto;
padding-bottom:35px;
}

/* SECTION TITLE */

.section-title{
font-size:30px;
font-weight:800;
margin-bottom:22px;
color:var(--dark);
}

/* SEARCH */

.search-box{
width:70%;
display:flex;
justify-content:center;
margin:20px 0;
padding:0 10px;
}

.search-box input{
width:70%;
max-width:400px;
height:56px;
border:none;
outline:none;
padding:0 18px;
border-radius:16px;
background:white;
font-size:15px;
box-shadow:0 5px 20px rgba(0,0,0,.06);
transition:.3s;
}

.search-box input:focus{
transform:scale(1.02);
box-shadow:0 10px 25px rgba(0,0,0,.1);
}

/* CATEGORIES */

.categories{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:18px;
margin-top:15px;
margin-bottom:35px;
}

.category-card{
background:#fff;
border-radius:18px;
padding:18px;
text-decoration:none;
color:#222;
display:flex;
align-items:center;
gap:14px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
transition:.3s;
border:1px solid #eee;
}

.category-card:hover{
transform:translateY(-5px);
}

.cat-icon{
width:52px;
height:52px;
min-width:52px;
border-radius:14px;
background:#111;
color:white;
display:flex;
align-items:center;
justify-content:center;
font-size:22px;
}

.cat-name{
flex:1;
font-size:17px;
font-weight:800;
}

.cat-arrow{
font-size:20px;
color:#777;
}

/* PRODUCTS */

.products{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
gap:20px;
}

/* CARD */

.card{
background:white;
border-radius:20px;
overflow:hidden;
border:1px solid var(--border);
transition:.3s;
box-shadow:0 4px 12px rgba(0,0,0,.05);
display:flex;
flex-direction:column;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 12px 25px rgba(0,0,0,.12);
}

/* IMAGE */

.img-box{
height:200px;
background:#f8fafc;
display:flex;
align-items:center;
justify-content:center;
padding:18px;
}

.img-box img{
width:100%;
height:100%;
object-fit:contain;
transition:.3s;
}

.card:hover img{
transform:scale(1.05);
}

/* CONTENT */

.content{
padding:16px;
display:flex;
flex-direction:column;
gap:12px;
}

.content h3{
font-size:17px;
font-weight:700;
color:black;
line-height:1.5;
height:48px;
overflow:hidden;
}

.price{
font-size:22px;
font-weight:800;
color:var(--main);
}

/* BUTTONS */

.buttons{
display:flex;
flex-direction:column;
gap:9px;
margin-top:5px;
}

.btn{
border:none;
height:44px;
border-radius:12px;
font-size:14px;
font-weight:700;
cursor:pointer;
transition:.3s;
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
}

.btn:hover{
transform:translateY(-2px);
opacity:.92;
}

.details{
background:#f1f5f9;
color:var(--dark);
}

.whatsapp{
background:var(--green);
color:white;
}

.cart{
background:var(--blue);
color:white;
}

/* EMPTY */

.empty{
background:white;
padding:30px;
border-radius:20px;
text-align:center;
font-size:20px;
font-weight:700;
color:#64748b;
}





/* CATEGORY HERO */

.category-hero{
height:300px;
margin:18px;
border-radius:28px;

background:
linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
url('./uploads/frame2.png');

background-size:cover;
background-position:center;

display:flex;
flex-direction:column;
align-items:center;
justify-content:center;

text-align:center;
padding:30px;
color:white;
}

.category-hero h1{
font-size:42px;
font-weight:800;
margin-bottom:12px;
}

.category-hero p{
font-size:18px;
line-height:1.8;
opacity:.95;
}

/* MOBILE CATEGORY HERO */

@media(max-width:768px){

.category-hero{
height:200px;
margin:10px;
padding:20px;
border-radius:20px;
}

.category-hero h1{
font-size:24px;
margin-bottom:8px;
}

.category-hero p{
font-size:13px;
}

}






/* SEARCH */

.search-box{
width:70%;
display:flex;
justify-content:center;
margin:25px 0;
}

.search-box input{
width:70%;
max-width:500px;
height:58px;
border:none;
outline:none;
padding:0 20px;
border-radius:18px;
background:white;
font-size:16px;
box-shadow:0 5px 20px rgba(0,0,0,.06);
transition:.3s;
}

.search-box input:focus{
transform:scale(1.02);
box-shadow:0 10px 25px rgba(0,0,0,.1);
}
.categories{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin-top:20px;
margin-bottom:40px;
}

.category-card{
background:#fff;
border-radius:20px;
padding:20px;
text-decoration:none;
color:#222;
display:flex;
align-items:center;
gap:15px;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
transition:.3s;
border:1px solid #eee;
}

.category-card:hover{
transform:translateY(-5px);
box-shadow:0 10px 25px rgba(0,0,0,0.12);
}

.cat-icon{
width:55px;
height:55px;
min-width:55px;
border-radius:15px;
background:#111;
color:white;
display:flex;
align-items:center;
justify-content:center;
font-size:24px;
}

.cat-name{
flex:1;
font-size:18px;
font-weight:800;
}

.cat-arrow{
font-size:22px;
color:#777;
transition:.3s;
}

.category-card:hover .cat-arrow{
transform:translateX(-5px);
color:#111;
}

/* INSTALL BUTTON */

.install-btn{
position:fixed;
bottom:20px;
right:20px;
background:#ff7a00;
color:white;
border:none;
padding:14px 22px;
border-radius:16px;
font-weight:800;
cursor:pointer;
z-index:9999;
box-shadow:0 5px 20px rgba(0,0,0,.15);
display:none;
}

/* MOBILE */

@media(max-width:768px){

.categories{
grid-template-columns:repeat(2,1fr);
gap:12px;
}

.category-card{
padding:15px;
border-radius:16px;
gap:10px;
}

.cat-icon{
width:42px;
height:42px;
min-width:42px;
font-size:18px;
}

.cat-name{
font-size:14px;
}

.cat-arrow{
font-size:18px;
}

}





.price-box{
display:flex;
align-items:center;
gap:10px;
flex-wrap:wrap;
margin-top:5px;
}

.old-price{
font-size:16px;
color:#94a3b8;
text-decoration:line-through;
font-weight:700;
}

.new-price{
font-size:24px;
font-weight:800;
color:#ff7a00;
}












/* MOBILE */

@media(max-width:768px){

.header{
padding:0 12px;
height:68px;
}

.logo{
font-size:20px;
}

.admin-btn,
.cart-icon{
width:40px;
height:40px;
font-size:18px;
border-radius:12px;
}

.hero{
height:220px;
padding:20px;
margin:10px;
border-radius:22px;
}

.hero h1{
font-size:22px;
line-height:1.5;
}

.hero p{
font-size:13px;
line-height:1.7;
margin-bottom:16px;
}

.hero-btn{
padding:10px 18px;
font-size:13px;
border-radius:10px;
}

.section-title{
font-size:22px;
margin-bottom:15px;
}

/* SEARCH */

.search-box{
margin:15px 0;
}

.search-box input{
height:48px;
font-size:14px;
border-radius:14px;
}

/* CATEGORIES */

.categories{
grid-template-columns:repeat(2,1fr);
gap:10px;
}

.category-card{
padding:12px;
border-radius:14px;
gap:8px;
}

.cat-icon{
width:38px;
height:38px;
min-width:38px;
font-size:16px;
border-radius:10px;
}

.cat-name{
font-size:13px;
}

.cat-arrow{
font-size:15px;
}

/* PRODUCTS */

.products{
grid-template-columns:repeat(2,1fr);
gap:10px;
}

.card{
border-radius:16px;
}

.img-box{
height:120px;
padding:10px;
}

.content{
padding:10px;
gap:8px;
}

.content h3{
font-size:13px;
height:38px;
line-height:1.4;
}

.price{
font-size:16px;
}

.buttons{
gap:6px;
}

.btn{
height:36px;
font-size:11px;
border-radius:10px;
padding:0 5px;
}
.old-price{
font-size:13px;
}

.new-price{
font-size:18px;
}
}