/* General Styles */
:root {
    --primary-color: #ff9800;
    --secondary-color: #333;
    --background-color: #f9f9f9;
    --white: #fff;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    background-color: var(--background-color);
    color: var(--secondary-color);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/images/hero-bg.jpg') no-repeat center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Product and Offer Cards */
.product-grid, .offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card, .offer-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover, .offer-card:hover {
    transform: scale(1.05);
}

.product-card img, .offer-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Buttons */
.view-details, .action-button, .back-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.view-details:hover, .action-button:hover, .back-button:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Footer */
/* التذييل العام */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 20px;
    font-size: 14px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* أقسام التذييل */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 0 15px;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    line-height: 1.6;
}

/* الروابط السريعة */
.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links ul li {
    margin-bottom: 10px;
}

.footer-section.links ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section.links ul li a:hover {
    color: var(--primary-color);
}

/* روابط وسائل التواصل الاجتماعي */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--white);
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* قسم الاتصال */
.footer-section.contact p {
    margin-bottom: 5px;
}

/* حقوق النشر */
.footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* الاستجابة للأجهزة المحمولة */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin: 15px 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .header .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 50px 10px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .product-grid, .offer-grid {
        grid-template-columns: 1fr;
    }
}

.logo {
    float: right;
    margin-top: -18px;
    margin-right: 18px;
  }

.logo img {
    width: 100px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
  }

/* زر WhatsApp الثابت */
.floating-whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* اللون الأخضر الخاص بـ WhatsApp */
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.floating-whatsapp-button img {
    width: 30px;
    height: 30px;
}

/* تأثير توسع عند التمرير */
.floating-whatsapp-button:hover {
    transform: scale(1.1);
}


/* مربع الحوار العام */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

/* صورة مربع الحوار */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* زر إغلاق مربع الحوار */
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* تأثير ظهور الصورة */
@keyframes zoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}


@media only screen and (max-width: 600px) {
    .logo {
      float: none;
      margin-top: 10px;
    }
  }
  