/* ==================================================
   قائمة اختيار الدولة
================================================== */

.country-picker {
    position: relative;
    z-index: 110;
}

.country-picker summary {
    display: flex;
    width: 50px;
    height: 40px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    list-style: none;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.country-picker summary::-webkit-details-marker {
    display: none;
}

.selected-country-flag {
    font-size: 19px;
    line-height: 1;
}

.country-arrow {
    width: 12px;
    height: 12px;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.country-picker[open] .country-arrow {
    transform: rotate(180deg);
}

.country-menu {
    position: absolute;
    top: 50px;
    inset-inline-end: 0;
    width: 190px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 22px 60px rgba(38, 4, 58, 0.18);
}

.country-menu button {
    display: flex;
    width: 100%;
    padding: 10px 11px;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    text-align: start;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
}

.country-menu button:hover,
.country-menu button.active {
    color: var(--p);
    background: #f3eafb;
}

.country-menu button span {
    font-size: 19px;
}

.country-menu button strong {
    font-family: Cairo, Manrope, sans-serif;
    font-size: 12px;
    font-weight: 700;
}


/* ==================================================
   قائمة الهاتف
================================================== */

.mobile-menu {
    position: relative;
    display: none;
}

.mobile-menu summary {
    display: grid;
    width: 42px;
    height: 42px;
    list-style: none;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    place-content: center;
    gap: 4px;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu summary span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 4px;
}

.mobile-links {
    position: absolute;
    top: 52px;
    inset-inline-end: 0;
    z-index: 100;
    width: min(280px, calc(100vw - 26px));
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(38, 4, 58, 0.15);
}

.mobile-links a {
    display: block;
    padding: 11px 13px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
}

.mobile-links a:hover {
    color: var(--p);
    background: #f3eafb;
}


/* ==================================================
   أيقونة السلة
================================================== */

.cart {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--p);
}

.cart-label {
    font-size: 13px;
}


/* ==================================================
   منطقة شعار المقدمة
================================================== */

.hero-art {
    position: relative !important;
    display: grid !important;
    isolation: isolate;
    overflow: hidden;
    background: transparent !important;
    place-items: center !important;
}

.hero-art::before {
    display: none !important;
    content: none !important;
}

.hero-art img {
    position: relative;
    z-index: 3;
    margin: auto;
    filter: drop-shadow(
        0 24px 28px rgba(55, 10, 82, 0.22)
    ) !important;
}


/* ==================================================
   الدوائر المتحركة
================================================== */

.hero-art .orbit {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    height: auto !important;
    margin: auto !important;
    pointer-events: none;
    background: transparent;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    transform-origin: center center !important;
    z-index: 0;
}

/* الدائرة الخارجية */
.hero-art .orbit.one {
    width: min(440px, 90%) !important;
    border: 1px solid rgba(96, 38, 158, 0.26);
    box-shadow:
        0 0 45px rgba(146, 40, 245, 0.09),
        inset 0 0 35px rgba(96, 38, 158, 0.04);
    animation:
        centered-circle-clockwise
        18s
        linear
        infinite !important;
}

/* الدائرة الداخلية */
.hero-art .orbit.two {
    width: min(330px, 68%) !important;
    border: 1px dashed rgba(146, 40, 245, 0.4);
    background: radial-gradient(
        circle,
        rgba(146, 40, 245, 0.07) 0%,
        rgba(96, 38, 158, 0.025) 48%,
        transparent 72%
    );
    box-shadow:
        0 0 36px rgba(96, 38, 158, 0.1);
    animation:
        centered-circle-counter
        12s
        linear
        infinite !important;
}

/* نقطة الدائرة الخارجية */
.hero-art .orbit.one::before {
    content: "";
    position: absolute;
    top: 7%;
    left: 23%;
    width: 11px;
    height: 11px;
    background: linear-gradient(
        135deg,
        #c56eff,
        #60269e
    );
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow:
        0 0 0 6px rgba(146, 40, 245, 0.1),
        0 0 24px rgba(146, 40, 245, 0.7);
}

/* نقطة الدائرة الداخلية */
.hero-art .orbit.two::before {
    content: "";
    position: absolute;
    right: 4%;
    bottom: 28%;
    width: 9px;
    height: 9px;
    background: #60269e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow:
        0 0 0 5px rgba(96, 38, 158, 0.11),
        0 0 20px rgba(96, 38, 158, 0.6);
}

/* لمعة داخلية */
.hero-art .orbit.two::after {
    content: "";
    position: absolute;
    top: 14%;
    left: 14%;
    width: 18%;
    height: 18%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(182, 103, 255, 0.25) 35%,
        transparent 72%
    );
    border-radius: 50%;
    filter: blur(5px);
}


/* ==================================================
   حركة الدوائر
================================================== */

@keyframes centered-circle-clockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes centered-circle-counter {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}


/* ==================================================
   التابلت
================================================== */

@media (max-width: 980px) {
    .mobile-menu {
        display: block;
    }

    .nav {
        gap: 10px;
    }

    .nav-actions {
        margin-inline-start: auto;
        gap: 7px;
    }

    .hero-grid {
        gap: 12px;
    }

    .hero-grid > div:first-child {
        padding-top: 18px;
    }

    .hero-art {
        order: 2;
    }

    .section-head {
        align-items: start;
    }

    .split {
        gap: 35px;
    }
}


/* ==================================================
   الهاتف
================================================== */

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    .container {
        width: calc(100% - 30px);
    }

    header {
        height: 66px;
    }

    .nav {
        gap: 5px;
    }

    .brand img {
        width: 42px;
        height: 34px;
    }

    .brand strong {
        display: none;
    }

    .nav-actions {
        gap: 5px;
    }

    .lang,
    .cart {
        height: 40px;
    }

    .lang {
        padding: 0 10px;
    }

    /* الدولة */
    .country-picker summary {
        width: 46px;
        height: 40px;
        padding: 0 5px;
    }

    .selected-country-flag {
        font-size: 18px;
    }

    .country-menu {
        position: fixed;
        top: 76px;
        right: 15px;
        left: 15px;
        width: auto;
        max-height: calc(100vh - 95px);
        overflow-y: auto;
    }

    /* السلة */
    .cart {
        padding: 0 8px;
        font-size: initial;
    }

    .cart-label {
        display: none;
    }

    .cart-icon {
        width: 20px;
        height: 20px;
    }

    .cart b {
        margin-inline-start: 0;
        font-size: 11px;
    }

    /* مقدمة الموقع */
    .hero {
        min-height: auto;
        padding: 40px 0 52px;
    }

    .hero-grid {
        gap: 8px;
    }

    .hero h1 {
        margin: 12px 0 14px;
        font-size: 34px;
        line-height: 1.2;
    }

    .hero p,
    .page-hero p,
    .section-head p,
    .split p {
        font-size: 14px;
        line-height: 1.8;
    }

    .eyebrow {
        font-size: 11px;
    }

    .actions {
        margin: 22px 0 18px;
        gap: 8px;
    }

    .btn {
        min-height: 46px;
        padding: 0 17px;
        font-size: 12px;
    }

    .trust {
        gap: 7px;
    }

    .trust span {
        padding: 7px 9px;
        font-size: 10px;
    }

    /* الشعار والدوائر */
    .hero-art {
        height: 300px;
    }

    .hero-art img {
        width: min(270px, 80%);
        filter: drop-shadow(
            0 20px 24px rgba(55, 10, 82, 0.2)
        ) !important;
    }

    .hero-art .orbit.one {
        width: 280px !important;
    }

    .hero-art .orbit.two {
        width: 205px !important;
    }

    .hero-art .orbit.one::before {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }

    .hero-art .orbit.two::before {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }

    /* الأقسام */
    .section {
        padding: 58px 0;
    }

    .section h2 {
        font-size: 29px;
        line-height: 1.25;
    }

    .section-head {
        display: block;
        margin-bottom: 24px;
    }

    .section-head p {
        margin-top: 8px;
    }

    /* البطاقات */
    .cards {
        gap: 12px;
    }

    .card {
        min-height: 0;
        padding: 18px;
        border-radius: 17px;
    }

    .card .icon {
        width: 38px;
        height: 38px;
        margin-bottom: 15px;
    }

    .card h3 {
        margin: 7px 0;
        font-size: 17px;
    }

    .card p {
        margin: 4px 0 18px;
        font-size: 12px;
        line-height: 1.7;
    }

    .card-foot strong {
        font-size: 11px;
    }

    .card-foot button {
        width: 38px;
        height: 38px;
    }

    /* لماذا نحن */
    .purple {
        padding: 60px 0;
    }

    .split {
        gap: 26px;
    }

    .metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .metrics div {
        padding: 18px;
        border-radius: 15px;
    }

    .metrics b {
        font-size: 26px;
    }

    .metrics span {
        font-size: 10px;
    }

    /* خطوات الطلب */
    .steps {
        gap: 10px;
        margin: 25px 0 45px;
    }

    .steps div {
        padding: 17px;
        border-radius: 14px;
    }

    /* دعوة الإجراء */
    .cta {
        padding: 28px 22px;
        gap: 15px;
        border-radius: 21px;
    }

    .cta h2 {
        font-size: 27px;
    }

    /* الصفحات الداخلية */
    .page-hero {
        padding: 60px 0;
    }

    .page-hero.compact {
        padding: 40px 0;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .placeholder {
        gap: 28px;
    }

    .logo-panel {
        padding: 32px;
        border-radius: 20px;
    }

    /* السلة والنموذج */
    .checkout-grid {
        gap: 16px;
    }

    .cart-list,
    .checkout {
        padding: 18px;
        border-radius: 17px;
    }

    /* واتساب */
    .whatsapp {
        bottom: 16px;
        inset-inline-end: 14px;
        padding: 11px 14px;
        font-size: 11px;
    }

    /* الفوتر */
    footer {
        padding: 52px 0 18px;
    }

    .footer-grid {
        gap: 32px;
    }

    .footer-grid .brand strong {
        display: block;
    }

    .copyright {
        margin-top: 26px;
    }

    /* التنبيهات */
    .toast {
        top: 76px;
        width: calc(100% - 30px);
        text-align: center;
    }
}


/* ==================================================
   تقليل الحركة
================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-art .orbit.one,
    .hero-art .orbit.two {
        animation: none !important;
        transform: none !important;
    }
}