﻿:root {
    --ink: #07080f;
    --blue: #1648d4;
    --blue2: #0c30a8;
    --cyan: #00d4ff;
    --gold: #f0a500;
    --green: #25d366;
    --white: #fff;
    --gray: #f4f6fb;
    --border: #e4e8f3;
    --muted: #64748b;
    --r: 12px;
    --nav-h: 62px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: #fff;
    color: var(--ink);
    direction: rtl;
    overflow-x: hidden;
    padding-top: var(--nav-h);
}

/* ══════════════════════════════════
       NAVBAR
    ══════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--nav-h);
    z-index: 900;
    background: rgba(7,8,15,.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background .3s;
}

    .nav.scrolled {
        background: rgba(7,8,15,.97);
        box-shadow: 0 4px 28px rgba(0,0,0,.3);
    }

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* hamburger */
.nav-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}

    .nav-menu-btn:hover {
        background: rgba(255,255,255,.12);
    }

/* logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-right: auto;
}

    .nav-logo img {
        height: 34px;
        width: 34px;
        border-radius: 8px;
        object-fit: contain;
    }

.nav-logo-text {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.nav-logo-sub {
    font-size: 10px;
    color: rgba(255,255,255,.45);
}

/* search */
.nav-search-wrap {
    position: relative;
    flex: 1;
    max-width: 320px;
}

    .nav-search-wrap i {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255,255,255,.3);
        font-size: 13px;
        pointer-events: none;
    }

.nav-search {
    width: 100%;
    height: 36px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-size: 13px;
    padding: 0 32px 0 12px;
    outline: none;
    transition: background .2s, border-color .2s;
}

    .nav-search::placeholder {
        color: rgba(255,255,255,.3);
    }

    .nav-search:focus {
        background: rgba(255,255,255,.13);
        border-color: var(--blue);
    }

/* right icons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: rgba(255,255,255,.7);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    transition: color .2s, background .2s;
}

    .nav-ico:hover {
        color: #fff;
        background: rgba(255,255,255,.08);
    }

    .nav-ico.auth-ok {
        color: #4ade80;
    }

.cart-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes popIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    overflow: hidden;
    direction: rtl;
    width: 300px;
    height: 100%;
    background-color: #333;
    z-index: 960;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    scrollbar-color: red;
    scrollbar-arrow-color: red;
    scrollbar-width: thin;
    direction: ltr;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--ink);
    border-left: 1px solid rgba(255,255,255,.08);
    z-index: 960;
    display: flex;
    flex-direction: column;
    transition: right .32s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}

    .drawer.open {
        right: 0;
    }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .drawer-logo img {
        height: 32px;
        border-radius: 7px;
    }

    .drawer-logo span {
        font-size: 14px;
        font-weight: 800;
        color: #fff;
    }

.drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    border: none;
    color: rgba(255,255,255,.7);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

    .drawer-close:hover {
        background: rgba(255,255,255,.14);
    }

.drawer-body {
    flex: 1;
    padding: 12px 10px;
    direction: rtl;
}

.drawer-section {
    margin-bottom: 6px;
}

.drawer-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    padding: 8px 10px 4px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s, color .18s;
}

    .drawer-item i {
        font-size: 16px;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }

    .drawer-item:hover {
        background: rgba(255,255,255,.07);
        color: #fff;
    }

    .drawer-item.active {
        background: rgba(22,72,212,.2);
        color: var(--cyan);
    }

/* services accordion */
.drawer-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
}

    .drawer-acc-head:hover {
        background: rgba(255,255,255,.07);
        color: #fff;
    }

    .drawer-acc-head .left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .drawer-acc-head .left i {
            font-size: 16px;
            width: 20px;
            text-align: center;
        }

.drawer-acc-arr {
    font-size: 11px;
    transition: transform .25s;
    color: rgba(255,255,255,.3);
}

.drawer-acc.open .drawer-acc-arr {
    transform: rotate(180deg);
}

.drawer-sub {
    display: none;
    padding-right: 16px;
}

.drawer-acc.open .drawer-sub {
    display: block;
}

.drawer-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.55);
    font-size: 13px;
    text-decoration: none;
    transition: background .15s, color .15s;
}

    .drawer-sub-item:hover {
        background: rgba(255,255,255,.05);
        color: rgba(255,255,255,.85);
    }

    .drawer-sub-item i {
        font-size: 13px;
        width: 16px;
        text-align: center;
    }

.drawer-footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}

.drawer-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background .2s;
}

    .drawer-wa:hover {
        background: #1da855;
        color: #fff;
    }

.drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,59,92,.1);
    color: #ff3b5c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
}

    .drawer-logout:hover {
        background: rgba(255,59,92,.18);
    }

/* ── TOP STRIP (desktop secondary nav) ── */
.top-strip {
    background: var(--gray);
    border-bottom: 1px solid var(--border);
    padding: 7px 0;
    display: none;
}

@media (min-width: 768px) {
    .top-strip {
        display: block;
    }
}

.top-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}

.strip-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.strip-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color .18s;
}

    .strip-link:hover {
        color: var(--blue);
    }

    .strip-link.sale {
        color: #e0244a;
        font-weight: 800;
    }

.strip-contact {
    display: flex;
    gap: 14px;
    align-items: center;
}

.strip-tel {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
}

    .strip-tel i {
        color: var(--blue);
    }

/* ══════════════════════════════════
       MAIN BODY
    ══════════════════════════════════ */
.site-body {
    min-height: 60vh;
}

/* ══════════════════════════════════
       FOOTER
    ══════════════════════════════════ */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.65);
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}

    /* subtle grid */
    .footer::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(22,72,212,.1) 1px, transparent 1px);
        background-size: 28px 28px;
        pointer-events: none;
    }

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* brand column */
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

    .footer-brand-logo img {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

.footer-brand-name {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
}

.footer-about {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255,255,255,.5);
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.fsoc {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}

    .fsoc:hover {
        background: var(--blue);
        color: #fff;
        transform: translateY(-3px);
        border-color: transparent;
    }

/* commercial reg */
.footer-cr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 8px 12px;
}

    .footer-cr img {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
    }

.footer-cr-label {
    font-size: 11px;
    color: rgba(255,255,255,.4);
}

.footer-cr-val {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

/* links column */
.footer-col-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

    .footer-links a {
        font-size: 13px;
        color: rgba(255,255,255,.5);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 7px;
        transition: color .18s, gap .18s;
    }

        .footer-links a i {
            font-size: 12px;
            color: var(--blue);
            flex-shrink: 0;
        }

        .footer-links a:hover {
            color: rgba(255,255,255,.9);
            gap: 10px;
        }

/* contact column */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.fci-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.fci-label {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    margin-bottom: 2px;
}

.fci-val {
    color: rgba(255,255,255,.75);
    font-weight: 600;
}

/* payments + bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 20px 0 100px;
}

@media (min-width: 640px) {
    .footer-bottom {
        padding-bottom: 28px;
    }
   
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .footer-payments img {
        height: 28px;
        border-radius: 6px;
        background: #fff;
        padding: 2px 6px;
        border: 1px solid rgba(255,255,255,.1);
    }

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,.3);
}

/* ══════════════════════════════════
       FLOATING WHATSAPP
    ══════════════════════════════════ */
.wa-float {
    position: fixed;
    bottom: 88px;
    left: 18px;
    z-index: 800;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(37,211,102,.5);
    animation: waBounce 2.5s ease-in-out infinite;
}

@keyframes waBounce {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 24px rgba(37,211,102,.45)
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 36px rgba(37,211,102,.65)
    }
}

.wa-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.wa-float:hover .wa-tooltip {
    opacity: 1;
}

/* ══════════════════════════════════
       MOBILE BOTTOM BAR
    ══════════════════════════════════ */
.mob-bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 800;
    background: rgba(7,8,15,.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 6px 10px;
    gap: 4px;
}

@media (min-width: 640px) {
    .mob-bottom {
        display: none;
    }
}

.mbb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    border-radius: 10px;
    color: rgba(255,255,255,.45);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s, background .2s;
    position: relative;
}

    .mbb-item i {
        font-size: 20px;
    }

    .mbb-item.active {
        color: var(--blue);
        background: rgba(22,72,212,.12);
    }

    .mbb-item.wa-item {
        color: #25d366;
    }

.mbb-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 14px);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(7,8,15,.95);
}

/* ══════════════════════════════════
       SCROLL PROGRESS BAR
    ══════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    left: 0;
    height: 2px;
    z-index: 899;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    transform-origin: right; /* ← من اليمين */
    transform: scaleX(0);
    transition: transform .1s linear;
}

/* ══════════════════════════════════
       PAGE TRANSITION
    ══════════════════════════════════ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    transition: opacity .5s ease, visibility .5s ease;
}

    .page-loader.done {
        opacity: 0;
        visibility: hidden;
    }

.loader-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: .8
    }

    50% {
        transform: scale(1.1);
        opacity: 1
    }
}

.loader-bar-wrap {
    width: 140px;
    height: 3px;
    background: rgba(255,255,255,.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 2px;
    animation: loaderBar 1.4s ease-in-out infinite;
}

@keyframes loaderBar {
    0% {
        width: 0;
        margin-right: 100%
    }

    50% {
        width: 60%;
        margin-right: 40%
    }

    100% {
        width: 0;
        margin-right: 0
    }
}

