/**
 * تخطيط واجهة بأسلوب أسراركو / سلة — شكل المتجر وليس الألوان فقط
 */

.container {
    max-width: 1280px;
}

/* ══════════════════════════════════
   سلايدر سلة (أسهم + تمرير يدوي)
══════════════════════════════════ */
.k-salla-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 8px;
}

.k-salla-track-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.k-salla-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 14px;
    scrollbar-width: none;
}

.k-salla-track::-webkit-scrollbar {
    display: none;
}

.k-salla-slide {
    flex: 0 0 calc((100% - 42px) / 4);
    max-width: calc((100% - 42px) / 4);
    scroll-snap-align: start;
    min-width: 0;
}

.k-salla-slide--square {
    flex: 0 0 calc((100% - 70px) / 6);
    max-width: calc((100% - 70px) / 6);
}

.k-salla-slide--brand {
    flex: 0 0 140px;
    max-width: 140px;
}

.k-salla-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--k-border, #e6e6e6);
    background: #fff;
    color: var(--k-text, #111827);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.k-salla-nav:hover {
    background: var(--k-accent, #43927c);
    border-color: var(--k-accent, #43927c);
    color: #fff;
}

@media (max-width: 1024px) {
    .k-salla-slide {
        flex-basis: calc((100% - 28px) / 3);
        max-width: calc((100% - 28px) / 3);
    }
    .k-salla-slide--square {
        flex-basis: calc((100% - 42px) / 4);
        max-width: calc((100% - 42px) / 4);
    }
}

@media (max-width: 768px) {
    .k-salla-carousel {
        padding: 0 4px;
    }
    .k-salla-nav {
        display: none;
    }
    .k-salla-slide {
        flex-basis: calc((100% - 12px) / 2.15);
        max-width: calc((100% - 12px) / 2.15);
    }
    .k-salla-slide--square {
        flex-basis: 108px;
        max-width: 108px;
    }
    .k-salla-slide--brand {
        flex-basis: 112px;
        max-width: 112px;
    }
}

/* ══════════════════════════════════
   مربعات التصنيفات (بدل الدوائر)
══════════════════════════════════ */
.k-square-cats {
    padding: 18px 0 8px;
    background: #fff;
}

.k-square-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--k-text);
}

.k-square-cat__img {
    display: block;
    width: 100%;
    aspect-ratio: 14 / 13;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid var(--k-border, #e6e6e6);
}

.k-square-cat__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.k-square-cat:hover .k-square-cat__img img {
    transform: scale(1.08);
}

.k-square-cat__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    font-weight: 800;
    color: var(--k-accent);
    background: #f0faf6;
}

.k-square-cat__name {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* إخفاء الدوائر القديمة إن وُجدت */
.circle-categories {
    display: none !important;
}

/* ══════════════════════════════════
   رأس القسم سلة
══════════════════════════════════ */
.k-showcase-header.k-salla-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
    margin: 0 auto 14px;
    padding: 0 48px;
    max-width: 1280px;
}

.k-showcase-header.k-salla-head .k-showcase-title {
    font-size: clamp(1.2rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--k-text);
}

.k-showcase-header.k-salla-head .k-showcase-tag,
.k-showcase-header.k-salla-head .k-showcase-line,
.k-showcase-header.k-salla-head .k-showcase-sub {
    display: none !important;
}

.k-salla-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--k-accent);
    text-decoration: none;
}

.k-salla-view-all:hover {
    color: var(--k-accent-dark);
}

.k-home-product-rail .k-showcase-footer,
.k-home-brands-rail .k-showcase-footer {
    display: none !important;
}

.k-cat-showcase,
.k-salla-section {
    padding: 22px 0 10px;
    background: #fff;
}

.k-cat-showcase + .k-cat-showcase {
    padding-top: 8px;
}

/* تبويبات فرعية */
.k-subcat-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 0 48px 14px;
    max-width: 1280px;
    margin: 0 auto;
    scrollbar-width: none;
}

.k-subcat-chips::-webkit-scrollbar { display: none; }

.k-subcat-chip {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--k-border);
    background: #fff;
    color: var(--k-text-soft);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.k-subcat-chip:hover {
    background: var(--k-accent);
    border-color: var(--k-accent);
    color: #fff;
}

@media (max-width: 768px) {
    .k-showcase-header.k-salla-head,
    .k-subcat-chips {
        padding-inline: 12px;
    }
}

/* ══════════════════════════════════
   كروت المنتجات — شكل سلة
══════════════════════════════════ */
.k-salla-section .k-product-card,
.k-salla-section .suggested-card {
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    box-shadow: none;
    background: #fff;
    height: 100%;
}

.k-salla-section .k-product-card:hover,
.k-salla-section .suggested-card:hover {
    transform: none;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
    border-color: #d1d5db;
}

.k-salla-section .suggested-card-body {
    text-align: right;
    padding: 10px 12px 6px;
    gap: 4px;
}

.k-salla-section .suggested-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.k-salla-section .suggested-card-price {
    font-size: 15px;
    font-weight: 800;
}

.k-salla-section .suggested-card-price ins {
    text-decoration: none;
    color: var(--k-cta, #954053);
}

.k-salla-section .suggested-card-actions {
    padding: 0 10px 10px;
}

.k-salla-section .k-card-media,
.k-salla-section .suggested-card-image {
    background: #fafafa;
    aspect-ratio: 1;
}

/* إخفاء أزرار المشاركة/النظرة السريعة — شكل أنظف مثل سلة */
.k-salla-section .k-btn-share,
.k-salla-section .k-btn-quick-view {
    display: none !important;
}

.k-salla-section .k-floating-actions {
    opacity: 1;
}

.k-salla-section .k-btn-wishlist {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.suggested-card .button.add_to_cart_button,
.k-product-card .add_to_cart_button,
.suggested-card-actions .button {
    background: var(--k-cta, #954053) !important;
    border-color: var(--k-cta, #954053) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    min-height: 40px;
    box-shadow: none !important;
}

.suggested-card .button.add_to_cart_button:hover {
    background: var(--k-cta-dark, #7a3343) !important;
}

.k-card-badge--new { background: var(--k-accent) !important; }
.k-card-badge--sale { background: var(--k-cta) !important; }

/* ══════════════════════════════════
   البراندات — شعارات فقط
══════════════════════════════════ */
.k-salla-brands {
    padding: 10px 0 24px;
    background: #fff;
}

.k-brand-logo-only {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 110px;
    padding: 14px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.k-brand-logo-only:hover {
    border-color: var(--k-accent);
    box-shadow: 0 6px 18px rgba(67, 146, 124, 0.12);
    transform: none;
}

.k-brand-logo-only .k-brand-rail-visual {
    height: 56px;
    width: 100%;
}

.k-brand-logo-only img {
    max-height: 56px;
    max-width: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.k-brand-logo-only .k-brand-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--k-text);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.k-brand-count { display: none !important; }

/* ══════════════════════════════════
   البنرات — طابع فخم (Luxury Storefront)
══════════════════════════════════ */

:root {
    --k-lux-radius: 22px;
    --k-lux-radius-sm: 16px;
    --k-lux-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --k-lux-shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
    --k-lux-shadow-soft: 0 8px 28px rgba(17, 24, 39, 0.06);
}

/* —— الهيرو السينمائي —— */
.k-banner-zone--hero,
.k-hero-editorial {
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
    width: 100%;
    position: relative;
    isolation: isolate;
    background: #0f1412;
}

.k-hero-editorial::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 28%;
    background: linear-gradient(to top, rgba(15, 20, 18, 0.35), transparent);
    pointer-events: none;
    z-index: 3;
}

.k-hero-editorial .k-hero-slides {
    position: relative;
    min-height: 0;
    background: #121816;
    aspect-ratio: 21 / 9;
    max-height: 520px;
}

.k-hero-editorial .k-hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    transition: opacity 1.05s var(--k-lux-ease), visibility 1.05s var(--k-lux-ease) !important;
}

.k-hero-editorial .k-hero-slide.is-active {
    position: absolute !important;
    height: 100% !important;
    overflow: hidden !important;
}

.k-hero-editorial .k-hero-slide-img,
.k-banner-zone--hero img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    display: block;
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.04);
    transition: transform 7s var(--k-lux-ease);
    background: #121816;
}

.k-hero-editorial .k-hero-slide.is-active .k-hero-slide-img {
    transform: scale(1);
}

.k-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.35s var(--k-lux-ease), background 0.25s, transform 0.25s var(--k-lux-ease), border-color 0.25s;
}

.k-hero-editorial:hover .k-hero-nav {
    opacity: 1;
}

.k-hero-nav:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    border-color: transparent;
    transform: translateY(-50%) scale(1.05);
}

.k-hero-nav--prev { left: 20px; }
.k-hero-nav--next { right: 20px; }

.k-hero-dots {
    bottom: 20px !important;
    gap: 8px !important;
    z-index: 6 !important;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 20, 18, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.k-hero-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.45) !important;
    border: 0 !important;
    padding: 0 !important;
    transition: width 0.35s var(--k-lux-ease), background 0.35s !important;
}

.k-hero-dot.is-active {
    width: 22px !important;
    background: #fff !important;
    transform: none !important;
}

/* —— بنرات وسط الصفحة —— */
.k-banner-zone:not(.k-banner-zone--hero).k-banner-block,
.k-banner-block {
    padding: 6px 20px !important;
    margin: 18px auto 22px !important;
    max-width: 1320px;
}

.k-banner-block .k-b-panel {
    border-radius: var(--k-lux-radius) !important;
    box-shadow: var(--k-lux-shadow-soft) !important;
    overflow: hidden;
    background: linear-gradient(145deg, #f7f8f8, #eef1f0);
    border: 1px solid rgba(17, 24, 39, 0.04);
    transition: box-shadow 0.45s var(--k-lux-ease), transform 0.45s var(--k-lux-ease) !important;
}

.k-banner-block .k-b-panel:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--k-lux-shadow) !important;
}

.k-banner-block .k-b-panel img {
    transition: transform 0.7s var(--k-lux-ease) !important;
}

.k-banner-block .k-b-panel:hover img {
    transform: scale(1.03) !important;
}

.k-banner-block .k-b-img,
.k-banner-block .k-b-img--uniform,
.k-banner-block .k-slide-img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
}

/* بنر عريض فاخر */
.k-banner-block[data-layout="fixed_1"] {
    padding-inline: 20px !important;
}

.k-banner-block[data-layout="fixed_1"] .k-b-panel {
    border-radius: var(--k-lux-radius) !important;
}

.k-banner-block[data-layout="fixed_1"] .k-b-img {
    width: 100% !important;
    aspect-ratio: 3.2 / 1;
    max-height: none !important;
    height: auto !important;
    object-fit: cover !important;
}

/* شبكة ثنائية / ثلاثية فاخرة */
.k-banner-grid-equal {
    gap: 14px !important;
}

.k-banner-grid-equal__cell .k-b-panel {
    height: 100%;
}

.k-banner-grid-equal--uniform .k-b-img--uniform {
    aspect-ratio: 4 / 3;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
}

.k-banner-block[data-layout="fixed_2"] .k-banner-grid-equal--uniform .k-b-img--uniform {
    aspect-ratio: 16 / 10;
}

.k-banner-block[data-layout="fixed_3"] .k-banner-grid-equal--uniform .k-b-img--uniform {
    aspect-ratio: 1 / 1;
}

/* ماست هيد فاخر */
.k-banner-masthead {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 14px;
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.k-banner-masthead__main .k-b-panel,
.k-banner-masthead__side-item .k-b-panel {
    height: 100%;
    border-radius: var(--k-lux-radius) !important;
}

.k-banner-masthead__side {
    display: grid;
    gap: 14px;
}

.k-banner-masthead img {
    border-radius: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 16 / 10;
}

.k-banner-masthead__main img {
    aspect-ratio: 16 / 11;
    min-height: 100%;
}

/* سلايدر بنرات وسط الصفحة */
.k-slider {
    border-radius: var(--k-lux-radius) !important;
    box-shadow: var(--k-lux-shadow-soft) !important;
    overflow: hidden;
}

.k-slider .k-b-panel {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.k-slide-dots {
    bottom: 16px !important;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(15, 20, 18, 0.25);
    backdrop-filter: blur(8px);
}

.k-dot {
    width: 7px;
    height: 7px;
    transition: width 0.3s var(--k-lux-ease), background 0.3s;
}

.k-dot-active {
    width: 18px;
    border-radius: 999px;
    background: #fff;
}

/* شريط البنرات العشر */
.k-home-banner-strip {
    padding: 8px 0 18px;
}

.k-home-banner-strip .k-image-strip-card,
.k-home-banner-strip img {
    border-radius: var(--k-lux-radius-sm) !important;
}

@media (min-width: 1200px) {
    .k-hero-editorial .k-hero-slides {
        max-height: 560px;
        aspect-ratio: 2.35 / 1;
    }

    .k-banner-block[data-layout="fixed_1"] .k-b-img {
        aspect-ratio: 3.4 / 1;
    }
}

@media (max-width: 991px) {
    .k-hero-editorial .k-hero-slides {
        aspect-ratio: 16 / 9;
        max-height: 380px;
    }

    .k-hero-nav {
        opacity: 0.85;
        width: 40px;
        height: 40px;
    }

    .k-banner-masthead {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .k-hero-nav {
        width: 34px;
        height: 34px;
    }
    .k-hero-nav--prev { left: 8px; }
    .k-hero-nav--next { right: 8px; }

    .k-hero-editorial .k-hero-slides {
        aspect-ratio: 4 / 3;
        max-height: 280px;
    }

    .k-hero-editorial::after {
        height: 22%;
    }

    .k-banner-block {
        padding-inline: 12px !important;
        margin-block: 12px 16px !important;
    }

    .k-banner-block .k-b-panel {
        border-radius: var(--k-lux-radius-sm) !important;
    }

    .k-banner-block[data-layout="fixed_1"] .k-b-img {
        aspect-ratio: 2.1 / 1;
    }

    .k-banner-grid-equal {
        gap: 8px !important;
    }

    .k-banner-grid-equal--3 {
        grid-template-columns: 1fr !important;
    }

    .k-duo-banner.k-banner-grid-equal,
    .k-banner-grid-equal:not(.k-banner-grid-equal--3) {
        grid-template-columns: 1fr 1fr !important;
    }

    .k-banner-block[data-layout="fixed_3"] .k-banner-grid-equal--uniform .k-b-img--uniform {
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .k-hero-editorial .k-hero-slide-img,
    .k-banner-block .k-b-panel,
    .k-banner-block .k-b-panel img {
        transition: none !important;
        transform: none !important;
    }
}

/* ══════════════════════════════════
   المميزات / الفوتر / واتساب
══════════════════════════════════ */
.k-features-bar {
    background: #f3f4f6;
    padding: 28px 0;
    border-top: 1px solid #e6e6e6;
}

.k-feature-item {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: none;
}

.k-footer {
    background: #f3f4f6 !important;
}

.search-submit { background: var(--k-accent) !important; }
.search-field:focus {
    border-color: var(--k-accent) !important;
    box-shadow: 0 0 0 3px rgba(67, 146, 124, 0.15) !important;
}

.k-float-wa {
    position: fixed;
    bottom: 22px;
    left: 18px;
    z-index: 9990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.k-float-wa:hover { transform: scale(1.06); color: #fff; }
.k-float-wa svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 768px) {
    .k-float-wa { bottom: 78px; left: 14px; width: 52px; height: 52px; }
    .k-hero-editorial .k-hero-slide-img,
    .k-banner-zone--hero img {
        max-height: 46vw;
        min-height: 140px;
    }
}

.button.alt,
.woocommerce a.button.alt,
.single_add_to_cart_button {
    background-color: var(--k-cta) !important;
    border-color: var(--k-cta) !important;
    color: #fff !important;
}

/* إزالة ظلال/تدرجات الشريط القديم */
.k-home-product-rail .k-product-rail-wrap::before,
.k-home-product-rail .k-product-rail-wrap::after {
    display: none !important;
}

/* ══════════════════════════════════
   هيدر أسراركو / سلة — شعار وسط
══════════════════════════════════ */
.k-salla-header {
    background: #fff;
    box-shadow: 0 1px 0 #eef0f2;
}

.k-salla-header .main-header,
.k-salla-header .header-actions,
.k-salla-header .mobile-actions {
    display: none !important;
}

.k-salla-topbar {
    background: #f3f4f6;
    border-bottom: 1px solid #e6e6e6;
    font-size: 12px;
    color: #4b5563;
}

.k-salla-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    padding-block: 4px;
}

.k-salla-topbar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.k-salla-topbar__links a {
    color: #4b5563;
    font-weight: 600;
    text-decoration: none;
}

.k-salla-topbar__links a:hover {
    color: var(--k-accent, #43927c);
}

.k-salla-mainnav {
    background: #fff;
    padding: 10px 0;
}

.k-salla-mainnav__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 56px;
}

.k-salla-mainnav__start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.k-salla-mainnav__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.k-salla-mainnav__brand img,
.k-salla-mainnav__brand .custom-logo {
    max-height: 48px !important;
    width: auto !important;
}

.k-salla-mainnav__brand .text-logo h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--k-text);
}

.k-salla-mainnav__end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.k-salla-iconbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    cursor: pointer;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.k-salla-iconbtn:hover {
    background: #f3f4f6;
    color: var(--k-accent, #43927c);
}

.k-salla-iconbtn__label {
    display: none;
    font-size: 14px;
    font-weight: 700;
}

@media (min-width: 992px) {
    .k-salla-mainnav__start .mobile-menu-toggle .k-salla-iconbtn__label {
        display: inline;
    }
    .k-salla-mainnav__start .mobile-menu-toggle {
        width: auto;
        padding-inline: 10px;
    }
}

.k-salla-iconbtn .cart-count,
.k-salla-iconbtn .k-wishlist-count {
    position: absolute;
    top: 2px;
    left: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--k-accent, #43927c);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    line-height: 1;
}

.k-salla-search-mobile { display: none; }
.k-salla-search-desktop { display: inline-flex; }

/* البحث مخفي افتراضياً — يظهر عند الضغط */
.k-salla-header .k-salla-search-row {
    display: none;
    padding: 10px 0 14px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.k-salla-header.show-mobile-search .k-salla-search-row {
    display: block;
}

.k-salla-menubar:not(:has(.main-menu li)) {
    display: none;
}

.k-salla-menubar__nav {
    display: flex;
    justify-content: center;
}

.k-salla-menubar .main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    list-style: none;
    margin: 0;
    padding: 10px 0 14px;
}

.k-salla-menubar .main-menu > li > a {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.k-salla-menubar .main-menu > li > a:hover,
.k-salla-menubar .main-menu > li.current-menu-item > a {
    color: var(--k-accent, #43927c);
    border-bottom-color: var(--k-accent, #43927c);
}

@media (max-width: 991px) {
    .k-salla-topbar__links { display: none; }
    .k-salla-topbar__inner { justify-content: center; }
    .k-salla-menubar { display: none; }
    .k-salla-search-desktop { display: none; }
    .k-salla-search-mobile { display: inline-flex; }
    .k-salla-mainnav__end .account-icon,
    .k-salla-mainnav__end .k-my-orders-trigger,
    .k-salla-mainnav__end .wishlist-icon {
        display: none;
    }
    .k-salla-iconbtn__label { display: none !important; }
    .k-salla-mainnav__brand img,
    .k-salla-mainnav__brand .custom-logo {
        max-height: 40px !important;
    }
}

/* ══════════════════════════════════
   فوتر أسراركو / سلة — 3 أعمدة + منحنى
══════════════════════════════════ */
.k-salla-footer {
    position: relative;
    background: #f3f4f6 !important;
    color: #374151;
    padding: 48px 0 20px !important;
    margin-top: 40px;
    border-top: 0 !important;
    overflow: visible;
}

.k-salla-footer__curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    margin-top: -39px;
    color: #f3f4f6;
    z-index: 0;
    pointer-events: none;
}

.k-salla-footer__inner {
    position: relative;
    z-index: 1;
}

.k-salla-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 28px;
}

.k-salla-footer__col {
    text-align: center;
}

.k-salla-footer__title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.k-salla-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.k-salla-footer__col ul li {
    margin: 0 0 14px;
}

.k-salla-footer__col ul li a,
.k-salla-footer__col .k-footer-location {
    color: #4b5563;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.k-salla-footer__col ul li a:hover {
    color: var(--k-accent, #43927c);
}

.k-salla-footer__col--brand {
    margin-top: -28px;
}

.k-salla-footer__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    text-decoration: none;
}

.k-salla-footer__logo img {
    max-height: 64px;
    width: auto;
}

.k-salla-footer__logo-text {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
}

.k-salla-footer__desc {
    max-width: 320px;
    margin: 0 auto 14px;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.k-salla-footer__tax {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}

.k-salla-footer .k-footer-payments {
    border-color: #e5e7eb;
    margin-top: 8px;
}

.k-salla-footer__bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    text-align: center;
}

.k-salla-footer__bottom p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.k-salla-footer .k-footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

@media (max-width: 991px) {
    .k-salla-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .k-salla-footer__col--brand {
        margin-top: 0;
        order: -1;
    }
    .k-salla-footer__curve {
        height: 24px;
        margin-top: -23px;
    }
}

[data-theme="dark"] .k-salla-header,
[data-theme="dark"] .k-salla-mainnav,
[data-theme="dark"] .k-salla-menubar,
[data-theme="dark"] .k-salla-header .k-salla-search-row {
    background: var(--k-bg-card);
}

[data-theme="dark"] .k-salla-topbar {
    background: var(--k-bg-soft);
    border-color: var(--k-border);
}

[data-theme="dark"] .k-salla-footer {
    background: var(--k-footer-bg) !important;
}

[data-theme="dark"] .k-salla-footer__curve {
    color: var(--k-footer-bg);
}

[data-theme="dark"] .k-salla-iconbtn,
[data-theme="dark"] .k-salla-menubar .main-menu > li > a,
[data-theme="dark"] .k-salla-footer__title,
[data-theme="dark"] .k-salla-footer__logo-text {
    color: var(--k-text);
}
