/* =========================================
   كنز النحل - الهيدر + بطاقات المنتجات
   ========================================= */


/* =========================================
   الهيدر النهائي للكمبيوتر
   ========================================= */

.kanz-desktop-menu {
    display: none;
}

@media (min-width: 1024px) {

    .header__main-row {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 110px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* الشعار أقصى اليمين */
    .header__brand {
        position: absolute !important;
        right: 20px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;

        width: 110px !important;
        min-width: 110px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        z-index: 50 !important;
    }

    .header__brand img {
        width: auto !important;
        height: auto !important;
        max-width: 92px !important;
        max-height: 82px !important;
        object-fit: contain !important;
    }

    /* الأقسام بعد الشعار مباشرة */
    .kanz-desktop-menu {
        display: flex !important;
        position: absolute !important;

        right: 155px !important;
        left: 250px !important;

        top: 50% !important;
        transform: translateY(-50%) !important;

        direction: rtl !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;

        align-items: center !important;
        justify-content: flex-start !important;

        gap: 18px !important;

        margin: 0 !important;
        padding: 0 !important;

        z-index: 30 !important;
    }

    /* خط الأقسام */
    .kanz-desktop-menu a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        color: #C5A057 !important;

        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;

        white-space: nowrap !important;
        text-decoration: none !important;

        margin: 0 !important;
        padding: 7px 0 !important;
    }

    .kanz-desktop-menu a:hover {
        opacity: 0.75 !important;
    }

    /* الأيقونات أقصى اليسار */
    .header__main-start {
        position: absolute !important;
        left: 25px !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;

        gap: 18px !important;

        width: auto !important;
        min-width: 0 !important;

        z-index: 100 !important;
    }

    /* الطرف الآخر */
    .header__main-end {
        position: absolute !important;
        left: 25px !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;

        display: flex !important;
        align-items: center !important;
        gap: 18px !important;

        width: auto !important;
        min-width: 0 !important;

        z-index: 100 !important;
    }

    /* نخفي فقط القائمة القديمة */
    .header__main-row .menu-label,
    .header__main-row .sicon-menu {
        display: none !important;
    }

    /* نخلي الأيقونات نفسها ظاهرة */
    .header__main-start a,
    .header__main-start button,
    .header__main-end a,
    .header__main-end button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}


/* =========================================
   اللابتوبات الأصغر
   ========================================= */

@media (min-width: 1024px) and (max-width: 1300px) {

    .kanz-desktop-menu {
        right: 140px !important;
        left: 220px !important;
        gap: 18px !important;
    }

    .kanz-desktop-menu a {
        font-size: 16px !important;
    }

    .header__brand img {
        max-width: 85px !important;
    }
}


/* =========================================
   بطاقات المنتجات - الكمبيوتر
   ========================================= */

@media (min-width: 768px) {

    /* البطاقة */
    salla-product-card,
    .s-product-card-entry {
        background: #ffffff !important;
        border-radius: 30px !important;
        overflow: hidden !important;
        border: 1px solid rgba(0, 0, 0, 0.025) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    }

    .s-product-card-entry {
        min-height: 640px !important;

        display: flex !important;
        flex-direction: column !important;

        padding: 22px 22px 24px !important;
    }

    /* منطقة صورة المنتج */
    .s-product-card-image {
        width: 100% !important;

        height: 245px !important;
        min-height: 245px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        background: transparent !important;

        margin: 0 0 18px !important;
        padding: 0 !important;

        overflow: hidden !important;
    }

    /* صورة المنتج */
    .s-product-card-image img {
        display: block !important;

        width: 100% !important;
        height: 100% !important;

        max-width: 250px !important;
        max-height: 235px !important;

        object-fit: contain !important;

        margin: auto !important;
    }

    /* محتوى البطاقة */
    .s-product-card-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        flex: 1 1 auto !important;

        width: 100% !important;

        text-align: center !important;
    }

    /* اسم المنتج */
    .s-product-card-content-title,
    .s-product-card-content-title a {
        width: 100% !important;

        color: #111827 !important;

        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1.5 !important;

        text-align: center !important;

        margin: 0 0 7px !important;
    }

    /* العنوان الفرعي / الوصف */
    .s-product-card-content-sub,
    .s-product-card-content-description {
        width: 100% !important;

        color: #555555 !important;

        font-size: 15px !important;
        font-weight: 400 !important;
        line-height: 1.7 !important;

        text-align: center !important;

        margin: 0 0 10px !important;
    }

    /* التقييم */
    .s-product-card-rating {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;

        margin: 10px 0 12px !important;
    }

    /* السعر */
    .s-product-card-price {
        width: 100% !important;

        color: #111827 !important;

        font-size: 20px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;

        text-align: center !important;

        margin: 8px 0 18px !important;
    }

    /* الفوتر ينزل لأسفل البطاقة */
    .s-product-card-content-footer {
        width: 100% !important;
        margin-top: auto !important;
    }

    /* زر إضافة للسلة */
    .s-product-card-content-footer button,
    .s-product-card-content-footer .s-button-element,
    .s-product-card-entry button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 88% !important;
        min-height: 60px !important;

        margin: 0 auto !important;
        padding: 10px 18px !important;

        background: #C5A057 !important;
        color: #ffffff !important;

        border: 0 !important;
        border-radius: 999px !important;

        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;

        box-shadow: none !important;
    }

    .s-product-card-content-footer button:hover,
    .s-product-card-content-footer .s-button-element:hover,
    .s-product-card-entry button:hover {
        opacity: 0.9 !important;
    }
}


/* =========================================
   بطاقات المنتجات - الجوال
   ========================================= */

@media (max-width: 767px) {

    salla-product-card,
    .s-product-card-entry {
        background: #ffffff !important;
        border-radius: 22px !important;
        overflow: hidden !important;
    }

    .s-product-card-entry {
        min-height: auto !important;
        padding: 14px !important;
    }

    .s-product-card-image {
        height: 185px !important;
        min-height: 185px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .s-product-card-image img {
        width: 100% !important;
        height: 100% !important;

        max-height: 175px !important;

        object-fit: contain !important;
    }

    .s-product-card-content {
        text-align: center !important;
        align-items: center !important;
    }

    .s-product-card-content-title,
    .s-product-card-content-title a {
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }

    .s-product-card-content-sub,
    .s-product-card-content-description {
        font-size: 13px !important;
        line-height: 1.6 !important;
        text-align: center !important;
    }

    .s-product-card-rating {
        justify-content: center !important;
    }

    .s-product-card-price {
        font-size: 17px !important;
        font-weight: 700 !important;
        text-align: center !important;
    }

    .s-product-card-content-footer button,
    .s-product-card-content-footer .s-button-element,
    .s-product-card-entry button {
        width: 100% !important;
        min-height: 48px !important;

        background: #C5A057 !important;
        color: #ffffff !important;

        border: 0 !important;
        border-radius: 999px !important;

        font-size: 15px !important;
        font-weight: 700 !important;
    }
}


/* =========================================
   الجوال والتابلت - الهيدر الأصلي
   ========================================= */

@media (max-width: 1023px) {

    .kanz-desktop-menu {
        display: none !important;
    }

    .header__brand,
    .header__main-start,
    .header__main-end {
        position: static !important;

        right: auto !important;
        left: auto !important;
        top: auto !important;

        transform: none !important;

        width: auto !important;
        min-width: 0 !important;
    }
}/* =========================================
   كنز النحل - إخفاء زر تعديل المنتج
   ========================================= */

/* إخفاء شريط/زر تعديل المنتج الظاهر أعلى الموقع */
a[href*="edit"],
button[class*="edit-product"],
[class*="edit-product"],
[class*="product-edit"],
[data-testid*="edit-product"] {
    display: none !important;
}/* =========================================
 /* =========================================
/* =========================================
   كنز النحل - الفوتر النهائي
   أسود بالأعلى → بني ذهبي بالأسفل
   ========================================= */

/* الخلفية الرئيسية فقط */
footer,
footer.store-footer,
.store-footer {
    background: linear-gradient(
        180deg,
        #000000 0%,
        #050403 45%,
        #171109 72%,
        #5A4525 100%
    ) !important;

    background-color: #000000 !important;
    background-image: linear-gradient(
        180deg,
        #000000 0%,
        #050403 45%,
        #171109 72%,
        #5A4525 100%
    ) !important;
}


/* إزالة الخلفيات من الطبقات الداخلية */
footer div,
footer section,
footer .container,
.store-footer div,
.store-footer section,
.store-footer .container {
    background-color: transparent !important;
    background-image: none !important;
}


/* إزالة أي تدرج من العناصر الوهمية */
footer div::before,
footer div::after,
footer section::before,
footer section::after,
.store-footer div::before,
.store-footer div::after {
    background: transparent !important;
    background-image: none !important;
}


/* النصوص أبيض */
footer,
footer p,
footer span,
footer li,
footer a,
.store-footer,
.store-footer p,
.store-footer span,
.store-footer li,
.store-footer a {
    color: #FFFFFF !important;
}


/* عناوين الفوتر ذهبية */
footer h2,
footer h3,
footer h4,
footer h5,
.store-footer h2,
.store-footer h3,
.store-footer h4,
.store-footer h5 {
    color: #C5A057 !important;
}


/* الأيقونات ذهبية */
footer i,
footer svg,
.store-footer i,
.store-footer svg {
    color: #C5A057 !important;
}


/* خط الفصل */
footer hr,
.store-footer hr {
    border-color: rgba(197, 160, 87, 0.25) !important;
}


/* إزالة الظلال/الشرائط بين أقسام الفوتر */
footer div,
footer section,
.store-footer div,
.store-footer section {
    box-shadow: none !important;
}/* إزالة الخطوط المنقطة من الفوتر */
footer,
footer *,
.store-footer,
.store-footer * {
    border-top-style: none !important;
    border-bottom-style: none !important;
    outline: none !important;
}

/* إزالة أي فواصل أفقية */
footer hr,
.store-footer hr {
    display: none !important;

  /* كنز النحل - إزالة الزخرفة العلوية للفوتر */

footer::before,
footer::after,
.store-footer::before,
.store-footer::after,
.store-footer > div::before,
.store-footer > div::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
}

/* منع أي حدود أعلى الفوتر */
footer,
.store-footer,
.store-footer > div {
    border-top: 0 !important;

  /* =========================================
   كنز النحل - هيدر شفاف بالكامل فوق البنر
   ========================================= */

@media (min-width: 1024px) {

    /* إزالة خلفية الهيدر */
    .store-header,
    #mainnav,
    .main-nav-container,
    .main-nav-container .inner,
    .header__main-container,
    .header__main-row {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* وضع الهيدر فوق البنر */
    .store-header {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
    }

    #mainnav,
    .main-nav-container {
        position: relative !important;
        z-index: 9999 !important;
    }

    /* إزالة الخلفيات الداخلية للهيدر */
    .store-header .header__main-container,
    .store-header .header__main-row,
    #mainnav .inner,
    .main-nav-container .inner {
        background: transparent !important;
    }

    /* القوائم المنسدلة فقط تبقى بيضاء */
    .dropdown-menu,
    .menu-dropdown,
    .sub-menu,
    .s-user-menu-wrapper,
    .s-cart-summary-wrapper {
        background: #ffffff !important;
    }