/* ============================================================
   SELLERS — Page liste vendeurs/boutiques
   Fichier : public/assets/css/pages/sellers.css
   Réutilise .km-marketplace, .km-products-zone, .km-pagination
   depuis products.css (à charger aussi sur cette page si besoin)
   ============================================================ */

/* ── Si products.css n'est pas chargé, layout de base ── */
.km-marketplace {
    background: #F9FDFF;
    min-height: 100vh;
    padding: 32px 0 64px;
}

.km-marketplace__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.km-products-zone {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── En-tête page vendeurs ── */
.km-sellers-header {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Breadcrumb */
.km-sellers-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.km-sellers-breadcrumb__link {
    color: #6B7280;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
    text-decoration: none;
    transition: color .2s ease;
}
.km-sellers-breadcrumb__link:hover { color: #704B38; }

.km-sellers-breadcrumb__current {
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
}

/* Titre */
.km-sellers-header__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.km-sellers-header__title {
    color: #704B38;
    font-family: 'Nexa', 'Inter', system-ui, sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 110%;
    letter-spacing: -0.42px;
}

/* Sous-titre */
.km-sellers-header__subtitle {
    color: #6B7280;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

/* Responsive */
@media (max-width: 1200px) {
    .km-sellers-header { padding: 0 24px 24px; }
}

@media (max-width: 640px) {
    .km-sellers-header { padding: 0 16px 16px; }
    .km-sellers-header__title { font-size: 28px; }
    .km-sellers-header__title-row { gap: 8px; }
    .km-sellers-header__title-row svg { width: 24px; height: 24px; }
}

/* ============================================================
   SIDEBAR FILTRES VENDEURS
   ============================================================ */
.km-seller-filters {
    width: 279.988px;
    flex-shrink: 0;
    padding: 25.09px 25.09px 20px 25.09px;
    border: 1.098px solid #E5E7EB;
    background: #FFF;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15.984px;
    position: sticky;
    top: calc(var(--km-header-height) + 52px + 16px);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.km-seller-filters__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
}

/* Groupe de filtre */
.km-sf-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid #F3F4F6;
    padding-bottom: 16px;
}
.km-sf-group:last-of-type { border-bottom: none; }

.km-sf-group__header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.km-sf-group__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.km-sf-group__label {
    flex: 1;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
}

.km-sf-group__chevron {
    flex-shrink: 0;
    transition: transform .2s ease;
}
.km-sf-group__chevron--open {
    transform: rotate(180deg);
}

.km-sf-group__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 4px;
}

/* Checkbox */
.km-sf-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.km-sf-check__label {
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}

.km-sf-check__label--star {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Bouton appliquer */
.km-sf-apply {
    display: flex;
    padding: 12.183px 24px 11.784px 24px;
    justify-content: center;
    align-items: center;
    gap: 7.992px;
    align-self: stretch;
    background: #704B38;
    color: #FFF;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: filter .2s ease;
    margin-top: 4px;
}
.km-sf-apply:hover { filter: brightness(1.1); }


/* ============================================================
   GRILLE VENDEURS — 3 colonnes
   ============================================================ */
.km-sellers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Carte vendeur */
.km-seller-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #E5E7EB;
    background: #FFF;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}
.km-seller-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    transform: translateY(-3px);
}

/* Photo de couverture */
.km-seller-card__img-wrap {
    position: relative;
    width: 100%;
    height: 191.992px;
    overflow: hidden;
    flex-shrink: 0;
    background: #F3F4F6;
}

.km-seller-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.km-seller-card:hover .km-seller-card__img {
    transform: scale(1.04);
}

/* Badge premium */
.km-seller-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4.093px 10.534px 3.906px 11.988px;
    background: #00A63E;
    color: #FFF;
    font-family: var(--km-font);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    border-radius: 4px;
    z-index: 1;
}

/* Corps */
.km-seller-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Nom + vérifié */
.km-seller-card__name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
}
.km-seller-card__name a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.km-seller-card__name a:hover { color: #F6A936; }

/* Note */
.km-seller-card__rating {
    display: flex;
    align-items: center;
    gap: 2px;
}
.km-seller-card__rating-value {
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
    margin-left: 4px;
}
.km-seller-card__rating-count {
    color: #6B7280;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
    margin-left: 2px;
}

/* Zone */
.km-seller-card__zone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #364153;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}

/* Spécialités */
.km-seller-card__specialties {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.km-seller-card__specialties-label {
    color: #6B7280;
    font-family: var(--km-font);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}
.km-seller-card__specialties-tags {
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}

/* Stats box */
.km-seller-card__stats {
    display: flex;
    padding: 11.988px;
    justify-content: space-around;
    align-items: flex-start;
    gap: 11.988px;
    background: #F9FAFB;
    border-radius: 6px;
    margin-top: 4px;
}

.km-seller-card__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.km-seller-card__stat-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.km-seller-card__stat-value {
    color: #704B38;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}
.km-seller-card__stat-value--green { color: #00A63E; }

.km-seller-card__stat-label {
    color: #6B7280;
    font-family: var(--km-font);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

/* Actions */
.km-seller-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.km-seller-card__btn-shop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7.014px;
    flex: 1;
    height: 35.98px;
    padding: 7.992px 14.286px;
    background: #F6A936;
    color: #FFF;
    text-align: center;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: filter .2s ease;
    white-space: nowrap;
}
.km-seller-card__btn-shop:hover { filter: brightness(1.08); }

.km-seller-card__btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7.992px;
    flex: 1;
    height: 37.678px;
    padding: 9.187px 14px;
    border: 1.098px solid #E5E7EB;
    color: #704B38;
    text-align: center;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: background .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.km-seller-card__btn-contact:hover {
    background: #F9FAFB;
    border-color: #D1D5DC;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .km-marketplace__inner { padding: 0 24px; gap: 20px; }
    .km-seller-filters { width: 240px; }
    .km-sellers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .km-marketplace__inner { flex-direction: column; }
    .km-seller-filters {
        width: 100%;
        position: static;
        max-height: none;
    }
    .km-sellers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .km-marketplace { padding: 16px 0 40px; }
    .km-marketplace__inner { padding: 0 16px; }
    .km-sellers-grid { grid-template-columns: 1fr; }
    .km-seller-card__actions { flex-direction: column; }
}

/* ── Devenir vendeur ── */
.km-become-seller {
    background: #704B38;
    max-width: 1440px;
    margin: 32px auto 0;
    padding: 40px 24px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.km-become-seller__title {
    color: #FFF;
    text-align: center;
    font-family: 'Nexa', 'Inter', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 120%;
    letter-spacing: -0.42px;
}

.km-become-seller__subtitle {
    color: #FFF;
    text-align: center;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
}

.km-become-seller__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #F6A936;
    color: #FFF;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 4px;
    transition: filter .2s ease, transform .15s ease;
}
.km-become-seller__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 640px) {
    .km-become-seller { padding: 32px 20px; margin-top: 24px; }
    .km-become-seller__title { font-size: 22px; }
}