 /* ===================================
   Zadio Design System
   =================================== */
:root {
    /* Brand Colors */
    --zadio-orange: #E77B19;
    --zadio-orange-hover: #CF6810;
    --zadio-orange-light: #FFF3E8;
    --zadio-navy: #243653;
    --zadio-navy-hover: #182842;
    --zadio-navy-light: #EEF2F7;
    /* Background & Surfaces */
    --zadio-white: #FFFFFF;
    --zadio-bg: #F6F7F9;
    --zadio-surface: #FFFFFF;
    /* Text */
    --zadio-text: #243653;
    --zadio-text-muted: #6B7280;
    /* Borders */
    --zadio-border: #E5E7EB;
    --zadio-border-hover: #D1D5DB;
    /* Status Colors */
    --zadio-success: #198754;
    --zadio-danger: #DC3545;
    --zadio-warning: #F0A000;
    --zadio-info: #0D6EFD;
    /* Radius */
    --zadio-radius-sm: 8px;
    --zadio-radius: 12px;
    --zadio-radius-lg: 18px;
    /* Shadows */
    --zadio-shadow-sm: 0 2px 8px rgba(36, 54, 83, .05);
    --zadio-shadow: 0 6px 20px rgba(36, 54, 83, .08);
    --zadio-shadow-hover: 0 12px 30px rgba(36, 54, 83, .12);
    /* Transition */
    --zadio-transition: .2s ease;
}


/* ===================================
   Base & Global
   =================================== */

* {
    box-sizing: border-box;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    direction: rtl;
    background-color: var(--zadio-bg);
    color: var(--zadio-text);
    font-family: Arial, Tahoma, sans-serif;
}

a {
    transition: color var(--zadio-transition), background var(--zadio-transition), border-color var(--zadio-transition), box-shadow var(--zadio-transition), transform var(--zadio-transition);
}


/* ===================================
   Bootstrap Focus
   =================================== */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(231, 123, 25, .25);
}


/* ===================================
   Floating Forms
   =================================== */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* ===================================
   Zadio Header
   =================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--zadio-white);
    border-bottom: 1px solid var(--zadio-border);
    box-shadow: var(--zadio-shadow-sm);
}

.site-navbar {
    width: 100%;
}

.site-navbar-content {
    display: grid;
    align-items: center;
    width: 100%;
}


/* ===================================
   Zadio Logo
   =================================== */

.site-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

    .site-brand:hover {
        text-decoration: none;
    }

.site-logo {
    display: block;
    width: 170px;
    height: auto;
}


/* ===================================
   Menu Button
   =================================== */

.site-menu-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

    .site-menu-btn span {
        display: block;
        width: 23px;
        height: 2px;
        background: var(--zadio-navy);
        border-radius: 5px;
    }


/* ===================================
   Search
   =================================== */

.site-search {
    position: relative;
    min-width: 0;
    width: 100%;
}

.site-search-input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 42px;
    background: var(--zadio-bg);
    border: 1px solid var(--zadio-border);
    border-radius: 10px;
    color: var(--zadio-text);
    text-align: center;
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

    .site-search-input::placeholder {
        text-align: center;
        color: var(--zadio-text-muted);
    }

    .site-search-input:focus {
        background: #fff;
        border-color: var(--zadio-orange);
        box-shadow: 0 0 0 3px rgba(231, 123, 25, .10);
    }

.site-search-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--zadio-text-muted);
    font-size: 25px;
    pointer-events: none;
}


/* ===================================
   User Area
   =================================== */

.site-user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-user-name {
    color: var(--zadio-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.site-logout-form {
    margin: 0;
}

.site-login-btn,
.site-logout-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid var(--zadio-border);
    border-radius: var(--zadio-radius-sm);
    background: var(--zadio-white);
    color: var(--zadio-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

    .site-login-btn:hover,
    .site-logout-btn:hover {
        background: var(--zadio-orange-light);
        border-color: var(--zadio-orange);
        color: var(--zadio-orange);
    }


/* ===================================
   Account Button
   =================================== */

.site-account-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--zadio-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

    .site-account-btn:hover {
        background: var(--zadio-orange-light);
        color: var(--zadio-orange);
        text-decoration: none;
    }

/* ===================================
   Cart
   =================================== */

.site-cart-btn {
    position: relative;
    width: 62px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--zadio-navy);
    text-decoration: none;
    cursor: pointer;
}

    .site-cart-btn:hover {
        background: transparent;
        color: var(--zadio-orange);
        text-decoration: none;
    }

/*
   تم تكبير مساحة الصورة لتعويض
   المساحات الشفافة الموجودة داخل ملف PNG
*/

.site-cart-logo {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
    transition: transform .2s ease;
}

.site-cart-btn:hover .site-cart-logo {
    transform: scale(1.06);
}

/* Cart Counter */

.site-cart-btn::after {
    content: var(--cart-count, "0");
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zadio-orange);
    color: #ffffff;
    border: 2px solid var(--zadio-white);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(36, 54, 83, .18);
}


/* ===================================
   Main Layout
   =================================== */

.site-main-container {
    min-height: calc(100vh - 70px);
    padding-top: 24px;
    padding-bottom: 35px;
}


/* ===================================
   General Buttons
   =================================== */

.btn-primary {
    background-color: var(--zadio-orange);
    border-color: var(--zadio-orange);
}

     .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: var(--zadio-orange-hover);
        border-color: var(--zadio-orange-hover);
    }

.btn-outline-primary {
    color: var(--zadio-orange);
    border-color: var(--zadio-orange);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        background-color: var(--zadio-orange);
        border-color: var(--zadio-orange);
    }


/* ===================================
   General Cards
   =================================== */

.card {
    border: 1px solid var(--zadio-border);
    border-radius: var(--zadio-radius);
    box-shadow: var(--zadio-shadow-sm);
    overflow: hidden;
}

.card-header {
    background-color: var(--zadio-white);
    border-bottom: 1px solid var(--zadio-border);
}


/* ===================================
   General Forms
   =================================== */

.form-control,
.form-select {
    min-height: 42px;
    border-color: var(--zadio-border);
    border-radius: var(--zadio-radius-sm);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--zadio-orange);
        box-shadow: 0 0 0 .2rem rgba(231, 123, 25, .12);
    }


/* ===================================
   General Tables
   =================================== */

.table {
    --bs-table-bg: transparent;
}

    .table thead th {
        color: var(--zadio-navy);
        background-color: var(--zadio-navy-light);
        border-bottom-color: var(--zadio-border);
        font-weight: 700;
    }

    .table > :not(caption) > * > * {
        border-bottom-color: var(--zadio-border);
    }


/* ===================================
   Site Toast Messages
   =================================== */

.site-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    width: min(420px, calc(100vw - 30px));
    padding: 14px 16px;
    border: 1px solid rgba(36, 54, 83, .08);
    border-radius: 14px;
    background: var(--zadio-surface);
    box-shadow: 0 10px 30px rgba(36, 54, 83, .15);
    animation: toastSlideIn .35s ease-out;
    transition: opacity .3s ease, transform .3s ease;
}

.site-toast-success {
    border-right: 5px solid var(--zadio-success);
}

.site-toast-error {
    border-right: 5px solid var(--zadio-danger);
}

.site-toast-warning {
    border-right: 5px solid var(--zadio-warning);
}

.site-toast-info {
    border-right: 5px solid var(--zadio-info);
}

.site-toast-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.site-toast-success .site-toast-icon {
    background: var(--zadio-success);
}

.site-toast-error .site-toast-icon {
    background: var(--zadio-danger);
}

.site-toast-warning .site-toast-icon {
    background: var(--zadio-warning);
    color: #212529;
}

.site-toast-info .site-toast-icon {
    background: var(--zadio-info);
}

.site-toast-content {
    flex-grow: 1;
}

.site-toast-title {
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 700;
    color: var(--zadio-text);
}

.site-toast-message {
    font-size: 14px;
    color: var(--zadio-text-muted);
}

.site-toast-close {
    padding: 0 4px;
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    color: var(--zadio-text-muted);
    cursor: pointer;
}

    .site-toast-close:hover {
        color: var(--zadio-text);
    }

.site-toast-hide {
    opacity: 0;
    transform: translateX(30px);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ===================================
   Merchant Dashboard
   =================================== */

.merchant-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 40px;
}


/* Welcome */
.merchant-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
    margin-bottom: 25px;
    background: var(--zadio-white);
    border: 1px solid var(--zadio-border);
    border-radius: var(--zadio-radius-lg);
    box-shadow: var(--zadio-shadow);
}

.merchant-welcome h2 {
    margin-bottom: 5px;
    color: var(--zadio-navy);
    font-size: 25px;
    font-weight: 700;
}

.merchant-welcome p {
    margin: 0;
    color: var(--zadio-text-muted);
}


/* Statistics */

.merchant-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.merchant-stat-card {
    padding: 22px;
    text-align: center;
    background: var(--zadio-white);
    border: 1px solid var(--zadio-border);
    border-radius: var(--zadio-radius);
    box-shadow: var(--zadio-shadow-sm);
    transition: transform var(--zadio-transition), box-shadow var(--zadio-transition);
}

    .merchant-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--zadio-shadow);
    }

.merchant-stat-number {
    margin-bottom: 5px;
    color: var(--zadio-orange);
    font-size: 30px;
    font-weight: 700;
}

.merchant-stat-label {
    color: var(--zadio-text-muted);
    font-size: 14px;
}


/* Sections */

.merchant-section {
    margin-top: 25px;
}

    .merchant-section h4 {
        margin-bottom: 18px;
        color: var(--zadio-navy);
        font-weight: 700;
    }


/* Action Cards */

.merchant-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.merchant-action-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    gap: 15px;
    padding: 20px;
    color: var(--zadio-text);
    text-decoration: none;
    background: var(--zadio-white);
    border: 1px solid var(--zadio-border);
    border-radius: var(--zadio-radius);
    box-shadow: var(--zadio-shadow-sm);
    transition: transform var(--zadio-transition), box-shadow var(--zadio-transition), border-color var(--zadio-transition);
}

    .merchant-action-card:hover {
        color: var(--zadio-text);
        text-decoration: none;
        transform: translateY(-3px);
        border-color: rgba(231, 123, 25, .35);
        box-shadow: var(--zadio-shadow-hover);
    }

.merchant-action-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    background: var(--zadio-orange-light);
    border-radius: 14px;
}

.merchant-action-card h5 {
    margin: 0 0 5px;
    color: var(--zadio-navy);
    font-size: 16px;
    font-weight: 700;
}

.merchant-action-card p {
    margin: 0;
    color: var(--zadio-text-muted);
    font-size: 13px;
}

/* ===================================
   Merchant Product Image
=================================== */

.merchant-action-icon.product-image-icon {
    overflow: hidden;
    padding: 0;
}

.merchant-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* ===================================
   Product Images Preview
=================================== */

.product-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.product-image-preview-item {
    width: 120px;
    position: relative;
}

    .product-image-preview-item img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #ddd;
        display: block;
    }

.product-image-preview-main {
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.product-image-preview-remove {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 20px;
    z-index: 2;
}

/* Disabled */

.merchant-action-disabled {
    opacity: .6;
    cursor: not-allowed;
    pointer-events: none;
}


/* ===================================
   Site Footer
   =================================== */

.site-footer {
    padding: 18px 0;
    margin-top: auto;
    background: var(--zadio-white);
    border-top: 1px solid var(--zadio-border);
    color: var(--zadio-text-muted);
    font-size: 13px;
}


/* ===================================
   Desktop Header
   =================================== */

@media (min-width: 768px) {

    .site-navbar-content {
        display: grid;
        grid-template-columns: auto auto minmax(280px, 650px) auto auto;
        grid-template-areas:
            "menu account search cart logo";
        align-items: center;
        gap: 16px;
        min-height: 70px;
    }


    /* القائمة */

    .site-menu-btn {
        grid-area: menu;
        justify-self: start;
    }


    /* حسابي */

    .site-user-area {
        grid-area: account;
        position: static;
        justify-self: start;
        gap: 10px;
    }


    /* البحث */

    .site-search {
        grid-area: search;
        position: relative;
        width: 100%;
        max-width: 650px;
        justify-self: center;
        transform: none;
    }


    /* السلة */

    .site-cart-btn {
        grid-area: cart;
        position: relative;
        top: auto;
        left: auto;
        justify-self: center;
    }


    /* اللوجو */

    .site-brand {
        grid-area: logo;
        justify-self: end;
    }
}


/* ===================================
   Mobile & Responsive Foundation
   =================================== */

@media (max-width: 767.98px) {

    /* Container */

    .container {
        width: 100%;
        max-width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    main {
        padding-bottom: 20px !important;
    }


    /* ===================================
       Mobile Header
       =================================== */

    .site-navbar-content {
        /*
           الأعمدة الجانبية متساوية
           حتى يبقى البحث في المنتصف تماماً
        */

        grid-template-columns: minmax(0, 1fr) minmax(120px, 1.7fr) minmax(0, 1fr);
        grid-template-areas:
            "menu search logo"
            "account . cart";
        column-gap: 8px;
        row-gap: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
        min-height: 112px;
    }


    /* Menu */

    .site-menu-btn {
        grid-area: menu;
        justify-self: start;
        width: 38px;
        height: 38px;
    }

        .site-menu-btn span {
            width: 21px;
        }


    /* Search */

    .site-search {
        grid-area: search;
        width: 100%;
        min-width: 0;
        justify-self: center;
        /* تحريك بسيط ناحية القائمة */
        transform: translateX(25px);
    }

    .site-search-input {
        height: 38px;
        padding-right: 36px;
        padding-left: 36px;
        font-size: 13px;
        text-align: center;
    }

        .site-search-input::placeholder {
            text-align: center;
        }

    .site-search-icon {
        right: 10px;
        font-size: 22px;
    }


    /* Logo */

    .site-brand {
        grid-area: logo;
        justify-self: end;
    }

    .site-logo {
        width: 90px;
    }


    /* Account */

    .site-user-area {
        grid-area: account;
        justify-self: start;
        gap: 7px;
    }

    .site-user-name {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
    }

    .site-login-btn,
    .site-logout-btn {
        min-height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }


    /* Cart */

    .site-cart-btn {
        grid-area: cart;
        justify-self: end;
        width: 56px;
        height: 42px;
    }

    /*
       حجم أكبر لتعويض الفراغ
       الموجود داخل ملف صورة السلة
    */

    .site-cart-logo {
        width: 52px;
        height: 52px;
    }

    .site-cart-btn::after {
        top: 0;
        right: 0;
        width: 19px;
        height: 19px;
        font-size: 10px;
    }


    /* Main */

    .site-main-container {
        min-height: calc(100vh - 112px);
        padding-top: 12px;
        padding-bottom: 20px;
    }


    /* Merchant Dashboard */

    .merchant-dashboard {
        width: 100%;
        padding: 10px 0 25px;
    }

    .merchant-welcome {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        padding: 18px;
        margin-bottom: 18px;
    }

        .merchant-welcome h2 {
            font-size: 21px;
        }

        .merchant-welcome p {
            font-size: 14px;
        }


    /* Statistics */

    .merchant-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 22px;
    }

    .merchant-stat-card {
        min-width: 0;
        padding: 15px 8px;
    }

    .merchant-stat-number {
        font-size: 24px;
    }

    .merchant-stat-label {
        font-size: 13px;
        line-height: 1.4;
    }


    /* Sections */

    .merchant-section {
        margin-top: 20px;
    }

     .merchant-section h4 {
        margin-bottom: 14px;
        font-size: 18px;
    }


    /* Action Cards */

    .merchant-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .merchant-action-card {
        min-width: 0;
        gap: 12px;
        padding: 16px;
    }

    .merchant-action-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
        border-radius: 12px;
    }

    .merchant-action-card h5 {
        font-size: 15px;
    }

    .merchant-action-card p {
        font-size: 13px;
        line-height: 1.5;
    }


    /* Toast */

    .site-toast {
        top: 12px;
        right: 15px;
    }
}
.site-account-btn .site-account-icon {
    color: #243653 !important;
    font-size: 20px;
}
.site-account-icon {
    width: 25px;
    height: 25px;
    display: block;
    flex-shrink: 0;
    fill: var(--zadio-navy);
}
/* ===================================
   Zadio Side Menu
=================================== */

/* ===================================
   Side Menu Overlay
=================================== */

.site-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(36, 54, 83, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
}

    .site-menu-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }


/* ===================================
   Side Menu Container
=================================== */

.site-side-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    /* عرض القائمة على الكمبيوتر */
    width: 280px;
    display: flex;
    flex-direction: column;
    background: var(--zadio-white);
    box-shadow: -8px 0 30px rgba(36, 54, 83, .18);
    /* خارج الشاشة */
    transform: translateX(110%);
    /* حركة أبطأ وأنعم */
    transition: transform .65s ease;
}

    .site-side-menu.is-open {
        transform: translateX(0);
    }


/* ===================================
   Menu Header
=================================== */

.site-side-menu-header {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--zadio-border);
}


/* ===================================
   Side Menu Logo
=================================== */

.site-side-menu-brand {
    display: flex;
    align-items: center;
    width: 115px;
    height: 45px;
    overflow: hidden;
    text-decoration: none;
}

.site-side-menu-logo {
    display: block;
    width: 115px;
    max-width: 100%;
    height: auto;
    max-height: 45px;
    object-fit: contain;
}


/* ===================================
   Close Button
=================================== */

.site-side-menu-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--zadio-orange-light);
    color: var(--zadio-orange);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--zadio-transition), color var(--zadio-transition), transform var(--zadio-transition);
}

    .site-side-menu-close:hover {
        background: var(--zadio-orange);
        color: var(--zadio-white);
        transform: rotate(90deg);
    }


/* ===================================
   Menu Content
=================================== */

.site-side-menu-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px 22px;
}


/* ===================================
   Main Links
=================================== */

.site-menu-home {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--zadio-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--zadio-radius-sm);
    transition: background var(--zadio-transition), color var(--zadio-transition);
}

    .site-menu-home:hover {
        background: var(--zadio-orange-light);
        color: var(--zadio-orange);
        text-decoration: none;
    }


/* ===================================
   Categories
=================================== */

.site-menu-category {
    margin: 2px 0;
}

.site-menu-category-toggle {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 0;
    border-radius: var(--zadio-radius-sm);
    background: transparent;
    color: var(--zadio-navy);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: background var(--zadio-transition), color var(--zadio-transition);
}

    .site-menu-category-toggle:hover {
        background: var(--zadio-orange-light);
        color: var(--zadio-orange);
    }
/* ===================================
   Arrow
=================================== */

/*
   السهم مغلق = ناحية اليسار
   عند الفتح = ناحية الأسفل
*/

.site-menu-arrow {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    /* السهم الأساسي ناحية اليسار */
    transform: rotate(90deg);
    transition: transform .35s ease;
}

/* عند فتح القسم يصبح السهم لأسفل */

.site-menu-category.is-open .site-menu-arrow {
    transform: rotate(0deg);
}


/* ===================================
   Sub Categories
=================================== */

/* مغلقة افتراضياً */

.site-menu-subcategories {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .45s ease, opacity .25s ease, padding .45s ease;
}


/* تظهر عند فتح القسم */

.site-menu-category.is-open
.site-menu-subcategories {
    max-height: 450px;
    padding: 4px 0 8px;
    opacity: 1;
}


/* ===================================
   Subcategory Links
=================================== */

.site-menu-subcategories a {
    min-height: 40px;
    display: flex;
    align-items: center;
    margin-right: 12px;
    padding: 0 12px;
    color: var(--zadio-text-muted);
    font-size: 13px;
    text-decoration: none;
    border-right: 2px solid var(--zadio-border);
    transition: color var(--zadio-transition), border-color var(--zadio-transition), background var(--zadio-transition);
}

    .site-menu-subcategories a:hover {
        color: var(--zadio-orange);
        border-right-color: var(--zadio-orange);
        background: var(--zadio-orange-light);
        text-decoration: none;
    }


/* ===================================
   Divider
=================================== */

.site-menu-divider {
    height: 1px;
    margin: 10px 8px;
    background: var(--zadio-border);
}


/* ===================================
   Scrollbar
=================================== */

.site-side-menu-content::-webkit-scrollbar {
    width: 5px;
}

.site-side-menu-content::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

.site-side-menu-content::-webkit-scrollbar-track {
    background: transparent;
}


/* ===================================
   Mobile Adjustments
=================================== */

@media (max-width: 576px) {

    .site-side-menu {
        /*
           عرض أقل على الهاتف.
           260px مناسب لمعظم شاشات الهاتف.
        */

        width: min(260px, 78vw);
        /* حركة أبطأ قليلاً */
        transition: transform .7s ease;
    }


    .site-side-menu-header {
        min-height: 64px;
        padding: 8px 10px;
    }


    /* Logo */

    .site-side-menu-brand {
        width: 100px;
        height: 42px;
    }

    .site-side-menu-logo {
        width: 100px;
        max-height: 42px;
    }


    /* Close */

    .site-side-menu-close {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }


    /* Main Menu */

    .site-menu-home,
    .site-menu-category-toggle {
        min-height: 44px;
        font-size: 13px;
    }


    /* Sub Menu */

    .site-menu-subcategories a {
        min-height: 38px;
        margin-right: 10px;
        padding: 0 10px;
        font-size: 12.5px;
    }
}
/* ===================================
   Zadio Announcement Bar
=================================== */

.site-announcement-bar {
    width: 100%;
    height: 42px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--zadio-navy);
    color: var(--zadio-white);
    white-space: nowrap;
}

.site-announcement-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    animation: zadioAnnouncementMove 30s linear infinite;
}

.site-announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 600;
}

.site-announcement-icon {
    color: var(--zadio-orange);
    font-size: 17px;
}

.site-announcement-separator {
    color: var(--zadio-orange);
    font-size: 18px;
}

.site-announcement-bar:hover .site-announcement-track {
    animation-play-state: paused;
}

@keyframes zadioAnnouncementMove {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }
}
/* ===================================
   Zadio Home Banners
=================================== */

.zadio-banners-section {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 0 15px;
}


/* ===================================
   Banner Cards
=================================== */

.zadio-banner-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--zadio-bg);
    border: 1px solid var(--zadio-border);
    border-radius: var(--zadio-radius);
    box-shadow: var(--zadio-shadow-sm);
}

.zadio-banner-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ===================================
   Static Wrapper
=================================== */

.zadio-banner-static-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}


    /* صورة واحدة */

    .zadio-banner-static-wrapper:not(.zadio-banner-two-desktop):not(.zadio-banner-three-desktop) {
        max-width: 430px;
        margin: 0 auto;
    }


/* صورتان */

.zadio-banner-two-desktop {
    max-width: 880px;
    margin: 0 auto;
}

    .zadio-banner-two-desktop .zadio-banner-card {
        flex: 0 1 calc(50% - 9px);
    }


/* ثلاث صور */

.zadio-banner-three-desktop {
    max-width: 1400px;
}

    .zadio-banner-three-desktop .zadio-banner-card {
        flex: 1 1 0;
        min-width: 0;
    }


/* ===================================
   Desktop Carousel
=================================== */

.zadio-desktop-carousel {
    display: block;
    width: 100%;
}

.zadio-banner-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

    .zadio-banner-group .zadio-banner-card {
        flex: 1 1 0;
        min-width: 0;
    }


        /* لو المجموعة الأخيرة فيها صورة واحدة */

        .zadio-banner-group .zadio-banner-card:only-child {
            max-width: 430px;
        }


        /* لو المجموعة الأخيرة فيها صورتان */

        .zadio-banner-group .zadio-banner-card:first-child:nth-last-child(2),
        .zadio-banner-group .zadio-banner-card:first-child:nth-last-child(2) ~ .zadio-banner-card {
            flex: 0 1 calc(50% - 9px);
            max-width: 430px;
        }


/* ===================================
   Mobile Carousel
=================================== */

.zadio-mobile-carousel {
    display: none;
}


/* ===================================
   Placeholder
=================================== */

.zadio-banner-placeholder {
    width: 100%;
    max-width: 430px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zadio-bg);
    border: 1px solid var(--zadio-border);
    border-radius: var(--zadio-radius);
}

.zadio-banner-placeholder-logo {
    width: 120px;
    max-width: 40%;
    height: auto;
    object-fit: contain;
}


/* ===================================
   Indicators
=================================== */

.zadio-desktop-indicators,
.zadio-mobile-indicators {
    position: relative;
    margin: 14px 0 0;
}

    .zadio-desktop-indicators button,
    .zadio-mobile-indicators button {
        width: 7px !important;
        height: 7px !important;
        margin: 0 4px !important;
        border: 0 !important;
        border-radius: 50%;
        background-color: var(--zadio-border) !important;
        opacity: 1 !important;
    }

        .zadio-desktop-indicators button.active,
        .zadio-mobile-indicators button.active {
            width: 20px !important;
            border-radius: 10px;
            background-color: var(--zadio-orange) !important;
        }


/* ===================================
   Tablet
=================================== */

@media (max-width: 991.98px) {

    .zadio-banners-section {
        padding: 0 12px;
    }

    .zadio-banner-static-wrapper,
    .zadio-banner-group {
        gap: 12px;
    }
}


/* ===================================
   Mobile
=================================== */

@media (max-width: 767.98px) {

    .zadio-banners-section {
        margin-top: 12px;
        padding: 0 12px;
    }
    /* ===================================
       صورة واحدة
       تظل ظاهرة وثابتة
    =================================== */

    .zadio-banner-static-wrapper:not(.zadio-banner-two-desktop):not(.zadio-banner-three-desktop) {
        display: flex !important;
        width: 100%;
        max-width: none;
    }

        .zadio-banner-static-wrapper:not(.zadio-banner-two-desktop):not(.zadio-banner-three-desktop)
        .zadio-banner-card {
            display: block;
            width: 100%;
            max-width: none;
        }


    /* ===================================
       صورتان أو ثلاث صور
       نخفي العرض الثابت
       لأن الهاتف يستخدم Slider
    =================================== */

    .zadio-banner-two-desktop,
    .zadio-banner-three-desktop,
    .zadio-desktop-carousel {
        display: none !important;
    }


    /* ===================================
       Mobile Slider
    =================================== */

    .zadio-mobile-carousel {
        display: block;
        width: 100%;
    }


    /* ===================================
       Banner Card
    =================================== */

    .zadio-banner-card {
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }


    /* ===================================
       Placeholder
    =================================== */

    .zadio-banner-placeholder {
        width: 100%;
        max-width: none;
        border-radius: 12px;
    }

    .zadio-banner-placeholder-logo {
        width: 100px;
    }


    /* ===================================
       Indicators
    =================================== */

    .zadio-mobile-indicators {
        margin-top: 8px;
    }

        .zadio-mobile-indicators button {
            width: 6px !important;
            height: 6px !important;
            margin: 0 3px !important;
        }

            .zadio-mobile-indicators button.active {
                width: 16px !important;
            }
}
/* ===================================
   Zadio Home Categories
=================================== */

.zadio-home-categories {
    width: 100%;
    max-width: 1400px;
    margin: 32px auto 0;
    padding: 0 15px 10px;
}


    /* ===================================
   Section Header
=================================== */

    .zadio-home-categories .zadio-section-header {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 26px;
    }

    .zadio-home-categories .zadio-section-title {
        position: relative;
        margin: 0;
        padding-bottom: 10px;
        color: var(--zadio-navy);
        font-size: 28px;
        font-weight: 700;
        text-align: center;
    }

        .zadio-home-categories .zadio-section-title::after {
            content: "";
            position: absolute;
            width: 80px;
            height: 3px;
            right: 50%;
            bottom: 0;
            transform: translateX(50%);
            border-radius: 10px;
            background: var(--zadio-orange);
        }


/* ===================================
   Categories List
=================================== */

.zadio-categories-list {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    width: 100%;
}


/* ===================================
   Category Item
=================================== */

.zadio-category-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: 210px;
}

.zadio-category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}


/* ===================================
   Category Circle
=================================== */

.zadio-category-circle {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--zadio-bg);
    border: 1px solid var(--zadio-border);
    border-radius: 50%;
    box-shadow: var(--zadio-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}


/* ===================================
   Category Image
=================================== */

.zadio-category-image {
    display: block;
    width: 88%;
    height: 88%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
}


/* ===================================
   Category بدون صورة
=================================== */

.zadio-category-placeholder {
    display: block;
    width: 52%;
    height: 52%;
    object-fit: contain;
}


/* ===================================
   Category Name
=================================== */

.zadio-category-name {
    display: block;
    margin-top: 14px;
    color: var(--zadio-navy);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    transition: color 0.25s ease;
}


/* ===================================
   Hover
=================================== */

.zadio-category-link:hover .zadio-category-circle {
    transform: translateY(-5px);
    border-color: var(--zadio-orange);
    box-shadow: var(--zadio-shadow);
}

.zadio-category-link:hover .zadio-category-image {
    transform: scale(1.06);
}

.zadio-category-link:hover .zadio-category-name {
    color: var(--zadio-orange);
}


/* ===================================
   Large Desktop
=================================== */

@media (min-width: 1200px) {

    .zadio-category-item {
        max-width: 190px;
    }
}


/* ===================================
   Tablet
=================================== */

@media (max-width: 991.98px) {

    .zadio-home-categories {
        margin-top: 25px;
        padding: 0 12px 10px;
    }

        .zadio-home-categories .zadio-section-title {
            font-size: 25px;
        }

    .zadio-categories-list {
        gap: 16px;
    }

    .zadio-category-name {
        margin-top: 10px;
        font-size: 15px;
    }
}


/* ===================================
   Mobile
=================================== */

@media (max-width: 767.98px) {
    .zadio-home-categories {
        margin-top: 22px;
        padding: 0 12px 10px;
    }

        .zadio-home-categories .zadio-section-header {
            margin-bottom: 18px;
        }

        .zadio-home-categories .zadio-section-title {
            font-size: 22px;
            padding-bottom: 8px;
        }

            .zadio-home-categories .zadio-section-title::after {
                width: 60px;
                height: 3px;
            }


    /* ===================================
   Mobile Categories Carousel
=================================== */

    .zadio-categories-list {
        justify-content: flex-start;
        gap: 14px;
        overflow: hidden;
        padding: 4px 0 12px;
    }

    .zadio-category-item {
        flex: 0 0 calc((100% - 28px) / 3);
        max-width: calc((100% - 28px) / 3);
    }

    .zadio-category-name {
        margin-top: 9px;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
    }

    .zadio-category-placeholder {
        width: 48%;
        height: 48%;
    }
}
/* ===================================
   Zadio Categories Carousel
=================================== */

.zadio-categories-carousel {
    width: 100%;
}

    .zadio-categories-carousel .carousel-inner {
        overflow: hidden;
    }

    .zadio-categories-carousel .carousel-item {
        transition: transform 1.4s ease-in-out;
    }

/* ===================================
   Categories Indicators
=================================== */

.zadio-categories-indicators {
    position: static;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

    .zadio-categories-indicators [data-bs-target] {
        width: 9px;
        height: 9px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background-color: #b8c0cc;
        opacity: 1;
    }

    .zadio-categories-indicators .active {
        background-color: var(--zadio-orange);
    }
/* ===================================
   Zadio Desktop Banner Carousel Speed
=================================== */

.zadio-desktop-carousel .carousel-item {
    transition: transform 1.4s ease-in-out;
}