/* ===== شعار الهيدر: يتكيّف مع أي صورة ===== */
.header-logo .logo img,
.mobile-menu-logo .logo img {
    width: auto !important;
    height: auto !important;
    max-height: 44px;
    max-width: 190px;
    object-fit: contain;
}

/* ===== اللون الأساسي على عناصر القالب (golden) ===== */
.btn-golden {
    background-color: var(--fx-primary) !important;
    border-color: var(--fx-primary) !important;
    color: var(--fx-on-primary) !important;
}

.btn-golden:hover,
.btn-golden:focus {
    background-color: var(--fx-primary-dark) !important;
    border-color: var(--fx-primary-dark) !important;
    color: var(--fx-on-primary) !important;
}

.btn-outline-golden {
    background: transparent !important;
    border-color: var(--fx-primary) !important;
    color: var(--fx-primary) !important;
}

.btn-outline-golden:hover,
.btn-outline-golden:focus {
    background: var(--fx-primary) !important;
    color: var(--fx-on-primary) !important;
}

.material-scrolltop,
.swiper-pagination-bullet-active {
    background-color: var(--fx-primary) !important;
}

.product-color--golden .tag span {
    background-color: var(--fx-primary) !important;
    color: var(--fx-on-primary) !important;
}

/* لون النص فوق الأساسي في عناصرنا (بعد استبدال #c29958 بمتغير) */
.aff-nav a.active,
.aff-nav a:hover,
.notif-tab.active,
.qv-opt.active,
.pc-quick,
.qv-close:hover,
.pc-arrow:hover {
    color: var(--fx-on-primary);
}

/* hover الهيدر الافتراضي (الوضع «كما هو في القالب») */
.header-bottom-color--golden a:hover,
.header-bottom-color--golden i:hover {
    color: var(--fx-header-hover, aquamarine) !important;
}

/* ===== الهيدر (يتبع الإعدادات دائمًا) ===== */
body.theme-header-custom .header-section,
body.theme-header-custom .header-bottom,
body.theme-header-custom .header-bottom-color--golden,
body.theme-header-custom .sticky-header,
body.theme-header-custom .sticky-color--golden,
body.theme-header-custom .mobile-header,
body.theme-header-custom .mobile-header-bg-color--golden {
    background: var(--fx-header-bg) !important;
    background-image: none !important;
}

body.theme-header-custom .main-menu nav>ul>li>a,
body.theme-header-custom .header-user-name,
body.theme-header-custom .fx-dd-toggle,
body.theme-header-custom .fx-iconbtn,
body.theme-header-custom .mobile-right-side a,
body.theme-header-custom .mobile-auth-guest-link,
body.theme-header-custom .offcanvas-toggle i {
    color: var(--fx-header-text) !important;
}

body.theme-header-custom .main-menu nav>ul>li>a:hover,
body.theme-header-custom .main-menu nav>ul>li>a.active {
    color: var(--fx-header-hover) !important;
}

body.theme-header-custom .main-menu nav>ul>li>a.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 9px;
}

/* ===== الخط ===== */
body,
input,
select,
textarea,
button,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
label,
td,
th,
small,
.btn,
.form-control,
.select2-container,
.swal2-popup {
    font-family: var(--fx-font, Tahoma), Tahoma, sans-serif !important;
}

/* ===== شيك بوكس / راديو / سويتش حديثة ===== */
input[type="checkbox"]:not(.d-none),
input[type="radio"]:not(.d-none) {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    flex: none;
    position: relative;
    vertical-align: middle;
    border: 2px solid #cfd3dd;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
}

input[type="checkbox"] {
    border-radius: 6px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    border-color: var(--fx-primary);
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background: var(--fx-primary);
    border-color: var(--fx-primary);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 46%;
    width: 5px;
    height: 10px;
    border: solid var(--fx-on-primary, #fff);
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--fx-on-primary, #fff);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px var(--fx-primary-a20);
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.form-check-input {
    margin-top: 0;
    float: none;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.sf-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.35em;
    border-radius: 999px;
    background: #d5d9e2;
    border-color: #d5d9e2;
}

.form-switch .form-check-input::after {
    content: '';
    position: absolute;
    top: 2px;
    left: auto;
    inset-inline-start: 2px;
    width: calc(1.35em - 8px);
    height: calc(1.35em - 8px);
    border: 0;
    border-radius: 50%;
    background: #fff;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: inset-inline-start .15s;
}

.form-switch .form-check-input:checked {
    background: var(--fx-primary);
    border-color: var(--fx-primary);
}

.form-switch .form-check-input:checked::after {
    top: 2px;
    left: auto;
    width: calc(1.35em - 8px);
    height: calc(1.35em - 8px);
    border: 0;
    transform: none;
    inset-inline-start: calc(100% - (1.35em - 8px) - 2px);
}

/* ===== كروت وجداول وفلاتر المتجر (ستايل موحد حديث) ===== */
.auth-card {
    border-radius: 20px;
    border: 1px solid #eef0f4;
    box-shadow: 0 8px 30px rgba(20, 20, 43, .05);
}

.stat-card {
    border-radius: 16px;
    border: 1px solid #eef0f4;
    box-shadow: none;
    transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(20, 20, 43, .07);
}

.aff-table thead th {
    background: #fafbfd;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #eef0f4;
}

.aff-table tbody tr:hover {
    background: #fafbfd;
}

.shop-head h2 {
    font-weight: 800;
}

.shop-filters {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(20, 20, 43, .04);
}

.sf-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed #eceef3;
}

.sf-block:last-of-type {
    border-bottom: 0;
    margin-bottom: 8px;
}

.sf-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2430;
}

.sf-check {
    padding: 6px 0;
}

.sf-check small {
    margin-inline-start: auto;
    background: #f1f2f6;
    color: #6b7280;
    border-radius: 999px;
    padding: 1px 9px;
    font-size: 12px;
}

.shop-toolbar {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 10px 16px;
    margin-bottom: 18px;
}

/* ===== صفحة المنتج ===== */
.pv-card {
    border-radius: 24px;
    padding: 34px;
    border: 1px solid #eef0f4;
    box-shadow: 0 10px 40px rgba(20, 20, 43, .06);
}

.pv-page .qv-main {
    border-radius: 18px;
    overflow: hidden;
    background: #f4f5f8;
}

.pv-page .qv-thumb {
    border-radius: 12px;
    border: 2px solid transparent;
    overflow: hidden;
    transition: border-color .15s, transform .15s;
}

.pv-page .qv-thumb:hover {
    transform: translateY(-2px);
}

.pv-page .qv-thumb.active {
    border-color: var(--fx-primary);
}

.pv-page .qv-nav {
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

.pv-page .qv-price {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
}

.pv-page .qv-price del {
    font-size: 16px;
    font-weight: 500;
    color: #9aa0b0;
    margin-inline-start: 10px;
}

.qv-off {
    display: inline-block;
    margin-inline-start: 10px;
    padding: 2px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff5a5f, #e11d48);
}

.qv-stock {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
}

.qv-stock.ok {
    background: #e8f8ef;
    color: #15803d;
}

.qv-stock.low {
    background: #fff4e0;
    color: #b45309;
}

.qv-stock.out {
    background: #fee2e2;
    color: #b91c1c;
}

.qv-opt {
    border-radius: 12px;
    border: 1.5px solid #e4e4ec;
    background: #fff;
    padding: 8px 16px;
    transition: border-color .15s, background .15s;
}

.qv-opt:hover {
    border-color: var(--fx-primary);
}

.qv-opt.active {
    border-color: var(--fx-primary);
    background: var(--fx-primary-soft);
    color: var(--fx-primary-dark);
    font-weight: 700;
}

.qv-opt.oos {
    opacity: .45;
    text-decoration: line-through;
}

.qv-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1.5px #d5d8e1;
}

.qv-swatch.active {
    box-shadow: 0 0 0 2.5px var(--fx-primary);
}

.qv-commission {
    border-radius: 14px;
    background: var(--fx-primary-soft);
    border: 1px dashed var(--fx-primary);
    padding: 14px 16px;
}

/* ===== السلة ===== */
#cartList {
    border-radius: 20px;
    overflow: hidden;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f1f5;
    transition: background .15s;
}

.cart-row:last-child {
    border-bottom: 0;
}

.cart-row:hover {
    background: #fafbfd;
}

.cart-row img,
.cart-ph {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    background: #f1f2f6;
    flex: none;
}

.cart-qty {
    width: 84px;
    height: 44px;
    text-align: center;
    font-weight: 700;
    border-radius: 12px;
    border: 1.5px solid #e4e4ec;
}

.js-cart-remove {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
}

/* ===== قسم الفئات ===== */
.fx-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}

.fx-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 16px 10px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eef0f4;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.fx-cat:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(20, 20, 43, .09);
    border-color: var(--fx-primary);
}

.fx-cat-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background: var(--fx-primary-soft);
    color: var(--fx-primary);
    font-size: 30px;
}

.fx-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.fx-cat:hover .fx-cat-img img {
    transform: scale(1.1);
}

.fx-cat strong {
    color: #1f2430;
    font-size: 15px;
}

.fx-cat small {
    color: #8b92a3;
}

@media (max-width: 767px) {
    .fx-cats {
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-auto-columns: 40%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .fx-cats::-webkit-scrollbar {
        display: none;
    }

    .fx-cat {
        scroll-snap-align: start;
    }
}

/* ===== تعريف الشركة ===== */
.fx-about {
    padding: 64px 0 10px;
}

.fx-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.fx-about-grid.rev .fx-about-media {
    order: 2;
}

.fx-about-media {
    position: relative;
}

.fx-about-media::before {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border-radius: 28px;
    background: var(--fx-primary-soft);
    z-index: 0;
}

.fx-about-grid.rev .fx-about-media::before {
    inset: 18px 18px -18px -18px;
}

.fx-about-media img,
.fx-about-ph {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 9 / 7;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(20, 20, 43, .15);
}

.fx-about-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #fff;
    background: linear-gradient(135deg, var(--fx-primary), var(--fx-primary-dark));
}

.fx-eyebrow {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    background: var(--fx-primary-soft);
    color: var(--fx-primary-dark);
}

.fx-about-body h2 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 14px;
    color: #1f2430;
}

.fx-about-body p {
    color: #5b6272;
    line-height: 2;
    font-size: 16px;
    margin-bottom: 18px;
}

.fx-about-points {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.fx-about-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-weight: 600;
    color: #2b303b;
}

.fx-about-points i {
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--fx-primary);
    color: var(--fx-on-primary);
}

.fx-about-btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .fx-about {
        padding-top: 44px;
    }

    .fx-about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .fx-about-grid.rev .fx-about-media {
        order: 0;
    }

    .fx-about-body h2 {
        font-size: 26px;
    }
}

/* ===== صفحة تواصل معنا ===== */
.ct-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ct-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eef0f4;
    color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

a.ct-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 20, 43, .08);
    border-color: var(--fx-primary);
}

.ct-item>i {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--fx-primary-soft);
    color: var(--fx-primary-dark);
}

.ct-item strong {
    display: block;
    color: #1f2430;
}

.ct-item span {
    color: #6b7280;
    font-size: 14px;
}

.ct-social {
    margin-top: 6px;
}

.ct-social a {
    color: var(--fx-primary);
}

/* ===== شريط الإعلانات وشريط معاينة المدير ===== */
.fx-announce {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 7px 40px;
    position: relative;
    text-align: center;
    background: var(--fx-primary);
    color: var(--fx-on-primary);
    font-size: 14px;
}

.fx-announce[hidden] {
    display: none;
}

.fx-announce a {
    color: inherit;
    text-decoration: underline;
}

.fx-announce button {
    position: absolute;
    inset-inline-end: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.fx-preview-bar {
    background: #1f2937;
    color: #fff;
    text-align: center;
    padding: 6px 12px;
    font-size: 13px;
}

.fx-preview-bar a {
    color: #fbbf24;
    margin-inline-start: 8px;
}

/* ===== الفوتر المضغوط ===== */
.fx-footer {
    background: var(--fx-footer-bg);
    color: var(--fx-footer-text);
    margin-top: 60px;
    padding-top: 18px;
    font-size: 14px;
}

.fx-footer a {
    color: var(--fx-footer-text);
    opacity: .85;
    text-decoration: none;
    transition: opacity .15s, color .15s;
}

.fx-footer a:hover {
    opacity: 1;
    color: var(--fx-footer-hover);
}

.theme-footer-light .fx-footer {
    border-top: 1px solid #e5e5e5;
}

.fx-footer-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    padding-bottom: 14px;
}

.fx-foot-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.fx-foot-brand strong {
    font-size: 16px;
}

.fx-foot-brand span {
    font-size: 12.5px;
    opacity: .75;
}

.fx-foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.fx-foot-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
}

.fx-foot-contact i {
    margin-inline-end: 4px;
}

.fx-foot-social {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fx-foot-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .8;
}

.fx-footer-bottom {
    border-top: 1px solid rgba(128, 128, 128, .25);
    padding: 10px 0;
    text-align: center;
    font-size: 12.5px;
    opacity: .8;
}

@media (max-width: 767px) {
    .fx-footer-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .fx-footer-bottom {
        text-align: start;
    }
}

/* ===== زر واتساب العائم ===== */
.fx-wa {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.fx-wa:hover {
    color: #fff;
    transform: scale(1.06);
}

/* ===== صفحات الموقع الثابتة ===== */
.fx-link {
    color: var(--fx-primary);
    font-weight: 600;
    text-decoration: underline;
}

.page-content {
    padding: 32px 34px;
    line-height: 2;
    font-size: 16px;
    color: #333;
}

.page-title {
    font-size: 28px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.page-content h1 {
    font-size: 26px;
    margin: 26px 0 10px;
}

.page-content h2 {
    font-size: 22px;
    margin: 26px 0 10px;
}

.page-content h3 {
    font-size: 18px;
    margin: 20px 0 8px;
}

.page-content p {
    margin-bottom: 12px;
}

.page-content ul {
    list-style: disc;
    padding-inline-start: 24px;
    margin-bottom: 12px;
}

.page-content ol {
    list-style: decimal;
    padding-inline-start: 24px;
    margin-bottom: 12px;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content blockquote {
    border-inline-start: 4px solid var(--fx-primary);
    background: var(--fx-primary-soft);
    padding: 10px 16px;
    margin: 14px 0;
    border-radius: 6px;
}

.page-content a {
    color: var(--fx-primary);
    text-decoration: underline;
}

.page-content pre {
    background: #f6f6f8;
    padding: 12px;
    border-radius: 8px;
    direction: ltr;
    overflow-x: auto;
}

.page-content .ql-align-center {
    text-align: center;
}

.page-content .ql-align-right {
    text-align: right;
}

.page-content .ql-align-left {
    text-align: left;
}

.page-content .ql-align-justify {
    text-align: justify;
}

.page-content .ql-direction-rtl {
    direction: rtl;
}

.page-content .ql-indent-1 {
    padding-inline-start: 3em;
}

.page-content .ql-indent-2 {
    padding-inline-start: 6em;
}

.page-content .ql-indent-3 {
    padding-inline-start: 9em;
}

@media (max-width: 575px) {
    .page-content {
        padding: 22px 18px;
    }
}

/* ===== الصور داخل الشرائح والبانرات ===== */
.fx-slide picture,
.fx-tile picture {
    position: absolute;
    inset: 0;
    display: block;
}

.fx-slide img,
.fx-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fx-ov {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fx-stretch {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* النص فوق الصورة (مشترك) */
.fx-text {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    padding: 5% 7%;
    pointer-events: none;
    color: var(--c, #fff);
}

.fx-text.h-start {
    justify-content: flex-start;
    text-align: start;
}

.fx-text.h-center {
    justify-content: center;
    text-align: center;
}

.fx-text.h-end {
    justify-content: flex-end;
    text-align: end;
}

.fx-text.v-top {
    align-items: flex-start;
}

.fx-text.v-middle {
    align-items: center;
}

.fx-text.v-bottom {
    align-items: flex-end;
}

.fx-st {
    max-width: 560px;
}

.fx-st h2 {
    color: inherit !important;
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.3;
    font-size: clamp(20px, 3.2vw, 44px);
}

.fx-st p {
    color: inherit !important;
    margin: 0 0 14px;
    font-size: clamp(13px, 1.5vw, 18px);
    line-height: 1.7;
}

.fx-btn {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.fx-btn.b-solid {
    background: var(--fx-primary);
    color: var(--fx-on-primary);
}

.fx-btn.b-light {
    background: #fff;
    color: #111827;
}

.fx-btn.b-outline {
    border: 2px solid var(--c, #fff);
    color: var(--c, #fff);
}

/* ===== السلايدر الرئيسي ===== */
.fx-hero {
    position: relative;
    overflow: hidden;
    background: #f1f1f4;
}

.fx-hero-stage {
    position: relative;
    aspect-ratio: 8 / 3;
}

.fx-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s;
}

.fx-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.fx-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .85);
    color: #111;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.fx-nav:hover {
    background: var(--fx-primary);
    color: var(--fx-on-primary);
}

.fx-prev {
    inset-inline-start: 14px;
}

.fx-next {
    inset-inline-end: 14px;
}

.fx-dots {
    position: absolute;
    bottom: 12px;
    inset-inline: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.fx-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
}

.fx-dot.active {
    background: var(--fx-primary);
    width: 26px;
    border-radius: 6px;
}

@media (max-width: 991px) {
    .fx-hero-stage {
        aspect-ratio: 16 / 7;
    }
}

@media (max-width: 767px) {
    .fx-hero-stage {
        aspect-ratio: 5 / 4;
    }

    .fx-nav {
        display: none;
    }

    .fx-text {
        padding: 6% 8%;
    }
}

/* ===== البانرات ===== */
.fx-banners {
    margin-top: 40px;
}

.fx-bn-grid {
    display: grid;
    gap: 16px;
}

.fx-tile {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f1f4;
    min-height: 0;
}

.fx-tile img {
    transition: transform .5s;
}

.fx-tile:hover img {
    transform: scale(1.04);
}

.fx-tile .fx-st h2 {
    font-size: clamp(15px, 1.9vw, 26px);
}

.fx-tile .fx-st p {
    font-size: clamp(12px, 1.2vw, 15px);
    margin-bottom: 8px;
}

.fx-tile .fx-btn {
    padding: 6px 14px;
    font-size: 13px;
}

.fx-bn-grid.is-mix {
    grid-template-columns: 1fr 1fr;
}

.fx-bn-grid.is-mix .is-large {
    aspect-ratio: 7 / 5;
}

.fx-bn-grid.is-mix .fx-bn-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

.fx-bn-grid.is-mix .fx-bn-right>.fx-tile:only-child {
    grid-column: span 2;
    grid-row: span 2;
}

.fx-bn-grid.is-mix .fx-bn-right>.fx-tile:last-child:nth-child(odd):not(:only-child) {
    grid-column: span 2;
}

.fx-bn-grid.is-solo .is-large {
    aspect-ratio: 5 / 2;
}

.fx-bn-grid.is-smalls .fx-bn-right {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fx-bn-grid.is-smalls .fx-tile {
    aspect-ratio: 7 / 5;
}

@media (max-width: 767px) {
    .fx-bn-grid.is-mix {
        grid-template-columns: 1fr;
    }

    .fx-bn-grid.is-mix .fx-bn-right {
        grid-template-rows: none;
        height: auto;
    }

    .fx-bn-grid.is-mix .fx-bn-right>.fx-tile {
        aspect-ratio: 7 / 5;
    }

    .fx-bn-grid.is-smalls .fx-bn-right {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== الأسئلة الشائعة (Accordion) ===== */
.fx-faq-search {
    margin: 18px 0 14px;
}

.fx-faq-item {
    border: 1px solid #e8e8ee;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
}

.fx-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    padding-inline-end: 46px;
    font-weight: 600;
    position: relative;
    line-height: 1.7;
}

.fx-faq-item summary::-webkit-details-marker {
    display: none;
}

.fx-faq-item summary::after {
    content: '+';
    position: absolute;
    inset-inline-end: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--fx-primary);
    transition: transform .2s;
}

.fx-faq-item[open] summary {
    background: var(--fx-primary-soft);
}

.fx-faq-item[open] summary::after {
    content: '−';
}

.fx-faq-a {
    padding: 14px 18px 18px;
    color: #444;
    line-height: 2;
}

.fx-faq-empty {
    text-align: center;
    color: #888;
    padding: 24px 0;
}

/* ================================================================
   مسافات الصفحات (يعالج الفراغ الكبير تحت الهيدر في كل الصفحات)
   ================================================================ */
.fx-main {
    min-height: 60vh;
    animation: fx-rise .32s ease both;
}

.fx-main>.auth-section,
.fx-main>.reg-page,
.fx-main>.shop-page,
.fx-main>.fx-page {
    margin-top: 0 !important;
    padding-top: 34px !important;
    padding-bottom: 64px !important;
}

@media (max-width: 767px) {

    .fx-main>.auth-section,
    .fx-main>.reg-page,
    .fx-main>.shop-page,
    .fx-main>.fx-page {
        padding-top: 20px !important;
        padding-bottom: 40px !important;
    }
}

/* ================================================================
   الهيدر
   ================================================================ */
.header-section .header-bottom {
    box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
}

/* أزرار الهيدر عند اختيار لون مخصص (تنعكس تلقائيًا لو اللون الأساسي مش ظاهر) */
body.theme-header-custom .header-section .btn-golden {
    background: var(--fx-header-btn-bg) !important;
    border-color: var(--fx-header-btn-bg) !important;
    color: var(--fx-header-btn-text) !important;
}

body.theme-header-custom .header-section .btn-outline-golden {
    background: transparent !important;
    color: var(--fx-header-text) !important;
    border-color: var(--fx-header-text) !important;
}

body.theme-header-custom .header-section .btn-outline-golden:hover {
    background: var(--fx-header-text) !important;
    color: var(--fx-header-bg) !important;
}

/* ================================================================
   لودر التنقل + الانتقال الناعم
   ================================================================ */
#fx-bar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s;
}

#fx-bar.on {
    opacity: 1;
}

#fx-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 0 3px 3px 0;
    transition: width .3s ease;
    background: linear-gradient(90deg, var(--fx-primary), var(--fx-primary-dark));
    box-shadow: 0 0 10px var(--fx-primary), 0 0 4px var(--fx-primary);
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .22s;
}

@keyframes fx-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-main {
        animation: none;
    }

    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }
}

/* ================================================================
   كروت المنتجات (حديثة)
   ================================================================ */
.pc {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.pc:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(20, 20, 43, .10);
    border-color: transparent;
}

.pc-media {
    background: #f4f5f8;
}

.pc-tag {
    top: 12px;
    inset-inline-start: 12px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff5a5f, #e11d48);
    box-shadow: 0 4px 10px rgba(225, 29, 72, .3);
}

.pc-actions {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pc-actions .pc-fav,
.pc-actions .pc-quick {
    position: static;
    inset: auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: #444;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
    transition: transform .2s, opacity .2s, color .2s, background .2s;
}

.pc-actions .pc-fav:hover {
    color: #e0245e;
    transform: scale(1.08);
}

.pc-actions .pc-fav.active {
    color: #e0245e;
}

.pc-actions .pc-quick {
    opacity: 0;
    transform: scale(.8);
}

.pc-actions .pc-quick:hover {
    background: var(--fx-primary);
    color: var(--fx-on-primary);
}

@media (hover: hover) {

    .pc:hover .pc-actions .pc-quick,
    .pc-actions .pc-quick:focus-visible {
        opacity: 1;
        transform: none;
    }
}

@media (hover: none) {
    .pc-actions .pc-quick {
        opacity: 1;
        transform: none;
    }
}

.pc-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pc-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    min-height: 3.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-title a {
    color: #1f2430;
}

.pc-title a:hover {
    color: var(--fx-primary);
}

.pc-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
}

.pc-price {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}

.pc-price small {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.pc-price del {
    font-size: 13px;
    font-weight: 500;
    color: #9aa0b0;
    margin-inline-start: 6px;
}

.pc-comm {
    background: var(--fx-primary-soft);
    color: var(--fx-primary-dark);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pc-comm small {
    font-size: 11px;
    font-weight: 600;
}

/* أسهم السلايدر */
.pc-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid #eceef3;
    background: #fff;
    color: #222;
    box-shadow: 0 6px 18px rgba(20, 20, 43, .12);
    transition: background .2s, color .2s, transform .2s;
}

.pc-arrow:hover {
    background: var(--fx-primary);
    color: var(--fx-on-primary);
    border-color: var(--fx-primary);
    transform: scale(1.06);
}

/* ================================================================
   الصفحة الرئيسية
   ================================================================ */
.fx-features {
    margin-top: 32px;
}

.fx-feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fx-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    padding: 16px 18px;
    transition: transform .2s, box-shadow .2s;
}

.fx-feat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(20, 20, 43, .08);
}

.fx-feat i {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--fx-primary-soft);
    color: var(--fx-primary-dark);
}

.fx-feat strong {
    display: block;
    font-size: 15px;
    color: #1f2430;
}

.fx-feat span {
    display: block;
    color: #7b8190;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .fx-feat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .fx-feat {
        padding: 12px;
        gap: 10px;
    }

    .fx-feat i {
        flex-basis: 40px;
        height: 40px;
        font-size: 17px;
    }

    .fx-feat span {
        display: none;
    }
}

.fx-sec {
    padding: 56px 0 14px;
}

.fx-sec.alt {
    background: linear-gradient(180deg, #fafbfd, #fff);
    margin-top: 28px;
}

.fx-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.fx-sec-title {
    position: relative;
    margin: 0;
    padding-inline-start: 16px;
    font-size: 28px;
    font-weight: 800;
    color: #1f2430;
}

.fx-sec-title::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 72%;
    border-radius: 4px;
    background: var(--fx-primary);
}

.fx-sec-sub {
    margin: 4px 0 0;
    padding-inline-start: 16px;
    color: #7b8190;
    font-size: 14.5px;
}

.fx-sec-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    background: var(--fx-primary-soft);
    color: var(--fx-primary-dark);
    transition: background .2s, color .2s;
}

.fx-sec-link:hover {
    background: var(--fx-primary);
    color: var(--fx-on-primary);
}

@media (max-width: 575px) {
    .fx-sec {
        padding-top: 38px;
    }

    .fx-sec-title {
        font-size: 22px;
    }

    .fx-sec-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.fx-cta {
    margin: 64px 0 10px;
}

.fx-cta-box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 44px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--fx-primary), var(--fx-primary-dark));
    color: var(--fx-on-primary);
}

.fx-cta-box::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    top: -120px;
    inset-inline-start: -80px;
}

.fx-cta-box>* {
    position: relative;
}

.fx-cta h3 {
    margin: 0 0 8px;
    color: inherit;
    font-size: 28px;
    font-weight: 800;
}

.fx-cta p {
    margin: 0;
    max-width: 520px;
    color: inherit;
    opacity: .92;
    line-height: 1.9;
}

.fx-cta-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fx-cta .fx-b {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform .2s;
}

.fx-cta .fx-b:hover {
    transform: translateY(-2px);
}

.fx-cta .fx-b.light {
    background: #fff;
    color: #111827;
}

.fx-cta .fx-b.line {
    border: 2px solid currentColor;
    color: inherit;
}

@media (max-width: 575px) {
    .fx-cta-box {
        padding: 28px 22px;
    }

    .fx-cta h3 {
        font-size: 22px;
    }
}

/* ===== nice-select: يتبع عرض عمود الفورم (فلاتر الطلبات والمتجر وغيرها) ===== */
.nice-select {
    float: none;
    clear: none;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    line-height: normal;
    padding: 0 16px;
    padding-inline-end: 40px;
    border: 1.5px solid #e4e4ec;
    border-radius: 12px;
    background: #fff;
    color: #222;
    font-size: 14.5px;
    transition: border-color .15s, box-shadow .15s;
}

.nice-select.auth-input,
.nice-select.form-control {
    height: 50px;
}

/* نفس ارتفاع باقي الحقول */
.nice-select .current {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nice-select:after {
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-color: #8b8ba0;
    border-width: 0 2px 2px 0;
    right: auto;
    left: auto;
    inset-inline-end: 16px;
}

.nice-select.open,
.nice-select:focus {
    z-index: 30;
    border-color: var(--fx-primary);
    box-shadow: 0 0 0 4px var(--fx-primary-a20);
}

.nice-select.open:after {
    border-color: var(--fx-primary);
}

.nice-select .list {
    left: auto;
    right: auto;
    inset-inline-start: 0;
    min-width: 100%;
    max-height: 260px;
    overflow-y: auto;
    margin-top: 8px;
    padding: 6px 0;
    border: 1px solid #e4e4ec;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(20, 20, 40, .14);
}

.nice-select .option {
    min-height: 40px;
    line-height: 40px;
    padding: 0 18px;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
    background: var(--fx-primary-soft);
}

.nice-select .option.selected {
    font-weight: 700;
    color: var(--fx-primary-dark);
}

/* قائمة الترتيب في المتجر فقط: عرض مناسب وليست بعرض العمود */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.shop-toolbar .nice-select {
    width: auto;
    min-width: 210px;
    height: 44px;
    display: inline-flex;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== أيقونات الهيدر على خط واحد + زر اللغة + طلب جديد ===== */
.fx-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fx-actions .fx-iconbtn,
.fx-actions .fx-bell .fx-dd-toggle {
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    position: relative;
    transition: background .15s;
}

.fx-actions .fx-iconbtn:hover,
.fx-actions .fx-bell .fx-dd-toggle:hover {
    background: rgba(128, 128, 128, .16);
}

.fx-actions .fx-iconbtn i,
.fx-actions .fx-bell .fx-dd-toggle i {
    font-size: inherit;
    line-height: 1;
}

.fx-actions .fx-badge {
    top: 1px;
    inset-inline-start: auto;
    inset-inline-end: 0;
}

@media (min-width: 1200px) {
    .fx-actions .fx-bell.d-xl-block {
        display: inline-flex !important;
    }
}

.fx-newbtn {
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-weight: 700;
    padding: 8px 16px;
}

.fx-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1.5px solid currentColor;
    font-weight: 700;
    font-size: 13px;
    color: inherit;
    opacity: .9;
    transition: opacity .15s, background .15s;
}

.fx-lang:hover {
    opacity: 1;
    background: rgba(128, 128, 128, .16);
}

body.theme-header-custom .fx-lang {
    color: var(--fx-header-text) !important;
}

.mobile-right-side .fx-lang {
    height: 32px;
    padding: 0 9px;
    margin-inline-end: 8px;
}

/* ===== لودر التنقل (الدائرة الوسطية، تظهر عند البطء فقط) ===== */
#fx-loader {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s, visibility .2s;
}

#fx-loader.on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#fx-loader span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid var(--fx-primary-a20);
    border-top-color: var(--fx-primary);
    animation: fx-spin .8s linear infinite;
}

@keyframes fx-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== تواصل معنا: خريطة ===== */
.ct-map {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eef0f4;
    height: 260px;
}

.ct-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ct-maplink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--fx-primary);
}

/* ===== كروت حالات الطلبات (لوحة المسوق) ===== */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.sc-card {
    --c: #6b7280;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 18px 20px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eef0f4;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}

.sc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(20, 20, 43, .08);
}

.sc-card strong {
    font-size: 28px;
    font-weight: 800;
    color: var(--c);
    line-height: 1.2;
}

.sc-card span {
    color: #6b7280;
    font-size: 13.5px;
}

.sc-card i {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    height: 4px;
    background: var(--c);
    border-radius: 0 4px 0 0;
    transition: width .5s;
}

.sc-primary {
    --c: var(--fx-primary);
}

.sc-success {
    --c: #16a34a;
}

.sc-danger {
    --c: #dc2626;
}

.sc-warning {
    --c: #d97706;
}

.sc-info {
    --c: #0891b2;
}

.sc-secondary {
    --c: #6b7280;
}

.sc-dark {
    --c: #1f2430;
}

/* ===== ميديا المنتج ===== */
.pv-media {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 18px 22px;
    border-radius: 18px;
    background: var(--fx-primary-soft);
    border: 1px dashed var(--fx-primary);
}

.pv-media-ico {
    flex: 0 0 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--fx-primary);
    color: var(--fx-on-primary);
}

.pv-media strong {
    display: block;
}

.pv-media span {
    color: #5b6272;
    font-size: 14px;
}

/* ===== إصلاح النوافذ المنبثقة: حركة الدخول لا تترك طبقة دائمة ===== */
.fx-main {
    animation: fx-rise .32s ease backwards;
}

/* ===== ترتيب الهيدر في سطر واحد ===== */
.header-section .col-12.d-flex {
    gap: 16px;
    flex-wrap: nowrap;
}

.header-section .header-logo,
.header-section .header-auth-area {
    flex: 0 0 auto;
}

.header-section .main-menu {
    flex: 1 1 auto;
    min-width: 0;
}

.header-section .main-menu nav>ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2px;
    margin: 0;
    white-space: nowrap;
}

.header-section .main-menu nav>ul>li {
    float: none;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.header-section .main-menu nav>ul>li>a {
    padding: 8px 13px !important;
    font-size: 15px;
    white-space: nowrap;
}

.fx-actions {
    flex-wrap: nowrap;
}

.fx-actions .btn {
    line-height: 1.2 !important;
    white-space: nowrap;
}

.fx-newbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px !important;
    font-size: 14px;
}

.fx-lang {
    line-height: 1 !important;
}

@media (max-width: 1399px) {

    .fx-actions .header-user-name,
    .fx-actions .fx-dd-toggle>i.fa-angle-down {
        display: none;
    }
}

@media (max-width: 1299px) {
    .fx-newtxt {
        display: none;
    }

    .fx-newbtn {
        width: 40px;
        padding: 0 !important;
        justify-content: center;
    }

    .header-section .main-menu nav>ul>li>a {
        padding: 8px 9px !important;
        font-size: 14px;
    }
}

/* ===== المودال الحديث ===== */
.modal-backdrop {
    background: #0f172a;
}

.modal-backdrop.show {
    opacity: .5;
}

.modal.fade .modal-dialog {
    opacity: 0;
    transform: translateY(26px) scale(.96);
    transition: transform .34s cubic-bezier(.22, 1, .36, 1), opacity .22s ease;
}

.modal.show .modal-dialog {
    opacity: 1;
    transform: none;
}

.modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
    overflow: hidden;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f1f5;
}

.modal-title {
    font-weight: 800;
}

.modal-body {
    padding: 22px 24px;
}

.modal-footer {
    border-top: 1px solid #f0f1f5;
    padding: 14px 24px;
}

.modal .btn-close,
.modal .close {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    opacity: 1;
    background-color: #f1f2f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .2s;
}

.modal .btn-close:hover,
.modal .close:hover {
    background-color: #e5e7ee;
    transform: rotate(90deg);
}

/* موبايل: النافذة تطلع من تحت كـ Bottom Sheet */
@media (max-width: 575px) {
    .modal.fade .modal-dialog {
        position: fixed;
        inset: auto 0 0 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        opacity: 1;
        transform: translateY(100%);
        transition: transform .38s cubic-bezier(.22, 1, .36, 1);
    }

    .modal.show .modal-dialog {
        transform: none;
    }

    .modal-content {
        border-radius: 24px 24px 0 0;
        max-height: 92vh;
        display: flex;
        flex-direction: column;
    }

    .modal-content::before {
        content: '';
        display: block;
        width: 44px;
        height: 5px;
        border-radius: 3px;
        background: #d5d8e1;
        margin: 10px auto 0;
        flex: none;
    }

    .modal-body {
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* ============ المودال: ظهور بنعومة (زووم) + زر الغلق لا يغطي العنوان ============ */
.modal.fade .modal-dialog {
    opacity: 0;
    transform: scale(.86);
    transform-origin: center;
    transition: transform .3s cubic-bezier(.34, 1.45, .64, 1), opacity .2s ease;
}

.modal.show .modal-dialog {
    opacity: 1;
    transform: none;
}

.modal.fade:not(.show) .modal-dialog {
    transform: scale(.94);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.modal-title {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.modal-header .close,
.modal-header .btn-close {
    position: static !important;
    margin: 0 !important;
    flex: none;
    float: none;
}

/* إلغاء نمط الـ Bottom Sheet على الموبايل (نستخدم الزووم في كل الأحجام) */
@media (max-width: 575px) {
    .modal.fade .modal-dialog {
        position: relative;
        inset: auto;
        width: auto;
        max-width: none;
        margin: .75rem;
        opacity: 0;
        transform: scale(.88);
        transition: transform .3s cubic-bezier(.34, 1.45, .64, 1), opacity .2s ease;
    }

    .modal.show .modal-dialog {
        opacity: 1;
        transform: none;
    }

    .modal-content {
        border-radius: 22px;
        max-height: none;
        display: block;
    }

    .modal-content::before {
        display: none;
    }
}

/* ============ الهيدر: مساحة أريح وزر «طلب جديد» واضح ============ */
.header-section .header-bottom {
    padding-block: 14px !important;
}

.header-section .header-logo .logo img {
    max-height: 54px;
    max-width: 210px;
}

.header-section .main-menu nav>ul>li>a {
    font-size: 16px;
}

.fx-newtxt {
    display: inline !important;
}

.fx-newbtn {
    width: auto !important;
    padding: 0 18px 0 12px !important;
    gap: 8px !important;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.fx-newbtn i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: rgba(0, 0, 0, .14);
}

/* ============ قائمة الموبايل الجانبية (شكل تطبيق) ============ */
#mobile-menu-offcanvas.fx-drawer {
    width: min(88vw, 360px) !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 28px 0 0 28px;
    background: linear-gradient(165deg, var(--fx-header-bg), color-mix(in srgb, var(--fx-header-bg) 78%, #000)) !important;
    color: var(--fx-header-text);
    box-shadow: -18px 0 50px rgba(0, 0, 0, .3);
}

.fx-dr {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    overflow-y: auto;
    padding: 18px 16px 24px;
    -webkit-overflow-scrolling: touch;
}

.fx-dr a {
    color: inherit;
}

.fx-dr-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fx-dr-logo {
    display: inline-flex;
    background: #fff;
    border-radius: 12px;
    padding: 6px 12px;
}

.fx-dr-logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 36px;
    max-width: 150px;
    object-fit: contain;
}

.fx-dr-close {
    position: static !important;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--fx-header-text) 14%, transparent);
    color: inherit;
}

.fx-dr-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--fx-header-text) 10%, transparent);
}

.fx-dr-user img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid color-mix(in srgb, var(--fx-header-text) 40%, transparent);
    flex: none;
}

.fx-dr-user strong {
    display: block;
    font-size: 16px;
}

.fx-dr-user small {
    display: block;
    opacity: .75;
    direction: ltr;
    text-align: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 210px;
}

.fx-dr-guest {
    display: flex;
    gap: 10px;
}

.fx-dr-guest a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 14px;
    font-weight: 700;
    border: 1.5px solid color-mix(in srgb, var(--fx-header-text) 40%, transparent);
}

.fx-dr-guest a.solid {
    background: var(--fx-header-btn-bg);
    color: var(--fx-header-btn-text);
    border-color: transparent;
}

.fx-dr-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    background: var(--fx-header-btn-bg);
    color: var(--fx-header-btn-text) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.fx-dr-label {
    margin: 6px 6px -4px;
    font-size: 12px;
    letter-spacing: .5px;
    opacity: .65;
}

.fx-dr-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fx-dr-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 15.5px;
    font-weight: 600;
    transition: background .15s;
}

.fx-dr-link>i {
    flex: 0 0 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: color-mix(in srgb, var(--fx-header-text) 12%, transparent);
}

.fx-dr-link>span {
    flex: 1;
}

.fx-dr-link>em {
    font-style: normal;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

.fx-dr-link::after {
    content: '\f104';
    font-family: FontAwesome;
    opacity: .45;
}

html[dir="ltr"] .fx-dr-link::after {
    content: '\f105';
}

.fx-dr-link:hover,
.fx-dr-link.active {
    background: color-mix(in srgb, var(--fx-header-text) 16%, transparent);
}

.fx-dr-link.active>i {
    background: var(--fx-header-text);
    color: var(--fx-header-bg);
}

.fx-dr-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

.fx-dr-lang {
    display: flex;
    padding: 4px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--fx-header-text) 10%, transparent);
}

.fx-dr-lang a {
    flex: 1;
    text-align: center;
    padding: 9px;
    border-radius: 11px;
    font-weight: 700;
}

.fx-dr-lang a.on {
    background: var(--fx-header-text);
    color: var(--fx-header-bg);
}

.fx-dr-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    border-radius: 14px;
    font-weight: 700;
    background: transparent;
    color: inherit;
    border: 1.5px solid color-mix(in srgb, var(--fx-header-text) 35%, transparent);
}

.fx-dr-site {
    text-align: center;
    font-size: 12px;
    opacity: .55;
}

/* ===== زر الإغلاق في نافذة اختيار المنتجات: ننقله لنهاية النافذة ===== */
#pickerModal .qv-close {
    inset-inline-start: auto;
    inset-inline-end: 14px;
    top: 14px;
}

#pickerModal .qv-body {
    padding-top: 26px;
}

#pickerModal .qv-body h5 {
    font-weight: 800;
    padding-inline-end: 52px;
}

/* ===== شريط التبويب السفلي (موبايل/تابلت) ===== */
.fx-tabbar {
    display: none;
}

@media (max-width: 991px) {
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    .fx-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
        align-items: end;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        background: var(--fx-header-bg);
        color: var(--fx-header-text);
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -8px 28px rgba(15, 23, 42, .2);
        transition: transform .28s cubic-bezier(.22, 1, .36, 1);
    }

    .fx-tabbar.hide {
        transform: translateY(115%);
    }

    .fx-tab {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 7px 2px 4px;
        border: 0;
        background: none;
        color: inherit;
        opacity: .72;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        cursor: pointer;
        transition: opacity .15s;
    }

    .fx-tab i {
        font-size: 20px;
        line-height: 1.1;
    }

    .fx-tab.active {
        opacity: 1;
    }

    .fx-tab.active::before {
        content: '';
        position: absolute;
        top: -6px;
        width: 26px;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: var(--fx-header-text);
    }

    .fx-tab-fab {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding-bottom: 4px;
        color: inherit;
        font-size: 11px;
        font-weight: 800;
    }

    .fx-tab-fab i {
        width: 58px;
        height: 58px;
        margin-top: -32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        background: var(--fx-header-btn-bg);
        color: var(--fx-header-btn-text);
        border: 5px solid #fff;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
        transition: transform .2s;
    }

    .fx-tab-fab:active i,
    .fx-tab-fab.on i {
        transform: scale(.94);
    }

    .material-scrolltop {
        bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .fx-wa {
        bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    }
}



/* ===== إصلاح الظل المتسرّب من قائمة الموبايل وهي مقفولة ===== */
#mobile-menu-offcanvas.fx-drawer {
    box-shadow: none !important;
}

#mobile-menu-offcanvas.fx-drawer.offcanvas-open {
    box-shadow: -18px 0 50px rgba(0, 0, 0, .3) !important;
}

/* ===== تباين بصري: خلفية رمادية فاتحة + بطاقات بيضاء بحدود وظل ===== */
:root {
    --fx-page-bg: #f3f5fa;
}

.fx-main {
    background: var(--fx-page-bg);
}

.auth-card,
.stat-card,
.shop-filters,
.shop-toolbar,
.pv-card,
.reg-card,
.ct-item,
.fx-feat,
.fx-cat,
.pc,
.fx-faq-item,
.sc-card,
.page-content {
    background: #fff;
    border: 1px solid #e3e7f0;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);
}

.pc:hover,
.fx-cat:hover,
.sc-card:hover {
    box-shadow: 0 14px 34px rgba(16, 24, 40, .12);
}

/* حقول الإدخال: خلفية خفيفة وحدود واضحة، وتبيّض عند التركيز */
.auth-input,
.form-control,
.form-select,
.reg-page .auth-input,
.fx-field .auth-input {
    background-color: #f7f8fc;
    border: 1.5px solid #d9deea;
    color: #1f2430;
}

.auth-input:hover,
.form-control:hover,
.form-select:hover {
    border-color: #b9c1d6;
}

.auth-input:focus,
.form-control:focus,
.form-select:focus,
.reg-page .auth-input:focus {
    background-color: #fff;
    border-color: var(--fx-primary);
    box-shadow: 0 0 0 4px var(--fx-primary-a20);
}

.auth-input:disabled,
.form-control:disabled,
.form-control[readonly] {
    background-color: #eceff6;
    color: #7b8190;
}

.nice-select {
    background: #f7f8fc;
    border-color: #d9deea;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: #f7f8fc;
    border-color: #d9deea;
}

/* كروت الإحصائيات: شريط جانبي ملوّن + أرقام واضحة */
.stat-card {
    --sc: var(--fx-primary);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 16px;
    border-inline-start: 5px solid var(--sc);
}

.stat-card.ok {
    --sc: #16a34a;
}

.stat-card.warn {
    --sc: #f59e0b;
}

.stat-card.bad {
    --sc: #ef4444;
}

.stat-card.info {
    --sc: #0ea5e9;
}

.stat-card small {
    color: #667085;
    font-weight: 600;
    font-size: 12.5px;
}

.stat-card strong {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: #1f2430;
}

.stat-card.ok strong {
    color: #15803d;
}

.shop-page .row.g-3 {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.aff-nav a {
    background: #fff;
    border-color: #e3e7f0;
}

/* ===== قائمة الدول (رقم الهاتف) على الموبايل: Bottom Sheet بدون :has ولا بلور ===== */
@media (max-width: 575px) {
    .iti__country-list {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: none !important;
        max-height: 62vh !important;
        margin: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border: 0 !important;
        border-radius: 22px 22px 0 0 !important;
        background: #fff;
        z-index: 100001 !important;
        white-space: normal !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        /* التعتيم كظل ضخم للقائمة نفسها: يظهر خلفها دائمًا ولا يغطيها ولا يحتاج عنصرًا إضافيًا */
        box-shadow: 0 0 0 100vmax rgba(15, 23, 42, .5), 0 -20px 60px rgba(15, 23, 42, .35) !important;
    }

    .iti--container {
        z-index: 100001 !important;
    }

    .iti__country {
        padding: 13px 18px !important;
        font-size: 15px;
    }

    .iti__country-name {
        margin-inline-end: 8px;
    }

    .iti__divider {
        margin: 4px 0;
    }
}

/* ===== أداء الموبايل: بدون backdrop-filter على الطبقات كبيرة المساحة ===== */
.offcanvas-overlay {
    background: rgba(15, 23, 42, .55);
}

#mobile-menu-offcanvas.fx-drawer.offcanvas-open {
    box-shadow: -6px 0 22px rgba(0, 0, 0, .28) !important;
}

@media (max-width: 991px) {

    .modal-backdrop.show,
    #fx-loader {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ===== قائمة الموبايل الجانبية: حركة GPU بالـ transform فقط ===== */
.offcanvas-overlay {
    display: none !important;
}

#fxScrim {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility 0s linear .22s;
}

html.fx-menu-open #fxScrim {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

#mobile-menu-offcanvas.fx-drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(88vw, 360px) !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 100002 !important;
    transform: translate3d(105%, 0, 0) !important;
    visibility: hidden !important;
    transition: transform .26s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .26s !important;
    will-change: transform;
    contain: layout paint style;
    box-shadow: none !important;
}

html.fx-menu-open #mobile-menu-offcanvas.fx-drawer {
    transform: none !important;
    visibility: visible !important;
    transition-delay: 0s !important;
}

html.fx-menu-open {
    overflow: hidden;
}

html.fx-menu-open .fx-tabbar {
    transform: translateY(115%);
}

.fx-dr {
    contain: content;
    overscroll-behavior: contain;
}