/* =========================================================
   EasySell Explorer v2 — Marketplace Reorganization & Speed UI
   Country Prominence · Visual Categories · Products First · Skeletons
   ========================================================= */

/* ── 1. Header Country Picker ── */
.header-country-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #FFF7ED;
    border: 1.5px solid #FED7AA;
    border-radius: 100px;
    padding: 0 12px 0 10px;
    height: 38px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-country-picker:hover,
.header-country-picker:focus-within {
    border-color: #FF5722;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(255, 87, 34, 0.14);
}

.header-country-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    padding-right: 18px;
    cursor: pointer;
    max-width: 158px;
    text-overflow: ellipsis;
}

.header-country-caret {
    position: absolute;
    right: 11px;
    pointer-events: none;
    color: #EA580C;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 860px) {
    .header-country-picker {
        height: 32px;
        padding: 0 7px 0 8px;
        max-width: 108px;
        flex-shrink: 1;
        min-width: 0;
    }
    .header-country-select {
        font-size: 11.5px;
        max-width: 82px;
        padding-right: 13px;
    }
    .header-country-caret {
        right: 6px;
    }
    .country-context-section,
    .search-country-banner-wrap {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .header-country-picker {
        height: 30px;
        padding: 0 5px 0 6px;
        max-width: 92px;
    }
    .header-country-select {
        font-size: 11px;
        max-width: 72px;
        padding-right: 11px;
    }
    .header-country-caret {
        right: 4px;
    }
}

@media (max-width: 640px) {
    body.search-page .header-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
    body.search-page .btn-back-explorer {
        order: 1;
    }
    body.search-page .header-country-picker {
        order: 2;
        margin-left: auto;
    }
    body.search-page .search-input-wrapper {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ── 2. Compact Hero (explore.html) ── */
body.explorer-page .hero-section {
    padding: 24px 24px 14px;
    gap: 32px;
}

body.explorer-page .hero-tag {
    margin-bottom: 12px;
    padding: 5px 12px;
    font-size: 11.5px;
}

body.explorer-page .hero-title {
    font-size: clamp(28px, 3.6vw, 44px);
    margin-bottom: 12px;
}

body.explorer-page .hero-subtitle {
    font-size: 15.5px;
    margin-bottom: 20px;
    line-height: 1.55;
}

body.explorer-page .hero-stats-row {
    padding-top: 16px;
    gap: 24px;
}

body.explorer-page .hero-card-preview .preview-img {
    height: 250px !important;
}

@media (max-width: 900px) {
    body.explorer-page {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    /* Garantit qu'aucune section non listée (storytelling, SEO, modales) ne remonte en haut */
    body.explorer-page > * {
        order: 50;
    }
    body.explorer-page > .site-header { order: 1; width: 100%; }
    body.explorer-page > .controls-section {
        order: 2;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 6px 12px 4px !important;
        margin: 0 0 6px 0 !important;
    }
    /* Barre de recherche unifiée mobile pleine largeur & nette */
    body.explorer-page .controls-section .search-filters-bar {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        gap: 0 !important;
    }
    body.explorer-page .controls-section .search-input-wrap {
        width: 100% !important;
        min-width: 0 !important;
    }
    body.explorer-page .controls-section .search-input {
        min-height: 40px !important;
        font-size: 13.5px !important;
    }
    body.explorer-page > #esAiRadarHost {
        order: 3;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 12px !important;
    }
    body.explorer-page > .hero-section {
        order: 4;
        grid-template-columns: 1fr;
        width: calc(100% - 24px) !important;
        max-width: none !important;
        box-sizing: border-box !important;
        min-height: 112px !important;
        margin: 2px 12px 8px !important;
        padding: 13px 16px 26px !important;
        border-radius: 18px !important;
        gap: 6px;
        cursor: pointer;
    }
    /* Evite de piéger les dots et l'image de fond du diaporama derrière le scrim mobile */
    body.explorer-page .hero-section::after {
        z-index: -1 !important;
        pointer-events: none;
    }
    body.explorer-page .hero-visual,
    body.explorer-page .hero-carousel-stage {
        z-index: auto !important;
        background: transparent !important;
    }
    body.explorer-page .hero-carousel-stage > .hero-slides-track {
        display: block !important;
        position: absolute !important;
        inset: 0;
        z-index: -2;
    }
    body.explorer-page .hero-carousel-stage .hero-slide-caption {
        display: none !important;
    }
    body.explorer-page .hero-carousel-stage > .hero-carousel-dots {
        display: inline-flex !important;
        position: absolute !important;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
    }
    body.explorer-page .hero-content {
        z-index: 2 !important;
    }
    body.explorer-page > .categories-hub-section {
        order: 5;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    body.explorer-page > .pros-grid-section {
        order: 6;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-top: 2px !important;
    }
    body.explorer-page > .country-context-section {
        order: 7;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 4px 0 12px 0 !important;
        padding: 0 12px !important;
    }
    .es-header-install-btn {
        display: none !important;
    }
    body.explorer-page > .storytelling-section { order: 20; }
    body.explorer-page > section[aria-labelledby="marketplaceAfricaHeading"] { order: 21; }
    body.explorer-page > .site-footer,
    body.explorer-page > footer { order: 30; }

    /* L'image de fond du hero mobile doit couvrir 100% de la carte (pas de bande noire en bas) */
    body.explorer-page .hero-card-preview .preview-img {
        height: 100% !important;
        object-fit: cover !important;
    }
    body.explorer-page .hero-tag {
        margin-bottom: 6px !important;
        padding: 3px 9px !important;
        font-size: 10px !important;
    }
    body.explorer-page .hero-title {
        font-size: 19.5px !important;
        line-height: 1.15 !important;
        margin-bottom: 0 !important;
    }
    /* Sur mobile, masquer le sous-titre long évite la coupure "prix,..." et remonte les produits au-dessus de la ligne de flottaison */
    body.explorer-page .hero-subtitle {
        display: none !important;
    }
    body.explorer-page .hero-stats-row {
        gap: 14px;
        padding-top: 8px;
    }
    body.explorer-page .stat-item-val {
        font-size: 17px;
    }

    /* Barre IA intégrée, chaleureuse et lisible sans troncature "..." */
    body.explorer-page .es-ai-toolbar {
        padding: 7px 10px !important;
        gap: 8px !important;
        border-radius: 14px !important;
        background: linear-gradient(90deg, #FFF7ED 0%, #FFFFFF 100%) !important;
        border: 1px solid #FED7AA !important;
        box-shadow: 0 3px 10px rgba(234, 88, 12, 0.06) !important;
    }
    body.explorer-page .es-ai-badge {
        width: 28px !important;
        height: 28px !important;
        border-radius: 9px !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }
    body.explorer-page .es-ai-status-text {
        font-size: 12px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    body.explorer-page .es-btn-ai {
        padding: 7px 11px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Bannière pays actif plus compacte sur mobile */
    body.explorer-page .active-country-banner {
        padding: 10px 12px !important;
        gap: 8px !important;
        border-radius: 14px !important;
    }
    body.explorer-page .country-quick-pills {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        scrollbar-width: none;
    }
    body.explorer-page .country-quick-pills::-webkit-scrollbar {
        display: none;
    }
    body.explorer-page .country-pill {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* ── 3. Prominent Country Banner & Quick Flag Pills ── */
.country-context-section {
    max-width: 1280px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 14px auto 22px;
    padding: 0 24px;
}

.active-country-banner {
    margin-top: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 65%, #FEFCE8 100%);
    border: 1.5px solid #FED7AA;
    border-radius: 18px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.06);
}

.country-banner-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
}

.country-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0F172A;
    color: #FFFFFF;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.country-banner-hint {
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
}

.country-quick-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
    padding: 2px 2px 5px;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
}

.country-quick-pills::-webkit-scrollbar {
    height: 4px;
}

.country-quick-pills::-webkit-scrollbar-track {
    background: transparent;
}

.country-quick-pills::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
}

.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.country-pill:hover {
    border-color: #FB923C;
    color: #0F172A;
    transform: translateY(-1px);
}

.country-pill.active {
    background: linear-gradient(135deg, #FF5722, #EA580C);
    border-color: #EA580C;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.25);
}

@media (max-width: 820px) {
    .country-context-section {
        margin: 4px auto 12px;
        padding: 0 12px;
    }
    .active-country-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 9px 12px;
        gap: 7px;
        border-radius: 15px;
    }
    .country-banner-status {
        font-size: 12px;
        gap: 6px;
        flex-wrap: wrap;
    }
    .country-banner-badge {
        padding: 3px 9px;
        font-size: 11.5px;
    }
    .country-banner-hint {
        font-size: 11px;
    }
    .country-quick-pills {
        width: 100%;
        justify-content: flex-start;
    }
    .country-pill {
        padding: 5px 10px;
        font-size: 11.5px;
    }
}

/* Search.html banner container adjustment (now inside <main class="search-main">) */
.search-country-banner-wrap {
    max-width: none;
    margin: 0 0 18px;
    padding: 0;
}

/* ── 4. Visual Categories Hub (explore.html) ── */
.categories-hub-section {
    max-width: 1280px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 8px auto 26px;
    padding: 0 24px;
}

.categories-scroll-cue {
    display: none;
}

.categories-scroll-indicator {
    display: none;
    width: 56px;
    height: 4px;
    margin: 7px auto 0;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
}

.categories-scroll-indicator.is-hidden {
    display: none !important;
}

.categories-scroll-thumb {
    width: 22px;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #FF5722, #FB923C);
    transition: transform 0.08s linear;
}

@media (max-width: 768px) {
    .categories-hub-section {
        padding: 0 12px;
        margin: 0 auto 8px;
    }
    .categories-hub-header {
        margin-bottom: 6px;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .categories-hub-eyebrow {
        display: none;
    }
    .categories-hub-title {
        font-size: 16px;
        line-height: 1.15;
    }
    .categories-hub-link {
        padding: 4px 10px;
        font-size: 11.5px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    /* Rail horizontal compact (-20% hauteur) + barre de progression de défilement */
    body.explorer-page .categories-visual-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        gap: 7px !important;
        padding: 2px 2px 3px !important;
        scrollbar-width: none;
    }
    body.explorer-page .categories-visual-grid::-webkit-scrollbar {
        display: none;
    }
    body.explorer-page .cat-visual-card {
        flex: 0 0 98px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        scroll-snap-align: start;
        padding: 7px 5px;
        border-radius: 14px;
        gap: 4px;
    }
    body.explorer-page .cat-visual-icon-box {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 10px;
    }
    body.explorer-page .cat-visual-body {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    body.explorer-page .cat-visual-name {
        font-size: 11px;
        font-weight: 800;
        white-space: normal;
        word-break: normal;
        text-align: center;
        line-height: 1.15;
        margin-bottom: 1px;
    }
    body.explorer-page .cat-visual-sub {
        display: none !important;
    }
    body.explorer-page .cat-visual-count {
        margin-top: 1px;
        font-size: 9.5px;
        padding: 1px 6px;
    }
    .categories-scroll-indicator {
        display: block;
    }
    .categories-scroll-cue {
        display: none !important;
    }
}

.categories-hub-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.categories-hub-eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #EA580C;
    margin-bottom: 3px;
}

.categories-hub-title {
    margin: 0;
    font-size: clamp(19px, 2.2vw, 24px);
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.categories-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #EA580C;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 999px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.categories-hub-link:hover {
    background: #FFEDD5;
    transform: translateX(2px);
}

.categories-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
}

.cat-visual-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 18px;
    text-decoration: none;
    color: #0F172A;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cat-visual-card:hover {
    transform: translateY(-3px);
    border-color: #FB923C;
    box-shadow: 0 12px 24px -8px rgba(234, 88, 12, 0.16);
}

.cat-visual-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cat-visual-body {
    min-width: 0;
    flex: 1;
}

.cat-visual-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-visual-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-visual-count {
    display: inline-block;
    margin-top: 4px;
    font-size: 10.5px;
    font-weight: 800;
    color: #EA580C;
    background: #FFF7ED;
    padding: 1px 7px;
    border-radius: 999px;
}

@media (max-width: 860px) {
    body.explorer-page .pros-grid-section {
        padding: 4px 12px 24px;
    }
    body.explorer-page .results-header-info {
        margin-bottom: 12px;
        gap: 10px;
    }
    body.explorer-page .products-grid,
    body.search-page .products-grid {
        gap: 10px;
    }
    body.explorer-page .product-content,
    body.search-page .card-content {
        padding: 12px 12px 13px;
    }
    body.search-page .search-main {
        padding: 12px 14px 88px;
    }
    body.search-page .category-hero-banner {
        padding: 12px 14px;
        margin-bottom: 12px;
        border-radius: 16px;
        flex-wrap: nowrap;
        gap: 10px;
    }
    body.search-page .category-hero-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 20px;
    }
    body.search-page .category-hero-eyebrow {
        font-size: 9.5px;
        margin-bottom: 1px;
    }
    body.search-page .category-hero-title {
        font-size: 16px;
    }
    body.search-page .category-hero-sub {
        display: none;
    }
    body.search-page .btn-reset-category {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    body.search-page .search-cat-rail {
        padding: 4px 0 12px;
        margin-bottom: 8px;
        gap: 8px;
    }
    body.search-page .results-summary-row {
        margin-bottom: 12px;
        gap: 8px;
    }
}

/* ── 5. Clickable Seller Link Inside Product Card ── */
.seller-info-link {
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: 8px 6px 6px;
    margin-left: -6px;
    margin-right: -6px;
    transition: background-color 0.16s ease;
    cursor: pointer;
}

.seller-info-link:hover {
    background: #FFF7ED;
}

.seller-visit-tag {
    font-size: 11px;
    font-weight: 800;
    color: #EA580C;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.seller-info-link:hover .seller-visit-tag {
    text-decoration: underline;
}

/* ── 6. Featured Stores Secondary Strip (below Products) ── */
.stores-preview-section {
    margin-top: 34px;
    padding: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF9 100%);
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

.stores-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.stores-preview-title {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 900;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stores-preview-sub {
    font-size: 13px;
    color: #64748B;
    margin-top: 3px;
}

.btn-all-stores-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.btn-all-stores-cta:hover {
    background: #1E293B;
    transform: translateY(-1px);
}

.stores-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 14px;
}

.store-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    text-decoration: none;
    color: #0F172A;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.store-mini-card:hover {
    transform: translateY(-2px);
    border-color: #FB923C;
    box-shadow: 0 10px 20px -8px rgba(15, 23, 42, 0.12);
}

.store-mini-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    background: #F1F5F9;
    flex-shrink: 0;
    border: 1px solid #E2E8F0;
}

.store-mini-info {
    flex: 1;
    min-width: 0;
}

.store-mini-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.store-mini-name {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-mini-rating {
    font-size: 11px;
    font-weight: 800;
    color: #B45309;
    background: #FEF3C7;
    padding: 2px 6px;
    border-radius: 6px;
    flex-shrink: 0;
}

.store-mini-meta {
    font-size: 11.5px;
    color: #64748B;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-mini-cta {
    display: inline-block;
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: #EA580C;
}

@media (max-width: 640px) {
    .stores-preview-section {
        padding: 18px 16px;
        margin-top: 32px;
        border-radius: 22px;
    }
    .stores-preview-header {
        margin-bottom: 14px;
    }
}

/* ── 7. Dedicated Category Hero & Switcher on search.html ── */
body.has-active-category .es-ai-toolbar {
    display: none !important;
}

.category-hero-banner {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #7C2D12 100%);
    color: #FFFFFF;
    border-radius: 22px;
    padding: 20px 24px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.3);
}

.category-hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.category-hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.category-hero-eyebrow {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FDBA74;
    margin-bottom: 3px;
}

.category-hero-title {
    margin: 0;
    font-size: clamp(19px, 2.5vw, 26px);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.18;
}

.category-hero-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #CBD5E1;
}

.btn-reset-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.16s ease;
}

.btn-reset-category:hover {
    background: rgba(255, 255, 255, 0.22);
}

.search-cat-rail {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
    scrollbar-color: #FB923C #F1F5F9;
    margin-bottom: 8px;
    max-width: 100%;
    min-width: 0;
}

.search-cat-rail::-webkit-scrollbar {
    height: 5px;
    display: block;
}

.search-cat-rail::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 999px;
}

.search-cat-rail::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #FF5722, #FB923C);
    border-radius: 999px;
}

.search-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #334155;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.search-cat-pill:hover {
    border-color: #FB923C;
    color: #0F172A;
    transform: translateY(-1px);
}

.search-cat-pill.active {
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
}

.search-summary-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-select {
    appearance: none;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: #FF5722;
}

/* ── Barre de Recherche Intelligente Unifiée (Recherche + Photo + ✨ IA) ── */
body.explorer-page .search-input-wrap--unified {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    width: 100%;
    border-radius: 100px !important;
    border: 1.5px solid #FDBA74 !important;
    background: #FFFBF7 !important;
    padding: 3px 5px 3px 13px !important;
    box-shadow: 0 6px 18px -8px rgba(234, 88, 12, 0.28) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.explorer-page .search-input-wrap--unified:focus-within {
    border-color: #FF5722 !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.12), 0 8px 22px -8px rgba(234, 88, 12, 0.34) !important;
}

body.explorer-page .search-input-wrap--unified .search-icon {
    position: static !important;
    left: auto !important;
    width: 18px !important;
    height: 18px !important;
    color: #EA580C !important;
    flex-shrink: 0;
}

body.explorer-page .search-input-wrap--unified .search-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 9px 4px !important;
    min-height: 40px !important;
    font-size: 14px !important;
}

body.explorer-page .search-input-wrap--unified .search-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.search-inline-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

body.explorer-page .search-inline-actions .btn-explore-clear,
body.explorer-page .search-inline-actions .btn-explore-photo {
    position: static !important;
    right: auto !important;
}

body.explorer-page .search-inline-actions .btn-explore-photo {
    padding: 7px 10px !important;
    min-height: 36px;
}

.btn-explore-ai-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 0 13px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #FF5722 0%, #F59E0B 100%);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px -4px rgba(234, 88, 12, 0.55);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-explore-ai-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -4px rgba(234, 88, 12, 0.65);
}

.btn-explore-ai-inline:active {
    transform: scale(0.96);
}

.es-radar-shell--unified .es-ai-toolbar {
    display: none !important;
}

.es-radar-shell--unified:has(#esAiAnswerArea:empty):has(#esRadarTrackerArea:empty) {
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Diaporama Hero Animé (Bannières & Futures Pubs Payantes) ── */
.hero-carousel-stage {
    position: relative;
    width: 100%;
    height: 270px;
    border-radius: var(--radius-xl, 22px);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: #0F172A;
    padding: 0 !important;
    border: none !important;
}

.hero-slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    text-decoration: none;
    color: #FFFFFF;
    cursor: pointer;
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

body.explorer-page .hero-slide .preview-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    filter: brightness(0.86);
    border-radius: 0 !important;
    margin: 0 !important;
    display: block;
}

.hero-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 22px 26px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.9) 100%);
    color: #FFFFFF;
}

.hero-slide-kicker {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    color: #FDBA74;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hero-slide-heading {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
}

.hero-promo-headline {
    margin: 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 92%;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.hero-carousel-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-carousel-dot.is-active {
    width: 18px;
    background: #FB923C;
}

/* ── Bouton Header & Mini-Toast PWA Flottant au Moment de Valeur ── */
.es-pwa-install[hidden],
.es-pwa-card[hidden] {
    display: none !important;
}

.es-header-install-btn {
    background: #FFF7ED !important;
    color: #C2410C !important;
    border: 1.5px solid #FED7AA !important;
    box-shadow: none !important;
    font-weight: 800 !important;
    font-size: 12.5px !important;
    padding: 0 12px !important;
    min-height: 36px !important;
    white-space: nowrap;
}

.es-header-install-btn:hover {
    background: #FFEDD5 !important;
    border-color: #FB923C !important;
}

body.explorer-page .es-pwa-card--floating,
.es-pwa-card--floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 95;
    width: min(370px, calc(100vw - 32px)) !important;
    margin: 0 !important;
    padding: 10px 38px 10px 12px;
    border-radius: 16px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22), inset 0 0 0 1px rgba(244, 81, 30, 0.2);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.es-pwa-card--floating.is-shown {
    opacity: 1;
    transform: translateY(0);
}

body.explorer-page .es-pwa-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

body.explorer-page .es-pwa-card strong {
    font-size: 13px;
}

body.explorer-page .es-pwa-card p {
    font-size: 11.5px;
    margin-top: 1px;
}

body.explorer-page .es-pwa-install--card {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 10px;
    font-size: 12px;
}

body.explorer-page .es-pwa-dismiss {
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

@media (max-width: 900px) {
    body.explorer-page .es-pwa-card--floating,
    .es-pwa-card--floating {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        bottom: calc(var(--es-bottom-nav-height, 64px) + env(safe-area-inset-bottom, 0px) + 10px) !important;
        padding: 8px 36px 8px 10px !important;
        border-radius: 14px !important;
    }
    .btn-explore-ai-inline {
        padding: 0 11px;
        font-size: 12px;
        min-height: 34px;
    }
}

/* ── 8. Shimmer Skeleton Placeholders (0ms Perceived Speed) ── */
@keyframes esShimmer {
    0% {
        background-position: -400px 0;
    }
    100% {
        background-position: 400px 0;
    }
}

.es-skeleton-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.es-skeleton-shimmer {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 800px 100%;
    animation: esShimmer 1.35s infinite linear;
}

.es-skeleton-img {
    width: 100%;
    aspect-ratio: 1 / 0.92;
}

.es-skeleton-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.es-skeleton-line {
    height: 12px;
    border-radius: 8px;
}

.es-skeleton-line.w-80 { width: 82%; height: 15px; }
.es-skeleton-line.w-55 { width: 55%; }
.es-skeleton-line.w-40 { width: 42%; height: 16px; }
.es-skeleton-btn {
    height: 34px;
    border-radius: 10px;
    margin-top: 6px;
}
