/* Pages fixes Unimart (liste produits + fiche produit) : correctifs BUREAU additifs, charge apres la feuille vendor
 * par fixed/shop_by_categories.html et fixed/product_single.html uniquement. Les correctifs mobiles restent dans
 * unimart-mobile.css. Aucune classe nouvelle dans le balisage ; la demo reste la reference. */

/* Pastilles de categories : la demo affiche des vignettes de formats varies (placeholders gris). Nos vraies photos
 * produit ont des ratios libres : on les cadre en carre, recadre au centre, pour une rangee reguliere. */
.rbt-catagories-area .rbt-cat-box .rbt-image-portion { aspect-ratio: 1 / 1; overflow: hidden; }
.rbt-catagories-area .rbt-cat-box .rbt-image-portion img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Barre laterale 992-1399 px : le vendor impose `.rbt-single-widget { min-width: 270px }`, plus large que la colonne
 * (254 px de contenu a 1280 px) : chevrons et compteurs sortaient de la carte (la demo a le meme defaut). */
@media (min-width: 992px) and (max-width: 1399px) {
  .rbt-sidebar-widget-wrapper .rbt-single-widget { min-width: 0; }
}

/* Pastille de couleur d'une variante (valeur #rrggbb validee cote serveur) */
.variant-dot{display:inline-block;width:.9rem;height:.9rem;border-radius:50%;border:1px solid #a8a29e;margin-inline-end:.4rem;vertical-align:-2px}

/* Panier : les lignes sont dessinees par static/js/store-cart-page.js apres le chargement ; hauteur minimale = pas de saut du pied de page. */
.rbt-cart-page{min-height:60vh}

/* Panier, petits ecrans : une ligne = une carte (produit, puis prix / quantite / total avec leur etiquette).
   Le tableau a 4 colonnes depassait a droite (quantite hors d'atteinte). */
.rbt-cart-page .rbt-transparent-table-one-wrapper{overflow-x:visible}
.rbt-cart-page .cart-product-card{min-width:0}
.rbt-cart-page .cart-product-card .close-btn{min-width:2rem;min-height:2rem}
@media (max-width:767.98px){
  .rbt-cart-page .rbt-transparent-table-one thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .rbt-cart-page .rbt-transparent-table-one,.rbt-cart-page .rbt-transparent-table-one tbody{display:block;width:100%}
  .rbt-cart-page .rbt-transparent-table-one tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem .75rem;padding:1rem 0;border-bottom:1px solid #e7e5e4}
  .rbt-cart-page .rbt-transparent-table-one td{display:block;padding:0;border:0;min-width:0}
  .rbt-cart-page .rbt-transparent-table-one td:first-child{grid-column:1/-1}
  .rbt-cart-page .rbt-transparent-table-one td[data-label]::before{content:attr(data-label);display:block;font-size:.8125rem;color:#57534e;margin-bottom:.25rem}
  .rbt-cart-page .rbt-qty-area{max-width:100%}
}
/* Resume du panier : etiquette et montant passent a la ligne au lieu de se chevaucher ; le bouton garde tout son texte. */
.rbt-cart-page .rbt-cart-subttotal{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.25rem .75rem}
.rbt-cart-page .rbt-cart-subttotal p{margin:0;min-width:0;overflow-wrap:anywhere}
.rbt-cart-page .rbt-cart-subttotal .price{margin-inline-start:auto;text-align:end}
.rbt-cart-page .checkout-btn .rbt-btn{height:auto;min-height:2.75rem;white-space:normal;line-height:1.3;padding-block:.75rem}
.rbt-cart-page .checkout-btn .rbt-btn .btn-text{white-space:normal;overflow-wrap:anywhere}
