/* ===== Global ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    direction: rtl;
}

body {
    background: #fdf8f0;
    color: #333;
}

/* ===== Header ===== */
header {
    background: #000000;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.logo img {
    height: 45px;
}

/* ===== Navbar Desktop ===== */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #FFD700;
}

/* ===== Cart ===== */
.cart {
    position: relative;
}

.cart span {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #e60000;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

/* ===== Social Icons ===== */
.social-icons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.social-icons a img {
    width: 25px;
    height: 25px;
    transition: transform 0.3s;
}

.social-icons a:hover img {
    transform: scale(1.1);
}

/* ===== Menu Toggle Button ===== */
.menu-toggle {
    display: none; /* مخفي في الديسكتوب */
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 2000;
    color: #fff;
    background: #de0723;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.menu-toggle:hover {
    background: #000000;
    color: #FFD700;
    transform: scale(1.05);
}

/* ===== Products & Categories ===== */
.products,
.categories {
    padding: 50px 20px;
    max-width: 1400px;
    margin: auto;
    text-align: right;
}

.products h2,
.categories h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #000000;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    border-radius: 10px;
    object-fit: contain;
}

.product-card h3 {
    margin: 10px 0;
}

.product-card p {
    color: #e63946;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-card .buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.view-product {
    background: #000000;
    color: #fff;
}

.view-product:hover {
    background: #1a17a0;
}

.add-cart {
    background: #e60000;
    color: #fff;
}

.add-cart:hover {
    background: #b50000;
}

/* ===== Middle Banner ===== */
.middle-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 50px 0;
    border-radius: 10px;
}

/* ===== Footer ===== */
footer {
    background: #000000;
    color: #fff;
    padding: 30px;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #FFD700;
}

/* ===== WhatsApp Button ===== */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whatsapp-button img {
    width: 35px;
    height: 35px;
}

/* ===== Responsive ===== */
@media(max-width:1200px){
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:992px){
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Mobile Menu ===== */
@media(max-width:768px){

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header .logo {
        align-self: flex-end;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #000000;
        display: none;
        padding: 15px 0;
        z-index: 999;
    }

    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .middle-banner img {
        height: auto;
    }
}
