/* زر واتساب العائم */
a.whatsapp-float {
    position: fixed;
    bottom: 1rem; 
    right: 1rem;  
    background-color: #22c55e; 
    color: white; 
    padding: 1rem; 
    border-radius: 9999px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: all 0.3s ease; 
}

a.whatsapp-float:hover {
    background-color: #16a34a; 
}

a.whatsapp-float svg {
    width: 1.5rem; 
    height: 1.5rem;
    fill: currentColor; 
}


/* الأساسيات */
body {
    font-family: Tajawal, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* تنسيق الهيدر */
header {
    background-color: #333;
    color: white;
    padding: 15px 0;
    display: flex;
    justify-content: center;
}

/* الحاوية الرئيسية للهيدر */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
}

/* تنسيق الشعار */
.logo img {
    height: 50px;
}

/* تنسيق القائمة */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* تنسيق معلومات التواصل */
.contact-info {
    text-align: left;
    color: white;
    font-size: 14px;
}

/* تنسيق المحتوى الرئيسي */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

.product-image {
    width: 100%;
    max-width: 300px;
    margin-right: 20px;
}

.content-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.first-section {
    padding: 20px;
}
.first-section div {
    border: 1px solid black;
    border-radius: 20px;
    height: 50px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: #333;
    color: white;
    padding: 10px 0;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* تنسيق زر الطلب */
.get-order {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.get-order-button {
    padding: 15px 30px;
    border: none;
    background-color: #6B73B5;
    color: white;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.get-order-button:hover {
    background-color: #5a62a1;
}

.second-section {
    padding: 20px;
}

.second-section div {
    background-color: #5a62a1;
    border-radius: 20px;
    padding: 30px 150px;
    text-align: center;
    color: #f5f5f5;
}

.second-section div p {
    font-size: 1.3rem;
    color: white;
}

.section-three {
    display: flex;
}

.section-three img {
    height: auto;
    width: 50%;
}

.section-three div {
    justify-content: center;
    align-items: center;
}

.section-three div p {
    font-size: 1.3rem;
}

.section-four {
    justify-content: center;
    align-items: center;
    border: 3px solid #5a62a1;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin: 5px;
}

.section-four h1 {
    color: #5a62a1;
}

.section-four p {
    font-size: 1.1rem;
}

.get-order-button.secondary {
    padding: 15px 30px;
    border: 2px solid #5a62a1;
    background-color: rgba(255, 255, 255, 0);
    color: #5a62a1;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;  
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.get-order-button.secondary:hover {
    background-color: #6B73B5;
    color: white;
}

/* ✅ تنسيق الفوتر */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 15px;
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    gap: 20px;
    text-align: right;
}

/* ✅ الشعار والوصف */
.footer-logo {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-logo img {
    width: 120px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    color: #ccc;
}

/* ✅ معلومات التواصل */
.footer-contact, .footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-contact h3,
.footer-links h3 {
    color: #6B73B5;
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-contact p {
    margin: 5px 0;
}

.footer-contact a {
    color: #ddd;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* ✅ الروابط */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #6B73B5;
    text-decoration: underline;
}

/* ✅ حقوق النشر */
.footer-copy {
    margin-top: 20px;
    font-size: 12px;
    color: #aaa;
}

/* ✅ ✅ ✅ جعل التصميم متجاوبًا */

/* شاشات التابلت (أقل من 1024px) */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        text-align: center;
        margin-top: 10px;
    }
}

/* شاشات الهواتف (أقل من 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    #nav {
        display: none;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 0;
        text-align: center;
    }
    
    #nav.active {
        display: block;
    }

    .header-container {
        flex-direction: row;
        text-align: center;
    }

    .logo img {
        height: 40px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .contact-info {
        font-size: 12px;
        margin-top: 5px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contact, .footer-links {
        text-align: center;
    }

    .content-container {
        flex-direction: column;
        text-align: center;
    }

    .product-image {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .second-section div {
        padding: 10px 10px;        
    }

    .section-three {
        display: block;
    }

    .section-three img {
        width: 100%;
    }

    .section-three div {
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .section-three div p {
        text-align: start;
    }

    .get-order {
        display: block;
    }
}
