* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
}

body {
    color: #414141;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}a {
    text-decoration: none;   /* يشيل الخط */
    color: black;            /* يخلي اللون أسود */
}


/* Nav Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.Navlogo img {
    width: 120px;
}

.Navlinks ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.Navlinks a {
    position: relative;
    text-decoration: none;
    color: #414141;
    font-weight: 500;
    font-size: 14px;
    padding-bottom: 8px; /* مسافة بين الكلمة والخط */
}

    .Navlinks a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 40px; /* طول الخط */
        height: 2px;
        background-color: #303030;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .Navlinks a:hover::after {
        opacity: 1;
    }
/* تنسيق حاوية الأيقونات */
.Navicons {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 20px;
}

/* --- Profile Dropdown CSS --- */
.profile-container {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    width: 150px;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 5px;
    display: none; /* مخفية افتراضياً */
    flex-direction: column;
    padding: 15px 0;
    z-index: 100;
    margin-top: 10px;
}

    .dropdown-menu a {
        text-decoration: none;
        color: #666;
        font-size: 14px;
        padding: 10px 20px;
        transition: 0.3s;
    }

        .dropdown-menu a:hover {
            background-color: #f5f5f5;
            color: #000;
        }

/* إظهار القائمة عند الوقوف بالماوس على أيقونة البروفايل */
.profile-container:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu.show {
    display: flex;
}









/* --- Cart Badge CSS --- */
.cart-container {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #000; /* لون الدائرة أسود زي الصورة */
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* تأثير بسيط عند الوقوف على الأيقونات */
.Navicons i:hover {
    color: #000;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    border: 1px solid #e2e2e2;
    margin-top: 20px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 40px 20px;
}

    .hero-text div {
        max-width: 300px;
    }

    .hero-text p {
        text-transform: uppercase;
        letter-spacing: 1px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: #414141;
    }

    .hero-text h1 {
        font-family: Prata;
        ;
        font-size: 48px;
        font-weight: 400;
        margin: 10px 0;
        font-weight: 400;
        color: #414141;
    }

.line {
    width: 40px;
    height: 2px;
    background: #414141;
    display: inline-block;
}

.hero-img {
    flex: 1;
    background-color: #f8f0f0;
}

    .hero-img img {
        width: 100%;
        display: block;
    }



/* Collections & Grid */
.section-title {
    text-align: center;
    margin: 60px 0 30px;
}

    .section-title h1 {
        font-size: 28px;
        text-transform: uppercase;
        color: #707070;
        font-weight: 300;
    }

        .section-title h1 span {
            color: #414141;
            font-weight: 600;
        }

    .section-title p {
        color: #707070;
        font-size: 14px;
        margin-top: 10px;
        padding: 0 10px;
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 أعمدة للكمبيوتر */
    gap: 20px;
}

.product-card {
    cursor: pointer;
    text-align: left;
}

    .product-card .image {
        width: 100%;
        height: 200px; /* ارتفاع ثابت لكل المنتجات */
        overflow: hidden;
        margin-bottom: 10px;
        /*border-radius: 5px;*/ /* اختياري للتجميل */
        background-color: #f5f5f5; /* لون خلفية إذا الصورة صغيرة */
    }

    .product-card img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* يخلي الصورة تغطي المساحة بدون تشويه */
        display: block;
        transition: transform 0.3s ease;
    }

        .product-card img:hover {
            transform: scale(1.05);
        }

    .product-card p {
        font-size: 13px;
        margin-top: 10px;
        color: #414141;
    }

    .product-card .price {
        font-weight: 600;
        margin-top: 5px;
    }

/* Policies */
.policies {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 80px 0;
    gap: 20px;
}

.policy-item i {
    font-size: 30px;
    margin-bottom: 15px;
    display: block;
}

.policy-item h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.policy-item p {
    color: #707070;
    font-size: 13px;
}

/* Newsletter */
.newsletter {
    text-align: center;
    padding: 50px 0;
}

    .newsletter form {
        display: flex;
        justify-content: center;
        max-width: 500px;
        margin: 30px auto;
        width: 100%;
    }

    .newsletter input {
        flex: 1;
        padding: 12px;
        border: 1px solid #ccc;
        outline: none;
        width: 60%;
    }

    .newsletter button {
        background: black;
        color: white;
        padding: 12px 25px;
        border: none;
        cursor: pointer;
    }

/* Footer */
footer {
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 14px;
    color: #707070;
    margin-top: 20px;
    max-width: 400px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #707070;
    font-size: 14px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #707070;
}

/* ========================================= */
/* التعديلات الخاصة بالموبايل (Media Queries) */
/* ========================================= */

/* للشاشات المتوسطة (Tablets) */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}


/* للشاشات الصغيرة (Mobile) */
@media (max-width: 768px) {
    /* إخفاء القائمة العادية وإظهار أيقونة الموبايل إذا لزم الأمر، 
           لكن حالياً سنجعلها تترتب بشكل بسيط */
  
    /* يفضل تحويلها لقائمة جانبية في الموبايل */

    /* Hero Section للموبايل */
    .hero {
        flex-direction: column;
    }

    .hero-text {
        order: 2;
        padding: 30px 10px;
        text-align: center;
    }

        .hero-text h1 {
            font-size: 36px;
        }

    .hero-img {
        order: 1;
        width: 100%;
    }

    /* Grid المنتجات للموبايل */
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* صورتين في كل صف كما في المواقع المشهورة */
        gap: 15px;
    }


    /* السياسات للموبايل */
    .policies {
        flex-direction: column;
        gap: 40px;
    }

    /* Newsletter للموبايل */
    .newsletter form {
        width: 95%;
    }

    .newsletter input {
        width: 70%;
    }

    /* Footer للموبايل */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        text-align: center;
    }

        .footer-brand p {
            margin: 20px auto;
        }

    .footer-links, .footer-contact {
        text-align: center;
    }

        .footer-links ul {
            display: flex;
            justify-content: center;
            gap: 15px;
            padding: 0;
            flex-wrap: wrap; /* عشان لو الشاشة ضيقة */
        }


        .footer-links li {
            margin-bottom: 0; /* نشيل المسافة الرأسية */
        }

        .footer-links a {
            font-size: 13px;
        }
}

@media (max-width: 300px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr); /* صورتين في كل صف كما في المواقع المشهورة */
        gap: 15px;
    }

    .product-card {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .section-title h1 {
        font-size: 22px;
    }
}







/* =========================
   NAVBAR
========================= */

.custom-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.Navlogo img {
    width: 120px;
}

/* Links */
.Navlinks ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.Navlinks a {
    font-size: 14px;
    font-weight: 500;
    color: #414141;
    position: relative;
}

    .Navlinks a::after {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 50%;
        width: 40px;
        height: 2px;
        background: #000;
        transform: translateX(-50%);
        opacity: 0;
        transition: 0.3s;
    }

    .Navlinks a:hover::after {
        opacity: 1;
    }

/* Icons */
.Navicons {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
}

    .Navicons i {
        cursor: pointer;
        transition: 0.2s;
    }

        .Navicons i:hover {
            color: #000;
        }

/* Cart Badge */
.cart-container {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #000;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100vh;
    background: #fff;
    padding: 70px 20px;
    transition: 0.4s ease;
    z-index: 1000;
}

    .mobile-menu ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .mobile-menu a {
        font-size: 15px;
        color: #333;
    }

    .mobile-menu.active {
        left: 0;
    }

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* منع السكرول عند فتح المينيو */
.no-scroll {
    overflow: hidden;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

    .Navlinks {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}


@media (max-width: 768px) {
    .Navicons .fa-magnifying-glass,
    .cart-container {
        display: none;
    }
}



.profile-wrapper {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 10px 0;
    display: none; /* مهم جداً */
    z-index: 1000;
}

    .profile-dropdown li {
        list-style: none;
    }

        .profile-dropdown li a {
            display: block;
            padding: 10px 20px;
            font-size: 14px;
            color: #333;
        }

            .profile-dropdown li a:hover {
                background: #f5f5f5;
            }

    /* لما ياخد active */
    .profile-dropdown.active {
        display: block;
    }


@media (min-width: 769px) {
    .profile-wrapper:hover .profile-dropdown {
        display: block;
    }

    
}

@media (max-width: 500px) {
    .account {
        display: none;
    }
}
