/* Emplacement : /assets/css/boutique.css — Catalogue (catégories en pastilles, filtres, barre d'outils) — thème « Fresh Lime ». */

/* Raccourcis catégories : pastilles rondes grises comme la maquette */
.afl-shop-cats { padding: 2.4rem 0 0; }
.afl-shop-cats__list { display: flex; gap: 1.4rem; overflow-x: auto; padding: 0.3rem 0.2rem 0.6rem; scrollbar-width: none; justify-content: center; }
.afl-shop-cats__list::-webkit-scrollbar { display: none; }
.afl-shop-cat { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; min-width: 104px; font-size: 0.86rem; font-weight: 600; color: var(--afl-dark); text-align: center; }
.afl-shop-cat__img { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--afl-light); padding: 6px; transition: var(--afl-transition); }
.afl-shop-cat__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform 0.5s ease; }
.afl-shop-cat:hover .afl-shop-cat__img { background: var(--afl-primary); transform: translateY(-4px); }
.afl-shop-cat:hover .afl-shop-cat__img img { transform: scale(1.06); }
.afl-shop-cat.is-active .afl-shop-cat__img { background: var(--afl-primary); }
.afl-shop-cat.is-active { color: var(--afl-dark); }

/* Panneau de filtres */
.afl-filters { background: var(--afl-light); border-radius: var(--afl-radius); padding: 1.4rem; }
.afl-filters__block { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--afl-line); }
.afl-filters__block h6 { font-size: 0.92rem; font-weight: 800; margin-bottom: 0.85rem; }
.afl-filters .form-control, .afl-filters .form-select { background-color: var(--afl-white); }
.afl-filters__search { position: relative; }
.afl-filters__search input { padding-right: 2.4rem; }
.afl-filters__search i { position: absolute; right: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--afl-muted); }
.afl-filters__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; }
.afl-filters__list a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.55rem; border-radius: var(--afl-radius-xs); font-size: 0.9rem; font-weight: 500; color: var(--afl-text); }
.afl-filters__list a span { display: inline-flex; align-items: center; gap: 0.55rem; }
.afl-filters__list a span i { width: 30px; height: 30px; border-radius: 50%; background: var(--afl-white); color: var(--afl-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.afl-filters__list a em { font-style: normal; font-size: 0.72rem; font-weight: 700; background: var(--afl-white); color: var(--afl-text); border-radius: 50px; padding: 0.1rem 0.55rem; }
.afl-filters__list a:hover, .afl-filters__list a.active { background: var(--afl-white); color: var(--afl-dark); }
.afl-filters__list a.active span i, .afl-filters__list a:hover span i { background: var(--afl-primary); }
.afl-filters__list a.active em { background: var(--afl-dark); color: var(--afl-primary); }

.afl-filters__promo { margin-top: 1.2rem; min-height: 340px; border-radius: var(--afl-radius); padding: 1.5rem; flex-direction: column; justify-content: flex-end; gap: 0.5rem; position: relative; overflow: hidden; color: var(--afl-white); background: var(--afl-dark) var(--afl-promo-img) center / cover; }
.afl-filters__promo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 16, 18, 0.9), rgba(15, 16, 18, 0.05)); }
.afl-filters__promo > * { position: relative; }
.afl-filters__promo span { align-self: flex-start; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; background: var(--afl-primary); color: var(--afl-dark); padding: 0.3rem 0.65rem; border-radius: var(--afl-radius-pill); }
.afl-filters__promo strong { font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.6rem; }
.afl-filters__promo .btn { align-self: flex-start; padding: 0.6rem 1.1rem; font-size: 0.88rem; }

.afl-filters-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; border: none; background: var(--afl-light); border-radius: var(--afl-radius-sm); padding: 0.9rem 1.1rem; font-weight: 700; color: var(--afl-dark); margin-bottom: 1rem; }
.afl-filters-toggle i.fa-sliders { color: var(--afl-dark); margin-right: 0.4rem; }

/* Barre d'outils (résultats + tri) */
.afl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--afl-light); border-radius: var(--afl-radius-pill); padding: 0.45rem 0.45rem 0.45rem 1.3rem; margin-bottom: 1.8rem; font-size: 0.9rem; }
.afl-toolbar strong { color: var(--afl-dark); }
.afl-toolbar__sort { display: flex; align-items: center; gap: 0.6rem; }
.afl-toolbar__sort label { white-space: nowrap; color: var(--afl-text); font-weight: 500; }
.afl-toolbar__sort .form-select { min-width: 190px; padding-top: 0.55rem; padding-bottom: 0.55rem; border: none; background-color: var(--afl-white); border-radius: var(--afl-radius-pill); font-weight: 600; }

/* Filtres actifs */
.afl-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.6rem; font-size: 0.85rem; }
.afl-active-filters .afl-chip { background: var(--afl-primary-soft); border-color: transparent; border-radius: var(--afl-radius-pill); }
.afl-chip--clear { background: var(--afl-light) !important; color: var(--afl-dark); }
.afl-chip--clear:hover { background: var(--afl-danger) !important; color: var(--afl-white); }

.afl-empty-state--box { background: var(--afl-light); border-radius: var(--afl-radius); }
.afl-empty-state--box i { background: var(--afl-white); }
.afl-empty-state--box h4 { font-size: 1.2rem; }

@media (max-width: 767.98px) {
  .afl-shop-cats__list { justify-content: flex-start; }
  .afl-shop-cat { min-width: 84px; font-size: 0.78rem; }
  .afl-shop-cat__img { width: 72px; height: 72px; padding: 4px; }
  .afl-toolbar { border-radius: var(--afl-radius); padding: 0.8rem; }
  .afl-toolbar__sort { width: 100%; }
  .afl-toolbar__sort .form-select { flex: 1; min-width: 0; }
}
