/* ==========================================================================
   1. الإعدادات العامة ومتغيرات الألوان (Global Settings & Root)
   ========================================================================== */
:root {
    --primary-white: #ffffff;
    --accent-red: #c9184a;
    --dark-navy: #2b2d42;
    --light-bg: #f8f9fa;
    --border-color: #e2e8f0;
    --text-muted: #555555;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-navy);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   2. الهيدر وقائمة التنقل الذكية المنسدلة (Header & Submenu Navigation)
   ========================================================================== */
header {
    background-color: var(--primary-white);
    padding: 15px 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.logo {
    position: relative;
    margin-left: 20px;
}

.logo-img {
    height: 110px;
    width: auto;
    position: absolute;
    top: -30px;
    right: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
    z-index: 1001;
}

    .logo-img:hover {
        transform: scale(1.05);
    }

.logo-spacer {
    width: 140px;
    height: 50px;
    display: inline-block;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

    .nav-links li {
        position: relative;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--dark-navy);
        font-weight: 600;
        transition: color 0.3s;
    }

        .nav-links a:hover, .nav-links a.active {
            color: var(--accent-red);
        }

/* تصميم صندوق القائمة الفرعية (Submenu) */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--primary-white);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--accent-red);
    border-radius: 0 0 4px 4px;
    list-style: none;
    padding: 10px 0;
    z-index: 2000;
}

    .submenu li a {
        display: block;
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 500;
        color: var(--dark-navy);
        white-space: nowrap;
        transition: background 0.2s, color 0.2s;
    }

        .submenu li a:hover {
            background-color: var(--light-bg);
            color: var(--accent-red);
        }

@media (min-width: 769px) {
    .nav-links li:hover .submenu {
        display: block;
        animation: fadeInMenu 0.3s ease;
    }
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

    .menu-toggle span {
        width: 28px;
        height: 3px;
        background-color: var(--dark-navy);
        transition: 0.3s;
    }

/* ==========================================================================
   3. البانرات وسلايدر العرض الترحيبي (Banners & Sliders)
   ========================================================================== */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 450px;
    background: #000;
}

.slider {
    display: flex;
    width: 200%;
    height: 100%;
    animation: slideAnimation 10s infinite;
}

.slide {
    width: 100%;
    height: 100%;
   -- display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--primary-white);
    padding: 0 20px;
}

    .slide:nth-child(1) {
        background: linear-gradient(rgba(43, 45, 66, 0.75), rgba(201, 24, 74, 0.75)), url('https://unsplash.com') center/cover;
    }

    .slide:nth-child(2) {
        background: linear-gradient(rgba(201, 24, 74, 0.8), rgba(43, 45, 66, 0.8)), url('https://unsplash.com') center/cover;
    }

    .slide h2 {
        font-size: 42px;
        margin-bottom: 12px;
    }

    .slide p {
        font-size: 19px;
        max-width: 700px;
        margin-bottom: 25px;
    }

@keyframes slideAnimation {
    0%, 45% {
        transform: translateX(0);
    }

    50%, 95% {
        transform: translateX(50%);
    }

    100% {
        transform: translateX(0);
    }
}

.page-banner {
    background: linear-gradient(rgba(43, 45, 66, 0.8), rgba(201, 24, 74, 0.8)), url('https://unsplash.com') center/cover;
    color: var(--primary-white);
    text-align: center;
    padding: 60px 0;
    margin-bottom: 50px;
}

    .page-banner h2 {
        font-size: 36px;
        margin-bottom: 10px;
    }

.btn {
    display: inline-block;
    background-color: var(--accent-red);
    color: var(--primary-white);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

    .btn:hover {
        background-color: #a6123a;
        transform: scale(1.05);
    }

.section-title {
    text-align: center;
    margin: 60px 0 35px 0;
    font-size: 32px;
    color: var(--accent-red);
}

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background-color: var(--accent-red);
        margin: 10px auto 0 auto;
        border-radius: 2px;
    }

/* ==========================================================================
   4. الأقسام وشبكات العرض (Products, About, News, & Contact Pages)
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background-color: var(--primary-white);
    border-radius: 8px;
    padding: 25px;
    border-top: 6px solid var(--accent-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

    .product-card h3 {
        color: var(--accent-red);
        margin-bottom: 12px;
        font-size: 22px;
    }
    .product-card a {
        color: var(--accent-red);
        margin-bottom: 12px;
        font-size: 22px;
    }
    .product-card p {
        font-size: 14px;
        color: var(--text-muted);
        text-align: justify;
    }

.product-image-holder {
    width: 100%;
    height: 200px;
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--primary-white);
    color: var(--dark-navy);
    border: 1px solid var(--border-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-btn.active, .filter-btn:hover {
        background-color: var(--accent-red);
        color: var(--primary-white);
        border-color: var(--accent-red);
    }

.whatsapp-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background 0.3s;
}

    .whatsapp-order-btn:hover {
        background-color: #128C7E;
    }

.about-section {
    background-color: var(--primary-white);
    padding: 70px 0;
    margin-bottom: 60px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

    .about-content p {
        font-size: 16px;
        color: #444;
        margin-bottom: 25px;
        text-align: justify;
        line-height: 1.8;
    }

.about-text-block {
    background-color: var(--primary-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-right: 6px solid var(--accent-red);
    margin-bottom: 40px;
}

    .about-text-block h3 {
        color: var(--accent-red);
        font-size: 24px;
        margin-bottom: 15px;
    }

    .about-text-block p {
        font-size: 16px;
        color: var(--text-muted);
        line-height: 1.8;
        text-align: justify;
    }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.value-card {
    background-color: var(--primary-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    text-align: center;
}

    .value-card h4 {
        color: var(--accent-red);
        font-size: 20px;
        margin-bottom: 12px;
    }

    .value-card p {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.6;
    }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--primary-white);
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border-right: 4px solid var(--accent-red);
}

    .news-card h3 {
        color: var(--accent-red);
        font-size: 19px;
        margin-bottom: 12px;
    }

    .news-card p {
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.6;
    }
    .news-card h3 {
        color: var(--accent-red);
        font-size: 19px;
        margin-bottom: 12px;
    }

    .news-card a {
        color: var(--accent-red);
        font-size: 19px;
        margin-bottom: 12px;
    }
.form-group {
    margin-bottom: 20px;
    text-align: right;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--dark-navy);
    }

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--light-bg);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

    .form-control:focus {
        border-color: var(--accent-red);
    }

.stats-section {
    background-color: var(--dark-navy);
    color: var(--primary-white);
    padding: 50px 0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 60px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item h5 {
    font-size: 36px;
    color: var(--primary-white);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    color: #cbd5e1;
}
/* ==========================================================================5. الصفحات الداخلية المتقدمة (Detail Layouts & Sidebars)========================================================================== */

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    height: 400px;
    background-color: var(--primary-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.product-info h2 {
    font-size: 32px;
    color: var(--dark-navy);
    margin-bottom: 15px;
}

.product-price {
    font-size: 24px;
    color: var(--accent-red);
    font-weight: bold;
    margin-bottom: 20px;
}

.product-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-align: justify;
    line-height: 1.8;
}

.product-features {
    list-style: none;
    margin-bottom: 30px;
}

    .product-features li {
        margin-bottom: 10px;
        position: relative;
        padding-right: 20px;
    }

        .product-features li::before {
            content: "✔";
            color: var(--accent-red);
            position: absolute;
            right: 0;
            font-weight: bold;
        }

.order-form-container {
    background-color: var(--primary-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-top: 6px solid var(--accent-red);
}

    .order-form-container h3 {
        color: var(--accent-red);
        margin-bottom: 20px;
        font-size: 22px;
    }

.submit-order-btn {
    width: 100%;
    background-color: var(--accent-red);
    color: var(--primary-white);
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

    .submit-order-btn:hover {
        background-color: #a6123a;
    }

.news-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.news-main-content {
    background-color: var(--primary-white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-top: 6px solid var(--accent-red);
}

.news-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.news-badge {
    background-color: #25d366;
    color: var(--primary-white);
    padding: 4px 12px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
}

    .news-badge.offer {
        background-color: #25d366;
    }

.news-card-date, .news-date {
    font-size: 14px;
    color: #aaa;
}

.news-main-content h2 {
    font-size: 30px;
    color: var(--dark-navy);
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-image-placeholder {
    width: 100%;
    height: 350px;
    background-color: #eee;
    border-radius: 6px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
}

.news-text {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.9;
    text-align: justify;
}

    .news-text h4 {
        color: var(--accent-red);
        font-size: 20px;
        margin: 25px 0 15px 0;
    }

.share-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-btn {
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more-link {
    color: var(--accent-red);
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-top: 15px;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background-color: var(--primary-white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

    .sidebar-widget h3 {
        font-size: 18px;
        color: var(--dark-navy);
        margin-bottom: 15px;
        border-bottom: 2px solid var(--accent-red);
        padding-bottom: 8px;
    }

.related-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

    .related-item:last-child {
        border-bottom: none;
    }

    .related-item a {
        text-decoration: none;
        color: var(--dark-navy);
        font-weight: 600;
        font-size: 14px;
    }

        .related-item a:hover {
            color: var(--accent-red);
        }

    .related-item span {
        display: block;
        font-size: 12px;
        color: #aaa;
        margin-top: 4px;
    }

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.contact-info-card {
    background-color: var(--primary-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    text-align: center;
    border-bottom: 4px solid var(--border-color);
    transition: border-color 0.3s;
}

    .contact-info-card:hover {
        border-color: var(--accent-red);
    }

    .contact-info-card i {
        font-size: 32px;
        color: var(--accent-red);
        margin-bottom: 15px;
    }

    .contact-info-card h4 {
        font-size: 18px;
        color: var(--dark-navy);
        margin-bottom: 10px;
    }

    .contact-info-card p {
        font-size: 14px;
        color: var(--text-muted);
        direction: ltr;
    }

.contact-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-form-box {
    background-color: var(--primary-white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-top: 6px solid var(--accent-red);
}

    .contact-form-box h3 {
        color: var(--accent-red);
        font-size: 22px;
        margin-bottom: 20px;
    }

.submit-contact-btn {
    width: 100%;
    background-color: var(--accent-red);
    color: var(--primary-white);
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

    .submit-contact-btn:hover {
        background-color: #a6123a;
    }

.map-box {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

    .map-box iframe {
        width: 100%;
        height: 100%;
        min-height: 400px;
        border: 0;
    }
/* ==========================================================================6. أيقونة واتساب العائمة وتذييل الموقع (WhatsApp Float & Footer)========================================================================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .whatsapp-float:hover {
        background-color: #128c7e;
        transform: scale(1.1);
    }

footer {
    background-color: var(--dark-navy);
    color: #cbd5e1;
    padding: 60px 0 20px 0;
    font-size: 14px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-white);
    margin-bottom: 20px;
    font-size: 18px;
    border-right: 4px solid var(--accent-red);
    padding-right: 10px;
}

.footer-section p {
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #475569;
    padding-top: 25px;
    color: #94a3b8;
}
/* ==========================================================================7. ملاءمة الشاشات الصغيرة والهواتف المحمولة (Media Queries)========================================================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--primary-white);
        padding: 20px;
        box-shadow: 0 8px 12px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        gap: 15px;
    }

        .nav-links.active {
            display: flex;
        }

    .submenu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: var(--light-bg);
        padding: 5px 15px 5px 0;
        margin-top: 5px;
        border-right: 2px solid var(--border-color);
    }

        .submenu.open {
            display: block;
        }

    .has-submenu > a::after {
        content: " ▾";
        font-size: 12px;
    }

    .logo-img {
        height: 85px;
        top: -15px;
        position: relative;
    }

    .logo-spacer {
        width: auto;
        height: auto;
    }

    .menu-toggle {
        margin-right: auto;
    }

    .slider-container {
        height: 350px;
    }

    .slide h2 {
        font-size: 28px;
    }

    .slide p {
        font-size: 16px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 25px;
    }

    .product-detail-container, .news-detail-container, .contact-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-image {
        height: 280px;
    }

    .news-main-content, .about-text-block, .contact-form-box {
        padding: 20px;
    }

    .news-image-placeholder {
        height: 220px;
    }
}