/* =========================================================
   Nilen SVG category cards
   ========================================================= */

.category-banner-col {
    padding: 0 10px 22px;
}

.category-hero-link {
    display: block;
}

.category-hero-link:hover {
    text-decoration: none;
}

.category-hero-card {
    position: relative;
    min-height: 500px;
    border-radius: 46px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
}

.category-hero-template {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.category-hero-media {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    z-index: 2;
    padding: 0;
    overflow: hidden;
    border-radius: 46px 0 0 46px;
}

.category-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 46px 0 0 46px;
}

.category-hero-en {
    position: absolute;
    top: 18px;
    right: 20px;
    left: 18px;
    z-index: 4;
    color: #d8bbb6;
    font-size: 35px;
    font-weight: 800;
    line-height: 1.08;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .98;
    pointer-events: none;
}

.category-hero-fa-wrap {
    position: absolute;
    inset: 0 0 0 auto;
    width: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 28px 34px;
    pointer-events: none;
}

.category-hero-fa {
    direction: rtl;
    color: #fff;
    font-size: 54px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    max-width: 80%;
    text-wrap: balance;
    text-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.featured-products-section {
    padding-top: 8px;
}

.admin-shell {
    padding: 40px 0 80px;
}

.admin-card {
    height: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
}

.admin-card h5 {
    margin-bottom: 8px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.admin-table img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.admin-badge.on {
    color: #0f8f49;
    background: #e8fff1;
}

.admin-badge.off {
    color: #b42318;
    background: #fff0f0;
}

.admin-form-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
}

.admin-preview {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #fafafa;
}

.dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 20px;
    cursor: pointer;
    background: #faf6f5;
    border: 2px dashed #d4b0a8;
    border-radius: 24px;
}

.dropzone .dz-message {
    color: #723634;
    font-weight: 700;
    text-align: center;
}

.dropzone.dragover {
    background: #f4ebe9;
    border-color: #723634;
}

.dropzone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.admin-side-note {
    font-size: 13px;
    color: #666;
}

.admin-filter-bar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-filter-group {
    min-width: 240px;
}

.admin-static-image-card {
    height: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.admin-static-image-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.admin-static-image-name {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #444;
    word-break: break-word;
    text-align: center;
}

@media (max-width: 991px) {
    .category-banner-col {
        padding: 0 8px 16px;
    }

    .category-hero-card {
        min-height: 320px;
        border-radius: 28px;
    }

    .category-hero-en {
        top: 14px;
        right: 16px;
        left: 14px;
        font-size: 24px;
    }

    .category-hero-fa-wrap {
        padding: 38px 22px 20px;
    }

    .category-hero-fa {
        font-size: 32px;
        max-width: 76%;
    }
}

@media (max-width: 767.98px) {
    .admin-filter-bar {
        align-items: stretch;
    }

    .admin-filter-group {
        width: 100%;
    }

    .banner-section {
        padding: 8px 0 6px;
    }

    .banner-section .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .category-banner-col {
        padding: 0 10px 22px;
    }

    .category-hero-card {
        min-height: 212px;
        border-radius: 24px;
    }

    .category-hero-media {
        width: 50.5%;
        border-radius: 24px 0 0 24px;
    }

    .category-hero-media img {
        border-radius: 24px 0 0 24px;
    }

    .category-hero-en {
        top: 10px;
        right: 12px;
        left: 10px;
        font-size: 10px;
        font-weight: 700;
    }

    .category-hero-fa-wrap {
        width: 49.5%;
        padding: 24px 10px 16px;
    }

    .category-hero-fa {
        max-width: 78%;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.16;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .category-hero-card {
        min-height: 360px;
        border-radius: 34px;
    }

    .category-hero-en {
        font-size: 28px;
    }

    .category-hero-fa-wrap {
        padding: 44px 18px 24px;
    }

    .category-hero-fa {
        font-size: 38px;
    }
}
