/* ============================================================
   CATALOGUE.CSS — Catalogue page styles
   Companion to style.css — do not add catalogue rules to style.css
   ============================================================ */

/* ── Page background ──────────────────────────────────────── */

.site-page main {
  /* Couleur unie (au lieu d'un degrade mauve tres subtil) pour eviter le
     banding visible sur les ecrans d'entree de gamme / mode eco d'energie. */
  background: var(--puffs-bg, #fbf8ff);
  min-height: 60vh;
}

/* ── Layout: sidebar + main grid ─────────────────────────── */

.cat-body {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 80px;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────── */

.cat-sidebar {
  position: sticky;
  top: 96px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  border: 1px solid rgba(124, 92, 255, 0.10);
  padding: 20px 18px;
  box-shadow: 0 4px 24px rgba(124, 92, 255, 0.07), 0 1px 4px rgba(124, 92, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cat-sidebar-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand-card-ink, #071126);
  letter-spacing: 0.01em;
}

.cat-reset-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--puffs-purple, #7c5cff);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.cat-reset-btn:hover {
  background: rgba(124, 92, 255, 0.09);
}

/* ── Filter groups ───────────────────────────────────────── */

.cat-filter-group {
  border-top: 1px solid rgba(124, 92, 255, 0.07);
  padding: 10px 0 6px;
}

.cat-filter-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 4px 0 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-card-ink, #071126);
  text-align: left;
  transition: color 0.15s;
}
.cat-filter-group-toggle:hover {
  color: var(--puffs-purple, #7c5cff);
}

.cat-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: #b0a8c8;
}
.cat-filter-group-toggle[aria-expanded="false"] .cat-chevron {
  transform: rotate(-90deg);
}

/* Collapsible panel */
.cat-filter-options,
.cat-filter-search-wrap,
.cat-filter-more-wrap {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.cat-filter-group[data-collapsed="true"] .cat-filter-options,
.cat-filter-group[data-collapsed="true"] .cat-filter-search-wrap,
.cat-filter-group[data-collapsed="true"] .cat-filter-more-wrap {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}

/* ── Filter search input ────────────────────────────────── */

.cat-filter-search-wrap {
  margin-bottom: 8px;
}

.cat-filter-search {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 11px;
  border: 1px solid rgba(124, 92, 255, 0.14);
  border-radius: 9px;
  font-size: 0.8125rem;
  background: rgba(124, 92, 255, 0.03);
  color: var(--brand-card-ink, #071126);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cat-filter-search:focus {
  border-color: var(--puffs-purple, #7c5cff);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.10);
}
.cat-filter-search::placeholder {
  color: #b8b0cc;
}
.cat-filter-search::-webkit-search-cancel-button {
  cursor: pointer;
}

/* ── Filter options containers ────────────────────────── */

.cat-filter-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.cat-filter-options--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.cat-filter-options--scroll,
.cat-filter-options--brand,
.cat-filter-options--flavor-list {
  max-height: 190px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.18) transparent;
  padding-right: 2px;
}
.cat-filter-options--scroll::-webkit-scrollbar,
.cat-filter-options--brand::-webkit-scrollbar,
.cat-filter-options--flavor-list::-webkit-scrollbar {
  width: 4px;
}
.cat-filter-options--scroll::-webkit-scrollbar-thumb,
.cat-filter-options--brand::-webkit-scrollbar-thumb,
.cat-filter-options--flavor-list::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.18);
  border-radius: 4px;
}

.cat-filter-options--flavor-families {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* "Show more" link inside filter groups */
.cat-filter-more-wrap {
  margin-top: 4px;
}
.cat-filter-more-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--puffs-purple, #7c5cff);
  padding: 2px 0;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.cat-filter-more-btn:hover {
  opacity: 1;
}

/* ── Filter chips ────────────────────────────────────── */

.cat-filter-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #4a4060;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
  border: 1px solid transparent;
  position: relative;
}
.cat-filter-chip:hover {
  background: rgba(124, 92, 255, 0.06);
  color: var(--puffs-purple, #7c5cff);
}
.cat-filter-chip.is-active {
  background: rgba(124, 92, 255, 0.10);
  color: var(--puffs-purple, #7c5cff);
  border-color: rgba(124, 92, 255, 0.24);
  font-weight: 600;
}
.cat-filter-chip input[type="radio"],
.cat-filter-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Type filter: icon + label stacked in grid cell */
.cat-filter-chip--type {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 6px 9px;
  gap: 4px;
  border: 1px solid rgba(124, 92, 255, 0.10);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 11px;
  min-height: 66px;
}
.cat-filter-chip--type:hover {
  background: rgba(124, 92, 255, 0.07);
  border-color: rgba(124, 92, 255, 0.22);
}
.cat-filter-chip--type.is-active {
  background: rgba(124, 92, 255, 0.11);
  border-color: var(--puffs-purple, #7c5cff);
}

.cat-filter-type-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9080b8;
  flex-shrink: 0;
}
.cat-filter-type-icon svg {
  width: 18px;
  height: 18px;
}
.cat-filter-chip--type.is-active .cat-filter-type-icon {
  color: var(--puffs-purple, #7c5cff);
}

.cat-filter-chip-label {
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 600;
}
.cat-filter-chip--type .cat-filter-chip-label {
  font-weight: 600;
}

/* ── Couleur (e-cigarettes) ──────────────────────── */
.cat-filter-chip--color {
  gap: 6px;
}
.cat-filter-color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* ── Sidebar apply button ─────────────────────────── */

.cat-sidebar-apply-wrap {
  padding-top: 14px;
  border-top: 1px solid rgba(124, 92, 255, 0.08);
  margin-top: 8px;
}
.cat-sidebar-apply-btn {
  width: 100%;
  justify-content: center;
}

/* ── Main area ───────────────────────────────────────── */

.cat-main {
  min-width: 0;
}

/* ── Toolbar ─────────────────────────────────────────── */

.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-results-count {
  font-size: 0.875rem;
  color: #8878aa;
  font-weight: 500;
}

/* SEO intro band (contenu par categorie) — mis en evidence */
.cat-seo-intro {
  position: relative;
  margin: 0 0 20px;
  padding: 20px 24px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.10), rgba(124, 92, 255, 0.03) 55%, rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(124, 92, 255, 0.18);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.10);
  overflow: hidden;
}
.cat-seo-intro[hidden] { display: none; }
/* barre d'accent a gauche */
.cat-seo-intro::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #7c5cff, #a17bff);
}
/* badge icone */
.cat-seo-intro::before {
  display: none;
}
.cat-seo-intro h1,
.cat-seo-intro h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-card-ink, #1b1236);
  line-height: 1.3;
}
.cat-seo-intro p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5f547e;
}
.cat-seo-intro p + p { margin-top: 8px; }
.cat-seo-more[hidden] { display: none; }
.cat-seo-more p { margin-top: 8px; }
.cat-seo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #7c5cff;
  transition: color 0.15s ease;
}
.cat-seo-toggle:hover { color: #5a3fe0; }
.cat-seo-toggle i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}
.cat-seo-toggle.is-open i { transform: rotate(180deg); }
@media (max-width: 640px) {
  .cat-seo-intro {
    padding: 16px 18px 16px 20px;
    border-radius: 14px;
  }
  .cat-seo-intro h1,
  .cat-seo-intro h2 { font-size: 1rem; }
}

/* FAQ (pages saveur) : contenu indexable sous la grille produits. */
.cat-faq {
  margin: 32px 0 8px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid rgba(124, 92, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.06), rgba(255, 255, 255, 0.6));
}
.cat-faq-title {
  margin: 0 0 14px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-card-ink, #1b1236);
}
.cat-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cat-faq-item {
  border: 1px solid rgba(124, 92, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.cat-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  position: relative;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2a2050;
}
.cat-faq-q::-webkit-details-marker { display: none; }
.cat-faq-q::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: #7c5cff;
  transition: transform 0.2s ease;
}
.cat-faq-item[open] .cat-faq-q::after { content: "\2013"; }
.cat-faq-a {
  padding: 0 16px 14px;
}
.cat-faq-a p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5f547e;
}
@media (max-width: 640px) {
  .cat-faq { padding: 18px 18px; border-radius: 14px; }
  .cat-faq-title { font-size: 1.05rem; }
}
.cat-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-card-ink, #071126);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cat-mobile-filter-btn:hover {
  border-color: var(--puffs-purple, #7c5cff);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.09);
}

.cat-active-filters-count {
  background: var(--puffs-purple, #7c5cff);
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Sort dropdown */
.cat-sort-wrap {
  position: relative;
}
.cat-sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 32px 7px 12px;
  border: 1px solid rgba(124, 92, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.85)
    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='M1 1l4 4 4-4' stroke='%23a090c0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 11px center;
  font-size: 0.875rem;
  color: var(--brand-card-ink, #071126);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cat-sort-select:focus {
  border-color: var(--puffs-purple, #7c5cff);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.10);
}

/* ── Active filter chips row ─────────────────────────── */

.cat-active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.cat-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 11px;
  background: rgba(124, 92, 255, 0.09);
  color: var(--puffs-purple, #7c5cff);
  border: 1px solid rgba(124, 92, 255, 0.20);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.cat-chip-badge--family {
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.35);
  font-weight: 700;
}

.cat-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.65;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  transition: opacity 0.15s, background 0.15s;
}
.cat-chip-remove:hover {
  opacity: 1;
  background: rgba(124, 92, 255, 0.15);
}

/* ── Product grid ─────────────────────────────────────── */


.cat-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 232px);
  justify-content: center;
  row-gap: 22px;
  column-gap: 12px;
  padding: 24px;
}

/* ── Product card ─────────────────────────────────────── */


.cat-product-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg,rgba(255,255,255,0.97) 0%,rgba(248,243,255,0.99) 100%);
  border: 1.5px solid rgba(124, 92, 255, 0.14);
  box-shadow: 0 14px 38px rgba(124, 92, 255, 0.09);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 250px;
  width: 100%;
  height: 395px;
  padding: 16px 14px 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  font-family: "Outfit", Inter, Arial, sans-serif;
}
.cat-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.34);
  box-shadow: 0 26px 60px rgba(124, 92, 255, 0.18), 0 12px 30px rgba(255,79,216,0.10), inset 0 1px 0 rgba(255,255,255,0.96);
}
.cat-product-card:focus-visible {
  outline: 2px solid var(--puffs-purple, #7c5cff);
  outline-offset: 2px;
}

/* Image wrapper */

.cat-card-img-wrap {
  position: relative;
  width: 100%;
  height: 150px;
  margin: 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 58%, rgba(124,92,255,.10), transparent 52%);
  border-radius: 18px;
  overflow: hidden;
}
.cat-card-img-wrap img {
  width: auto;
  height: 138px;
  max-height: 138px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(17,24,39,.14));
  background: #fff;
  transition: transform 0.4s;
  display: block;
}
.cat-product-card:hover .cat-card-img-wrap img {
  transform: scale(1.04);
}

/* Badges on image */
.cat-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cat-badge-new {
  background: var(--puffs-purple, #7c5cff);
  color: #fff;
}
.cat-badge-stock-low {
  background: #ef4444;
  color: #fff;
}

/* Quick-action overlay (heart, etc.) */
.cat-card-actions {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(7px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.cat-product-card:hover .cat-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.cat-quick-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 92, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9080b8;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cat-quick-btn:hover {
  background: #fff;
  color: var(--puffs-purple, #7c5cff);
  border-color: rgba(124, 92, 255, 0.28);
}

/* Card body */
.cat-card-body {
  padding: 14px 14px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cat-card-brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--puffs-purple, #7c5cff);
  opacity: 0.72;
}

.cat-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-card-ink, #071126);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rating row */
.cat-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.cat-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 5;
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .45px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #7c5cff, #b44cff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(124,92,255,.24);
  font-family: "Outfit", Inter, Arial, sans-serif;
}
.cat-badge-in-stock {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}
.cat-badge-stock-low {
  background: linear-gradient(135deg, #ef4444, #ff7b7b);
  color: #fff;
}

/* Card footer: price + add button */

.cat-card-body {
  padding: 0 0 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}
.cat-card-brand {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c5cff;
  opacity: 0.72;
  margin-bottom: 2px;
}
.cat-card-name {
  font-size: 1.01rem;
  font-weight: 900;
  color: #071126;
  margin: 0 0 2px 0;
  line-height: 1.25;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  max-height: 38px;
  font-family: "Outfit", Inter, Arial, sans-serif;
}
.cat-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  justify-content: center;
}
.cat-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: "Outfit", Inter, Arial, sans-serif;
}
.cat-meta-nico {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.14);
}
.cat-meta-puffs {
  background: rgba(124, 92, 255, 0.07);
  color: #7c5cff;
  border: 1px solid rgba(124, 92, 255, 0.14);
}
.cat-card-add:hover {
  background: #6a4df0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.38);
}
.cat-card-add:active {
  transform: translateY(0);
  box-shadow: none;
}
.cat-card-add-icon {
  flex-shrink: 0;
}


/* ── Empty state ─────────────────────────────────────── */

.cat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 24px;
  color: #c0b8d8;
  text-align: center;
}
.cat-empty[hidden] { display: none; }
.cat-empty p {
  font-size: 1rem;
  color: #8878aa;
  margin: 0;
}

/* ── Pagination ─────────────────────────────────────── */

.cat-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: 44px;
  flex-wrap: wrap;
}
.cat-pagination[hidden] {
  display: none !important;
}

.cat-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 37px;
  height: 37px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(124, 92, 255, 0.14);
  background: rgba(255, 255, 255, 0.85);
  color: #5848a0;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.cat-page-btn:hover:not(:disabled) {
  background: rgba(124, 92, 255, 0.08);
  border-color: rgba(124, 92, 255, 0.28);
  color: var(--puffs-purple, #7c5cff);
}
.cat-page-btn.active,
.cat-page-btn[aria-current="page"] {
  background: var(--puffs-purple, #7c5cff);
  color: #fff;
  border-color: var(--puffs-purple, #7c5cff);
  box-shadow: 0 2px 10px rgba(124, 92, 255, 0.32);
}

.cat-card-footer {
  width: 100%;
  padding: 10px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(124, 92, 255, 0.18);
  margin-top: auto;
}
.cat-card-price {
  font-size: 1.18rem;
  font-weight: 950;
  color: #7c5cff;
  letter-spacing: -0.04em;
  margin-left: 2px;
  font-family: "Outfit", Inter, Arial, sans-serif;
  white-space: nowrap;
}
.cat-card-price-compare {
  font-size: 0.92rem;
  font-weight: 600;
  color: #b0adc0;
  text-decoration: line-through;
  text-decoration-thickness: 1.3px;
  margin-left: 5px;
  font-family: "Outfit", Inter, Arial, sans-serif;
}
.cat-card-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #7c5cff, #b44cff);
  color: #fff;
  border: none;
  border-radius: 13px;
  font-size: 0.89rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(124, 92, 255, 0.18);
}
.cat-card-add:hover {
  background: linear-gradient(135deg, #6a4df0, #a44cff);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.28);
}
.cat-card-add:active {
  transform: translateY(0);
  box-shadow: none;
}
.cat-card-add-icon {
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM CARD REFINEMENT — same compact size, refined premium look.
   Shared by catalogue grid + search grid.
   (Placed last so it overrides earlier card rules.)
   ═══════════════════════════════════════════════════════════════ */
.cat-product-card {
  max-width: 238px;
  height: 376px;
  padding: 12px 12px 12px;
  border-radius: 22px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.04),
    0 12px 30px rgba(17, 24, 39, 0.055);
  transition: transform .34s cubic-bezier(.2, .7, .3, 1), box-shadow .34s ease, border-color .34s ease;
}

/* Disable the previous shine sweep — replaced by a calmer premium feel */
.cat-product-card::before {
  display: none;
}

.cat-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.22);
  box-shadow:
    0 2px 4px rgba(17, 24, 39, 0.05),
    0 28px 54px rgba(124, 92, 255, 0.15),
    0 10px 24px rgba(17, 24, 39, 0.06);
}

/* ── Image — refined product pedestal with soft inset ring + floating shadow */
.cat-card-img-wrap {
  height: 172px;
  margin: 4px 0 8px;
  border-radius: 16px;
  /* Teinte lavande unie (ex-degrade subtil) pour un rendu propre sans banding
     sur les ecrans bas de gamme ; la profondeur vient de l'inset ring. */
  background: #f8f6fd;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}
.cat-card-img-wrap img {
  height: 162px;
  max-height: 162px;
  background: transparent;
  filter: drop-shadow(0 14px 16px rgba(17, 24, 39, 0.18));
}
.cat-product-card:hover .cat-card-img-wrap img {
  transform: scale(1.06) translateY(-2px);
}

/* Stock / status badge — glassy, subtle */
.cat-badge {
  padding: 5px 10px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
}
.cat-badge-in-stock {
  background: rgba(16, 185, 129, 0.14);
  color: #0a7d57;
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: none;
}
.cat-badge-stock-low {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.22);
}

/* Quick heart button — cleaner */
.cat-quick-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: #9aa0ad;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}
.cat-quick-btn:hover {
  color: #ff4f6d;
  border-color: rgba(255, 79, 109, 0.3);
}

/* Body — tighter premium rhythm */
.cat-card-brand {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #9aa0ad;
  opacity: 1;
  margin-bottom: 2px;
}
.cat-card-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.22;
  min-height: 33px;
  max-height: 33px;
  margin: 0 0 1px;
}
.cat-card-meta {
  gap: 5px;
  margin-top: 5px;
}
.cat-meta-pill {
  padding: 2.5px 9px;
  font-size: 0.66rem;
  font-weight: 700;
}
.cat-meta-nico {
  background: rgba(17, 24, 39, 0.045);
  color: #475569;
  border: 1px solid rgba(17, 24, 39, 0.05);
}
.cat-meta-puffs {
  background: rgba(124, 92, 255, 0.06);
  color: #6d4cd6;
  border: 1px solid rgba(124, 92, 255, 0.12);
}

/* Rating — no pill, premium gold-gradient stars (homepage look) */
.cat-product-card .product-rating,
.cat-product-card .product-rating-premium {
  width: auto !important;
  margin: 5px auto 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 6px !important;
}
.cat-product-card .product-rating .stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2.5px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
.cat-product-card .product-rating .stars .star-full,
.cat-product-card .product-rating .stars .star-half {
  color: #f5a623 !important;
  background: linear-gradient(135deg, #ffd76b 0%, #f5a623 55%, #e0860a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 1px 1.5px rgba(224, 134, 10, 0.22)) !important;
  font-size: 13px !important;
}
.cat-product-card .product-rating .stars .star-empty {
  color: #d8dde8 !important;
  -webkit-text-fill-color: #d8dde8 !important;
  background: none !important;
  filter: none !important;
  font-size: 13px !important;
}
.cat-product-card .product-rating .reviews {
  color: #8a90a2 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Footer — refined: dark-ink price + accent gradient button */
.cat-card-footer {
  padding: 9px 2px 2px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}
.cat-card-price {
  font-size: 1.12rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.cat-card-add {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c5cff 0%, #9d5cff 100%);
  box-shadow: 0 6px 16px rgba(124, 92, 255, 0.26);
}
.cat-card-add:hover {
  background: linear-gradient(135deg, #6f4ff5 0%, #9450ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(124, 92, 255, 0.34);
}

/* ── Mobile filter drawer ─────────────────────────────── */
.cat-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 38, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  /* Au-dessus du header fixe (.site-header z-index:9999) pour ne pas etre
     masque par la trust bar. */
  z-index: 10000;
}
.cat-drawer-backdrop.is-open {
  display: block;
}

.cat-filters-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 90vw);
  background: #fff;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 32px rgba(124, 92, 255, 0.14);
  overflow: hidden;
}
.cat-filters-drawer.is-open {
  transform: translateX(0);
}

.cat-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(124, 92, 255, 0.08);
}

.cat-drawer-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand-card-ink, #071126);
}

.cat-drawer-close {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #9080a8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.cat-drawer-close:hover {
  background: rgba(124, 92, 255, 0.08);
  color: var(--puffs-purple, #7c5cff);
}

.cat-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.14) transparent;
}

.cat-drawer-footer {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(124, 92, 255, 0.08);
}
.cat-drawer-footer .cat-reset-btn {
  flex: 0 0 auto;
}
.cat-drawer-footer .cat-apply-btn,
.cat-drawer-footer .btn {
  flex: 1;
  justify-content: center;
}

/* ── Sidebar deplace dans le tiroir mobile ──────────
   On reutilise le vrai #cat-sidebar (deplace par JS). Il faut donc annuler le
   display:none mobile et neutraliser son habillage (carte/sticky) pour qu'il
   s'affiche a plat dans le tiroir. Le tiroir a deja son propre header + footer,
   donc on masque l'entete du sidebar. */
body.cat-drawer-has-sidebar #cat-sidebar {
  display: block !important;
  position: static !important;
  top: auto !important;
  width: 100% !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}
body.cat-drawer-has-sidebar #cat-sidebar .cat-sidebar-head {
  display: none !important;
}
body.cat-drawer-has-sidebar #cat-sidebar .cat-sidebar-body {
  overflow: visible !important;
}

/* ── Responsive: 1024px ────────────────────────────── */

@media (max-width: 1200px) {
  .cat-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 860px) {
  .cat-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Responsive: tablet ────────────────────────────── */

@media (max-width: 860px) {
  .cat-body {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }
  .cat-sidebar {
    display: none;
  }
  .cat-mobile-filter-btn {
    display: flex;
  }
  .cat-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Responsive: petit écran (2 colonnes) ──────────── */

@media (max-width: 620px) {
  .cat-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: mobile ────────────────────────────── */

@media (max-width: 480px) {
  .cat-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cat-card-add-label {
    display: none;
  }
  .cat-card-add {
    padding: 8px 10px;
  }
}


/* ══════════════════════════════════════════════════════════
   FILTRE SIDEBAR — PREMIUM UPGRADE
   Overrides all previous sidebar rules for a polished look.
══════════════════════════════════════════════════════════ */

/* ── Sidebar container ── */
.cat-sidebar {
  padding: 0 !important;
  overflow: hidden !important;
  border: 1.5px solid rgba(124, 92, 255, 0.16) !important;
  border-radius: 20px !important;
  background: linear-gradient(160deg, rgba(255,255,255,0.97) 0%, rgba(248,244,255,0.93) 100%) !important;
  box-shadow:
    0 8px 32px rgba(124, 92, 255, 0.10),
    0 2px 8px rgba(124, 92, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  max-height: calc(100vh - 110px) !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ── Sidebar header ── */
.cat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 13px;
  border-bottom: 1px solid rgba(124, 92, 255, 0.09);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.055) 0%, rgba(180, 76, 255, 0.03) 100%);
  flex-shrink: 0;
}

.cat-sidebar-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  font-size: 0.94rem;
  color: #1a1040;
  font-family: "Outfit", Inter, Arial, sans-serif;
  letter-spacing: -0.01em;
}

.cat-sidebar-title-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c5cff 0%, #b44cff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(124, 92, 255, 0.38);
}

.cat-sidebar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff, #b44cff);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.32);
  margin-left: 2px;
}
.cat-sidebar-count[hidden] { display: none !important; }

.cat-sidebar-head .cat-reset-btn {
  font-size: 0.74rem;
  font-weight: 700;
  color: #9b8ec8;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-sidebar-head .cat-reset-btn:hover {
  color: #7c5cff;
  background: rgba(124, 92, 255, 0.08) !important;
  border-color: rgba(124, 92, 255, 0.18);
}

/* ── Filter groups ── */
.cat-filter-group {
  border-top: 1px solid rgba(124, 92, 255, 0.07) !important;
  padding: 0 !important;
}
.cat-filter-group:first-of-type {
  border-top: none !important;
}

/* ── Toggle buttons ── */
.cat-filter-group-toggle {
  padding: 11px 18px 9px !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  color: #1a1040 !important;
  font-family: "Outfit", Inter, Arial, sans-serif;
  letter-spacing: 0.005em;
  border-radius: 0 !important;
  transition: color 0.15s, background 0.15s !important;
}
.cat-filter-group-toggle:hover {
  color: #7c5cff !important;
  background: rgba(124, 92, 255, 0.03) !important;
}

/* Label wrapper with icon */
.cat-filter-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-filter-group-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c5cff;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.cat-filter-group-toggle:hover .cat-filter-group-icon {
  background: rgba(124, 92, 255, 0.17);
  box-shadow: 0 2px 6px rgba(124, 92, 255, 0.18);
}

/* Chevron */
.cat-chevron {
  color: #c8b8e8 !important;
  transition: transform 0.25s ease, color 0.2s !important;
}
.cat-filter-group-toggle:hover .cat-chevron {
  color: #a090cc !important;
}
.cat-filter-group-toggle[aria-expanded="false"] .cat-chevron {
  transform: rotate(-90deg) !important;
}

/* ── Options container padding ── */
.cat-filter-options {
  padding: 2px 16px 10px !important;
  gap: 3px !important;
}
.cat-filter-options--grid {
  padding: 4px 14px 12px !important;
  gap: 7px !important;
}
.cat-filter-search-wrap {
  padding: 0 14px 6px !important;
  margin-bottom: 0 !important;
}
.cat-filter-more-wrap {
  padding: 0 16px 10px !important;
  margin-top: 0 !important;
}

/* ── Search input with loupe icon ── */
.cat-filter-search {
  padding: 8px 10px 8px 34px !important;
  border-radius: 10px !important;
  border: 1.5px solid rgba(124, 92, 255, 0.13) !important;
  background:
    rgba(255, 255, 255, 0.78)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b0a0cc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E")
    no-repeat 10px center !important;
  font-size: 0.8rem !important;
  color: #2d1f5e;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
}
.cat-filter-search:focus {
  border-color: #7c5cff !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12) !important;
}
.cat-filter-search::placeholder {
  color: #c8b8e0 !important;
}

/* ── Filter chips (list items) ── */
.cat-filter-chip {
  padding: 7px 10px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #483878 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  font-family: "Outfit", Inter, Arial, sans-serif;
  gap: 8px !important;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s !important;
}
.cat-filter-chip:hover {
  background: rgba(124, 92, 255, 0.07) !important;
  color: #7c5cff !important;
  border-color: rgba(124, 92, 255, 0.16) !important;
}
.cat-filter-chip.is-active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.13) 0%, rgba(180, 76, 255, 0.09) 100%) !important;
  color: #6c44f5 !important;
  border-color: rgba(124, 92, 255, 0.32) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.12) !important;
}

/* Count badge inline in chip */
.cat-chip-count {
  margin-left: auto;
  font-size: 0.69rem;
  font-weight: 700;
  color: #c8b8e0;
  background: rgba(124, 92, 255, 0.07);
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.cat-filter-chip.is-active .cat-chip-count {
  background: rgba(124, 92, 255, 0.18);
  color: #7c5cff;
}

/* ── Type filter chips — premium cards ── */
.cat-filter-chip--type {
  flex-direction: column !important;
  padding: 12px 6px 10px !important;
  border: 1.5px solid rgba(124, 92, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border-radius: 13px !important;
  min-height: 72px !important;
  gap: 5px !important;
  box-shadow: 0 2px 6px rgba(124, 92, 255, 0.05) !important;
  transition: all 0.2s !important;
}
.cat-filter-chip--type:hover {
  background: rgba(124, 92, 255, 0.07) !important;
  border-color: rgba(124, 92, 255, 0.28) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.14) !important;
}
.cat-filter-chip--type.is-active {
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.15) 0%, rgba(180, 76, 255, 0.10) 100%) !important;
  border-color: #7c5cff !important;
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.22), inset 0 1px 0 rgba(255,255,255,0.6) !important;
  transform: translateY(-2px) !important;
}

.cat-filter-type-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: rgba(124, 92, 255, 0.09) !important;
  color: #9888cc !important;
  transition: background 0.2s, color 0.2s !important;
}
.cat-filter-chip--type:hover .cat-filter-type-icon,
.cat-filter-chip--type.is-active .cat-filter-type-icon {
  background: rgba(124, 92, 255, 0.17) !important;
  color: #7c5cff !important;
}
.cat-filter-type-icon svg {
  width: 16px !important;
  height: 16px !important;
}

.cat-filter-chip-label {
  font-size: 0.73rem !important;
  font-weight: 700 !important;
  font-family: "Outfit", Inter, Arial, sans-serif;
}

/* ── "Voir plus" button ── */
.cat-filter-more-btn {
  font-size: 0.79rem !important;
  font-weight: 700 !important;
  color: #7c5cff !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(124, 92, 255, 0.18) !important;
  border-radius: 8px !important;
  background: rgba(124, 92, 255, 0.04) !important;
  opacity: 1 !important;
  transition: all 0.18s !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cat-filter-more-btn:hover {
  background: rgba(124, 92, 255, 0.10) !important;
  border-color: rgba(124, 92, 255, 0.28) !important;
}

/* ── Sidebar footer / apply button ── */
.cat-sidebar-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 92, 255, 0.18) transparent;
}

.cat-sidebar-body::-webkit-scrollbar {
  width: 4px;
}

.cat-sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.20);
  border-radius: 4px;
}

.cat-sidebar-footer {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(124, 92, 255, 0.09);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.04) 0%, rgba(180, 76, 255, 0.025) 100%);
}

.cat-sidebar-apply-btn {
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(135deg, #7c5cff 0%, #b44cff 100%);
  color: #fff;
  border: none;
  border-radius: 13px;
  font-size: 0.88rem;
  font-weight: 800;
  font-family: "Outfit", Inter, Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.32);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  letter-spacing: 0.01em;
}
.cat-sidebar-apply-btn:hover {
  background: linear-gradient(135deg, #6a4df0 0%, #a44cff 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(124, 92, 255, 0.40);
}
.cat-sidebar-apply-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.26);
}

/* ── Active chips in toolbar ── */
.cat-chip-badge {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.11) 0%, rgba(180, 76, 255, 0.08) 100%) !important;
  border-color: rgba(124, 92, 255, 0.26) !important;
  font-weight: 700 !important;
  font-family: "Outfit", Inter, Arial, sans-serif;
}

/* ── Toolbar sort & view ── */
.cat-sort-select {
  font-family: "Outfit", Inter, Arial, sans-serif;
  font-weight: 600;
}

.cat-toolbar {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 4px 0;
  border: none;
  box-shadow: none;
  margin-bottom: 18px !important;
}

/* ── Scrollbar inside scroll lists ── */
.cat-filter-options--scroll::-webkit-scrollbar {
  width: 5px;
}
.cat-filter-options--scroll::-webkit-scrollbar-track {
  background: rgba(124, 92, 255, 0.03);
  border-radius: 4px;
}
.cat-filter-options--scroll::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.22);
  border-radius: 4px;
}
.cat-filter-options--scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.40);
}

/* ── Type filter — vertical list ── */
#cat-type-options {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  grid-template-columns: unset !important;
  gap: 4px !important;
  padding: 4px 14px 12px !important;
}
.cat-filter-chip--type {
  flex-direction: row !important;
  min-height: auto !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
  box-shadow: 0 1px 4px rgba(124, 92, 255, 0.06) !important;
  flex: 0 0 auto !important;
  justify-content: flex-start !important;
  position: relative !important;
}
/* Checkmark circle on the right */
.cat-filter-chip--type::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 92, 255, 0.25);
  background: rgba(255, 255, 255, 0.7);
  margin-left: auto;
  flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}
.cat-filter-chip--type.is-active::after {
  background: #7c5cff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center center;
  background-size: 10px 10px;
  border-color: #7c5cff;
}
.cat-filter-chip--type:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.12) !important;
}
.cat-filter-chip--type.is-active {
  transform: none !important;
}
.cat-filter-type-icon {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  flex-shrink: 0 !important;
}
.cat-filter-type-icon svg {
  width: 13px !important;
  height: 13px !important;
}
.cat-filter-chip--type .cat-filter-chip-label {
  font-size: 0.79rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* ── Hide product count in toolbar ── */
.cat-results-count {
  display: none !important;
}

/* ── Saveurs — 3-per-row family grid ── */
.cat-filter-options--flavor-families {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  padding: 4px 14px 12px !important;
  flex-wrap: unset !important;
}
.cat-flavor-family-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9px 4px 8px;
  gap: 4px;
  border: 1.5px solid rgba(124, 92, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-family: "Outfit", Inter, Arial, sans-serif;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 1px 4px rgba(124, 92, 255, 0.05);
}
.cat-flavor-family-tile:hover {
  background: rgba(124, 92, 255, 0.07);
  border-color: rgba(124, 92, 255, 0.26);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.12);
}
.cat-flavor-family-tile.is-active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14) 0%, rgba(180, 76, 255, 0.09) 100%);
  border-color: #7c5cff;
  box-shadow: 0 3px 12px rgba(124, 92, 255, 0.20);
  transform: translateY(-1px);
}
.cat-flavor-family-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.cat-flavor-family-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #483878;
  line-height: 1.25;
}
.cat-flavor-family-tile.is-active .cat-flavor-family-label {
  color: #6c44f5;
}

/* ── Couleurs — tuiles familles (pastille en guise d'icone) ── */
.cat-color-family-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 1px 3px rgba(0, 0, 0, 0.14);
  display: block;
}
.cat-color-family-tile.is-active .cat-color-family-swatch {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 2px rgba(124, 92, 255, 0.45);
}
.cat-chip-color-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  margin-right: 5px;
  vertical-align: -1px;
}

/* ── Bouffées — override grid to single column ── */
#cat-puffs-options {
  display: block !important;
  padding: 4px 10px 12px !important;
}
.cat-puffs-slider-wrap {
  padding: 0 10px 12px;
}
.cat-puffs-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cat-puffs-slider-current {
  font-size: 0.82rem;
  font-weight: 700;
  font-family: "Outfit", Inter, Arial, sans-serif;
  color: #7c5cff;
}
.cat-puffs-slider-reset {
  font-size: 0.74rem;
  font-weight: 600;
  font-family: "Outfit", Inter, Arial, sans-serif;
  color: #9080a8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.cat-puffs-slider-reset:hover {
  color: #7c5cff;
  background: rgba(124, 92, 255, 0.07);
}
input.cat-puffs-slider {
  display: block !important;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 7px;
  border-radius: 6px;
  background: linear-gradient(to right, #7c5cff 0%, #7c5cff var(--pct, 0%), rgba(124,92,255,0.15) var(--pct, 0%), rgba(124,92,255,0.15) 100%);
  outline: none;
  cursor: pointer;
  margin-bottom: 14px;
}
input.cat-puffs-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #7c5cff;
  box-shadow: 0 2px 10px rgba(124, 92, 255, 0.35);
  cursor: pointer;
  transition: box-shadow 0.18s, transform 0.18s;
}
input.cat-puffs-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.50);
  transform: scale(1.15);
}
input.cat-puffs-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #7c5cff;
  box-shadow: 0 2px 10px rgba(124, 92, 255, 0.35);
  cursor: pointer;
}
input.cat-puffs-slider::-moz-range-track {
  height: 7px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.15);
}
.cat-puffs-slider-marks {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2px;
  justify-content: space-between;
}
.cat-puffs-slider-mark {
  flex: 1;
  padding: 5px 2px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: rgba(124, 92, 255, 0.05);
  color: #9888c8;
  font-size: 0.73rem;
  font-weight: 600;
  font-family: "Outfit", Inter, Arial, sans-serif;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s, font-weight 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  box-shadow: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-puffs-slider-mark:hover {
  color: #7c5cff;
  background: rgba(124, 92, 255, 0.10);
  border-color: rgba(124, 92, 255, 0.20);
  box-shadow: none;
}
.cat-puffs-slider-mark.is-active {
  color: #7c5cff;
  font-weight: 800;
  background: rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.35);
  box-shadow: none;
}

/* ── Nicotine — horizontal pills + custom input reveal ── */
#cat-nicotine-options {
  display: block !important;
  padding: 4px 14px 12px !important;
}

/* ── CBD — horizontal pills ── */
#cat-cbd-options {
  display: block !important;
  padding: 4px 14px 12px !important;
}
.cat-cbd-row {
  display: flex;
  flex-direction: row;
  gap: 6px;
}
.cat-cbd-pill {
  flex: 1;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1.5px solid rgba(34, 197, 94, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #2d5a3d;
  font-size: 0.81rem;
  font-weight: 700;
  font-family: "Outfit", Inter, Arial, sans-serif;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 1px 4px rgba(34, 197, 94, 0.06);
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.cat-cbd-pill:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.30);
  color: #16a34a;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.14);
}
.cat-cbd-pill.is-active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16) 0%, rgba(21, 128, 61, 0.10) 100%);
  border-color: #16a34a;
  color: #15803d;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.22);
}
.cat-nicotine-row {
  display: flex;
  flex-direction: row;
  gap: 6px;
}
.cat-nicotine-pill {
  flex: 1;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1.5px solid rgba(124, 92, 255, 0.13);
  background: rgba(255, 255, 255, 0.78);
  color: #483878;
  font-size: 0.81rem;
  font-weight: 700;
  font-family: "Outfit", Inter, Arial, sans-serif;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 1px 4px rgba(124, 92, 255, 0.05);
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.cat-nicotine-pill:hover {
  background: rgba(124, 92, 255, 0.07);
  border-color: rgba(124, 92, 255, 0.26);
  color: #7c5cff;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.12);
}
.cat-nicotine-pill.is-active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15) 0%, rgba(180, 76, 255, 0.10) 100%);
  border-color: #7c5cff;
  color: #6c44f5;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(124, 92, 255, 0.20);
}
.cat-nicotine-custom {
  display: none;
  padding: 8px 0 2px;
}
.cat-nicotine-custom.is-open {
  display: block;
}
.cat-nicotine-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(124, 92, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: "Outfit", Inter, Arial, sans-serif;
  color: #2d1f5e;
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.cat-nicotine-input:focus {
  border-color: #7c5cff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}
.cat-nicotine-input::placeholder {
  color: #c8b8e0;
}

/* ══════════════════════════════════════════════════════════
   MOBILE FIX — la sidebar filtres est forcée en
   `display: flex !important` par le bloc "PREMIUM UPGRADE"
   plus haut, ce qui annulait le `display:none` de la media
   query et empilait les filtres au-dessus des produits.
   On rétablit le comportement drawer sur mobile/tablette.
══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .cat-sidebar {
    display: none !important;
  }
  .cat-mobile-filter-btn {
    display: flex !important;
  }
}

/* ══════════════════════════════════════════════════════════
   NOMS PRODUITS COMPLETS — on retire la troncature sur 2 lignes
   (-webkit-line-clamp + max-height) qui coupait les noms longs et
   ajoutait des "…". Le nom s'affiche désormais en entier, sur
   autant de lignes que nécessaire. On conserve un min-height pour
   garder l'alignement des cartes dont le nom tient sur 1-2 lignes.
══════════════════════════════════════════════════════════ */
.cat-card-name {
  display: block !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;
  overflow: visible !important;
  max-height: none !important;
  white-space: normal !important;
}

/* Mobile : nom du produit reduit a 12px sur les cartes catalogue,
   pour rester coherent avec les cartes de la page d'accueil. */
@media (max-width: 640px) {
  .cat-card-name {
    font-size: 12px !important;
  }
}

/* ── Stock: out-of-stock (rupture) badge + disabled add button ── */
.cat-badge-out {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid rgba(220, 38, 38, 0.28) !important;
  box-shadow: none !important;
}
.cat-badge-stock-low {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border: 1px solid rgba(234, 88, 12, 0.28) !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
.cat-product-card.is-out-of-stock .cat-card-img-wrap img {
  filter: grayscale(0.7) opacity(0.72);
}
.cat-card-add.is-disabled,
.cat-card-add:disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  pointer-events: none;
}
