/* ============================================================
   SELLER SHOW — Page boutique/vendeur
   Fichier : public/assets/css/pages/seller-show.css
   ============================================================ */

.km-seller-page {
    background: #F9FDFF;
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 10px;
}

/* Conteneur central */
.km-seller-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px 40px;
}

/* ── Breadcrumb ── */
.km-seller-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
}

.km-seller-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-seller-breadcrumb__link:hover { color: #704B38; }

.km-seller-breadcrumb__current {
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .km-seller-content { padding: 16px 24px; }
}

@media (max-width: 640px) {
    .km-seller-content { padding: 16px 16px; }
}

/* ── Photo de couverture ── */
.km-seller-cover {
    position: relative;
    width: 100%;
    max-width: 1352.007px;
    height: 255.995px;
    margin: 0 auto;
    background: #E5E7EB;
    overflow: hidden;
}

.km-seller-cover__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.km-seller-cover__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    padding: 8.089px 13.628px 7.394px 15.984px;
    gap: 7.992px;
    background: #00A63E;
    color: #FFF;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
    border-radius: 4px;
    z-index: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .km-seller-cover { height: 200px; }
}

@media (max-width: 640px) {
    .km-seller-cover { height: 140px; }
    .km-seller-cover__badge { font-size: 12px; padding: 6px 10px; }
}

/* ── Profil vendeur ── */
.km-seller-profile {
    background:#F9FDFF;;
    width: 100%;
    padding: 24px 0 24px;
}

.km-seller-profile__box {
    max-width: 1440px;
    margin: 0 auto;
    padding: 25px 40px 25px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border: 1.098px solid #E5E7EB;
    background: #FFF;
}

/* Ligne principale */
.km-seller-profile__main {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

/* Logo */
.km-seller-profile__logo {
    width: 127.989px;
    height: 127.989px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #F3F4F6;
}
.km-seller-profile__logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Infos */
.km-seller-profile__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.km-seller-profile__name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #704B38;
    font-family: 'Arimo', var(--km-font);
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
}

/* Note */
.km-seller-profile__rating {
    display: flex;
    align-items: center;
    gap: 2px;
}
.km-seller-profile__rating-value {
    color: #704B38;
    font-family: var(--km-font);
    font-size: 16px;
    font-weight: 500;
    margin-left: 6px;
}
.km-seller-profile__rating-count {
    color: #6B7280;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 400;
    margin-left: 2px;
}

/* Zone */
.km-seller-profile__zone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #364153;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 400;
}

/* Spécialités */
.km-seller-profile__specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.km-seller-profile__specialty-tag {
    display: flex;
    height: 25.999px;
    padding: 4.094px 10.358px 3.906px 11.988px;
    justify-content: center;
    align-items: center;
    background: #F9FDFF;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    border-radius: 4px;
}

/* Actions */
.km-seller-profile__actions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.km-seller-profile__icon-btn {
    display: flex;
    width: 50.163px;
    height: 50.163px;
    padding: 13px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.098px solid #E5E7EB;
    background: #FFF;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.km-seller-profile__icon-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DC;
}
.km-seller-profile__icon-btn--active svg {
    fill: #F6A936;
    stroke: #F6A936;
}

.km-seller-profile__contact-btn {
    display: flex;
    height: 50.163px;
    padding: 14.773px 23.911px 14.391px 23.993px;
    justify-content: center;
    align-items: center;
    gap: 7.992px;
    flex-shrink: 0;
    background: #F6A936;
    color: #FFF;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: filter .2s ease;
}
.km-seller-profile__contact-btn:hover { filter: brightness(1.08); }

/* Stats */
.km-seller-profile__stats {
    display: flex;
    height: auto;
    padding: 15.984px;
    justify-content: center;
    align-items: flex-start;
    gap: 15.984px;
    flex-shrink: 0;
    align-self: stretch;
    background: #F9FAFB;
    border-radius: 6px;
}

.km-seller-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.km-seller-stat__top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.km-seller-stat__value {
    color: #704B38;
    text-align: center;
    font-family: var(--km-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}
.km-seller-stat__value--green { color: #00A63E; }

.km-seller-stat__label {
    color: #6B7280;
    text-align: center;
    font-family: var(--km-font);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

/* Responsive */
@media (max-width: 1200px) {
    .km-seller-profile__box { padding: 24px 24px 1px 24px; }
}

@media (max-width: 900px) {
    .km-seller-profile__main { flex-wrap: wrap; }
    .km-seller-profile__actions { width: 100%; }
    .km-seller-profile__contact-btn { flex: 1; }
}

@media (max-width: 640px) {
    .km-seller-profile__box { padding: 16px 16px 1px 16px; }
    .km-seller-profile__main { flex-direction: column; align-items: center; text-align: center; }
    .km-seller-profile__logo { width: 96px; height: 96px; }
    .km-seller-profile__name { font-size: 20px; justify-content: center; }
    .km-seller-profile__zone,
    .km-seller-profile__rating { justify-content: center; }
    .km-seller-profile__specialties { justify-content: center; }
    .km-seller-profile__stats { flex-wrap: wrap; height: auto; gap: 12px; }
    .km-seller-stat { min-width: 45%; }
}

/* ── Onglets ── */
.km-seller-tabs {
    display: flex;
    height: 56.251px;
    align-items: flex-start;
    align-self: stretch;
    border: 1.098px solid #E5E7EB;
    border-radius: 8px 8px 0 0;
    background: #FFF;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.km-seller-tabs::-webkit-scrollbar {
    display: none;
}

.km-seller-tab {
    display: flex;
    padding: 16.179px 23.231px 17.975px 23.993px;
    justify-content: center;
    align-items: center;
    border: none;
    border-bottom: 2.195px solid transparent;
    background: none;
    color: #6B7280;
    text-align: center;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s ease, border-color .2s ease;
}

.km-seller-tab:hover {
    color: #704B38;
}

.km-seller-tab--active {
    color: #F6A936;
    border-bottom-color: #F6A936;
}
.km-seller-tab--active:hover {
    color: #F6A936;
}

.km-seller-tab-content {
    padding: 24px 0;
}

/* ── Barre de recherche produit ── */
.km-seller-search {
    display: flex;
    height: 81.324px;
    padding: 17.081px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border: 1.098px solid #E5E7EB;
    background: #FFF;
    border-radius: 8px;
    margin-bottom: 20px;
}

.km-seller-search__input-wrap {
    position: relative;
    flex: 1;
}

.km-seller-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.km-seller-search__input {
    width: 100%;
    height: 47.162px;
    padding: 12px 16px 12px 48px;
    border: 1.098px solid #E5E7EB;
    border-radius: 6px;
    color: #0A0A0A;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 400;
    outline: none;
    transition: border-color .2s ease;
}
.km-seller-search__input::placeholder {
    color: rgba(10, 10, 10, 0.50);
}
.km-seller-search__input:focus {
    border-color: #F6A936;
}

.km-seller-search__btn {
    display: flex;
    width: 172.459px;
    height: 47.162px;
    justify-content: center;
    align-items: center;
    border: 1.098px solid #E5E7EB;
    border-radius: 6px;
    background: #704B38;
    color: #FFF;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    transition: filter .2s ease;
}
.km-seller-search__btn:hover { filter: brightness(1.1); }

/* ── Grille produits ── */
.km-seller-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.km-seller-product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #E5E7EB;
    background: #FFF;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease;
}
.km-seller-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    transform: translateY(-3px);
}

.km-seller-product-card__img-wrap {
    position: relative;
    width: 100%;
    height: 191.992px;
    overflow: hidden;
    background: #F3F4F6;
    flex-shrink: 0;
}

.km-seller-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, filter .3s ease;
}
.km-seller-product-card:hover .km-seller-product-card__img {
    transform: scale(1.04);
}

/* Badge remise */
.km-seller-product-card__discount {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    padding: 4.094px 10.703px 3.398px 11.988px;
    justify-content: center;
    align-items: center;
    background: #F6A936;
    color: #FFF;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
    border-radius: 4px;
    z-index: 1;
}

/* Overlay rupture de stock */
.km-seller-product-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.km-seller-product-card__overlay-tag {
    display: flex;
    padding: 8.187px 13.744px 7.788px 15.984px;
    justify-content: center;
    align-items: center;
    background: #FFF;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    border-radius: 4px;
}

/* Corps */
.km-seller-product-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.km-seller-product-card__name {
    color: #704B38;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.km-seller-product-card__unit {
    color: #6B7280;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}

.km-seller-product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.km-seller-product-card__price-promo {
    color: #F6A936;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.km-seller-product-card__price-original {
    color: #6B7280;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
    text-decoration-line: line-through;
}

/* Responsive */
@media (max-width: 1200px) {
    .km-seller-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .km-seller-search { flex-direction: column; height: auto; gap: 12px; }
    .km-seller-search__btn { width: 100%; }
}

@media (max-width: 640px) {
    .km-seller-products-grid { grid-template-columns: 1fr; }
    .km-seller-tab { font-size: 13px; padding: 14px 16px; }
}

/* ── Onglet À propos ── */
.km-seller-about {
    display: flex;
    padding: 25.09px 25.09px 1.098px 25.09px;
    align-items: flex-start;
    align-self: stretch;
    border: 1.098px solid #E5E7EB;
    background: #FFF;
    border-radius: 0 0 8px 8px;
    gap: 48px;
}

.km-seller-about__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 24px;
    min-width: 0;
}

.km-seller-about__title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    margin-top: 8px;
}
.km-seller-about__title:first-child { margin-top: 0; }

.km-seller-about__text {
    color: #364153;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 22.4px;
}

/* Certifications */
.km-seller-about__certif-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.km-seller-about__certif-item {
    list-style: none;
    padding: 10px 14px;
    background: #F9FAFB;
    border-radius: 6px;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
    position: relative;
    padding-left: 22px;
}
.km-seller-about__certif-item::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #704B38;
}

/* Coordonnées */
.km-seller-about__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.km-seller-about__contact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.km-seller-about__contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.km-seller-about__contact-label {
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
}

.km-seller-about__contact-value {
    color: #364153;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}

/* Zones de livraison */
.km-seller-about__zones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.km-seller-about__zone-tag {
    display: flex;
    height: 29.686px;
    padding: 5.191px 12.571px 4.495px 13.085px;
    justify-content: center;
    align-items: center;
    border: 1.098px solid #E5E7EB;
    border-radius: 6px;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}

/* Responsive */
@media (max-width: 900px) {
    .km-seller-about {
        flex-direction: column;
        gap: 24px;
    }
    .km-seller-about__col { padding-bottom: 0; }
    .km-seller-about__col:last-child { padding-bottom: 24px; }
}

/* ── Onglet Avis ── */
.km-seller-reviews {
    display: flex;
    flex-direction: column;
    padding: 25.09px 25.09px 1.098px 25.09px;
    align-items: flex-start;
    align-self: stretch;
    border: 1.098px solid #E5E7EB;
    background: #FFF;
    border-radius: 0 0 8px 8px;
    gap: 16px;
}

.km-seller-reviews__title {
    color: #082E47;
    font-family: var(--km-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
}

/* Résumé note globale */
.km-seller-reviews__summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 159.442px;
    padding-left: 15.984px;
    align-self: stretch;
    background: #F9FAFB;
    border-radius: 6px;
    gap: 4px;
}

.km-seller-reviews__summary-score {
    color: #082E47;
    text-align: center;
    font-family: var(--km-font);
    font-size: 48px;
    font-weight: 500;
    line-height: 72px;
}

.km-seller-reviews__summary-stars {
    display: flex;
    gap: 2px;
}

.km-seller-reviews__summary-count {
    color: #6B7280;
    text-align: center;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}

/* Liste avis */
.km-seller-reviews__list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.km-seller-review {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
    border-bottom: 1px solid #F3F4F6;
}
.km-seller-review:last-child { border-bottom: none; padding-bottom: 24px; }

.km-seller-review__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.km-seller-review__name {
    color: #082E47;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
}

.km-seller-review__date {
    color: #6B7280;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
    white-space: nowrap;
}

.km-seller-review__stars {
    display: flex;
    gap: 2px;
}

.km-seller-review__text {
    color: #364153;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 22.4px;
}

.km-seller-reviews__empty {
    color: #9CA3AF;
    font-family: var(--km-font);
    font-size: 14px;
    padding: 24px 0;
}

/* Responsive */
@media (max-width: 640px) {
    .km-seller-reviews { padding: 16px 16px 1px 16px; }
    .km-seller-reviews__summary-score { font-size: 36px; line-height: 54px; }
    .km-seller-reviews__summary { height: auto; padding: 24px 16px; }
    .km-seller-review__header { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ── Onglet Livraison ── */
.km-seller-delivery {
    display: flex;
    padding: 25.09px 25.09px 1.098px 25.09px;
    align-items: flex-start;
    align-self: stretch;
    border: 1.098px solid #E5E7EB;
    background: #FFF;
    border-radius: 0 0 8px 8px;
    gap: 48px;
}

.km-seller-delivery__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
    min-width: 0;
}

.km-seller-delivery__title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    margin-top: 16px;
}
.km-seller-delivery__title:first-child { margin-top: 0; }

.km-seller-delivery__text {
    color: #364153;
    font-family: var(--km-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 22.4px;
}

.km-seller-delivery__empty {
    color: #9CA3AF;
}

/* Zones */
.km-seller-delivery__zones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.km-seller-delivery__zone-tag {
    display: flex;
    height: 29.686px;
    padding: 5.191px 12.571px 4.495px 13.085px;
    justify-content: center;
    align-items: center;
    border: 1.098px solid #E5E7EB;
    border-radius: 6px;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}

/* Documents de certification */
.km-seller-delivery__certif-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.km-seller-delivery__certif-item {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #F9FAFB;
    border-radius: 6px;
    color: #704B38;
    font-family: var(--km-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
    position: relative;
    padding-left: 22px;
}
.km-seller-delivery__certif-item::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #704B38;
}

/* Galerie */
.km-seller-delivery__gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 4px;
}

.km-seller-delivery__gallery-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: #F3F4F6;
}

.km-seller-delivery__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .km-seller-delivery {
        flex-direction: column;
        gap: 24px;
    }
    .km-seller-delivery__col { padding-bottom: 0; }
    .km-seller-delivery__col:last-child { padding-bottom: 24px; }
    .km-seller-delivery__gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .km-seller-delivery { padding: 16px 16px 1px 16px; }
}