body{
font-family:Cairo;
margin:0;
color:white;

background:
radial-gradient(circle at top, #1a1a1a, #000000 70%),
url("../images/hero.jpg");

background-size:cover;
background-attachment:fixed;
background-blend-mode:overlay;
}

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 40px;
border-bottom:1px solid #222;
}

.logo{
font-size:38px;
letter-spacing:3px;
color:#831518;
font-weight:bold;
}

.cart-btn{
background:#831518;
border:none;
padding:10px 20px;
border-radius:6px;
color:white;
font-size:16px;
cursor:pointer;
font-family:Cairo;
}

.lang-btn{
color:white;
text-decoration:none;
margin-left:15px;
padding:5px 10px;
border:2px solid #e63946;
border-radius:6px;
}

body[dir="ltr"]{
text-align:left;
}

.hero{
position:relative;
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
padding:80px 60px;
background:
linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.9)),
url("../images/hero.jpg");
background-size:cover;
background-position:center;
}

.hero h1{
font-size:48px;
}

.hero span{
color:#831518;
}

.hero img{
width:100%;
border-radius:15px;
}

/* Hero Responsive */

@media (max-width: 992px){

.hero{
grid-template-columns:1fr;
text-align:center;
padding:60px 25px;
gap:30px;
}

.hero h1{
font-size:32px;
}

.hero p{
font-size:14px;
line-height:1.8;
}

.hero img{
max-width:85%;
margin:auto;
display:block;
}

.cta{
padding:12px 25px;
font-size:14px;
}

}

.cta{
margin-top:20px;
background:#831518;
padding:15px 30px;
border:none;
color:white;
border-radius:8px;
font-size:16px;
cursor:pointer;
}

.section{
padding:60px 40px;
}

.products{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:50px;
}

.card{
background:#111;
border:1px solid #222;
border-radius:15px;
overflow:hidden;
transition:.3s;
}

.card:hover{
transform:translateY(-10px);
}

.card img{
width:100%;
height:280px;
object-fit:cover;
}

.card-body{
padding:20px;
}

.cart-item{
display:grid;
grid-template-columns:1fr auto auto auto;
align-items:center;
gap:10px;
padding:10px 0;
border-bottom:1px solid #333;
}

.cart-item button{
background:#e63946;
border:none;
color:white;
padding:5px 8px;
border-radius:4px;
cursor:pointer;
}

.price{
color:#831518;
font-weight:bold;
font-size:20px;
}

button{
background:#831518;
border:none;
padding:10px 15px;
color:white;
border-radius:6px;
cursor:pointer;
}

.features{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:30px;
}

.feature{
background:#111;
padding:30px;
border-radius:10px;
text-align:center;
}

.reviews{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}

.review{
background:#111;
padding:30px;
border-radius:10px;
}

.cart-panel{
position:fixed;
top:0;
right:0;
width:400px;
height:100%;
background:#111;
border-left:1px solid #222;
padding:20px;
overflow:auto;
transform:translateX(100%);
transition:0.4s;
z-index:1001;
}

.cart-panel.active{
transform:translateX(0);
}

.close-cart{
position:absolute;
top:15px;
left:15px;
background:#e63946;
border:none;
width:35px;
height:35px;
border-radius:50%;
color:white;
font-size:18px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
}

.total{
font-size:22px;
margin-top:20px;
}

.checkout{
width:100%;
margin-top:20px;
}

/* Gallery Section */

.gallery-section h2{
text-align:center;
margin-bottom:40px;
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

.gallery-item{
overflow:hidden;
border-radius:15px;
background:#111;
border:1px solid #222;
transition:0.4s;
aspect-ratio: 1 / 1; /* يجعل الصور مربعة ومتناسقة */
}

.gallery-item img{
width:100%;
height:100%;
object-fit:cover;
transition:0.4s;
}

.gallery-item:hover img{
transform:scale(1.1);
}

.gallery-item:hover{
box-shadow:0 15px 35px rgba(0,0,0,0.6);
}

@media (max-width:768px){

.gallery{
grid-template-columns:repeat(2,1fr);
gap:15px;
}

.gallery-item{
aspect-ratio: 1 / 1;
}

}

.footer{
background:#050505;
padding:60px 40px 20px;
border-top:1px solid #222;
}

.footer-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:40px;
}

.footer h3{
color:#e63946;
letter-spacing:3px;
}

.footer h4{
margin-bottom:15px;
}

.footer ul{
list-style:none;
padding:0;
}

.footer ul li{
margin-bottom:10px;
}

.footer a{
color:#ccc;
text-decoration:none;
}

.footer a:hover{
color:#e63946;
}

.social a{
font-size:22px;
margin-left:10px;
color:#e63946;
}

.checkout-form{
margin-top:20px;
display:flex;
flex-direction:column;
gap:10px;
}

.checkout-form input,
.checkout-form textarea{
padding:10px;
border:none;
border-radius:6px;
background:#222;
color:#fff;
}

.order-btn{
background:#25D366;
color:white;
padding:12px;
border:none;
border-radius:6px;
cursor:pointer;
font-weight:bold;
}

.footer-bottom{
margin-top:40px;
text-align:center;
border-top:1px solid #222;
padding-top:20px;
color:#888;
}