/* ===== شعار الهيدر: يتكيّف مع أي صورة ===== */
.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-bottom,
body.theme-header-custom .sticky-header,
body.theme-header-custom .sticky-color--golden,
body.theme-header-custom .mobile-header {
    background: var(--fx-header-bg) !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;
}

/* ===== شريط الإعلانات وشريط معاينة المدير ===== */
.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;
}