/* =====================================================
   YSGT Security - Complete Stylesheet
   ===================================================== */

:root {
    --ink: #1B4F9C;
    --ink-dark: #143D7A;
    --ink-soft: #3D6DB3;
    --muted: #8a8a8e;
    --line: #e6ecf5;
    --bg: #ffffff;
    --bg-warm: #f4f7fc;
    --blue-soft: #eaf1fb;
    --gold: #d4a13a;
    --radius: 20px;
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a { text-decoration: none; transition: all 0.3s var(--ease); color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================
   Navbar
   ===================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
}
.navbar-brand i {
    font-size: 1.4rem;
    color: var(--ink);
}
.navbar-brand img { height: 34px; width: auto; }

/* القائمة الرئيسية */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu > li {
    position: relative;
    list-style: none;
}
.nav-menu > li > a {
    display: inline-block;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--ink);
    background: var(--blue-soft);
}

/* القائمة المنسدلة — تظهر عند التمرير */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 15px 50px rgba(27, 79, 156, 0.15);
    border: 1px solid var(--line);
    list-style: none;
    margin: 8px 0 0;

    /* مخفية افتراضياً */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}

/* تظهر عند التمرير على الأب */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}
.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.88rem;
    color: var(--ink-soft);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: var(--blue-soft);
    color: var(--ink);
}

.nav-cta {
    background: var(--ink);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 100px;
}
.nav-cta:hover { background: var(--ink-dark); color: #fff; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--ink);
    cursor: pointer;
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    background: var(--bg);
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--blue-soft);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-eyebrow i { font-size: 0.6rem; }
.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.045em;
    color: var(--ink);
    margin-bottom: 22px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 em {
    font-style: normal;
    color: var(--ink-soft);
    font-weight: 400;
}
.hero-desc {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 40px;
}
.hero-cta {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 70px;
}
.btn-dark {
    background: var(--ink);
    color: #fff;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}
.btn-dark:hover {
    background: var(--ink-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-soft {
    background: var(--blue-soft);
    color: var(--ink);
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}
.btn-soft:hover {
    background: #dce7f7;
    color: var(--ink);
}

.hero-visual {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}
.hero-frame {
    background: linear-gradient(135deg, var(--blue-soft) 0%, #dbe6f7 100%);
    border-radius: 32px;
    padding: 60px 40px;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 800px;
}
.pillar {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(27, 79, 156, 0.06);
    transition: all 0.4s var(--ease);
}
.pillar:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(27, 79, 156, 0.12);
}
.pillar i {
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 16px;
    display: block;
}
.pillar h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}
.pillar p {
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0;
}

/* =====================================================
   Sections
   ===================================================== */
.section { padding: 100px 0; }
.section-warm { background: var(--bg-warm); }
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 14px;
}
.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 16px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.6;
}

/* =====================================================
   Stats Strip
   ===================================================== */
.stats-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 60px 0;
    background: var(--bg);
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.stat-cell {
    padding: 20px 12px;
    border-left: 1px solid var(--line);
}
.stat-cell:first-child { border-left: none; }
.stat-cell .num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}
.stat-cell .lbl {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

/* =====================================================
   Category Cards
   ===================================================== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cat-card {
    background: var(--bg-warm);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.4s var(--ease);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    border: 1px solid transparent;
}
.cat-card:hover {
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 20px 50px rgba(27, 79, 156, 0.08);
    transform: translateY(-4px);
}
.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 24px;
    transition: all 0.4s var(--ease);
}
.cat-card:hover .cat-icon {
    background: var(--ink);
    color: #fff;
}
.cat-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
}
.cat-card p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}
.cat-arrow {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--ink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cat-arrow i { transition: transform 0.3s var(--ease); }
.cat-card:hover .cat-arrow i { transform: translateX(-4px); }

/* =====================================================
   Product Cards
   ===================================================== */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.prod-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
}
.prod-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(27, 79, 156, 0.12);
    border-color: transparent;
}
.prod-img {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-no-img { font-size: 3rem; color: #b8c5da; }
.prod-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}
.tag-new { background: var(--ink); color: #fff; }
.tag-featured { background: var(--gold); color: #fff; }

.prod-body {
    padding: 20px 18px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.prod-cat {
    font-size: 0.72rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-weight: 600;
}
.prod-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 44px;
}
.prod-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.prod-price .lbl {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

/* =====================================================
   Features
   ===================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-box {
    padding: 36px 28px;
    border-radius: 24px;
    background: var(--bg-warm);
    transition: all 0.4s var(--ease);
}
.feature-box:hover {
    background: #fff;
    box-shadow: 0 20px 50px rgba(27, 79, 156, 0.08);
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 22px;
    transition: all 0.4s var(--ease);
}
.feature-box:hover .feature-icon {
    background: var(--ink);
    color: #fff;
}
.feature-box h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 10px;
}
.feature-box p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}

/* =====================================================
   CTA
   ===================================================== */
.cta {
    padding: 100px 0;
    text-align: center;
    background: var(--blue-soft);
    border-radius: 40px;
    margin: 0 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.cta h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 18px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
.cta p {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.cta-actions {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.cta .btn-soft { background: #fff; }
.cta .btn-soft:hover { box-shadow: 0 10px 25px rgba(27, 79, 156, 0.12); }

/* =====================================================
   Page Head
   ===================================================== */
.page-head {
    padding: 80px 0 50px;
    text-align: center;
}
.page-head .crumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 18px;
}
.page-head .crumbs a { color: var(--muted); }
.page-head .crumbs a:hover { color: var(--ink); }
.page-head .crumbs i { font-size: 0.55rem; opacity: 0.5; }
.page-head h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.08;
    color: var(--ink);
    margin-bottom: 14px;
}
.page-head p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   Product Details
   ===================================================== */
.pd-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 40px 0 80px;
    align-items: start;
}
.pd-gallery { position: sticky; top: 90px; }
.pd-main {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-warm);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-empty { font-size: 5rem; color: #b8c5da; }
.pd-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.pd-thumb {
    aspect-ratio: 1;
    background: var(--bg-warm);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover,
.pd-thumb.active { border-color: var(--ink); }

.pd-info { padding-top: 12px; }
.pd-cat {
    font-size: 0.78rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 12px;
}
.pd-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 24px;
}
.pd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.pd-chip {
    font-size: 0.8rem;
    color: var(--ink);
    padding: 6px 14px;
    background: var(--blue-soft);
    border-radius: 100px;
    font-weight: 600;
}
.pd-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    padding: 22px 0;
    margin-bottom: 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.pd-price small {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
    margin-right: 6px;
}
.pd-short {
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 28px;
}
.pd-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.pd-actions .btn-dark { flex: 1; justify-content: center; padding: 15px 24px; }
.pd-wa {
    background: #25d366;
    color: #fff;
    padding: 15px 22px;
    border-radius: 100px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}
.pd-wa:hover { background: #1da851; color: #fff; }

.pd-tabs { margin-top: 36px; }
.pd-tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}
.pd-tab {
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s var(--ease);
}
.pd-tab.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}
.pd-panel { display: none; font-size: 0.98rem; line-height: 1.75; color: var(--ink-soft); }
.pd-panel.active { display: block; }

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row strong { font-weight: 600; color: var(--ink); }
.spec-row span { color: var(--muted); text-align: left; }

/* =====================================================
   Filters
   ===================================================== */
.filters-wrap {
    background: var(--bg-warm);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 40px;
}
.filters-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}
.input, .select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
    transition: all 0.3s var(--ease);
}
.input:focus, .select:focus {
    outline: none;
    border-color: var(--ink);
}
.input::placeholder { color: var(--muted); }
.btn-search {
    padding: 12px 26px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    white-space: nowrap;
}
.btn-search:hover { background: var(--ink-dark); }

/* =====================================================
   Empty
   ===================================================== */
.empty {
    text-align: center;
    padding: 100px 30px;
    background: var(--bg-warm);
    border-radius: 24px;
}
.empty i {
    font-size: 3.5rem;
    color: #b8c5da;
    margin-bottom: 20px;
}
.empty h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.empty p { color: var(--muted); margin-bottom: 24px; }

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.75);
    padding: 70px 0 30px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
}
.footer-brand i { font-size: 1.2rem; }
.footer-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 320px;
}
.footer h6 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
}
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 12px; }
.footer-list a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
}
.footer-list a:hover { color: #fff; }
.footer-contact { list-style: none; }
.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    align-items: flex-start;
}
.footer-contact i {
    color: rgba(255,255,255,0.5);
    margin-top: 5px;
    font-size: 0.8rem;
    width: 12px;
}
.footer-bottom {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: #fff; }

/* =====================================================
   WhatsApp Float
   ===================================================== */
.wa-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}
.wa-float:hover {
    transform: scale(1.08);
    background: #1da851;
    color: #fff;
}

/* =====================================================
   Toast
   ===================================================== */
.toast-wrap {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}
.toast-box {
    min-width: 300px;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(27, 79, 156, 0.15);
}
.toast-success { background: var(--ink); color: #fff; }
.toast-error { background: #dc2626; color: #fff; }
.toast-warning { background: var(--gold); color: #fff; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.2rem; }
    .section-header h2 { font-size: 2.2rem; }
    .page-head h1 { font-size: 2.6rem; }
    .prod-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .navbar-inner { height: 60px; }
    .nav-menu { display: none; }
    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        padding: 16px 24px 20px;
        box-shadow: 0 20px 40px rgba(27, 79, 156, 0.08);
        gap: 4px;
        border-top: 1px solid var(--line);
    }
    .mobile-toggle { display: block; }
    .nav-cta { display: none; }

    /* القائمة المنسدلة على الجوال */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        margin: 4px 0 0;
        display: none;
        pointer-events: auto;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 2.4rem; }
    .hero-desc { font-size: 1rem; }
    .hero-pillars { grid-template-columns: 1fr; gap: 12px; }
    .hero-frame { padding: 40px 20px; min-height: auto; }

    .section { padding: 65px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 0.98rem; }

    .page-head { padding: 55px 0 35px; }
    .page-head h1 { font-size: 2rem; }

    .cat-grid { grid-template-columns: 1fr; }
    .cat-card { min-height: auto; padding: 32px 26px; }

    .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .prod-body { padding: 16px 14px 18px; }

    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .stat-cell { border-left: none; border-top: 1px solid var(--line); padding: 25px 12px; }
    .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-top: none; }
    .stat-cell:nth-child(even) { border-right: 1px solid var(--line); }
    .stat-cell .num { font-size: 1.9rem; }

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

    .cta { padding: 60px 24px; margin: 0 16px; border-radius: 28px; }
    .cta h2 { font-size: 2rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .pd-wrap { grid-template-columns: 1fr; gap: 40px; }
    .pd-gallery { position: static; }
    .pd-title { font-size: 1.7rem; }
    .pd-price { font-size: 1.5rem; }

    .filters-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .section-header h2 { font-size: 1.5rem; }
    .prod-grid { grid-template-columns: 1fr; }
    .cta h2 { font-size: 1.6rem; }
    .pd-thumbs { grid-template-columns: repeat(4, 1fr); }
    .stat-cell .num { font-size: 1.6rem; }
}



/* =====================================================
   NAVBAR DROPDOWN - يعمل عند التمرير
   ===================================================== */

.navbar .nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .nav-menu > li {
    position: relative;
    list-style: none;
}

/* الرابط الرئيسي */
.navbar .nav-menu > li > a {
    display: inline-block;
    color: #3D6DB3;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar .nav-menu > li > a:hover,
.navbar .nav-menu > li > a.active {
    color: #1B4F9C;
    background: #eaf1fb;
}

/* ========== القائمة المنسدلة ========== */
.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 15px 50px rgba(27, 79, 156, 0.15);
    border: 1px solid #e6ecf5;
    list-style: none;
    margin: 8px 0 0;

    /* مخفية افتراضياً */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 9999;
}

/* ✅ تظهر عند التمرير */
.navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.navbar .dropdown-menu li {
    list-style: none;
    margin: 0;
}

.navbar .dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.88rem;
    color: #3D6DB3;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar .dropdown-menu a:hover {
    background: #eaf1fb;
    color: #1B4F9C;
}

/* خط فاصل قبل "جميع المنتجات" */
.navbar .dropdown-menu li:last-child {
    border-top: 1px solid #e6ecf5;
    margin-top: 6px;
    padding-top: 6px;
}

/* ========== الجوال ========== */
@media (max-width: 768px) {
    .navbar .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        margin: 4px 0 0;
        display: none;
        pointer-events: auto;
    }
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
    }
}