/* =========================================
   إعدادات عامة
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, sans-serif;

    background-color: #f5f7fa;

    color: #111;

    min-height: 100vh;
}


/* =========================================
   الهيدر
========================================= */

.site-header {
    width: 100%;
    background-color: #ffffff;
}


/* الشريط العلوي */

.top-bar {
    width: 100%;

    min-height: 40px;

    padding: 8px 15px;

    background-color: #0B1F5E;

    color: #FFD700;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 30px;

    flex-wrap: wrap;

    font-size: 14px;

    font-weight: bold;
}

.top-bar span {
    white-space: nowrap;
}

.top-bar a {
    color: #FFD700;

    text-decoration: none;

    transition: 0.2s;
}

.top-bar a:hover {
    color: #ffffff;
}


/* الجزء الرئيسي للهيدر */

.header-main {
    width: 95%;

    max-width: 1400px;

    min-height: 125px;

    margin: 0 auto;

    padding: 15px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* اللوجو */

.logo {
    display: block;

    flex-shrink: 0;

    text-decoration: none;
}

.logo img {
    width: 105px;

    height: 105px;

    object-fit: contain;

    display: block;
}


/* =========================================
   البحث
========================================= */

.search-box {
    flex: 1;

    max-width: 700px;

    height: 50px;

    display: flex;

    background-color: #ffffff;

    border: 1px solid #d8dce5;

    border-radius: 6px;

    overflow: hidden;
}

.search-box input {
    flex: 1;

    width: 100%;

    border: none;

    outline: none;

    padding: 0 18px;

    font-size: 16px;

    text-align: right;
}

.search-box button {
    width: 60px;

    border: none;

    background-color: #0B1F5E;

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;

    transition: 0.2s;
}

.search-box button:hover {
    background-color: #123B8F;
}


/* =========================================
   أيقونات الهيدر
========================================= */

.header-icons {
    display: flex;

    align-items: center;

    gap: 18px;

    font-size: 28px;

    flex-shrink: 0;
}

.header-icons span {
    cursor: pointer;
}


/* =========================================
   القائمة الرئيسية
========================================= */
/* =========================================
   القائمة الرئيسية
========================================= */

.main-nav {
    width: 100%;
    min-height: 55px;

    padding: 8px 20px;

    background-color: #0B1F5E;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;

    flex-wrap: nowrap;

    overflow-x: auto;
}

.main-nav a {
    color: #FFD700;

    text-decoration: none;

    font-size: 16px;

    font-weight: bold;

    padding: 9px 5px;

    transition: 0.2s;

    white-space: nowrap;

    flex-shrink: 0;
}

.main-nav a:hover {
    color: #ffffff;
}

/* =========================================
   عنوان صفحات الأقسام
========================================= */

.page-title {
    width: 90%;

    max-width: 1100px;

    margin: 30px auto 35px;

    padding: 25px 20px;

    background: linear-gradient(
        135deg,
        #0B1F5E,
        #123B8F
    );

    border-radius: 18px;

    position: relative;

    overflow: hidden;

    text-align: center;

    box-shadow:
        0 8px 20px rgba(11, 31, 94, 0.18);
}

.page-title::after {
    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    background:
        rgba(255, 215, 0, 0.10);

    border-radius: 50%;

    top: -90px;

    left: -50px;
}

.page-title h1 {
    position: relative;

    z-index: 2;

    margin: 0 0 10px;

    color: #ffffff;

    font-size: 38px;

    line-height: 1.3;
}

.page-title h2 {
    position: relative;

    z-index: 2;

    margin: 0;

    color: #FFD700;

    font-size: 21px;

    line-height: 1.5;
}


/* =========================================
   المنتجات
========================================= */

.products {
    width: 94%;

    max-width: 1400px;

    margin: 0 auto 60px;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 20px;
}


/* كارت المنتج */

.product-card {
    min-width: 0;

    background-color: #ffffff;

    padding: 14px;

    border-radius: 15px;

    border: 1px solid #e1e5ec;

    box-shadow:
        0 4px 12px rgba(11, 31, 94, 0.08);

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}

.product-card:hover {
    transform: translateY(-6px);

    border-color: #FFD700;

    box-shadow:
        0 10px 25px rgba(11, 31, 94, 0.16);
}


/* صورة المنتج */

.product-card img {
    width: 100%;

    height: 190px;

    object-fit: contain;

    display: block;

    margin-bottom: 8px;
}


/* اسم المنتج */

.product-card h2 {
    margin: 8px 0;

    color: #0B1F5E;

    font-size: 19px;

    line-height: 1.4;
}


/* وصف المنتج */

.product-card p {
    margin: 5px 0 10px;

    color: #555555;

    font-size: 15px;

    line-height: 1.6;
}


/* السعر */

.product-card strong {
    display: block;

    margin: 8px 0 5px;

    color: #0B1F5E;

    font-size: 22px;

    line-height: 1.4;
}


/* الخط الذهبي */

.product-card::after {
    content: "";

    width: 45px;

    height: 3px;

    margin-top: 8px;

    background-color: #FFD700;

    border-radius: 10px;
}


/* =========================================
   لا توجد نتائج
========================================= */

.no-results {
    grid-column: 1 / -1;

    padding: 50px;

    background-color: #ffffff;

    border-radius: 15px;

    color: #555555;

    font-size: 22px;

    text-align: center;

    box-shadow:
        0 4px 12px rgba(11, 31, 94, 0.08);
}


/* =========================================
   زر تصفح المنتجات
========================================= */

.hero-button {
    display: inline-block;

    padding: 15px 35px;

    background-color: #FFD700;

    color: #0B1F5E;

    border: none;

    border-radius: 8px;

    text-decoration: none;

    font-size: 20px;

    font-weight: bold;

    transition: 0.25s;
}

.hero-button:hover {
    background-color: #0B1F5E;

    color: #FFD700;
}


/* =========================================
   الفوتر
========================================= */

.site-footer {
    width: 100%;

    margin-top: 70px;

    background-color: #0B1F5E;

    color: #ffffff;
}

.footer-container {
    width: 92%;

    max-width: 1250px;

    margin: 0 auto;

    padding: 45px 20px;

    display: grid;

    grid-template-columns:
        1.2fr 1fr 1.2fr;

    gap: 55px;

    align-items: start;
}

.footer-box {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.footer-box h3 {
    margin: 0 0 10px;

    color: #FFD700;

    font-size: 21px;

    line-height: 1.4;
}

.footer-box p {
    margin: 0;

    color: #f2f2f2;

    font-size: 15px;

    line-height: 1.8;
}

.footer-box a {
    color: #FFD700;

    text-decoration: none;

    font-size: 15px;

    transition: 0.2s;
}

.footer-box a:hover {
    color: #ffffff;
}


/* بيانات المحل */

.footer-info {
    align-items: center;

    text-align: center;
}

.footer-logo {
    width: 85px;

    height: 85px;

    object-fit: contain;

    display: block;
}


/* الأقسام */

.footer-categories {
    align-items: center;

    text-align: center;
}


/* أسفل الفوتر */

.footer-bottom {
    width: 100%;

    padding: 16px;

    border-top:
        1px solid rgba(255, 255, 255, 0.15);

    color: #FFD700;

    font-size: 14px;

    text-align: center;
}


/* =========================================
   أجهزة متوسطة
========================================= */

@media (max-width: 1100px) {

    .products {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .main-nav {
        gap: 30px;
    }

}


/* =========================================
   تابلت
========================================= */

@media (max-width: 850px) {

    .products {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 15px;
    }

    .footer-container {
        gap: 35px;
    }

}


/* =========================================
   موبايل
========================================= */

@media (max-width: 800px) {

    .top-bar {
        gap: 12px;

        font-size: 11px;
    }

    .header-main {
        flex-direction: column;

        min-height: auto;

        padding: 15px 0;

        gap: 15px;
    }

    .logo img {
        width: 80px;

        height: 80px;
    }

    .search-box {
        width: 95%;

        max-width: none;
    }

    .header-icons {
        font-size: 25px;
    }

    .main-nav {
        gap: 12px;

        padding: 10px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 35px;

        text-align: center;
    }

    .footer-box {
        align-items: center;
    }

}


/* =========================================
   موبايل صغير
========================================= */

@media (max-width: 600px) {

    .page-title {
        width: 94%;

        margin-top: 20px;

        padding: 20px 12px;
    }

    .page-title h1 {
        font-size: 30px;
    }

    .page-title h2 {
        font-size: 18px;
    }

    .products {
        width: 94%;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .product-card {
        padding: 10px;

        border-radius: 12px;
    }

    .product-card img {
        height: 150px;
    }

    .product-card h2 {
        font-size: 17px;
    }

    .product-card p {
        font-size: 13px;
    }

    .product-card strong {
        font-size: 19px;
    }

    .no-results {
        padding: 35px 20px;

        font-size: 18px;
    }
}
/* حجم صورة خدمة نسخ المفاتيح في الفوتر */
.footer-key-image {
    width: 180px !important;
    height: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 10px !important;
}

/* =========================================
   صفحة نسخ المفاتيح
========================================= */
/* =========================================================
   صفحة نسخ المفاتيح - KEYS PAGE
========================================================= */


/* =========================================================
   الحاوية الرئيسية
========================================================= */

.keys-page {
    width: 92%;
    max-width: 1200px;
    margin: 30px auto 70px;
}


/* =========================================================
   Hero
========================================================= */

.keys-hero {
    width: 92%;
    max-width: 1400px;
    min-height: 420px;

    margin: 30px auto;

    padding: 35px 45px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    background: linear-gradient(
        135deg,
        #071b5c,
        #153f91
    );

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(11, 31, 94, 0.20);
}


/* صورة الـ Hero */

.keys-hero-image {
    width: 48%;

    display: flex;

    align-items: center;

    justify-content: center;
}


.keys-hero-image img {
    width: 100%;

    max-width: 600px;

    height: 340px;

    object-fit: contain;

    display: block;
}


/* محتوى الـ Hero */

.keys-hero-content {
    width: 48%;

    text-align: right;
}


/* الشارة */

.keys-badge {
    display: inline-block;

    padding: 8px 18px;

    margin-bottom: 15px;

    background-color: #FFD700;

    color: #0B1F5E;

    border-radius: 25px;

    font-size: 16px;

    font-weight: bold;
}


/* العنوان */

.keys-hero-content h1 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 46px;

    font-weight: bold;

    line-height: 1.3;
}


/* العنوان الفرعي */

.keys-hero-content h2 {
    margin: 0 0 15px;

    color: #FFD700;

    font-size: 27px;

    line-height: 1.5;
}


/* الوصف */

.keys-hero-content p {
    margin: 0 0 25px;

    color: #f2f2f2;

    font-size: 18px;

    line-height: 1.8;
}


/* أزرار Hero */

.keys-hero-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}


.keys-btn {
    display: inline-block;

    padding: 13px 26px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 17px;

    font-weight: bold;

    transition: 0.25s;
}


.keys-btn:hover {
    transform: translateY(-3px);
}


/* زر أصفر */

.keys-btn-yellow {
    background-color: #FFD700;

    color: #0B1F5E;
}


.keys-btn-yellow:hover {
    background-color: #ffffff;

    color: #0B1F5E;
}


/* زر Outline */

.keys-btn-outline {
    background-color: transparent;

    border: 2px solid #FFD700;

    color: #ffffff;
}


.keys-btn-outline:hover {
    background-color: #FFD700;

    color: #0B1F5E;
}


/* =========================================================
   المميزات
========================================================= */

.keys-features {
    width: 94%;

    max-width: 1400px;

    margin: 25px auto 0;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


.keys-feature {
    background-color: #ffffff;

    padding: 22px;

    border-radius: 16px;

    display: flex;

    align-items: center;

    gap: 15px;

    border: 1px solid #e1e5ec;

    box-shadow:
        0 4px 12px rgba(11, 31, 94, 0.08);

    transition: 0.25s;
}


.keys-feature:hover {
    transform: translateY(-4px);

    border-color: #FFD700;

    box-shadow:
        0 8px 20px rgba(11, 31, 94, 0.12);
}


.keys-feature-icon {
    width: 65px;

    height: 65px;

    min-width: 65px;

    border-radius: 50%;

    background-color: #0B1F5E;

    color: #FFD700;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;
}


.keys-feature h3 {
    margin: 0 0 7px;

    color: #0B1F5E;

    font-size: 23px;

    font-weight: bold;
}


.keys-feature p {
    margin: 0;

    color: #555;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   قسم المنتجات
========================================================= */

.keys-products {
    width: 94%;

    max-width: 1400px;

    margin: 60px auto;
}


/* عنوان القسم */

.keys-section-title {
    margin: 0;

    color: #0B1F5E;

    font-size: 40px;

    font-weight: bold;

    text-align: center;
}


.keys-section-title::after {
    content: "";

    display: block;

    width: 80px;

    height: 4px;

    margin: 12px auto;

    background-color: #FFD700;

    border-radius: 10px;
}


/* وصف القسم */

.keys-section-subtitle {
    margin: 0 0 35px;

    color: #555;

    font-size: 18px;

    text-align: center;
}


/* =========================================================
   شبكة المنتجات
========================================================= */

.keys-product-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   كارت المنتج
========================================================= */

.keys-product-card {
    background-color: #ffffff;

    padding: 14px;

    border-radius: 15px;

    border: 1px solid #e1e5ec;

    box-shadow:
        0 4px 12px rgba(11, 31, 94, 0.08);

    text-align: center;

    transition: 0.25s;

    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 0;
}


.keys-product-card:hover {
    transform: translateY(-6px);

    border-color: #FFD700;

    box-shadow:
        0 10px 25px rgba(11, 31, 94, 0.16);
}


/* =========================================================
   صورة المنتج
========================================================= */

.keys-product-image {
    width: 100%;

    height: 190px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 10px;

    overflow: hidden;
}


.keys-product-image img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================================
   اسم المنتج
========================================================= */

.keys-product-card h3 {
    margin: 10px 0;

    color: #0B1F5E;

    font-size: 24px;

    font-weight: bold;

    line-height: 1.4;
}


/* =========================================================
   وصف المنتج
========================================================= */

.keys-product-card p {
    margin: 0 0 8px;

    color: #555;

    font-size: 15px;

    font-weight: normal;

    line-height: 1.7;
}


/* =========================================================
   سعر المنتج
========================================================= */

.keys-product-card strong {
    display: block;

    color: #0B1F5E;

    font-size: 22px;

    font-weight: bold;

    margin: 10px 0 5px;
}


/* الخط الأصفر أسفل السعر */

.keys-product-card::after {
    content: "";

    width: 55px;

    height: 3px;

    background-color: #FFD700;

    border-radius: 10px;

    margin-top: 7px;
}


/* =========================================================
   CTA - التواصل
========================================================= */

.keys-cta {
    width: 94%;

    max-width: 1400px;

    margin: 50px auto;

    padding: 30px 35px;

    background-color: #ffffff;

    border: 1px solid #e1e5ec;

    border-radius: 18px;

    box-shadow:
        0 4px 12px rgba(11, 31, 94, 0.08);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* نص CTA */

.keys-cta-text {
    text-align: right;
}


.keys-cta-text h2 {
    margin: 0 0 8px;

    color: #0B1F5E;

    font-size: 28px;

    font-weight: bold;
}


.keys-cta-text p {
    margin: 0;

    color: #555;

    font-size: 17px;

    line-height: 1.7;
}


/* أزرار CTA */

.keys-cta-buttons {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}


/* زر أزرق */

.keys-btn-blue {
    background-color: #0B1F5E;

    color: #ffffff;
}


.keys-btn-blue:hover {
    background-color: #123B8F;

    color: #ffffff;
}


/* =========================================================
   صورة خدمة المفاتيح في الفوتر
========================================================= */

.footer-key-image {
    width: 160px;

    max-width: 160px;

    height: auto;

    object-fit: contain;

    display: block;

    margin: 0 auto 10px;
}


/* =========================================================
   شاشات متوسطة
========================================================= */

@media (max-width: 1100px) {

    .keys-product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .keys-hero {
        padding: 30px;
    }


    .keys-hero-content h1 {
        font-size: 40px;
    }


    .keys-hero-content h2 {
        font-size: 24px;
    }

}


/* =========================================================
   التابلت
========================================================= */

@media (max-width: 850px) {

    .keys-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .keys-hero {
        flex-direction: column;

        text-align: center;

        padding: 30px 25px;
    }


    .keys-hero-image,
    .keys-hero-content {
        width: 100%;
    }


    .keys-hero-image img {
        height: 260px;
    }


    .keys-hero-content {
        text-align: center;
    }


    .keys-hero-buttons {
        justify-content: center;
    }


    .keys-features {
        grid-template-columns: 1fr;
    }


    .keys-feature {
        justify-content: center;
    }


    .keys-cta {
        flex-direction: column;

        text-align: center;
    }


    .keys-cta-text {
        text-align: center;
    }


    .keys-cta-buttons {
        justify-content: center;
    }

}


/* =========================================================
   الموبايل
========================================================= */

@media (max-width: 600px) {

    .keys-page {
        width: 94%;
    }


    .keys-hero {
        width: 94%;

        min-height: auto;

        padding: 25px 15px;

        border-radius: 15px;
    }


    .keys-hero-image img {
        height: 210px;
    }


    .keys-hero-content h1 {
        font-size: 30px;
    }


    .keys-hero-content h2 {
        font-size: 20px;
    }


    .keys-hero-content p {
        font-size: 15px;
    }


    .keys-btn {
        padding: 11px 18px;

        font-size: 15px;
    }


    .keys-features {
        width: 94%;
    }


    .keys-feature {
        padding: 17px;

        text-align: right;
    }


    .keys-feature-icon {
        width: 55px;

        height: 55px;

        min-width: 55px;

        font-size: 25px;
    }


    .keys-feature h3 {
        font-size: 20px;
    }


    .keys-feature p {
        font-size: 14px;
    }


    .keys-products {
        width: 94%;

        margin-top: 45px;
    }


    .keys-section-title {
        font-size: 30px;
    }


    .keys-section-subtitle {
        font-size: 15px;
    }


    .keys-product-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .keys-product-image {
        height: 200px;
    }


    .keys-product-card h3 {
        font-size: 24px;
    }


    .keys-product-card p {
        font-size: 15px;
    }


    .keys-product-card strong {
        font-size: 21px;
    }


    .keys-cta {
        width: 94%;

        padding: 25px 18px;
    }


    .keys-cta-text h2 {
        font-size: 24px;
    }


    .keys-cta-text p {
        font-size: 15px;
    }


    .footer-key-image {
        width: 120px;

        max-width: 120px;
    }

}


/* =========================================================
   موبايل صغير
========================================================= */

@media (max-width: 400px) {

    .keys-hero-content h1 {
        font-size: 27px;
    }


    .keys-hero-content h2 {
        font-size: 18px;
    }


    .keys-section-title {
        font-size: 27px;
    }


    .keys-product-card h3 {
        font-size: 22px;
    }

}