/* === أساسيات التصميم === */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Arial', sans-serif; background-color: #f4f1ee; color: #333; }

/* === HEADER / NAVBAR === */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background-color: #fff; position: fixed; width: 100%;
    top: 0; z-index: 1000; transition: background 0.3s;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}
header.scrolled { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.logo { font-size: 24px; font-weight: bold; cursor: pointer; }

nav ul { list-style: none; display: flex; gap: 20px; }
nav ul li a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.3s; }
nav ul li a:hover { color: #555; }

.icons { display: flex; gap: 15px; font-size: 1.2rem; cursor: pointer; transition: transform 0.3s; }
.icons span:hover { transform: scale(1.2); }

.burger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.burger div { width: 25px; height: 3px; background-color: #333; transition: all 0.3s; }

/* === HERO SECTION === */
.hero { 
    height: 90vh; background-image: url('https://images.unsplash.com/photo-1490367532201-b9bc1dc483f6?q=80&w=1600&auto=format&fit=crop');
    background-attachment: fixed; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
    margin-top: 60px;
}
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; font-weight: bold; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }
.btn-primary, .btn-secondary, .btn-shop-collection, .newsletter button {
    padding: 12px 30px; border: none; cursor: pointer; transition: all 0.3s ease; border-radius: 5px;
}
.btn-primary { background-color: #e0d7d0; color: #333; }
.btn-primary:hover { background-color: #d1c6b8; transform: translateY(-3px); }
.btn-secondary { background-color: transparent; color: #fff; border: 1px solid #fff; }
.btn-secondary:hover { background-color: #fff; color: #333; transform: translateY(-3px); }

/* === ESSENTIALS SECTION === */
.essentials { padding: 80px 5%; }
.section-title { text-align: center; font-size: 24px; margin-bottom: 40px; text-transform: uppercase; }
.essentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

.cat-card, .product-card { background-color: #fff; padding: 10px; text-align: center; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.cat-card:hover, .product-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

.img-container { position: relative; overflow: hidden; border-radius: 5px; }
.img-container img { width: 100%; height: auto; object-fit: cover; display: block; transition: transform 0.5s ease; }
.img-container:hover img { transform: scale(1.1); }

.overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-color: rgba(0,0,0,0.4); color:#fff;
    display:flex; justify-content:center; align-items:center; opacity:0; transition: opacity 0.3s ease;
    font-size:1.2rem; font-weight:bold; cursor:pointer;
}
.img-container:hover .overlay { opacity:1; }

/* === AUTUMN COLLECTION === */
.autumn-collection { background-color:#f7f7f7; display:flex; align-items:center; padding:80px 5%; gap:20px; }
.autumn-content h2 { font-size:32px; margin-bottom:20px; }
.autumn-image img { width:100%; height:auto; object-fit:cover; border-radius:5px; }

/* === TRENDING CAROUSEL === */
.trending-grid { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding-bottom:10px; }
.trending-grid::-webkit-scrollbar { display: none; }
.product-card h3 { font-size:16px; margin:10px 0; }
.price { font-weight:bold; margin-bottom:5px; }
.rating { color: gold; }

/* === LOOKBOOK === */
.lookbook-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:15px; }
.look-card img { width:100%; border-radius:5px; transition: transform 0.5s; }
.look-card img:hover { transform: scale(1.1); }

/* === NEWSLETTER === */
.newsletter { background-color:#333; color:#fff; padding:60px 5%; text-align:center; }
.newsletter input { padding:12px 15px; border:none; border-radius:5px; margin-right:10px; width:250px; max-width:80%; }
.newsletter button { background-color:#e0d7d0; color:#333; }

/* === BACK TO TOP === */
#backToTop { position:fixed; bottom:30px; right:30px; display:none; background-color:#333; color:#fff; border:none; padding:10px 15px; border-radius:50%; cursor:pointer; transition:0.3s; }
#backToTop:hover { background-color:#555; }

/* === FOOTER === */
footer { background-color:#333; color:#fff; text-align:center; padding:30px 5%; }
footer a { color:#fff; text-decoration:none; margin:0 5px; }
footer a:hover { text-decoration:underline; }
.social-icons { margin-top:10px; display:flex; justify-content:center; gap:15px; font-size:1.2rem; }

/* === RESPONSIVE === */
@media(max-width:768px){
    nav ul { position:absolute; top:60px; left:-100%; flex-direction:column; background-color:#fff; width:100%; transition:left 0.3s; padding:20px 0; }
    nav ul.nav-active { left:0; }
    .burger { display:flex; }
    .autumn-collection { flex-direction: column; }
}
/* أضف هذا في CSS */
.burger.toggle div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.burger.toggle div:nth-child(2) {
    opacity: 0;
}
.burger.toggle div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}