/* Fiche vendeur — espace pro et boutique particuliers.
   Les tokens sont posés sur la page pour rester valides sans fc-theme.css.
   Bootstrap 5 passe .row en flex : sans largeur explicite, la liste AJAX
   retombe à ~70px et « Trier par » s'écrit à la verticale. */
#module-jmarketplace-sellerprofile{
  --fc-green-50:#eef7e7;
  --fc-green-700:#3a731b;
  --fc-grey-50:#f6f8fa;
  --fc-grey-100:#eef1f4;
  --fc-grey-400:#aab4bf;
  --brand-primary:#57a62b;
  --brand-primary-hover:#498f23;
  --text-strong:#112437;
  --text-body:#404a54;
  --text-muted:#7d8896;
  --text-link:#498f23;
  --border-subtle:#e1e6ec;
  --border-default:#cdd5de;
  --font-display:'Archivo','Open Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --fs-xs:.75rem;
  --fs-sm:.8125rem;
  --radius-md:8px;
  --radius-lg:12px;
  --radius-pill:999px;
  --shadow-xs:0 1px 2px rgba(17,36,55,.06);
}

#module-jmarketplace-sellerprofile .page-header{display:none;}
#module-jmarketplace-sellerprofile .page-content .col-lg-12 > .row{
  display:flex;flex-wrap:nowrap;align-items:center;gap:14px;
  margin:0 0 12px;padding:10px 14px;
  background:var(--fc-grey-50);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);
}
#module-jmarketplace-sellerprofile .page-content .col-lg-12 > .row > [class*="col-"]{
  float:none;width:auto;max-width:none;padding:0;min-width:0;
}
#module-jmarketplace-sellerprofile .page-content .col-lg-12 > .row > .col-lg-3{
  flex:0 0 64px;width:64px;max-width:64px;
}
#module-jmarketplace-sellerprofile .page-content .col-lg-12 > .row > .col-lg-9,
#module-jmarketplace-sellerprofile .page-content .col-lg-12 > .row > .col-lg-12{
  flex:1 1 auto;
}
#module-jmarketplace-sellerprofile .seller-logo{
  display:flex;align-items:center;justify-content:center;
  width:64px;height:64px;margin:0;padding:6px;
  background:#fff;border:1px solid var(--border-subtle);border-radius:var(--radius-md);
  box-shadow:none;overflow:hidden;
}
#module-jmarketplace-sellerprofile .seller-logo img{
  max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
}
#module-jmarketplace-sellerprofile .seller-logo i{font-size:30px;color:var(--fc-grey-400);line-height:1;}
#module-jmarketplace-sellerprofile .table-responsive{overflow:visible;border:0;}
#module-jmarketplace-sellerprofile table.table,
#module-jmarketplace-sellerprofile table.table tbody{
  display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px;
  width:100%;margin:0;border:0;box-shadow:none;background:transparent;
}
#module-jmarketplace-sellerprofile table.table tr{
  display:flex;align-items:center;gap:8px;
  width:auto;margin:0;padding:0;
  border:0;box-shadow:none;background:transparent;
}
#module-jmarketplace-sellerprofile table.table td{
  border:0;box-shadow:none;background:transparent;padding:0;vertical-align:middle;
  color:var(--text-body);font-size:var(--fs-sm);width:auto;
}
#module-jmarketplace-sellerprofile table.table tr:first-child{order:1;flex:1 1 auto;min-width:0;}
#module-jmarketplace-sellerprofile table.table tr:first-child td:first-child{display:none;}
#module-jmarketplace-sellerprofile table.table tr:first-child h1{
  margin:0;font-family:var(--font-display);font-weight:800;font-size:1.15rem;line-height:1.2;color:var(--text-strong);
}
#module-jmarketplace-sellerprofile table.table tr:has(.average_rating){order:2;flex:0 0 auto;}
#module-jmarketplace-sellerprofile table.table tr:has(.js-terms){
  order:4;flex:1 0 100%;justify-content:space-between;gap:12px;
  margin-top:6px;padding:8px 8px 8px 14px;
  background:#fff;border:1px solid var(--brand-primary);border-radius:var(--radius-md);
}
#module-jmarketplace-sellerprofile table.table tr:has(.average_rating) td:first-child{display:none;}
#module-jmarketplace-sellerprofile table.table tr:has(.js-terms) td:first-child{
  width:auto;padding:0;font-size:.875rem !important;font-weight:700;letter-spacing:0;
  text-transform:none;color:var(--text-strong);
}
#module-jmarketplace-sellerprofile table.table tr:has(.js-terms) .btn{
  padding:6px 16px;font-size:.8125rem;font-weight:700;line-height:1.4;
  border-radius:var(--radius-pill);text-transform:uppercase;
  background:var(--brand-primary);border-color:var(--brand-primary);color:#fff;
}
#module-jmarketplace-sellerprofile table.table tr:has(.js-terms) .btn:hover{
  background:var(--brand-primary-hover);border-color:var(--brand-primary-hover);color:#fff;
}
#module-jmarketplace-sellerprofile table.table tr:has(.seller-description-text){
  order:10;flex:1 0 100%;align-items:flex-start;
}
#module-jmarketplace-sellerprofile table.table tr:has(.seller-description-text) td:first-child{display:none;}
#module-jmarketplace-sellerprofile table.table tr:has(.seller-description-text) td:last-child{flex:1 1 auto;min-width:0;}
#module-jmarketplace-sellerprofile table.table tr:not(:first-child):not(:has(.average_rating)):not(:has(.js-terms)):not(:has(.seller-description-text)){
  flex:1 0 100%;
}
#module-jmarketplace-sellerprofile table.table tr:not(:has(.seller-description-text)):not(:has(.js-terms)):not(:has(.average_rating)) td:first-child{
  width:auto;white-space:nowrap;padding-right:8px;
  color:var(--text-muted);font-weight:700;font-size:var(--fs-xs);
  letter-spacing:.04em;text-transform:uppercase;
}
#module-jmarketplace-sellerprofile .seller-description-text{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;color:var(--text-body);font-size:var(--fs-sm);line-height:1.45;
}
#module-jmarketplace-sellerprofile .seller-description-text p{display:inline;margin:0;}
#module-jmarketplace-sellerprofile .seller-description-text p + p::before{content:" ";}
#module-jmarketplace-sellerprofile .seller-description-text.is-open{
  display:block;-webkit-line-clamp:unset;overflow:visible;
}
#module-jmarketplace-sellerprofile .seller-description-text.is-open p{display:block;margin:0 0 6px;}
#module-jmarketplace-sellerprofile .seller-description-text.is-open p + p::before{content:none;}
#module-jmarketplace-sellerprofile .seller-description-more{
  margin-top:2px;padding:0;border:0;background:none;
  color:var(--text-link);font-size:var(--fs-xs);font-weight:700;cursor:pointer;
}
#module-jmarketplace-sellerprofile .seller-description-more:hover{text-decoration:underline;}
#module-jmarketplace-sellerprofile table.table tr:has(td:last-child:empty){display:none;}
#module-jmarketplace-sellerprofile .average_rating,
#module-jmarketplace-sellerprofile .average_rating a{
  display:inline-flex;align-items:center;gap:2px;text-decoration:none;
}
#module-jmarketplace-sellerprofile .average_rating .star{float:none;}

#module-jmarketplace-sellerprofile #toutes-les-pieces.card,
#module-jmarketplace-sellerprofile #product_avis_block > .card{
  border:1px solid var(--border-subtle);border-radius:var(--radius-lg);
  box-shadow:none;overflow:visible;background:#fff;margin-top:0;
}
#module-jmarketplace-sellerprofile #product_avis_block{margin-top:20px;}
#module-jmarketplace-sellerprofile #toutes-les-pieces .card-header,
#module-jmarketplace-sellerprofile #product_avis_block .card-header{
  background:var(--fc-green-50);color:var(--text-strong);
  border-bottom:1px solid var(--border-subtle);padding:14px 18px;
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .card-header h2,
#module-jmarketplace-sellerprofile #product_avis_block .card-header h2,
#module-jmarketplace-sellerprofile #product_avis_block .card-header .h5{
  margin:0;font-family:var(--font-display);font-weight:800;font-size:1.05rem;line-height:1.35;
  color:var(--text-strong);text-transform:none !important;letter-spacing:0;
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .card-body{padding:12px 10px 14px;}
#module-jmarketplace-sellerprofile #product_avis_block .card-body{padding:16px 18px 18px;}
#module-jmarketplace-sellerprofile #toutes-les-pieces .card-body > .container{
  max-width:none;width:100%;padding:0;margin:0;
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .container > .row{width:100%;margin:0;}
#module-jmarketplace-sellerprofile #toutes-les-pieces #list-products{padding:0;}
#module-jmarketplace-sellerprofile #toutes-les-pieces .fc-mea-search-spotlight{
  margin:0 0 10px;padding:10px 10px 2px;
}

#module-jmarketplace-sellerprofile #form-search-seller-product{margin:0 0 14px;}
#module-jmarketplace-sellerprofile #form-search-seller-product .fc-content-b{
  display:flex;align-items:center;gap:8px;margin:0;
}
#module-jmarketplace-sellerprofile #form-search-seller-product .fc-content-b::before,
#module-jmarketplace-sellerprofile #form-search-seller-product .fc-content-b::after{display:none;}
#module-jmarketplace-sellerprofile #form-search-seller-product .col-lg-11{
  display:flex;flex:1 1 auto;gap:8px;min-width:0;
  float:none;width:auto;padding:0;
}
#module-jmarketplace-sellerprofile #form-search-seller-product .col-lg-3{
  flex:1 1 0;min-width:0;float:none;width:auto;max-width:none;padding:0;
}
#module-jmarketplace-sellerprofile #form-search-seller-product .col-lg-3:first-child{
  flex:1.7 1 0;
}
#module-jmarketplace-sellerprofile #form-search-seller-product .col-lg-1{
  flex:0 0 auto;float:none;width:auto;padding:0;
}
#module-jmarketplace-sellerprofile #form-search-seller-product .form-control,
#module-jmarketplace-sellerprofile #form-search-seller-product .select2-container .select2-selection--single{
  width:100%;max-width:none;margin:0;box-sizing:border-box;
  height:40px;padding:0 14px;border:1px solid var(--border-default);border-radius:var(--radius-pill);
  background:#fff;font-size:var(--fs-sm);line-height:38px;color:var(--text-strong);
}
/* Le champ pièce partage les classes du moteur du header (marge 32px, largeur 90%, placeholder 19px). */
#module-jmarketplace-sellerprofile #form-search-seller-product input.fc_search_piece_autocomplete{
  margin-left:0 !important;width:100% !important;padding:0 14px !important;font-size:var(--fs-sm) !important;
}
#module-jmarketplace-sellerprofile #form-search-seller-product input.fc_search_piece_autocomplete::placeholder{
  font-size:var(--fs-sm);color:var(--text-muted);
}
#module-jmarketplace-sellerprofile #form-search-seller-product .btn{
  width:40px;height:40px;padding:0;border:0;border-radius:var(--radius-md);
  background:var(--brand-primary);display:inline-flex;align-items:center;justify-content:center;
}
#module-jmarketplace-sellerprofile #form-search-seller-product .btn:hover{background:var(--brand-primary-hover);}

#module-jmarketplace-sellerprofile #toutes-les-pieces .products-selection{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;margin:0 0 12px;
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-selection > .col-md-6{
  width:auto;max-width:none;float:none;padding:0;flex:1 1 auto;
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-selection > .col-md-6:last-child{flex:0 0 auto;}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-selection h2,
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-selection .total-products h2{
  margin:0;color:var(--text-muted);font-size:var(--fs-sm);font-weight:600;line-height:1.3;
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .sort-by-row{
  display:flex;align-items:center;gap:8px;width:auto;margin:0;position:static;top:auto;
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .wrapper-sort-by{
  width:auto;float:none;padding:0;flex:0 0 auto;
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order{width:auto;position:relative;}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order .select-title{
  display:inline-flex;align-items:center;gap:6px;
  width:auto;height:auto;margin:0;padding:8px 14px;
  background:var(--brand-primary);color:#fff;
  border:1px solid transparent;border-radius:var(--radius-pill);
  font-size:var(--fs-sm);font-weight:600;white-space:nowrap;box-shadow:none;
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order .select-title i{color:#fff;}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order .select-title:hover{
  background:var(--brand-primary-hover);border-color:transparent;color:#fff;
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order .select-title:hover i{color:#fff;}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order .dropdown-menu{
  z-index:30;min-width:12rem;padding:6px;border:1px solid var(--border-subtle);border-radius:var(--radius-md);
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order .select-list{
  display:block;padding:8px 10px;border-radius:6px;cursor:pointer;color:var(--text-strong);
}
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order .select-list:hover,
#module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order .select-list.current{
  background:var(--fc-green-50);color:var(--text-strong);
}

#module-jmarketplace-sellerprofile .product-item{
  border:1px solid var(--border-subtle);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-xs);margin-bottom:12px;
}
#module-jmarketplace-sellerprofile .product-item .product-header{
  background:#fff;border-bottom:1px solid var(--border-subtle);padding:12px 16px;
  align-items:flex-start;gap:10px;
}
#module-jmarketplace-sellerprofile .product-item .product-title-wrapper{flex:1 1 auto;min-width:0;}
#module-jmarketplace-sellerprofile .product-item .occasion-badge,
#module-jmarketplace-sellerprofile .product-item .new-badge{flex:0 0 auto;}
#module-jmarketplace-sellerprofile #toutes-les-pieces .product-item .h3.product-title,
#module-jmarketplace-sellerprofile #toutes-les-pieces .product-title-listing .h3.product-title{
  width:auto;max-width:100%;height:auto;margin:0;padding:0;
  white-space:normal;overflow:visible;text-overflow:unset;
}
#module-jmarketplace-sellerprofile .product-item .product-title a{
  color:var(--text-strong);font-family:var(--font-display);font-weight:700;
  font-size:1rem;line-height:1.3;text-decoration:none;
  white-space:normal;overflow-wrap:break-word;
}
#module-jmarketplace-sellerprofile .product-item .product-title a:hover{color:var(--text-link);}
#module-jmarketplace-sellerprofile .product-item .occasion-badge,
#module-jmarketplace-sellerprofile .product-item .new-badge{
  border-radius:var(--radius-pill);padding:4px 10px;font-size:11px;letter-spacing:.04em;
}
#module-jmarketplace-sellerprofile .product-item .product-content{
  align-items:center;padding:14px 16px;gap:16px;min-height:0;
}
#module-jmarketplace-sellerprofile .product-item .product-right{
  order:0;display:flex;flex-direction:column;justify-content:flex-start;
  align-items:stretch;align-self:center;width:180px;flex:0 0 180px;height:auto;
}
#module-jmarketplace-sellerprofile .product-item .product-description-item{
  min-height:0;margin-bottom:8px;text-transform:none;
}
#module-jmarketplace-sellerprofile .product-item .product-image{
  width:100%;height:112px;flex:0 0 auto;margin:0 0 8px;
  border-radius:var(--radius-md);background-color:var(--fc-grey-100);
}
#module-jmarketplace-sellerprofile .product-item .view-product-btn{
  justify-content:center;width:100%;max-width:100%;box-sizing:border-box;
  background:var(--brand-primary);color:#fff;border-radius:var(--radius-pill);
  font-weight:700;text-decoration:none;white-space:normal;text-align:center;
}
#module-jmarketplace-sellerprofile .product-item .view-product-btn:hover{
  background:var(--brand-primary-hover);color:#fff;
}
#module-jmarketplace-sellerprofile .product-item .current-price-item{
  font-family:var(--font-display);font-weight:800;color:var(--fc-green-700);
}

#module-jmarketplace-sellerprofile #list_avis .box{margin:0;}
#module-jmarketplace-sellerprofile #liste-comments{margin:0;}
#module-jmarketplace-sellerprofile #product_avis_block{
  --sr-green:var(--brand-primary,#57a62b);
  --sr-green-soft:var(--fc-green-50,#eef7e7);
  --sr-ink:var(--text-strong,#1d2a22);
  --sr-muted:var(--text-muted,#6b7780);
  --sr-line:var(--border-subtle,#e3ebe4);
  --sr-star:#e6b325;
  --sr-radius:var(--radius-lg,12px);
}
#module-jmarketplace-sellerprofile .fc-sr-list{
  display:flex;flex-direction:column;gap:10px;
  width:100%;margin:0;padding:0;list-style:none;
}
#module-jmarketplace-sellerprofile .fc-sr-list::before,
#module-jmarketplace-sellerprofile .fc-sr-list::after{display:none;}
#module-jmarketplace-sellerprofile .fc-sr-list > li{
  width:100%;max-width:none;float:none;margin:0;padding:0;
  list-style:none;background:transparent;border:0;
}
#module-jmarketplace-sellerprofile .fc-sr-card{
  padding:16px 18px 14px;
  border:1px solid var(--sr-line);border-radius:var(--sr-radius);background:#fff;
}
#module-jmarketplace-sellerprofile .fc-sr-card-top{
  display:flex;align-items:flex-start;gap:12px;margin-bottom:10px;
}
#module-jmarketplace-sellerprofile .fc-sr-avatar{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;flex:0 0 38px;border-radius:50%;
  background:var(--sr-green-soft);color:var(--sr-green);
  font-size:14px;font-weight:800;
}
#module-jmarketplace-sellerprofile .fc-sr-card-main{min-width:0;}
#module-jmarketplace-sellerprofile .fc-sr-card-who{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
}
#module-jmarketplace-sellerprofile .fc-sr-card-who strong{font-size:15px;color:var(--sr-ink);}
#module-jmarketplace-sellerprofile .fc-sr-stars{
  display:inline-flex;gap:1px;color:var(--sr-star);
  font-size:16px;letter-spacing:1px;line-height:1;
}
#module-jmarketplace-sellerprofile .fc-sr-stars.is-sm{font-size:13px;}
#module-jmarketplace-sellerprofile .fc-sr-stars .is-off{color:#d5dce1;}
#module-jmarketplace-sellerprofile .fc-sr-card-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;
  margin-top:3px;color:var(--sr-muted);font-size:12px;
}
#module-jmarketplace-sellerprofile .fc-sr-product{
  max-width:42ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#module-jmarketplace-sellerprofile .fc-sr-card-title{
  margin:0 0 4px;font-size:15px;font-weight:700;color:var(--sr-ink);
}
#module-jmarketplace-sellerprofile .fc-sr-card-text{
  margin:0;color:#3a4741;font-size:14px;line-height:1.5;white-space:pre-line;
}
#module-jmarketplace-sellerprofile .fc-sr-card .fc-seller-reply{
  margin-top:12px;padding:10px 12px;border-radius:8px;
  background:var(--sr-green-soft);border:1px solid #d7eadc;
}
#module-jmarketplace-sellerprofile #show_next_comments_ajax{
  display:inline-flex;align-items:center;justify-content:center;
  margin-top:16px;padding:10px 18px;width:auto;
  border:0;border-radius:var(--radius-pill);
  background:var(--brand-primary);color:#fff;font-weight:700;
}
#module-jmarketplace-sellerprofile #show_next_comments_ajax:hover{background:var(--brand-primary-hover);color:#fff;}

@media (max-width:767.98px){
  #module-jmarketplace-sellerprofile .page-content .col-lg-12 > .row{flex-wrap:wrap;}
  #module-jmarketplace-sellerprofile table.table tr:first-child,
  #module-jmarketplace-sellerprofile table.table tr:has(.average_rating),
  #module-jmarketplace-sellerprofile table.table tr:has(.js-terms){flex:1 0 100%;}
  #module-jmarketplace-sellerprofile #form-search-seller-product .fc-content-b{flex-wrap:wrap;align-items:stretch;}
  #module-jmarketplace-sellerprofile #form-search-seller-product .col-lg-11{
    flex:1 1 100%;flex-direction:column;align-items:stretch;
  }
  #module-jmarketplace-sellerprofile #form-search-seller-product .col-lg-3,
  #module-jmarketplace-sellerprofile #form-search-seller-product .col-lg-3:first-child{
    flex:1 1 100%;width:100%;max-width:100%;
  }
  #module-jmarketplace-sellerprofile #form-search-seller-product .col-lg-1{flex:1 1 100%;}
  #module-jmarketplace-sellerprofile #form-search-seller-product .btn{width:100%;}
  #module-jmarketplace-sellerprofile #form-search-seller-product .select2-container{width:100% !important;}
  #module-jmarketplace-sellerprofile #toutes-les-pieces .products-selection{flex-direction:column;align-items:stretch;}
  #module-jmarketplace-sellerprofile #toutes-les-pieces .products-selection > .col-md-6,
  #module-jmarketplace-sellerprofile #toutes-les-pieces .products-selection > .col-md-6:last-child{
    width:100%;flex:1 1 100%;
  }
  #module-jmarketplace-sellerprofile #toutes-les-pieces .sort-by-row{
    flex-direction:column;align-items:stretch;width:100%;
  }
  #module-jmarketplace-sellerprofile #toutes-les-pieces .wrapper-sort-by,
  #module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order,
  #module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order .select-title{
    width:100%;max-width:100%;box-sizing:border-box;white-space:normal;
  }
  #module-jmarketplace-sellerprofile #toutes-les-pieces .products-sort-order .select-title{
    justify-content:space-between;
  }
  #module-jmarketplace-sellerprofile .product-item .product-content{
    flex-direction:row;flex-wrap:nowrap;align-items:flex-start;gap:12px;padding:14px;
  }
  #module-jmarketplace-sellerprofile .product-item .product-left{flex:1 1 auto;min-width:0;}
  #module-jmarketplace-sellerprofile .product-item .product-right{
    order:0;width:128px;flex:0 0 128px;min-width:0;
  }
  #module-jmarketplace-sellerprofile .product-item .product-image{width:100%;height:96px;margin-bottom:8px;}
  #module-jmarketplace-sellerprofile .product-item .view-product-btn{
    min-width:0;padding:8px 8px;font-size:12px;line-height:1.2;
  }
  #module-jmarketplace-sellerprofile .product-item .price-section,
  #module-jmarketplace-sellerprofile .product-item .price-info{min-width:0;width:100%;align-items:flex-start;}
  #module-jmarketplace-sellerprofile .product-item .detail-row{flex-wrap:wrap;min-width:0;}
  #module-jmarketplace-sellerprofile .product-item .detail-value{min-width:0;overflow-wrap:break-word;}
  #module-jmarketplace-sellerprofile .product-item .livraison_inclue{
    margin-left:0;font-size:13px !important;white-space:normal;
  }
  #module-jmarketplace-sellerprofile .fc-sr-product{max-width:100%;white-space:normal;}
}
