/* EasySell Explorer — couche UI marketplace mobile-first.
   Cette feuille surcharge l'interface sans modifier la logique SEO/API existante. */

:root {
    --es-ink: #17120f;
    --es-ink-soft: #423a35;
    --es-muted: #746963;
    --es-canvas: #fffaf6;
    --es-surface: #ffffff;
    --es-surface-warm: #fff3e9;
    --es-orange: #f4511e;
    --es-orange-deep: #d94316;
    --es-gold: #ffc857;
    --es-ring: rgba(244, 81, 30, 0.22);
    --es-shadow-card:
        0 0 0 1px rgba(0, 0, 0, 0.055),
        0 2px 4px rgba(38, 25, 18, 0.035),
        0 14px 34px rgba(77, 38, 18, 0.075);
    --es-shadow-card-hover:
        0 0 0 1px rgba(0, 0, 0, 0.075),
        0 4px 8px rgba(38, 25, 18, 0.05),
        0 20px 44px rgba(77, 38, 18, 0.12);
    --es-bottom-nav-height: 70px;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: clip;
    max-width: 100%;
}

body.explorer-page,
body.search-page {
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 200, 87, 0.12), transparent 26rem),
        linear-gradient(180deg, #fffdfb 0%, var(--es-canvas) 42rem, #fff 100%);
    color: var(--es-ink);
    overflow-x: clip;
    max-width: 100%;
}

body.explorer-page h1,
body.explorer-page h2,
body.explorer-page h3,
body.search-page h1,
body.search-page h2,
body.search-page h3 {
    text-wrap: balance;
}

body.explorer-page p,
body.search-page p,
.card-desc,
.product-desc {
    text-wrap: pretty;
}

.es-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.stat-item-val,
.count-badge,
.product-price,
.results-count,
.results-count-title,
#resultsCountLabel,
.load-more-counter {
    font-variant-numeric: tabular-nums;
}

/* Focus cohérent et visible */
body.explorer-page :where(a, button, input, select):focus-visible,
body.search-page :where(a, button, input, select):focus-visible {
    outline: 3px solid var(--es-ring);
    outline-offset: 3px;
}

/* Header : surface chaude, plus nette et plus légère à calculer. */
.explorer-page .site-header,
.search-page .search-header {
    background: rgba(255, 253, 251, 0.97);
    border-bottom-color: rgba(64, 42, 30, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 22px rgba(73, 39, 21, 0.04);
}

.explorer-page .brand-badge-icon {
    background: linear-gradient(145deg, #ff6a36 0%, var(--es-orange-deep) 100%);
    box-shadow: 0 6px 16px rgba(244, 81, 30, 0.26);
}
.explorer-page .brand-app-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; object-fit: cover; box-shadow: 0 6px 16px rgba(244,81,30,.2); outline: 1px solid rgba(0,0,0,.08); }
.explorer-page .header-container { gap: 24px; }
.explorer-page .brand-logo-wrap { flex: 0 0 auto; }
.explorer-page .header-nav { justify-content: center; gap: 6px; margin-left: auto; }
.explorer-page .nav-link { min-height: 42px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; font-size: 13px; }
.explorer-page .nav-link:hover { background: #f7efe9; }
.explorer-page .nav-link.active { background: #fff0e7; }
.explorer-page .nav-link--search { color: var(--es-ink); font-weight: 800; }
.explorer-page .nav-link--search > span { color: var(--es-orange); font-size: 21px; line-height: 1; }
.explorer-page .header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.explorer-page .btn-header-reels-mobile { display: none; background: var(--es-orange); box-shadow: 0 7px 16px rgba(244,81,30,.24); }
.explorer-page .btn-header-reels-mobile:hover { background: var(--es-orange-deep); }

.explorer-page .brand-title,
.search-page .results-count-title {
    color: var(--es-ink);
}

.explorer-page .btn-header-cta {
    background: var(--es-ink);
    box-shadow: 0 6px 16px rgba(23, 18, 15, 0.16);
    transition-property: transform, background-color, box-shadow;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.explorer-page .btn-header-cta:active,
.explorer-page button:active,
.search-page button:active,
.search-page .pill-btn:active,
.es-bottom-nav__item:active {
    transform: scale(0.96);
}

/* Hero éditorial : photo locale et contraste premium. */
.explorer-page .hero-section {
    position: relative;
}

.explorer-page .hero-title {
    max-width: 720px;
    color: var(--es-ink);
}

.explorer-page .hero-title em {
    color: var(--es-orange);
}

.explorer-page .hero-subtitle {
    color: var(--es-ink-soft);
}

.explorer-page .hero-tag {
    color: #7d3b12;
    background: #fff0bc;
    box-shadow: inset 0 0 0 1px rgba(125, 59, 18, 0.08);
}

.explorer-page .hero-card-preview {
    box-shadow: var(--es-shadow-card-hover) !important;
    outline: 1px solid rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
}

.explorer-page .preview-img,
.explorer-page .card-img,
.explorer-page .seller-logo,
.search-page .card-img,
.search-page .seller-logo,
.visual-thumb {
    outline: 1px solid rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
}

/* Contrôles */
.explorer-page .search-filters-bar {
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    box-shadow: var(--es-shadow-card);
}

.explorer-page .search-input,
.search-page .main-search-input {
    border-color: rgba(67, 45, 33, 0.14);
    background: #fffdfb;
    color: var(--es-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition-property: border-color, box-shadow, background-color;
    transition-duration: 170ms;
    transition-timing-function: ease-out;
}

.explorer-page .search-input:focus,
.search-page .main-search-input:focus {
    border-color: var(--es-orange);
    box-shadow: 0 0 0 4px var(--es-ring), 0 8px 22px rgba(58, 31, 17, 0.06);
}

.explorer-page .btn-explore-photo,
.search-page .btn-photo-search {
    min-width: 40px;
    min-height: 40px;
    border-color: rgba(244, 81, 30, 0.16);
    background: var(--es-surface-warm);
    transition-property: transform, background-color, border-color;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.explorer-page .btn-explore-clear,
.search-page .btn-clear-search,
.btn-cancel-visual {
    min-width: 40px;
    min-height: 40px;
    transition-property: transform, color, background-color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.explorer-page .tab-btn,
.explorer-page .product-category-chip,
.explorer-page .view-pill-btn,
.search-page .pill-btn,
.search-page .select-filter {
    min-height: 42px;
    transition-property: transform, color, background-color, border-color, box-shadow;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.explorer-page .tab-btn.active,
.explorer-page .view-pill-btn.active,
.search-page .pill-btn.active {
    background: var(--es-ink);
    border-color: var(--es-ink);
}

.explorer-page .product-category-chip.active {
    background: var(--es-orange);
    border-color: var(--es-orange);
}
.explorer-page .product-category-rail.has-groups { display: grid; gap: 9px; overflow: visible; scroll-snap-type: none; }
.product-category-all { display: flex; }
.product-category-group { display: grid; grid-template-columns: 108px minmax(0,1fr); align-items: center; gap: 10px; min-width: 0; }
.product-category-group > strong { color: var(--es-ink); font-size: 11px; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.product-category-group > div { display: flex; gap: 8px; min-width: 0; overflow-x: auto; padding: 2px 2px 5px; scrollbar-width: thin; }

/* Cartes : profondeur par ombres, image dominante, actions tactiles. */
.explorer-page .product-card,
.explorer-page .pro-card,
.search-page .product-card {
    border: 0;
    box-shadow: var(--es-shadow-card);
    background: var(--es-surface);
    transition-property: transform, box-shadow;
    transition-duration: 190ms;
    transition-timing-function: ease-out;
}

@media (hover: hover) and (pointer: fine) {
    .explorer-page .product-card:hover,
    .explorer-page .pro-card:hover,
    .search-page .product-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--es-shadow-card-hover);
    }
}

.explorer-page .card-img,
.search-page .card-img {
    transition-property: transform;
    transition-duration: 360ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.explorer-page .product-price,
.search-page .product-price {
    color: var(--es-orange-deep);
}

.explorer-page .btn-view-sheet,
.explorer-page .btn-visit-catalog,
.explorer-page .btn-order-wa,
.search-page .btn-view-sheet,
.search-page .btn-order-wa,
.search-page .btn-load-more {
    min-height: 42px;
    transition-property: transform, color, background-color, box-shadow;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

/* Skeletons stables, sans saut de mise en page. */
.es-skeleton-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    width: 100%;
}

.es-skeleton-card {
    min-height: 340px;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--es-shadow-card);
}

.es-skeleton-card::before {
    content: "";
    display: block;
    height: 210px;
    background: linear-gradient(100deg, #f4eee9 25%, #fffaf6 42%, #f4eee9 58%);
    background-size: 220% 100%;
    animation: es-shimmer 1.2s linear infinite;
}

.es-skeleton-card::after {
    content: "";
    display: block;
    height: 82px;
    margin: 18px 16px;
    border-radius: 10px;
    background:
        linear-gradient(#eee6e0 0 0) 0 0 / 74% 13px no-repeat,
        linear-gradient(#f5efeb 0 0) 0 26px / 94% 10px no-repeat,
        linear-gradient(#ffe1d5 0 0) 0 53px / 42% 16px no-repeat;
}

@keyframes es-shimmer {
    to { background-position-x: -220%; }
}

/* Panneau mobile de filtres */
.es-mobile-filter-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--es-ink);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(23, 18, 15, 0.16);
    cursor: pointer;
    transition-property: transform, background-color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.es-filter-count {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--es-ink);
    background: var(--es-gold);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.es-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(23, 18, 15, 0.46);
    opacity: 0;
    visibility: hidden;
    transition-property: opacity, visibility;
    transition-duration: 190ms;
    transition-timing-function: ease-out;
}

.es-filter-sheet {
    position: fixed;
    z-index: 1000;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    max-height: min(80svh, 660px);
    padding: 10px 14px calc(20px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 24px 24px 0 0;
    background: #fffdfb;
    box-shadow: 0 -22px 60px rgba(23, 18, 15, 0.2);
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    transition-property: transform, visibility;
    transition-duration: 220ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.es-filter-sheet *,
.es-filter-sheet *::before,
.es-filter-sheet *::after {
    box-sizing: border-box;
}

.es-filter-sheet__handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 99px;
    background: #d8cec7;
}

.es-filter-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    min-width: 0;
}

.es-filter-sheet__title {
    margin: 0;
    min-width: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 850;
    color: var(--es-ink);
}

.es-filter-sheet__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.es-filter-sheet__reset {
    height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(67, 45, 33, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--es-ink-soft);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.es-filter-sheet__reset:hover {
    background: #f5eee9;
    color: var(--es-ink);
}

.es-filter-sheet__close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f3ece7;
    color: var(--es-ink);
    cursor: pointer;
    flex-shrink: 0;
    transition-property: transform, background-color;
    transition-duration: 150ms;
}

.es-filter-sheet__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    width: 100%;
    min-width: 0;
}

.es-filter-sheet__content select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 0 11px;
    border: 1px solid rgba(67, 45, 33, 0.14);
    border-radius: 12px;
    background: #fff;
    color: var(--es-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
}

.es-filter-sheet__apply {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: 0;
    border-radius: 14px;
    background: var(--es-orange);
    color: #fff;
    font: inherit;
    font-size: 14.5px;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(244, 81, 30, 0.24);
    cursor: pointer;
    transition-property: transform, background-color, box-shadow;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.es-filter-sheet__apply:hover {
    background: var(--es-orange-deep);
}

body.es-filter-open {
    overflow: hidden;
}

body.es-filter-open .es-filter-backdrop {
    opacity: 1;
    visibility: visible;
}

body.es-filter-open .es-filter-sheet {
    transform: translateY(0);
    visibility: visible;
}

/* Navigation au pouce */
.es-bottom-nav {
    display: none;
}

@media (max-width: 860px) {
    body.explorer-page,
    body.search-page {
        padding-bottom: calc(var(--es-bottom-nav-height) + env(safe-area-inset-bottom));
    }

    .explorer-page .site-header,
    .search-page .search-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .explorer-page .header-container {
        min-height: 54px;
        padding: 8px 12px;
        gap: 8px;
    }

    .explorer-page .brand-logo-wrap {
        gap: 7px;
        min-width: 0;
        flex-shrink: 1;
    }
    .explorer-page .brand-app-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
    .explorer-page .header-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .explorer-page .brand-title {
        font-size: 15px;
        white-space: nowrap;
    }

    .explorer-page .brand-title span.explorer {
        font-size: 12.5px;
    }

    .explorer-page .btn-header-cta {
        min-height: 34px;
        padding: 0 10px;
    }

    /* Hero compact en carte photographique. */
    .explorer-page .hero-section {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 168px;
        margin: 8px 12px 10px;
        padding: 18px 16px 16px;
        overflow: hidden;
        border-radius: 22px;
        background: #211713;
        box-shadow: 0 14px 32px rgba(62, 31, 16, 0.14);
        isolation: isolate;
    }

    .explorer-page .hero-section::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            linear-gradient(90deg, rgba(20, 13, 10, 0.93) 0%, rgba(20, 13, 10, 0.68) 58%, rgba(20, 13, 10, 0.26) 100%),
            linear-gradient(0deg, rgba(20, 13, 10, 0.54), transparent 55%);
    }

    .explorer-page .hero-content {
        z-index: 2;
        align-self: end;
        max-width: 92%;
    }

    .explorer-page .hero-visual,
    .explorer-page .hero-card-preview {
        position: absolute;
        inset: 0;
        z-index: -2;
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        border-radius: inherit;
        transform: none;
        box-shadow: none !important;
        outline: none;
    }

    .explorer-page .hero-card-preview > div {
        display: none !important;
    }

    .explorer-page .hero-card-preview .preview-img {
        width: 100%;
        height: 100% !important;
        margin: 0;
        border-radius: inherit !important;
        filter: saturate(0.9) contrast(1.03) brightness(0.92) !important;
    }

    .explorer-page .hero-tag {
        margin-bottom: 12px;
        background: rgba(255, 239, 186, 0.94);
    }

    .explorer-page .hero-title,
    .explorer-page .hero-title em {
        color: #fff;
    }

    .explorer-page .hero-title {
        max-width: 330px;
        margin-bottom: 9px;
        font-size: clamp(27px, 8.2vw, 36px);
        line-height: 1.02;
        letter-spacing: -0.035em;
        text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
    }

    .explorer-page .hero-title em {
        font-family: inherit;
        font-style: normal;
        font-weight: inherit;
    }

    .explorer-page .hero-subtitle {
        display: -webkit-box;
        max-width: 310px;
        margin: 0;
        overflow: hidden;
        color: rgba(255, 255, 255, 0.86);
        font-size: 13px;
        line-height: 1.45;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .explorer-page .hero-stats-row {
        display: none;
    }

    /* Recherche collante sous le header. */
    .explorer-page .controls-section {
        position: sticky;
        top: 56px;
        z-index: 80;
        margin: 0 auto 10px;
        padding: 0 12px 6px;
        background: linear-gradient(180deg, rgba(255, 250, 246, 0.98) 72%, rgba(255, 250, 246, 0));
    }

    .explorer-page .search-filters-bar {
        padding: 6px;
        border-radius: 17px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 8px 22px rgba(69, 36, 18, 0.09);
    }

    .explorer-page .search-input {
        min-height: 46px;
        border-radius: 13px;
        background: #fff;
        font-size: 13.5px;
    }

    .explorer-page .country-select-wrap,
    .explorer-page .city-select-wrap,
    .explorer-page .category-tabs,
    .explorer-page .product-category-panel {
        margin: 0;
    }

    .explorer-page .category-tabs,
    .explorer-page .product-category-rail {
        margin-inline: -2px;
        padding: 2px 2px 8px;
    }
    .explorer-page .product-category-rail.has-groups { gap: 7px; padding-bottom: 5px; }
    .product-category-group { grid-template-columns: 1fr; gap: 4px; }
    .product-category-group > strong { padding-left: 3px; font-size: 9px; }

    .explorer-page .pros-grid-section {
        padding-inline: 12px;
        padding-bottom: 34px;
    }

    .explorer-page .results-header-info {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        margin-bottom: 14px;
        width: 100%;
    }

    .explorer-page .results-count {
        min-width: 0;
        color: var(--es-muted);
    }

    .explorer-page .view-mode-tabs {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 4px;
        border: 0;
        border-radius: 16px;
        background: #eee7e2;
    }

    .explorer-page .view-pill-btn {
        min-width: 0;
        min-height: 40px;
        padding: 6px 8px;
        font-size: 12px;
        gap: 5px;
        border-radius: 12px;
    }

    .explorer-page .view-pill-btn.active {
        color: #fff;
    }

    .explorer-page .results-header-info > .es-mobile-filter-trigger {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .explorer-page .view-pill-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    @media (max-width: 440px) {
        .explorer-page .view-pill-extra {
            display: none;
        }
    }

    .explorer-page .products-grid,
    .search-page .products-grid,
    .es-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .explorer-page .product-card,
    .search-page .product-card {
        border-radius: 17px;
        min-width: 0;
    }

    .explorer-page .badge-type,
    .search-page .badge-type {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 56px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 3px 7px;
        font-size: 10px;
    }

    .explorer-page .es-card-save--product,
    .search-page .es-card-save--product {
        top: 7px;
        right: 7px;
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .explorer-page .es-card-save--product > span,
    .search-page .es-card-save--product > span {
        font-size: 19px;
    }

    .explorer-page .card-img-box,
    .search-page .card-img-box {
        padding-top: 104%;
    }

    .explorer-page .card-content,
    .search-page .card-content {
        padding: 11px;
    }

    .explorer-page .product-title,
    .search-page .product-title {
        min-height: 36px;
        font-size: 13.5px;
        line-height: 1.3;
    }

    .explorer-page .product-desc,
    .search-page .product-desc {
        display: none;
    }

    .explorer-page .product-price,
    .search-page .product-price {
        margin: 6px 0 8px;
        font-size: 15px;
    }

    .explorer-page .seller-info-row,
    .search-page .seller-info-row {
        margin-bottom: 9px;
        padding-top: 8px;
    }

    .explorer-page .seller-city,
    .search-page .seller-city {
        display: none;
    }

    .explorer-page .card-actions,
    .search-page .card-actions {
        grid-template-columns: 1fr 42px;
    }

    .explorer-page .btn-view-sheet,
    .search-page .btn-view-sheet {
        padding: 8px 6px;
        font-size: 11px;
    }

    .explorer-page .pros-grid {
        gap: 14px;
    }

    .explorer-page .pro-card {
        border-radius: 22px;
    }

    .explorer-page .card-img-wrap {
        height: 190px;
    }

    .explorer-page .card-body {
        padding: 17px;
    }

    .explorer-page .storytelling-section {
        margin: 0 12px 18px;
        padding: 34px 18px;
        border-radius: 24px;
    }

    .explorer-page .site-footer,
    .search-page .site-footer {
        padding-bottom: calc(30px + var(--es-bottom-nav-height));
    }

    .es-mobile-filter-trigger {
        display: inline-flex;
    }

    /* Search : les résultats deviennent le centre de l'écran. */
    .search-page .search-header {
        padding: 8px 10px;
    }

    .search-page .header-inner {
        gap: 8px;
    }

    .search-page .btn-back-explorer {
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        justify-content: center;
        border: 0;
        border-radius: 13px;
        background: #f5eee9;
    }

    .search-page .btn-back-explorer span {
        display: none;
    }

    .search-page .main-search-input {
        height: 50px;
        border-radius: 15px;
    }

    .search-page .filters-subbar {
        position: sticky;
        top: 66px;
        z-index: 70;
        padding: 8px 10px;
        border: 0;
        background: rgba(255, 250, 246, 0.96);
    }

    .search-page .filters-inner {
        overflow: visible;
    }

    .search-page .type-pills {
        max-width: calc(100vw - 82px);
        overflow-x: auto;
        padding: 2px;
        scrollbar-width: none;
    }

    .search-page .geo-selects {
        display: grid;
        gap: 12px;
    }

    .search-page .search-main {
        padding: 18px 12px 42px;
    }

    .search-page .results-summary-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        margin-bottom: 15px;
    }

    .search-page .results-count-title {
        min-width: 0;
        font-size: 18px;
        line-height: 1.2;
    }

    .search-page .results-summary-row > #resultsCountLabel {
        grid-column: 1;
    }

    .search-page .results-summary-row > .es-mobile-filter-trigger {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .es-bottom-nav {
        position: fixed;
        z-index: 900;
        left: 10px;
        right: 10px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        height: var(--es-bottom-nav-height);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 7px 8px;
        border-radius: 22px;
        background: rgba(27, 21, 18, 0.96);
        box-shadow: 0 18px 45px rgba(27, 21, 18, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .es-bottom-nav__item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 15px;
        appearance: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.64);
        text-decoration: none;
        font-size: 10px;
        font-weight: 700;
        transition-property: transform, color, background-color;
        transition-duration: 150ms;
        transition-timing-function: ease-out;
    }

    .es-bottom-nav__item svg {
        width: 21px;
        height: 21px;
    }

    .es-bottom-nav__item[aria-current="page"] {
        color: #fff;
        background: rgba(255, 255, 255, 0.11);
    }

    .es-bottom-nav__item--sell {
        color: #26150e;
        background: var(--es-gold);
    }
}

@media (max-width: 860px) {
    .explorer-page .btn-header-seller { display: none; }
    .explorer-page .btn-header-reels-mobile { display: inline-flex; min-width:0; min-height:34px; height:34px; padding:0 10px; justify-content:center; gap:5px; font-size:11.5px; background:var(--es-orange); flex-shrink:0; }
}
@media (max-width: 420px) {
    .explorer-page .header-container { padding: 7px 10px; gap: 6px; }
    .explorer-page .brand-logo-wrap { gap: 5px; }
    .explorer-page .brand-app-icon { width: 28px; height: 28px; flex-basis: 28px; border-radius: 9px; }
    .explorer-page .brand-title { font-size: 14px; }
    .explorer-page .brand-title span.explorer { font-size: 11px; }
    .explorer-page .header-actions { gap: 5px; }
    .explorer-page .btn-header-reels-mobile { min-height: 30px; height: 30px; padding: 0 8px; font-size: 11px; gap: 4px; }
}

@media (max-width: 350px) {
    .explorer-page .products-grid,
    .search-page .products-grid,
    .es-skeleton-grid {
        grid-template-columns: 1fr;
    }

    .explorer-page .brand-title span.explorer,
    .explorer-page .btn-header-cta svg {
        display: none;
    }

    .explorer-page .hero-section {
        min-height: 224px;
    }
}

@media (min-width: 861px) {
    .explorer-page .product-card,
    .explorer-page .pro-card,
    .search-page .product-card {
        content-visibility: auto;
        contain-intrinsic-size: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Fidélisation Explorer */
.es-header-saved {
    min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px;
    border: 0; border-radius: 999px; background: #fff1e8; color: var(--es-ink);
    font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(244,81,30,.14);
    transition-property: transform, background-color; transition-duration: 160ms;
}
.es-header-saved > span:first-child { color: var(--es-orange); font-size: 22px; line-height: 1; }
.es-saved-count {
    min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px;
    border-radius: 99px; background: var(--es-orange); color: #fff; font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.es-card-save {
    position: absolute; z-index: 5; top: 11px; right: 11px; min-width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 12px;
    border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #49352b;
    font: inherit; font-size: 12px; font-weight: 850; cursor: pointer;
    box-shadow: 0 7px 22px rgba(31,20,14,.18), inset 0 0 0 1px rgba(0,0,0,.07);
    transition-property: transform, color, background-color; transition-duration: 160ms;
}
.es-card-save > span { font-size: 23px; line-height: 1; }
.es-card-save em { font-style: normal; }
.es-card-save--product { width: 42px; padding: 0; }
.es-card-save.is-saved { color: #fff; background: var(--es-orange); }
.es-card-save.is-saved > span { font-weight: 900; }
.es-card-save:active, .es-header-saved:active, .es-return-strip:active { transform: scale(.96); }
.es-follower-proof { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin: -1px 0 10px; padding: 5px 9px; border-radius: 999px; background: #fff1e7; color: #8a3c1d; box-shadow: inset 0 0 0 1px rgba(244,81,30,.1); }
.es-follower-proof > span { color: var(--es-orange); font-size: 16px; line-height: 1; }
.es-follower-proof strong { font-size: 11.5px; font-variant-numeric: tabular-nums; }
.es-follower-proof small { color: #80685c; font-size: 10.5px; font-weight: 700; }
.es-return-strip {
    width: min(1180px, calc(100% - 40px)); min-height: 68px; margin: 2px auto 18px;
    display: flex; align-items: center; gap: 13px; padding: 11px 16px; border: 0; border-radius: 20px;
    background: #231914; color: #fff; text-align: left; cursor: pointer;
    box-shadow: 0 13px 34px rgba(35,25,20,.17); transition-property: transform, box-shadow; transition-duration: 160ms;
}
.es-return-strip > b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--es-gold); color: #321d12; font-size: 24px; }
.es-return-strip strong, .es-return-strip small { display: block; }
.es-return-strip strong { font-family: 'Outfit', sans-serif; font-size: 15px; }
.es-return-strip small { margin-top: 2px; color: rgba(255,255,255,.68); font-size: 12px; }
.es-return-strip > i { margin-left: auto; color: #ffd86c; font-size: 12px; font-style: normal; font-weight: 800; }
.es-saved-backdrop { position: fixed; z-index: 10040; inset: 0; visibility: hidden; opacity: 0; background: rgba(25,17,13,.5); transition-property: opacity, visibility; transition-duration: 200ms; }
.es-saved-drawer {
    position: fixed; z-index: 10041; top: 0; right: 0; bottom: 0; width: min(430px,100%);
    padding: 24px 22px; overflow-y: auto; visibility: hidden; transform: translateX(104%);
    background: #fffaf6; box-shadow: -24px 0 70px rgba(31,20,14,.22);
    transition-property: transform, visibility; transition-duration: 230ms;
}
body.es-saved-open { overflow: hidden; }
body.es-saved-open .es-saved-backdrop { visibility: visible; opacity: 1; }
body.es-saved-open .es-saved-drawer { visibility: visible; transform: translateX(0); }
.es-saved-drawer > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.es-saved-drawer > header small { color: var(--es-orange); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.es-saved-drawer h2 { margin: 4px 0 0; color: var(--es-ink); font-family: 'Outfit',sans-serif; font-size: 27px; line-height: 1.08; text-wrap: balance; }
.es-saved-close { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 15px; background: #f1e8e2; color: var(--es-ink); font-size: 25px; cursor: pointer; }
.es-saved-drawer > p { margin: 14px 0 19px; color: var(--es-muted); font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.es-saved-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 17px; background: #eee5df; }
.es-saved-tabs button { min-height: 43px; border: 0; border-radius: 12px; background: transparent; color: var(--es-muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.es-saved-tabs button.active { color: var(--es-ink); background: #fff; box-shadow: 0 4px 14px rgba(43,27,19,.09); }
.es-saved-tabs b { font-variant-numeric: tabular-nums; }
.es-saved-list { display: grid; gap: 10px; margin-top: 18px; }
.es-saved-item { position: relative; border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(42,25,16,.07); }
.es-saved-item > a { min-height: 82px; display: grid; grid-template-columns: 58px minmax(0,1fr) 20px; align-items: center; gap: 12px; padding: 10px 52px 10px 10px; color: inherit; text-decoration: none; }
.es-saved-item img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; outline: 1px solid rgba(0,0,0,.1); }
.es-saved-item a span { min-width: 0; }
.es-saved-item strong, .es-saved-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-saved-item strong { color: var(--es-ink); font-size: 13px; }
.es-saved-item small { margin-top: 4px; color: var(--es-muted); font-size: 11px; }
.es-saved-item i { color: var(--es-orange); font-style: normal; }
.es-saved-item > button { position: absolute; top: 21px; right: 9px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f7efea; color: #846e62; font-size: 20px; cursor: pointer; }
.es-saved-empty { padding: 46px 22px; text-align: center; color: var(--es-muted); }
.es-saved-empty > span { font-size: 38px; color: #caa998; }
.es-saved-empty h3 { margin: 8px 0; color: var(--es-ink); font-family: 'Outfit',sans-serif; font-size: 18px; }
.es-saved-empty p { margin: 0; font-size: 12px; line-height: 1.55; }
.es-saved-drawer > footer { margin-top: 20px; color: #927d71; text-align: center; font-size: 10px; }
.es-retention-toast { position: fixed; z-index: 1200; left: 50%; bottom: 24px; max-width: calc(100% - 28px); padding: 12px 17px; border-radius: 14px; background: #211713; color: #fff; font-size: 12px; font-weight: 750; box-shadow: 0 14px 36px rgba(33,23,19,.28); opacity: 0; transform: translate(-50%,14px); pointer-events: none; transition-property: opacity, transform; transition-duration: 180ms; }
.es-retention-toast.is-visible { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 860px) {
    .es-header-saved { display: none; }
    .es-bottom-nav__item { border: 0; font-family: inherit; cursor: pointer; }
    .es-bottom-nav__item .es-saved-count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; font-size: 9px; }
    .es-return-strip { width: calc(100% - 24px); min-height: 64px; margin-top: -3px; border-radius: 18px; }
    .es-return-strip > i { font-size: 0; }
    .es-return-strip > i::after { content: '→'; font-size: 20px; }
    .es-saved-drawer { top: auto; width: 100%; max-height: 84svh; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; transform: translateY(104%); }
    body.es-saved-open .es-saved-drawer { transform: translateY(0); }
    .es-retention-toast { bottom: calc(var(--es-bottom-nav-height) + 22px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
    .es-card-save--store em { display: none; }
    .es-card-save--store { width: 42px; padding: 0; }
}

/* Installation PWA Explorer */
.es-pwa-install:active, .es-pwa-dismiss:active, .es-ios-close:active { transform: scale(.96); }
.es-pwa-card {
    width: min(1180px, calc(100% - 40px)); margin: -4px auto 20px; position: relative;
    display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 15px;
    padding: 15px 18px; border-radius: 22px; background: linear-gradient(120deg,#fff1e7,#fffaf6);
    box-shadow: 0 10px 30px rgba(85,43,20,.1), inset 0 0 0 1px rgba(244,81,30,.12);
}
.es-pwa-card[hidden], .es-pwa-install[hidden] { display: none; }
.es-pwa-card__icon { width:52px; height:52px; overflow:hidden; display:grid; place-items:center; border-radius:16px; background:var(--es-orange); box-shadow:0 8px 20px rgba(244,81,30,.23); }
.es-pwa-card__icon img, .es-ios-icon img { display:block; width:100%; height:100%; object-fit:cover; }
.es-pwa-card strong { display: block; color: var(--es-ink); font-family: 'Outfit',sans-serif; font-size: 16px; }
.es-pwa-card p { margin: 3px 0 0; color: var(--es-muted); font-size: 12px; line-height: 1.45; text-wrap: pretty; }
.es-pwa-install--card { min-height: 43px; padding: 0 18px; border: 0; border-radius: 13px; background: var(--es-orange); color: #fff; font: inherit; font-size: 13px; font-weight: 850; cursor: pointer; box-shadow: 0 8px 18px rgba(244,81,30,.2); }
.es-pwa-dismiss { position: absolute; top: -9px; right: -9px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #806c61; font-size: 20px; cursor: pointer; box-shadow: 0 5px 16px rgba(40,24,16,.13); }
.es-pwa-backdrop { position: fixed; z-index: 1205; inset: 0; visibility: hidden; opacity: 0; background: rgba(25,17,13,.52); transition-property: opacity, visibility; transition-duration: 190ms; }
.es-ios-guide { position: fixed; z-index: 1206; left: 50%; bottom: 18px; width: min(440px,calc(100% - 24px)); padding: 25px 22px; visibility: hidden; transform: translate(-50%,calc(100% + 40px)); border-radius: 28px; background: #fffaf6; box-shadow: 0 25px 70px rgba(31,20,14,.28); transition-property: transform, visibility; transition-duration: 230ms; }
body.es-ios-guide-open { overflow: hidden; }
body.es-ios-guide-open .es-pwa-backdrop { visibility: visible; opacity: 1; }
body.es-ios-guide-open .es-ios-guide { visibility: visible; transform: translate(-50%,0); }
.es-ios-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 14px; background: #f1e8e2; color: var(--es-ink); font-size: 23px; cursor: pointer; }
.es-ios-icon { width:54px; height:54px; overflow:hidden; display:grid; place-items:center; margin-bottom:15px; border-radius:17px; background:var(--es-orange); }
.es-ios-guide > small { color: var(--es-orange); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.es-ios-guide h2 { max-width: 330px; margin: 6px 0 18px; color: var(--es-ink); font-family: 'Outfit',sans-serif; font-size: 24px; line-height: 1.12; text-wrap: balance; }
.es-ios-guide ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: var(--es-muted); font-size: 13px; line-height: 1.5; }
.es-ios-guide li::marker { color: var(--es-orange); font-weight: 900; }
@media (max-width: 860px) {
    .es-pwa-card {
        width: calc(100% - 24px); min-height: 66px; margin: 0 auto 12px;
        grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px;
        padding: 10px 42px 10px 10px; border-radius: 18px;
    }
    .es-pwa-card__icon { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
    .es-pwa-card strong { padding: 0; font-size: 12.5px; line-height: 1.25; text-wrap: balance; }
    .es-pwa-card p { display: none; }
    .es-pwa-install--card { width: auto; min-height: 40px; padding: 0 13px; border-radius: 11px; font-size: 11px; }
    .es-pwa-dismiss { top: 13px; right: 5px; width: 34px; height: 40px; background: transparent; box-shadow: none; }
}
@media (max-width: 360px) {
    .es-pwa-card { grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; padding-left: 8px; }
    .es-pwa-card__icon { width: 34px; height: 34px; }
    .es-pwa-card strong { font-size: 11.5px; }
    .es-pwa-install--card { padding-inline: 10px; }
}
@media (display-mode: standalone) {
    .es-pwa-install, .es-pwa-card { display: none !important; }
}

/* Avis, popularité et confiance Explorer */
.explorer-page .card-actions,
.search-page .card-actions { grid-template-columns: minmax(0,1fr) auto; }
.btn-explorer-review { min-width: 54px; min-height: 40px; padding: 0 11px; border: 0; border-radius: 10px; background: #fff4dc; color: #8a5700; font: inherit; font-size: 11.5px; font-weight: 850; cursor: pointer; white-space: nowrap; transition-property: transform, background-color; transition-duration: 150ms; }
.btn-explorer-review:active { transform: scale(.96); }
.es-popular-badge { position: absolute; left: 10px; bottom: 10px; z-index: 3; padding: 5px 9px; border-radius: 99px; background: #231914; color: #ffd86c; font-size: 10px; font-weight: 900; box-shadow: 0 5px 14px rgba(20,12,8,.2); }
.explorer-page .feature-chip:first-child { background: #e8f8ee; color: #137044; }
.es-review-backdrop { position: fixed; z-index: 1210; inset: 0; visibility: hidden; opacity: 0; background: rgba(25,17,13,.55); transition-property: opacity, visibility; transition-duration: 190ms; }
.es-review-modal { position: fixed; z-index: 1211; top: 50%; left: 50%; width: min(540px,calc(100% - 24px)); max-height: min(88svh,760px); padding: 24px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translate(-50%,-46%); border-radius: 26px; background: #fffaf6; box-shadow: 0 30px 80px rgba(31,20,14,.3); transition-property: opacity, transform, visibility; transition-duration: 210ms; }
body.es-review-open { overflow: hidden; }
body.es-review-open .es-review-backdrop { visibility: visible; opacity: 1; }
body.es-review-open .es-review-modal { visibility: visible; opacity: 1; transform: translate(-50%,-50%); }
.es-review-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 14px; background: #f1e8e2; color: var(--es-ink); font-size: 23px; cursor: pointer; }
.es-review-modal > small { color: var(--es-orange); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.es-review-modal h2 { max-width: 390px; margin: 5px 48px 16px 0; color: var(--es-ink); font-family: 'Outfit',sans-serif; font-size: 25px; line-height: 1.15; text-wrap: balance; }
.es-review-summary { display: flex; align-items: baseline; gap: 8px; padding: 13px 15px; border-radius: 16px; background: #fff1df; }
.es-review-summary strong { color: #9a5c00; font-size: 23px; font-variant-numeric: tabular-nums; }
.es-review-summary span { color: #7d6659; font-size: 12px; font-weight: 700; }
.es-review-list { display: grid; gap: 9px; margin: 14px 0; }
.es-review-list article { padding: 12px 14px; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(42,25,16,.06); }
.es-review-list article header { display: flex; justify-content: space-between; gap: 10px; }
.es-review-list article strong { color: var(--es-ink); font-size: 12px; }
.es-review-list article span { color: #e89700; font-size: 11px; letter-spacing: 1px; }
.es-review-list article p, .es-review-loading { margin: 7px 0 0; color: var(--es-muted); font-size: 12px; line-height: 1.5; text-wrap: pretty; }
.es-review-form { display: grid; gap: 10px; padding-top: 14px; box-shadow: 0 -1px rgba(0,0,0,.07); }
.es-review-form h3 { margin: 0; color: var(--es-ink); font-family: 'Outfit',sans-serif; font-size: 17px; }
.es-review-stars { display: flex; gap: 3px; }
.es-review-stars button { width: 42px; height: 42px; border: 0; background: transparent; color: #d8ccc4; font-size: 25px; cursor: pointer; }
.es-review-stars button.active { color: #f1a208; }
.es-review-form input, .es-review-form textarea { width: 100%; padding: 12px 13px; border: 1px solid rgba(67,45,33,.14); border-radius: 13px; background: #fff; color: var(--es-ink); font: inherit; font-size: 13px; }
.es-review-submit { min-height: 46px; border: 0; border-radius: 14px; background: var(--es-orange); color: #fff; font: inherit; font-weight: 850; cursor: pointer; }
.es-review-submit:disabled { opacity: .55; cursor: wait; }
.es-review-status { min-height: 18px; margin: 0; color: var(--es-muted); font-size: 11px; text-align: center; }
.es-review-honeypot { position: absolute !important; left: -9999px; }
@media (max-width: 860px) {
    .explorer-page .card-actions,
    .search-page .card-actions { grid-template-columns: minmax(0,1fr) auto; }
    .btn-explorer-review { min-width: 0; padding: 0 10px; font-size: 11.5px; }
    .es-review-modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92svh; padding: 22px 18px max(22px,env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; transform: translateY(16px); }
    body.es-review-open .es-review-modal { transform: translateY(0); }
}

/* Espace Profil client dans le tiroir latéral */
.es-profile-card {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(42, 25, 16, .07), inset 0 0 0 1px rgba(67, 45, 33, .08);
}
.es-profile-summary {
    display: flex;
    align-items: center;
    gap: 11px;
}
.es-profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff5722, #fb923c);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 900;
    flex-shrink: 0;
}
.es-profile-meta {
    min-width: 0;
    flex: 1;
}
.es-profile-meta strong {
    display: block;
    color: var(--es-ink);
    font-size: 14px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.es-profile-meta span {
    display: block;
    margin-top: 2px;
    color: var(--es-muted);
    font-size: 12px;
    line-height: 1.35;
}
.es-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}
.es-profile-btn {
    min-height: 36px;
    padding: 0 13px;
    border: 0;
    border-radius: 11px;
    background: var(--es-orange);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.es-profile-btn--ghost {
    background: #f5eee9;
    color: var(--es-ink-soft);
}
.es-profile-form {
    display: grid;
    gap: 9px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(67, 45, 33, .09);
}
.es-profile-form[hidden] { display: none; }
.es-profile-form input,
.es-profile-form select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(67, 45, 33, .14);
    border-radius: 12px;
    background: #fffdfb;
    color: var(--es-ink);
    font: inherit;
    font-size: 13px;
}
.es-profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.es-profile-status {
    margin: 0;
    font-size: 11.5px;
    font-weight: 700;
    color: #059669;
}

/* Groupes de filtres : lecture mobile simplifiée et 100% contenue. */
.es-filter-group {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(67,45,33,.09);
}
.es-filter-group[hidden] { display: none !important; }
.es-filter-group__label {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0 0 9px;
    color: var(--es-ink);
    font-size: 11.5px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.es-filter-group__label span {
    color: var(--es-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.es-filter-group__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}
.es-filter-group__body--location {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.es-filter-group__body--location .country-select-wrap,
.es-filter-group__body--location .city-select-wrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
@media (max-width: 350px) {
    .es-filter-group__body--location {
        grid-template-columns: minmax(0, 1fr);
    }
}
.es-filter-group__body--types .category-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    margin: 0 !important;
    padding: 0 !important;
}
.es-filter-group__body--types .tab-btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    justify-content: center;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.es-filter-group__body--products .product-category-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0;
}
.es-filter-group__body--products .product-category-heading { display: none; }
.explorer-page .es-filter-group__body--products .product-category-rail,
.explorer-page .es-filter-group__body--products .product-category-rail.has-groups {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 204px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 !important;
    padding: 1px;
    scrollbar-width: thin;
}
.es-filter-group__body--products .product-category-all {
    grid-column: 1 / -1;
    min-width: 0;
}
.es-filter-group__body--products .product-category-all .product-category-chip {
    width: 100%;
}
.es-filter-group__body--products .product-category-group,
.es-filter-group__body--products .product-category-group > div {
    display: contents !important;
}
.es-filter-group__body--products .product-category-group > strong {
    display: none !important;
}
.es-filter-group__body--products .product-category-chip {
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    justify-content: space-between;
    padding: 6px 9px;
    border-radius: 11px;
    font-size: 11.5px;
    white-space: normal;
    line-height: 1.2;
    text-align: left;
    overflow: hidden;
}