/* ═══════════════════════════════════════════════════════════
   L'Atelier de la Source — Pages boutique / catégories v1.0
   ═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   1. BANNIÈRE CATÉGORIE — Layout splitté (1/3 texte · 2/3 image)
   ══════════════════════════════════════════════════════════ */

/* Conteneur principal */
.als-cat-banner {
  display    : grid;
  width      : 100%;
  overflow   : hidden;
  margin-bottom: 0;
}

/* Layout splitté avec image : 1/3 texte + 2/3 image */
.als-cat-banner--split {
  grid-template-columns: 1fr 2fr;
  min-height: 280px;
}

/* Panneau texte (gauche) */
.als-cat-banner__panel {
  display        : flex;
  align-items    : center;
  justify-content: flex-start;
  padding        : 40px;
  background     : #fff;
  position       : relative;
  z-index        : 2;
}

.als-cat-banner__panel--full {
  grid-column: 1 / -1;
  min-height : 120px;
}

/* Contenu interne du panneau (supporte le filet coloré) */
.als-cat-banner__inner {
  width: 100%;
}

/* Filet coloré à gauche */
.als-cat-banner__inner[style*="border-left"] {
  padding-left: 20px;
}

/* Panneau image (droite) */
.als-cat-banner__img-panel {
  position: relative;
  overflow: hidden;
}

/* Fond image — couvre tout le panneau image */
.als-cat-banner__bg {
  position           : absolute;
  inset              : 0;
  background-size    : cover;
  background-position: center;
  background-repeat  : no-repeat;
  transform          : scale(1.02);
  transition         : transform 6s ease;
}
.als-cat-banner--split:hover .als-cat-banner__bg {
  transform: scale(1.0);
}

/* Breadcrumb */
.als-cat-banner__breadcrumb {
  font-size     : 11px;
  margin        : 0 0 12px;
  letter-spacing: .05em;
  opacity       : .75;
}
.als-cat-banner__breadcrumb a {
  text-decoration: none;
  transition     : opacity .2s;
}
.als-cat-banner__breadcrumb a:hover { opacity: 1; }
.als-cat-banner__breadcrumb span    { margin: 0 5px; opacity: .4; }

/* Titre */
.als-cat-banner__title {
  font-size  : 1.75rem;
  font-weight: 700;
  margin     : 0 0 10px;
  line-height: 1.2;
  text-shadow: none;
}

/* Description */
.als-cat-banner__desc {
  font-size  : 14px;
  margin     : 0;
  line-height: 1.6;
  max-width  : 380px;
  text-shadow: none;
}

/* ── Bannière sans image (fond coloré, pleine largeur) ── */
.als-cat-banner--no-img {
  background : #f5f8f0;
  min-height : 120px;
}

/* ── Effets image ─────────────────────────────────────── */
.als-banner-effect--kenburns {
  animation: alsKenburns var(--als-effect-spd, 8s) ease infinite alternate;
}
@keyframes alsKenburns {
  from { transform: scale(1.0) translate(0, 0); }
  to   { transform: scale(1.1) translate(-2%, 1%); }
}

.als-banner-effect--drift {
  animation: alsDrift var(--als-effect-spd, 8s) ease infinite alternate;
}
@keyframes alsDrift {
  from { transform: scale(1.05) translateX(0); }
  to   { transform: scale(1.05) translateX(-3%); }
}

.als-cat-banner__img-panel:hover .als-banner-effect--zoom {
  transform: scale(1.08);
}
.als-banner-effect--zoom {
  transition: transform 0.8s ease !important;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .als-cat-banner--split {
    grid-template-columns: 1fr;
    grid-template-rows   : auto minmax(180px, 45vw);
  }
  .als-cat-banner__panel {
    padding: 24px 20px;
  }
  .als-cat-banner__img-panel {
    min-height: 200px;
  }
  .als-cat-banner__title {
    font-size: 1.4rem !important;
  }
  .als-cat-banner__desc {
    font-size: 13px !important;
    max-width : 100%;
  }
}

/* ══════════════════════════════════════════════════════════
   2. BARRE FILTRES / TRI
   ══════════════════════════════════════════════════════════ */
.als-shop-toolbar {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  flex-wrap      : wrap;
  gap            : 12px;
  padding        : 16px 0 20px;
  border-bottom  : 1px solid #f0ede8;
  margin-bottom  : 28px;
}

.als-shop-toolbar__left {
  display    : flex;
  align-items: center;
  gap        : 8px;
  flex-wrap  : wrap;
}

.als-shop-toolbar__count {
  font-size : 13px;
  color     : #888;
  white-space: nowrap;
}

/* Boutons filtre rapide (sous-catégories) */
.als-filter-pills {
  display : flex;
  gap     : 6px;
  flex-wrap: wrap;
  list-style: none;
  margin  : 0;
  padding : 0;
}
.als-filter-pills li a,
.als-filter-pills li span {
  display       : inline-block;
  padding       : 5px 14px;
  border-radius : 20px;
  font-size     : 12px;
  font-weight   : 500;
  text-decoration: none;
  border        : 1px solid #e0dbd5;
  color         : #555;
  background    : #fff;
  transition    : all .15s;
  white-space   : nowrap;
}
.als-filter-pills li a:hover {
  border-color: var(--als-accent, #7a9e3c);
  color       : var(--als-accent, #7a9e3c);
  background  : var(--als-accent-light, #f0f5e8);
}
.als-filter-pills li.current a,
.als-filter-pills li.current span {
  background  : var(--als-accent, #7a9e3c);
  border-color: var(--als-accent, #7a9e3c);
  color       : #fff;
}

/* Sélecteur de tri WooCommerce */
.als-shop-toolbar__right .woocommerce-ordering {
  margin: 0;
}
.als-shop-toolbar__right .orderby {
  padding      : 7px 32px 7px 12px;
  border       : 1px solid #e0dbd5;
  border-radius: 6px;
  font-size    : 12px;
  color        : #555;
  background   : #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance   : none;
  cursor       : pointer;
  transition   : border-color .15s;
}
.als-shop-toolbar__right .orderby:focus,
.als-shop-toolbar__right .orderby:hover {
  border-color: var(--als-accent, #7a9e3c);
  outline     : none;
}

/* ══════════════════════════════════════════════════════════
   3. GRILLE PRODUITS
   ══════════════════════════════════════════════════════════ */
.woocommerce ul.products,
ul.products,
.woocommerce ul.products.columns-1,
.woocommerce ul.products.columns-2,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4,
.woocommerce ul.products.columns-5,
ul.products.columns-1,
ul.products.columns-2,
ul.products.columns-3,
ul.products.columns-4,
ul.products.columns-5 {
  display     : grid !important;
  gap         : 24px !important;
  margin      : 0 !important;
  padding     : 0 !important;
  list-style  : none !important;
  float       : none !important;
  width       : 100% !important;
  align-items : stretch !important;
}

/* Cellule vide / fantôme (li sans contenu produit) */
.woocommerce ul.products li:empty,
ul.products li:empty {
  display: none !important;
}

/* Sous-catégories dans la grille : même style que les produits */
.woocommerce ul.products li.product-category,
ul.products li.product-category {
  display       : flex !important;
  flex-direction: column;
  text-align    : center;
}
.woocommerce ul.products li.product-category a,
ul.products li.product-category a {
  display       : flex;
  flex-direction: column;
  align-items   : center;
  text-decoration: none;
  color         : #2b2b2b;
  height        : 100%;
}
.woocommerce ul.products li.product-category img {
  height    : 200px !important;
  object-fit: cover !important;
  width     : 100% !important;
}
.woocommerce ul.products li.product-category h2 {
  font-size  : 14px !important;
  font-weight: 600 !important;
  padding    : 12px 12px 4px !important;
  margin     : 0 !important;
}

.woocommerce ul.products li.product,
ul.products li.product {
  width         : auto !important;
  float         : none !important;
  margin        : 0 !important;
  padding       : 0 !important;
  background    : #ffffff;
  border-radius : 10px;
  border        : 1px solid #f0ede8;
  overflow      : hidden;
  display       : flex !important;
  flex-direction: column;
  height        : 100%;
  transition    : box-shadow .25s ease, transform .25s ease;
  position      : relative;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  transform : translateY(-3px);
}

/* ── Image produit ──────────────────────────────────────── */
.woocommerce ul.products li.product a img,
ul.products li.product a img {
  width     : 100% !important;
  height    : 100% !important;
  object-fit: cover !important;
  display   : block !important;
  transition: transform .4s ease !important;
}
.als-product-img-wrap img {
  width     : 100% !important;
  height    : 100% !important;
  object-fit: cover !important;
  display   : block !important;
}
.woocommerce ul.products li.product:hover a img,
ul.products li.product:hover a img {
  transform: scale(1.05) !important;
}

.als-product-img-wrap {
  overflow    : hidden;
  position    : relative;
  aspect-ratio: 1 / 1;
  width       : 100%;
  background  : #f8f8f8;
}

/* Badge promo */
.woocommerce ul.products li.product .onsale,
ul.products li.product .onsale {
  position    : absolute;
  top         : 12px;
  left        : 12px;
  background  : #e74c3c !important;
  color       : #fff !important;
  font-size   : 11px !important;
  font-weight : 700 !important;
  padding     : 3px 10px !important;
  border-radius: 3px !important;
  margin      : 0 !important;
  min-height  : auto !important;
  min-width   : auto !important;
  line-height : 1.4 !important;
  z-index     : 3;
}

/* ── Corps de la carte ──────────────────────────────────── */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
  font-size  : 14px !important;
  font-weight: 600 !important;
  color      : #2b2b2b !important;
  padding    : 16px 16px 4px !important;
  margin     : 0 !important;
  line-height: 1.4 !important;
  flex       : 1;
}

.woocommerce ul.products li.product .price,
ul.products li.product .price {
  padding    : 0 16px 12px !important;
  font-size  : 15px !important;
  font-weight: 700 !important;
  color      : var(--als-accent, #7a9e3c) !important;
  display    : block !important;
  margin     : 0 !important;
}
.woocommerce ul.products li.product .price del,
ul.products li.product .price del {
  color    : #bbb !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  margin-right: 4px;
}

/* Bouton "Voir les options" — style outline cohérent */
.woocommerce ul.products li.product .abc-atc-btn--options,
ul.products li.product .abc-atc-btn--options {
  background    : var(--als-accent, #00ABB2) !important;
  color         : #fff !important;
  border        : none !important;
  border-radius : 6px !important;
  margin        : auto 16px 16px !important;
  width         : calc(100% - 32px) !important;
  padding       : 10px 14px !important;
  font-size     : 13px !important;
  font-weight   : 600 !important;
  letter-spacing: .03em !important;
  text-align    : center !important;
  display       : block !important;
  transition    : background .2s !important;
  text-decoration: none !important;
}
.woocommerce ul.products li.product .abc-atc-btn--options:hover,
ul.products li.product .abc-atc-btn--options:hover {
  background : var(--als-accent-dark, #009aa6) !important;
  color      : #fff !important;
}

/* Bouton panier rapide (abc-atc-btn existant) — redesign */
.woocommerce ul.products li.product .abc-atc-btn,
ul.products li.product .abc-atc-btn {
  margin    : auto 16px 16px !important;
  width     : calc(100% - 32px) !important;
  padding   : 10px 14px !important;
  border-radius: 6px !important;
  font-size : 13px !important;
  font-weight: 600 !important;
  letter-spacing: .03em !important;
  transition: background .2s, transform .15s !important;
}

/* Overlay rapide au hover sur l'image — aligné sur le style boutique */
.als-product-quick-view {
  position       : absolute !important;
  inset          : 0 !important;
  background     : rgba(0,171,178,.8) !important;
  display        : flex !important;
  align-items    : center !important;
  justify-content: center !important;
  opacity        : 0 !important;
  transition     : opacity .2s !important;
  z-index        : 10 !important;
  color          : #fff !important;
  font-size      : 13px !important;
  font-weight    : 600 !important;
  cursor         : pointer !important;
}
.als-product-img-wrap:hover .als-product-quick-view,
.woocommerce ul.products li.product:hover .als-product-quick-view,
ul.products li.product:hover .als-product-quick-view,
.als-product-item:hover .als-product-quick-view { opacity: 1 !important; }

/* ══════════════════════════════════════════════════════════
   4. BREADCRUMB
   ══════════════════════════════════════════════════════════ */
.woocommerce .woocommerce-breadcrumb {
  font-size  : 12px !important;
  color      : #999 !important;
  padding    : 14px 0 0 !important;
  margin     : 0 0 0 !important;
  background : none !important;
}
.woocommerce .woocommerce-breadcrumb a {
  color          : #999 !important;
  text-decoration: none !important;
  transition     : color .15s;
}
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--als-accent, #7a9e3c) !important; }

/* Séparateur chevron */
.woocommerce .woocommerce-breadcrumb .breadcrumb-sep,
.woocommerce .woocommerce-breadcrumb .sep {
  margin: 0 6px;
  color : #ccc;
}

/* ══════════════════════════════════════════════════════════
   5. DESCRIPTION CATÉGORIE (sous la bannière)
   ══════════════════════════════════════════════════════════ */
.als-cat-description {
  background   : var(--als-accent-light, #f0f5e8);
  border-left  : 3px solid var(--als-accent, #7a9e3c);
  border-radius: 0 6px 6px 0;
  padding      : 14px 20px;
  margin-bottom: 24px;
  font-size    : 14px;
  color        : #555;
  line-height  : 1.7;
}
.als-cat-description p:last-child { margin-bottom: 0; }

/* Masquer la description WC native (on la réaffiche via PHP dans notre bloc) */
.woocommerce-product-subcategories ~ .term-description,
.woocommerce-result-count ~ .term-description { display: none; }

/* ══════════════════════════════════════════════════════════
   6. PAGINATION
   ══════════════════════════════════════════════════════════ */
.woocommerce nav.woocommerce-pagination {
  margin-top: 40px;
  text-align: center;
}
.woocommerce nav.woocommerce-pagination ul {
  display    : inline-flex;
  gap        : 6px;
  border     : none !important;
  padding    : 0;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: none !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display      : flex !important;
  align-items  : center;
  justify-content: center;
  width        : 36px;
  height       : 36px;
  border-radius: 50% !important;
  border       : 1px solid #e0dbd5 !important;
  font-size    : 13px;
  color        : #555 !important;
  text-decoration: none;
  transition   : all .15s;
  background   : #fff;
  line-height  : 1 !important;
  padding      : 0 !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
  border-color: var(--als-accent, #7a9e3c) !important;
  color       : var(--als-accent, #7a9e3c) !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background  : var(--als-accent, #7a9e3c) !important;
  border-color: var(--als-accent, #7a9e3c) !important;
  color       : #fff !important;
}

/* ══════════════════════════════════════════════════════════
   7. RÉSULTAT VIDE
   ══════════════════════════════════════════════════════════ */
.woocommerce .woocommerce-info {
  border-top-color: var(--als-accent, #7a9e3c) !important;
}


/* Masquer les images supplémentaires (galerie) dans la grille — garder uniquement la principale */
.woocommerce ul.products li.product a.woocommerce-loop-product__link img:not(:first-child),
ul.products li.product a.woocommerce-loop-product__link img:not(:first-child),
ul.products li.product .als-product-img-wrap img ~ img {
  display: none !important;
}

/* S'assurer que le wrapper img-wrap prend toute la largeur */
.als-product-img-wrap {
  width   : 100%;
  display : block;
}

/* ══════════════════════════════════════════════════════════
   8. MOBILE
   ══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .als-shop-toolbar { padding: 12px 0 16px; }
  .als-filter-pills { display: none; }
  .woocommerce ul.products li.product a img,
  ul.products li.product a img { height: 100% !important; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  ul.products li.product .woocommerce-loop-product__title {
    font-size  : 12px !important;
    padding    : 10px 10px 4px !important;
    white-space: normal !important;
    overflow   : visible !important;
    text-overflow: unset !important;
  }
  .woocommerce ul.products li.product .price,
  ul.products li.product .price { padding: 0 10px 8px !important; font-size: 13px !important; }
  .woocommerce ul.products li.product .abc-atc-btn,
  ul.products li.product .abc-atc-btn { margin: auto 10px 10px !important; width: calc(100% - 20px) !important; padding: 8px 6px !important; font-size: 11px !important; }
}

/* Paysage mobile : géré par le réglage tablette du Customizer */
@media (max-width: 900px) and (orientation: landscape) {
  .woocommerce ul.products li.product a img,
  ul.products li.product a img { height: 100% !important; }
}

@media (max-width: 480px) {
  .woocommerce ul.products li.product a img,
  ul.products li.product a img { height: 100% !important; }
}

/* ══════════════════════════════════════════════════════════════
   9. MASQUER SIDEBAR + FORCER PLEINE LARGEUR
   ══════════════════════════════════════════════════════════════ */

/* Annuler le padding-top Divi (58px header fixe) sur les pages boutique/catégorie
   car la bannière als-cat-banner est déjà positionnée en dehors du .container */
body.als-shop-no-sidebar #main-content .container {
  padding-top: 0 !important;
}
body.als-shop-no-sidebar #sidebar,
body.als-shop-no-sidebar .et_pb_sidebar_0,
body.als-shop-no-sidebar #left-area + #sidebar,
body.als-shop-no-sidebar .woocommerce-page #sidebar {
  display: none !important;
}

body.als-shop-no-sidebar #left-area,
body.als-shop-no-sidebar .woocommerce-page #left-area {
  width: 100% !important;
  float: none !important;
  padding-right: 0 !important;
}

/* Divi : forcer colonne unique */
body.als-shop-no-sidebar #main-content .container {
  padding-right: 0 !important;
}
body.als-shop-no-sidebar.et_right_sidebar #main-content .container,
body.als-shop-no-sidebar.et_left_sidebar #main-content .container {
  padding-left : 0 !important;
  padding-right: 0 !important;
}

/* Masquer le compteur résultats WooCommerce natif (doublon avec als-shop-toolbar) */
.woocommerce-result-count { display: none !important; }

/* Masquer le lien "Voir le panier" injecté par WC après ajout au panier
   (remplacé par le cart drawer qui s'ouvre automatiquement) */
a.added_to_cart,
.woocommerce a.added_to_cart {
  display: none !important;
}

/* Message "Aucun produit" et notices WooCommerce — remplacement du bleu natif WC */
.woocommerce .woocommerce-info,
.woocommerce-page .woocommerce-info {
  background    : #f5f8f0 !important;
  border-top    : 3px solid var(--als-accent, #7a9e3c) !important;
  color         : #4a4a4a !important;
  border-radius : 6px !important;
  padding       : 16px 20px !important;
  font-size     : 14px !important;
}
.woocommerce .woocommerce-info::before,
.woocommerce-page .woocommerce-info::before {
  color: var(--als-accent, #7a9e3c) !important;
}

/* ══════════════════════════════════════════════════════════════
   GRILLE PLEINE LARGEUR — Annulation des contraintes Divi
══════════════════════════════════════════════════════════════ */

/* Forcer le conteneur WooCommerce à occuper toute la largeur disponible */
body.woocommerce-page #left-area .woocommerce,
body.woocommerce-page #left-area > .woocommerce,
.woocommerce-page .et_pb_column .woocommerce,
body.als-shop-no-sidebar .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Annuler les paddings Divi sur la colonne contenant la grille */
body.woocommerce-page.als-shop-no-sidebar #left-area {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* La grille elle-même prend toute la largeur */
body.woocommerce-page .woocommerce ul.products,
body.woocommerce-page ul.products {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}





/* ══════════════════════════════════════════════════════════════
   VAGUE DOUCE — mask-image sur la row .als-wave-bottom
   Découpe le bas de la row en forme de vague
══════════════════════════════════════════════════════════════ */
.als-wave-bottom {
    -webkit-mask-image : url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDQwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PHBhdGggZmlsbD0iYmxhY2siIGQ9Ik0wLDAgTDE0NDAsMCBMMTQ0MCw3MCBDMTA4MCwxMDAgMzYwLDQwIDAsNzAgWiIvPjwvc3ZnPg==") !important;
    mask-image         : url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDQwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PHBhdGggZmlsbD0iYmxhY2siIGQ9Ik0wLDAgTDE0NDAsMCBMMTQ0MCw3MCBDMTA4MCwxMDAgMzYwLDQwIDAsNzAgWiIvPjwvc3ZnPg==") !important;
    -webkit-mask-size  : 100% 100% !important;
    mask-size          : 100% 100% !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat        : no-repeat !important;
    padding-bottom     : 40px !important;
}

/* ══════════════════════════════════════════════════════════════
   GRILLE DE CATÉGORIES
══════════════════════════════════════════════════════════════ */
.als-cat-grid {
    margin: 0 0 40px;
}
.als-cat-grid__title {
    font-size  : 20px;
    font-weight: 600;
    color      : #333;
    margin     : 0 0 20px;
    padding-bottom: 12px;
    border-bottom : 2px solid var(--als-accent, #00ABB2);
    display    : inline-block;
}
.als-cat-grid__items {
    display              : grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap                  : 16px;
}
.als-cat-card {
    text-decoration: none;
    color          : inherit;
    display        : flex;
    flex-direction : column;
    border-radius  : 10px;
    overflow       : hidden;
    border         : 1px solid #eee;
    background     : #fff;
    transition     : box-shadow .2s, transform .2s;
}
.als-cat-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform : translateY(-3px);
}
.als-cat-card__img {
    position      : relative;
    aspect-ratio  : 4/3;
    overflow      : hidden;
    background    : #f5f5f5;
}
.als-cat-card__img img {
    width     : 100%;
    height    : 100%;
    object-fit: cover;
    transition: transform .3s;
}
.als-cat-card:hover .als-cat-card__img img {
    transform: scale(1.06);
}
.als-cat-card__placeholder {
    width          : 100%;
    height         : 100%;
    display        : flex;
    align-items    : center;
    justify-content: center;
    color          : #ccc;
}
.als-cat-card__overlay {
    position  : absolute;
    inset     : 0;
    background: rgba(0,171,178,.75);
    display   : flex;
    align-items: center;
    justify-content: center;
    opacity   : 0;
    transition: opacity .25s;
}
.als-cat-card:hover .als-cat-card__overlay { opacity: 1; }
.als-cat-card__cta {
    color      : #fff;
    font-size  : 13px;
    font-weight: 600;
    letter-spacing: .04em;
}
.als-cat-card__info {
    padding        : 10px 12px;
    display        : flex;
    flex-direction : column;
    gap            : 2px;
}
.als-cat-card__name {
    font-size  : 13px;
    font-weight: 600;
    color      : #333;
    line-height: 1.3;
}
.als-cat-card__count {
    font-size: 11px;
    color    : #999;
}

/* ══════════════════════════════════════════════════════════════
   TOOLBAR AMÉLIORÉE — sticky + recherche + tri
══════════════════════════════════════════════════════════════ */
.als-shop-toolbar--sticky {
    position    : sticky;
    top         : 0;
    z-index     : 100;
    background  : #fff;
    box-shadow  : 0 2px 8px rgba(0,0,0,.06);
    padding     : 12px 16px !important;
    margin-left : -16px !important;
    margin-right: -16px !important;
    border-bottom: none !important;
    flex-direction: column;
    gap        : 10px !important;
    align-items: stretch !important;
}
.als-shop-toolbar__top {
    display        : flex;
    align-items    : center;
    gap            : 12px;
    flex-wrap      : wrap;
}
.als-shop-toolbar__bottom {
    border-top : 1px solid #f0ede8;
    padding-top: 10px;
}

/* Recherche */
.als-shop-search {
    flex        : 1;
    min-width   : 200px;
    display     : flex;
    align-items : center;
    gap         : 8px;
    background  : #f7f6f4;
    border      : 1px solid #e8e4de;
    border-radius: 8px;
    padding     : 7px 12px;
    transition  : border-color .15s;
}
.als-shop-search:focus-within {
    border-color: var(--als-accent, #00ABB2);
    background  : #fff;
}
.als-shop-search svg { color: #aaa; flex-shrink: 0; }
.als-shop-search input {
    flex       : 1;
    border     : none;
    background : transparent;
    font-size  : 13px;
    color      : #333;
    outline    : none;
    min-width  : 0;
}
.als-shop-search input::placeholder { color: #bbb; }
.als-search-clear {
    border     : none;
    background : transparent;
    cursor     : pointer;
    color      : #aaa;
    font-size  : 18px;
    line-height: 1;
    padding    : 0;
}
.als-search-clear:hover { color: #666; }

/* Tri amélioré */
.als-sort-wrap {
    display    : flex;
    align-items: center;
    gap        : 6px;
    flex-wrap  : wrap;
}
.als-sort-label {
    font-size : 12px;
    color     : #888;
    white-space: nowrap;
}
.als-sort-btns {
    display  : flex;
    gap      : 4px;
    flex-wrap: wrap;
}
.als-sort-btn {
    display        : inline-block;
    padding        : 4px 10px;
    border-radius  : 16px;
    font-size      : 12px;
    font-weight    : 500;
    text-decoration: none;
    border         : 1px solid #e0dbd5;
    color          : #666;
    background     : #fff;
    transition     : all .15s;
    white-space    : nowrap;
}
.als-sort-btn:hover {
    border-color: var(--als-accent, #00ABB2);
    color       : var(--als-accent, #00ABB2);
}
.als-sort-btn.active {
    background  : var(--als-accent, #00ABB2);
    border-color: var(--als-accent, #00ABB2);
    color       : #fff;
}

/* Badge count sur les pills */
.als-pill-count {
    display        : inline-block;
    background     : rgba(0,0,0,.08);
    border-radius  : 10px;
    padding        : 0 5px;
    font-size      : 10px;
    font-weight    : 600;
    margin-left    : 3px;
    vertical-align : middle;
}
.als-filter-pills li.current a .als-pill-count {
    background: rgba(255,255,255,.25);
}

/* Message aucun résultat */
.als-search-noresults {
    text-align : center;
    padding    : 40px 20px;
    color      : #aaa;
}
.als-search-noresults p {
    margin-top: 12px;
    font-size : 15px;
}

@media (max-width: 768px) {
    .als-cat-grid__items {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    .als-sort-btns { display: none; }
    .als-shop-toolbar--sticky { padding: 10px 12px !important; }
}

/* ══════════════════════════════════════════════════════════════
   BADGE CATÉGORIE sur les cartes produits
══════════════════════════════════════════════════════════════ */
.als-product-cat-badge {
    display       : inline-block;
    padding       : 2px 8px;
    border-radius : 10px;
    font-size     : 10px;
    font-weight   : 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    background    : var(--als-accent-light, #e6f7f8);
    color         : var(--als-accent, #00ABB2);
    margin-bottom : 6px;
}

/* Hover plus marqué sur les cartes */
.woocommerce ul.products li.product {
    transition: box-shadow .2s, transform .2s !important;
    border-radius: 10px !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
    transform : translateY(-4px) !important;
}

/* Prix plus visible */
.woocommerce ul.products li.product .price {
    font-size  : 16px !important;
    font-weight: 700 !important;
    color      : var(--als-accent, #00ABB2) !important;
}

/* ══════════════════════════════════════════════════════════════
   FIXES DIVI — override styles Divi qui écrasent la toolbar
══════════════════════════════════════════════════════════════ */

/* Reset des styles Divi sur les listes dans la toolbar */
.als-shop-standalone ul,
.als-shop-standalone ul li,
.als-shop-standalone .als-filter-pills,
.als-shop-standalone .als-filter-pills li {
    list-style : none !important;
    padding    : 0 !important;
    margin     : 0 !important;
    line-height: normal !important;
}
.als-shop-standalone ul.als-filter-pills {
    display  : flex !important;
    flex-wrap: wrap !important;
    gap      : 6px !important;
}
.als-shop-standalone ul.als-filter-pills::before,
.als-shop-standalone ul.als-filter-pills::after,
.als-shop-standalone ul.als-filter-pills li::before {
    display: none !important;
    content: none !important;
}

/* Pill individuelle (version div/a) */
.als-filter-pill {
    display        : inline-block !important;
    padding        : 5px 12px !important;
    border-radius  : 20px !important;
    font-size      : 12px !important;
    font-weight    : 500 !important;
    text-decoration: none !important;
    border         : 1px solid #e0dbd5 !important;
    color          : #555 !important;
    background     : #fff !important;
    transition     : all .15s !important;
    white-space    : nowrap !important;
    line-height    : 1.4 !important;
    cursor         : pointer !important;
}
.als-filter-pill:hover {
    border-color: var(--als-accent, #00ABB2) !important;
    color       : var(--als-accent, #00ABB2) !important;
    background  : #e6f7f8 !important;
}
.als-filter-pill--active {
    background  : var(--als-accent, #00ABB2) !important;
    border-color: var(--als-accent, #00ABB2) !important;
    color       : #fff !important;
}
.als-filter-pill--active .als-pill-count {
    background: rgba(255,255,255,.25) !important;
}

/* Toolbar standalone dans Divi */
.als-shop-standalone .als-shop-toolbar--sticky {
    position   : relative !important;
    top        : auto !important;
    margin     : 0 0 24px !important;
    padding    : 16px !important;
    border     : 1px solid #eee !important;
    border-radius: 10px !important;
    box-shadow : 0 2px 12px rgba(0,0,0,.06) !important;
    background : #fff !important;
    width      : 100% !important;
    box-sizing : border-box !important;
}
.als-shop-standalone .als-shop-toolbar__top {
    display    : flex !important;
    align-items: center !important;
    gap        : 12px !important;
    flex-wrap  : wrap !important;
    margin-bottom: 12px !important;
}
.als-shop-standalone .als-shop-toolbar__right {
    display    : flex !important;
    align-items: center !important;
    gap        : 12px !important;
    flex-wrap  : wrap !important;
    margin-left: auto !important;
}
.als-shop-standalone .als-shop-search {
    flex      : 1 !important;
    min-width : 220px !important;
    max-width : 400px !important;
}

/* Grille produits standalone */
.als-product-grid-sc {
    display              : grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap                  : 20px !important;
    list-style           : none !important;
    padding              : 0 !important;
    margin               : 0 !important;
}
.als-product-grid-sc::before,
.als-product-grid-sc::after {
    display: none !important;
}
.als-product-item {
    background   : #fff !important;
    border       : 1px solid #eee !important;
    border-radius: 10px !important;
    overflow     : hidden !important;
    transition   : box-shadow .2s, transform .2s !important;
    display      : flex !important;
    flex-direction: column !important;
    list-style   : none !important;
    padding      : 0 !important;
    margin       : 0 !important;
}
.als-product-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1) !important;
    transform : translateY(-4px) !important;
}
.als-product-item::before {
    display: none !important;
    content: none !important;
}
.als-product-link {
    display        : flex !important;
    flex-direction : column !important;
    text-decoration: none !important;
    color          : inherit !important;
    flex           : 1 !important;
    padding        : 0 12px 12px !important;
}
.als-product-img-wrap {
    position     : relative !important;
    aspect-ratio : 1 !important;
    overflow     : hidden !important;
    background   : #f8f8f8 !important;
    margin       : 0 -12px 10px !important;
}
.als-product-img-wrap img {
    width     : 100% !important;
    height    : 100% !important;
    object-fit: cover !important;
    transition: transform .3s !important;
    display   : block !important;
}
.als-product-item:hover .als-product-img-wrap img {
    transform: scale(1.05) !important;
}
.als-product-no-img {
    width          : 100% !important;
    height         : 100% !important;
    display        : flex !important;
    align-items    : center !important;
    justify-content: center !important;
    color          : #ddd !important;
}
/* quick-view styles centralisés plus haut */
.als-product-item .woocommerce-loop-product__title {
    font-size  : 13px !important;
    font-weight: 600 !important;
    color      : #333 !important;
    margin     : 4px 0 6px !important;
    line-height: 1.4 !important;
}
.als-product-item .price {
    font-size  : 15px !important;
    font-weight: 700 !important;
    color      : var(--als-accent, #00ABB2) !important;
    margin-bottom: 8px !important;
}
.als-product-item .abc-atc-btn,
.als-product-item .als-atc-btn {
    display        : block !important;
    width          : calc(100% - 24px) !important;
    margin         : auto 12px 12px !important;
    padding        : 9px 14px !important;
    background     : var(--als-accent, #00ABB2) !important;
    color          : #fff !important;
    border         : none !important;
    border-radius  : 6px !important;
    font-size      : 13px !important;
    font-weight    : 600 !important;
    text-align     : center !important;
    text-decoration: none !important;
    cursor         : pointer !important;
    transition     : background .2s !important;
}
.als-product-item .abc-atc-btn:hover,
.als-product-item .als-atc-btn:hover {
    background: #009aa6 !important;
}

@media (max-width: 980px) {
    .als-product-grid-sc { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 640px) {
    .als-product-grid-sc { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .als-sort-btns { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   HERO BOUTIQUE — [als_shop_hero]
══════════════════════════════════════════════════════════════ */
.als-shop-hero {
    position       : relative;
    width          : 100%;
    display        : flex;
    align-items    : center;
    overflow       : hidden;
    margin-bottom  : 0;
}
.als-shop-hero__bg {
    position           : absolute;
    inset              : 0;
    background-size    : cover;
    background-repeat  : no-repeat;
    will-change        : transform;
}
/* Effets */
.als-shop-hero--fx-kenburns .als-shop-hero__bg {
    animation: alsShopKenBurns 12s ease-in-out infinite alternate;
}
@keyframes alsShopKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
.als-shop-hero--fx-drift .als-shop-hero__bg {
    animation: alsShopDrift 18s ease-in-out infinite alternate;
}
@keyframes alsShopDrift {
    from { transform: translateX(0); }
    to   { transform: translateX(-3%); }
}
.als-shop-hero__overlay {
    position: absolute;
    inset   : 0;
}
.als-shop-hero__content {
    position  : relative;
    z-index   : 2;
    padding   : 48px 60px;
    max-width : 800px;
    width     : 100%;
}
.als-shop-hero__title {
    font-weight  : 700;
    line-height  : 1.15;
    margin-bottom: 16px;
    font-family  : var(--als-font, 'Montserrat', sans-serif);
}
.als-shop-hero__subtitle {
    font-size  : 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width  : 600px;
}
.als-shop-hero__btn {
    display        : inline-block;
    padding        : 12px 32px;
    background     : var(--als-accent, #00ABB2);
    color          : #fff;
    border-radius  : 6px;
    font-weight    : 600;
    font-size      : 15px;
    text-decoration: none;
    transition     : background .2s, transform .15s;
}
.als-shop-hero__btn:hover {
    background: #009aa6;
    transform : translateY(-2px);
}
.als-shop-hero__wave {
    position: absolute;
    bottom  : -1px;
    left    : 0;
    width   : 100%;
    line-height: 0;
    z-index : 3;
}
.als-shop-hero__wave svg {
    width : 100%;
    height: 60px;
    display: block;
}

@media (max-width: 768px) {
    .als-shop-hero__content { padding: 32px 20px; }
    .als-shop-hero__title   { font-size: 2rem !important; }
}

/* ══════════════════════════════════════════════════════════════
   PAGINATION PRODUITS
══════════════════════════════════════════════════════════════ */
.als-pagination {
    display        : flex;
    align-items    : center;
    justify-content: center;
    gap            : 6px;
    margin         : 40px 0 16px;
    flex-wrap      : wrap;
}
.als-page-btn {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    width          : 36px;
    height         : 36px;
    padding        : 0 !important;
    border-radius  : 50% !important;
    border         : 1px solid #e0dbd5 !important;
    background     : #fff;
    color          : #555 !important;
    font-size      : 13px;
    font-weight    : 500;
    text-decoration: none;
    transition     : all .15s;
    line-height    : 1 !important;
}
.als-page-btn:hover {
    border-color: var(--als-accent, #00ABB2) !important;
    color       : var(--als-accent, #00ABB2) !important;
}
.als-page-btn--active {
    background  : var(--als-accent, #00ABB2) !important;
    border-color: var(--als-accent, #00ABB2) !important;
    color       : #fff !important;
    font-weight : 700;
}
.als-page-prev,
.als-page-next {
    font-size: 18px;
    width    : 36px;
}
.als-page-dots {
    color    : #aaa;
    font-size: 13px;
    padding  : 0 4px;
    width    : auto;
    border   : none !important;
    background: transparent !important;
}

/* Multi-select : indicateur visuel de combinaison active */
.als-filter-pill--active + .als-filter-pill--active {
    margin-left: -2px;
}

