/* ================================================
   PARFUMILYA — Archive Produit CSS v2
   Basé sur l'image cible exacte
================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --pf-white:       #FFFFFF;
  --pf-bg:          #F5EFE8;
  --pf-beige:       #EFE7DD;
  --pf-red:         #D91F2B;
  --pf-red-hover:   #B51823;
  --pf-rose:        #fce8ea;
  --pf-black:       #111111;
  --pf-gray:        #777777;
  --pf-gray-light:  #AAAAAA;
  --pf-border:      #E8E0D8;
  --pf-shadow:      0 2px 12px rgba(0,0,0,0.06);
  --pf-shadow-hover:0 6px 30px rgba(0,0,0,0.10);
  --pf-radius:      10px;
  --pf-radius-sm:   6px;
  --pf-transition:  all 0.25s ease;
}

/* ── Reset Astra / WooCommerce ── */
.woocommerce-page .site-content,
.woocommerce-page .content-area {
  max-width: 100% !important;
  padding: 0 !important;
}
.ast-container { max-width: 100% !important; }
ul.products { margin: 0 !important; padding: 0 !important; }
.woocommerce-notices-wrapper { display: none; }

/* ── Reset global boutons sidebar — neutralise Astra + WooCommerce ── */
.pf-sidebar button {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  font-family: 'Poppins', sans-serif !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

/* Reset spécifique pf-filter-title — neutralise fond rouge injecté par Astra */
.pf-sidebar .pf-filter-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--pf-black) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1.6px !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  text-align: left !important;
  outline: none !important;
}
.pf-sidebar .pf-filter-title:hover,
.pf-sidebar .pf-filter-title:focus,
.pf-sidebar .pf-filter-title:active {
  background: transparent !important;
  background-color: transparent !important;
  color: var(--pf-black) !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.pf-sidebar .pf-filter-title .pf-chevron {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s ease !important;
  stroke: #888 !important;
  stroke-width: 2.5 !important;
  fill: none !important;
  display: block !important;
}
.pf-sidebar .pf-filter-title.collapsed .pf-chevron {
  transform: rotate(-90deg) !important;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--pf-white);
  color: var(--pf-black);
}

/* ── Page wrapper ── */
.pf-shop-page {
  background: var(--pf-white);
  min-height: 100vh;
}

/* ── Page Header (titre + sous-titre) ── */
.pf-page-header {
  background: var(--pf-white);
  padding: 32px 0 0;
}
.pf-page-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}
.pf-page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--pf-black);
  margin: 0 0 6px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.pf-page-subtitle {
  font-size: 13.5px;
  color: var(--pf-gray);
  margin: 0 0 28px;
  font-weight: 300;
}

/* ── Main Layout ── */
.pf-shop-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: 32px;
  align-items: start;
}

/* ================================================
   SIDEBAR
================================================ */

.pf-sidebar {
  background: var(--pf-white);
  border-radius: 12px;
  border: 1px solid #EBEBEB;
  overflow: hidden;
  position: sticky;
  top: 90px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

/* Section */
.pf-filter-section {
  padding: 18px 20px;
  border-bottom: 1px solid #F0F0F0;
}
.pf-filter-section:last-child { border-bottom: none; }

/* Titre filtre — styles non-!important (les !important ci-dessus priment sur Astra) */
.pf-filter-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--pf-black);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}
.pf-filter-title::after { display: none; }
.pf-filter-title .pf-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  stroke: #888;
  stroke-width: 2.5;
  fill: none;
}
.pf-filter-title.collapsed .pf-chevron { transform: rotate(-90deg); }

.pf-filter-content { margin-top: 16px; }
.pf-filter-content.collapsed { display: none; }

/* ── Recherche ── */
.pf-search-wrap { position: relative; }
.pf-search-input {
  width: 100%;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 10px 38px 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: var(--pf-black);
  background: #FAFAFA;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  line-height: 1.4;
}
.pf-search-input::placeholder { color: #C0C0C0; font-size: 12px; }
.pf-search-input:focus {
  border-color: var(--pf-red);
  background: var(--pf-white);
  box-shadow: 0 0 0 3px rgba(217,31,43,0.06);
}
.pf-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 !important;
  color: #BBBBBB;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.pf-search-btn svg { width: 14px; height: 14px; }
.pf-search-btn:hover { color: var(--pf-red) !important; background: transparent !important; }

/* ── Catégories ── */
.pf-category-list { list-style: none; margin: 0; padding: 0; }
.pf-category-item {}
.pf-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--pf-black);
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
  border: none;
  background: none !important;
  width: 100%;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  border-bottom: 1px solid rgba(0,0,0,0.045);
  line-height: 1.4;
}
.pf-category-item:last-child .pf-category-link { border-bottom: none; }
.pf-category-link:hover,
.pf-category-link:focus { color: var(--pf-red); background: none !important; outline: none; }
.pf-category-link.active { color: var(--pf-red); font-weight: 500; }
.pf-category-count {
  font-size: 11px;
  color: #BBBBBB;
  font-weight: 400;
  min-width: 20px;
  text-align: right;
}
.pf-category-link.active .pf-category-count { color: var(--pf-red); }

/* ── Marques & Type — checkbox + label + count ── */
.pf-brand-list { list-style: none; margin: 0; padding: 0; }
.pf-brand-item {
  display: flex;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}
.pf-brand-item:last-child { border-bottom: none; }
.pf-brand-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--pf-black);
  cursor: pointer;
  flex: 1;
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
}
.pf-brand-label:hover .pf-brand-name { color: var(--pf-red); }

/* Checkbox carré — bordure gris clair, checkmark propre */
.pf-brand-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid #D0D0D0;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
  flex-shrink: 0;
  background: var(--pf-white);
}
.pf-brand-checkbox:hover { border-color: #AAAAAA; }
.pf-brand-checkbox:checked {
  background: var(--pf-red);
  border-color: var(--pf-red);
}
.pf-brand-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.pf-brand-name { flex: 1; color: var(--pf-black); font-size: 13px; }
.pf-brand-count { font-size: 11.5px; color: #BBBBBB; white-space: nowrap; padding-left: 6px; }

/* Voir plus */
.pf-brand-see-more {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pf-red);
  cursor: pointer;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.pf-brand-see-more:hover { text-decoration: underline; background: none !important; color: var(--pf-red) !important; }

/* ── Prix : header Min/Max + piste fine + 2 thumbs rouges + inputs ── */
.pf-price-range-header {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--pf-gray);
  margin-bottom: 14px;
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
}
.pf-price-range-header span { font-weight: 700; color: var(--pf-black); }

/* Piste + thumbs */
.pf-dual-range-wrap {
  position: relative;
  height: 4px;
  margin: 4px 0 24px;
}
.pf-dual-range-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #EBEBEB;
  border-radius: 4px;
}
.pf-dual-range-fill {
  position: absolute;
  top: 0;
  height: 4px;
  background: var(--pf-red);
  border-radius: 4px;
  left: 0;
  right: 0;
}
.pf-dual-range-wrap input[type=range] {
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
  margin: 0;
  padding: 0;
}
/* Thumb rouge */
.pf-dual-range-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pf-red);
  cursor: pointer;
  pointer-events: all;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(217,31,43,0.35);
}
.pf-dual-range-wrap input[type=range]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pf-red);
  cursor: pointer;
  pointer-events: all;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(217,31,43,0.35);
}
.pf-dual-range-wrap input[type=range]::-ms-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pf-red);
  cursor: pointer;
  pointer-events: all;
  border: 2px solid #fff;
}

/* Inputs Prix min / Prix max */
.pf-price-values {
  display: flex;
  gap: 10px;
}
.pf-price-input-wrap { flex: 1; }
.pf-price-input-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #BBBBBB;
  display: block;
  margin-bottom: 5px;
  font-family: 'Poppins', sans-serif;
}
.pf-price-input {
  width: 100%;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 9px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--pf-black);
  background: var(--pf-white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -moz-appearance: textfield;
  box-sizing: border-box;
}
.pf-price-input::-webkit-inner-spin-button,
.pf-price-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pf-price-input:focus {
  border-color: var(--pf-red);
  box-shadow: 0 0 0 3px rgba(217,31,43,0.06);
}

/* ── Bouton Appliquer + Réinitialiser avec override total Astra ── */
.pf-sidebar .pf-apply-filters,
.pf-apply-filters {
  width: 100% !important;
  background: var(--pf-black) !important;
  background-color: var(--pf-black) !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1.3px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
  margin-top: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  text-shadow: none !important;
  line-height: 1.4 !important;
}
.pf-sidebar .pf-apply-filters:hover,
.pf-apply-filters:hover {
  background: var(--pf-red) !important;
  background-color: var(--pf-red) !important;
  transform: translateY(-1px) !important;
}
.pf-sidebar .pf-apply-filters:active,
.pf-apply-filters:active { transform: translateY(0) !important; }

.pf-sidebar .pf-reset-filters,
.pf-reset-filters {
  width: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #999 !important;
  border: 1px solid #E5E5E5 !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-top: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  text-shadow: none !important;
  line-height: 1.4 !important;
}
.pf-sidebar .pf-reset-filters:hover,
.pf-reset-filters:hover {
  border-color: #C0C0C0 !important;
  color: var(--pf-black) !important;
  background: #F8F8F8 !important;
  background-color: #F8F8F8 !important;
}

/* ================================================
   TOOLBAR
================================================ */
.pf-toolbar {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pf-results-count {
  font-size: 13px;
  color: var(--pf-gray);
  font-weight: 400;
}
.pf-results-count strong {
  color: var(--pf-black);
  font-weight: 500;
}
.pf-toolbar-right { display: flex; align-items: center; gap: 20px; }
.pf-sort-wrap, .pf-per-page-wrap { display: flex; align-items: center; gap: 10px; }
.pf-sort-label, .pf-per-page-label {
  font-size: 12.5px;
  color: var(--pf-gray);
  white-space: nowrap;
}
.pf-sort-select, .pf-per-page-select {
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-sm);
  padding: 7px 34px 7px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: var(--pf-black);
  background: var(--pf-white);
  appearance: none;
  background-image: 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='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  transition: var(--pf-transition);
  min-width: 160px;
}
.pf-sort-select:focus, .pf-per-page-select:focus { border-color: var(--pf-red); }
.pf-per-page-select { min-width: 70px; }

/* ================================================
   PRODUCT GRID — 6 colonnes comme l'image cible
================================================ */
.pf-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

/* ── Product Card ── */
.pf-product-card {
  background: var(--pf-white);
  border-radius: var(--pf-radius);
  border: 1px solid var(--pf-border);
  overflow: hidden;
  transition: var(--pf-transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pf-product-card:hover {
  box-shadow: var(--pf-shadow-hover);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Wishlist */
.pf-wishlist-btn {
  position: absolute;
  top: 10px;
  right: -10px;
  height: 20px;
  border-radius: 50%;
  background-color: transparent;
  border:none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--pf-transition);
  z-index: 3;
  box-shadow: none;
}
.pf-wishlist-btn:hover { background-color: transparent!important; } 
/* .pf-wishlist-btn:hover { border-color: var(--pf-red); } */
.pf-wishlist-btn svg { width: 16px; height: 16px; color: rgb(41, 41, 41); }
.pf-wishlist-btn:hover svg { color: var(--pf-red); }
.pf-wishlist-btn.active svg { color: var(--pf-red); fill: var(--pf-red); }

/* Badge */
.pf-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 3;
  font-family: 'Poppins', sans-serif;
}
.pf-badge-new { background: var(--pf-black); color: var(--pf-white); }
.pf-badge-sale { background: var(--pf-red); color: var(--pf-white); }

/* Image */
.pf-product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #faf9f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}
.pf-product-card:hover .pf-product-image img { transform: scale(1.04); }

/* Quick add overlay — masqué par défaut, apparaît au hover */
.pf-quick-add-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  transform: translateY(100%);
  transition: var(--pf-transition);
  background: transparent;
}
.pf-product-card:hover .pf-quick-add-overlay { transform: translateY(0); }

/* Product info */
.pf-product-info {
  padding: 10px 12px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pf-product-category {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--pf-red);
  margin-bottom: 4px;
}
.pf-product-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--pf-black);
  margin: 0 0 3px;
  line-height: 1.25;
  text-decoration: none;
  display: block;
}
.pf-product-name:hover { color: var(--pf-red); }
.pf-product-variant {
  font-size: 11px;
  color: var(--pf-gray);
  margin-bottom: 6px;
}
.pf-product-price-old {
  font-size: 11px;
  color: var(--pf-gray-light);
  text-decoration: line-through;
  display: block;
  margin-bottom: 0;
}
.pf-product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--pf-black);
  display: block;
  margin-bottom: 10px;
}

/* ── Add to Cart button — TOUJOURS visible en bas, style image cible ── */
.pf-add-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 90%;
  background: var(--pf-black);
  color: var(--pf-white);
  border: none;
  border-radius:var(--pf-radius-sm);
  padding: 10px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--pf-transition);
  margin-top: auto;
  margin: auto;
  margin-bottom: 10px;
}
.pf-add-cart-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.pf-add-cart-btn:hover { background: var(--pf-red); }

/* ── No results ── */
.pf-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: var(--pf-gray);
  font-size: 15px;
}

/* ================================================
   PAGINATION
================================================ */
.pf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0 48px;
}
.pf-page-btn {
  min-width: 38px;
  height: 38px;
  border-radius: var(--pf-radius-sm);
  border: 1px solid var(--pf-border);
  background: var(--pf-white);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--pf-black);
  cursor: pointer;
  transition: var(--pf-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-decoration: none;
}
.pf-page-btn:hover,
.pf-page-btn.active {
  background: var(--pf-red);
  border-color: var(--pf-red);
  color: var(--pf-white);
}
.pf-page-btn.dots {
  border: none;
  background: none;
  cursor: default;
  color: var(--pf-gray);
}
.pf-page-btn svg { width: 14px; height: 14px; }

/* ================================================
   LOADING
================================================ */
.pf-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.pf-loading-overlay.active { opacity: 1; pointer-events: all; }
.pf-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--pf-border);
  border-top-color: var(--pf-red);
  border-radius: 50%;
  animation: pf-spin 0.7s linear infinite;
}
@keyframes pf-spin { to { transform: rotate(360deg); } }

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 1400px) {
  .pf-products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1200px) {
  .pf-products-grid { grid-template-columns: repeat(3, 1fr); }
  .pf-shop-inner { grid-template-columns: 230px 1fr; gap: 24px; }
}
@media (max-width: 1024px) {
  .pf-shop-inner { grid-template-columns: 1fr; }
  .pf-sidebar { position: static; }
  .pf-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .pf-shop-inner { padding: 0 20px 40px; }
  .pf-page-header-inner { padding: 0 20px; }
  .pf-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pf-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pf-per-page-wrap { display: none; }
  .pf-page-title { font-size: 30px; }
}
@media (max-width: 480px) {
  .pf-products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pf-product-name { font-size: 12px; }
  .pf-product-price { font-size: 12px; }
}



/* ================================================
   PARFUMILYA — Mobile Filter System
   Bottom Sheet + Barre mobile + Active Pills
   ⚡ Enqueue AFTER archive-product.css
================================================ */

/* ── Masquer les éléments mobile-only sur desktop ── */
.pf-mobile-bar,
.pf-filter-overlay,
.pf-sheet-mobile-header,
.pf-sheet-mobile-footer,
.pf-mobile-results,
.pf-active-filters-bar { display: none; }


/* ================================================================
   BREAKPOINT MOBILE ≤ 768px
================================================================ */
@media (max-width: 768px) {

  /* ─────────────────────────────────────────
     [1] PAGE HEADER
  ───────────────────────────────────────── */
  .pf-page-header { padding: 20px 0 0; }
  .pf-page-header-inner { padding: 0 16px !important; }
  .pf-page-title  { font-size: 26px !important; margin-bottom: 4px; }
  .pf-page-subtitle { font-size: 12.5px; margin-bottom: 14px; }

  /* ─────────────────────────────────────────
     [2] LAYOUT — 1 seule colonne, pas de sidebar
  ───────────────────────────────────────── */
  .pf-shop-inner {
    grid-template-columns: 1fr !important;
    padding: 0 12px 48px !important;
    gap: 0 !important;
  }

  /* ─────────────────────────────────────────
     [3] MASQUER la toolbar desktop
  ───────────────────────────────────────── */
  .pf-toolbar { display: none !important; }

  /* ─────────────────────────────────────────
     [4] NOMBRE DE RÉSULTATS — version mobile
  ───────────────────────────────────────── */
  .pf-mobile-results {
    display: block;
    font-size: 12px;
    color: var(--pf-gray);
    padding: 0 4px;
    margin: 0 0 10px;
    font-family: 'Poppins', sans-serif;
  }
  .pf-mobile-results strong {
    color: var(--pf-black);
    font-weight: 600;
  }

  /* ─────────────────────────────────────────
     [5] ACTIVE FILTER PILLS — tags visibles
  ───────────────────────────────────────── */
  .pf-active-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    padding: 0 4px;
    margin-bottom: 12px;
  }
  .pf-active-filters-bar:empty { display: none; }

  .pf-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FEF0F0;
    color: var(--pf-red);
    border-radius: 20px;
    padding: 5px 10px 5px 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
  }
  .pf-pill-remove {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--pf-red) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    width: 13px !important;
    height: 13px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }
  .pf-pill-remove:hover { opacity: 0.7 !important; }

  /* ─────────────────────────────────────────
     [6] MOBILE BAR — Filtres + Tri
  ───────────────────────────────────────── */
  .pf-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    margin: 0 0 14px;
  }

  /* Bouton Filtres */
  .pf-mobile-filter-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    flex: 1 !important;
    background: var(--pf-white) !important;
    border: 1.5px solid #E2E2E2 !important;
    border-radius: 10px !important;
    padding: 11px 16px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--pf-black) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05) !important;
    position: relative !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  .pf-mobile-filter-btn:hover,
  .pf-mobile-filter-btn:active {
    border-color: var(--pf-red) !important;
    color: var(--pf-red) !important;
    background: #FEF0F0 !important;
    box-shadow: 0 2px 8px rgba(217,31,43,0.10) !important;
  }
  .pf-mobile-filter-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

  /* Badge compteur filtres actifs */
  .pf-filter-badge {
    display: none;
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    min-width: 18px !important;
    height: 18px !important;
    background: var(--pf-red) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 4px !important;
    font-family: 'Poppins', sans-serif !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
  }
  .pf-filter-badge.visible { display: flex !important; }

  /* Select Tri mobile */
  .pf-mobile-sort-select {
    flex: 1.2;
    border: 1.5px solid #E2E2E2;
    border-radius: 10px;
    padding: 11px 34px 11px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--pf-black);
    background: var(--pf-white);
    appearance: none;
    -webkit-appearance: none;
    background-image: 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='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    outline: none;
    cursor: pointer;
  }
  .pf-mobile-sort-select:focus { border-color: var(--pf-red); }

  /* ─────────────────────────────────────────
     [7] OVERLAY — fond sombre derrière le sheet
  ───────────────────────────────────────── */
  .pf-filter-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 9980;
    pointer-events: none;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
  }
  .pf-filter-overlay.active {
    background: rgba(0,0,0,0.48);
    pointer-events: all;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  /* ─────────────────────────────────────────
     [8] SIDEBAR → BOTTOM SHEET
  ───────────────────────────────────────── */
  .pf-sidebar {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 9990 !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -8px 48px rgba(0,0,0,0.18) !important;
    transform: translateY(110%) !important;
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1) !important;
    border: none !important;
    background: var(--pf-white) !important;
    padding-bottom: env(safe-area-inset-bottom, 24px) !important;
  }
  .pf-sidebar.pf-sheet-open {
    transform: translateY(0) !important;
  }

  /* ─────────────────────────────────────────
     [9] SHEET HEADER — sticky en haut du sheet
  ───────────────────────────────────────── */
  .pf-sheet-mobile-header {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    padding: 20px 20px 14px !important;
    position: sticky !important;
    top: 0 !important;
    background: var(--pf-white) !important;
    z-index: 5 !important;
    border-bottom: 1px solid #F2F2F2 !important;
  }

  /* Drag handle — poignée visuelle */
  .pf-sheet-drag-handle {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #DEDEDE;
    border-radius: 2px;
  }

  .pf-sheet-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--pf-black) !important;
    letter-spacing: -0.2px !important;
    line-height: 1.2 !important;
  }

  /* Bouton fermer (×) */
  .pf-sheet-close-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #F0F0F0 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    color: var(--pf-black) !important;
    box-shadow: none !important;
  }
  .pf-sheet-close-btn:hover {
    background: var(--pf-red) !important;
    color: #fff !important;
  }
  .pf-sheet-close-btn svg { width: 13px; height: 13px; }

  /* ─────────────────────────────────────────
     [10] SHEET FOOTER — Réinitialiser + Voir produits
  ───────────────────────────────────────── */
  .pf-sheet-mobile-footer {
    display: flex !important;
    gap: 10px !important;
    padding: 14px 20px !important;
    position: sticky !important;
    bottom: 0 !important;
    background: var(--pf-white) !important;
    border-top: 1px solid #F2F2F2 !important;
    z-index: 5 !important;
    box-sizing: border-box !important;
  }

  .pf-sheet-reset-btn {
    flex: 1 !important;
    padding: 12px 16px !important;
    border: 1.5px solid #E0E0E0 !important;
    border-radius: 10px !important;
    background: var(--pf-white) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--pf-black) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    box-shadow: none !important;
    text-shadow: none !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.4 !important;
  }
  .pf-sheet-reset-btn:hover {
    border-color: var(--pf-red) !important;
    color: var(--pf-red) !important;
    background: #FEF0F0 !important;
  }

  .pf-sheet-apply-btn {
    flex: 2 !important;
    padding: 12px 16px !important;
    background: var(--pf-black) !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    line-height: 1.4 !important;
  }
  .pf-sheet-apply-btn:hover { background: var(--pf-red) !important; }

  /* ─────────────────────────────────────────
     [11] Masquer boutons Apply/Reset desktop dans le sheet
  ───────────────────────────────────────── */
  .pf-sidebar .pf-filter-section:last-of-type { display: none !important; }

  /* ─────────────────────────────────────────
     [12] Body scroll lock quand sheet ouvert
  ───────────────────────────────────────── */
  body.pf-no-scroll {
    overflow: hidden !important;
    touch-action: none !important;
  }

  /* ─────────────────────────────────────────
     [13] PRODUCT GRID — mobile optimisé
  ───────────────────────────────────────── */
  .pf-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .pf-product-card {
    border-radius: 12px !important;
  }

  .pf-product-image {
    aspect-ratio: 3 / 4;
  }

  .pf-product-info {
    padding: 10px 10px 0 !important;
  }

  .pf-product-category {
    font-size: 8px !important;
    letter-spacing: 1px !important;
  }

  .pf-product-name {
    font-size: 12px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pf-product-price {
    font-size: 12.5px !important;
    margin-bottom: 6px !important;
  }

  .pf-product-price-old {
    font-size: 10px !important;
  }

  .pf-product-variant {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }

  .pf-add-cart-btn {
    font-size: 9.5px !important;
    padding: 9px 8px !important;
    letter-spacing: 0.3px !important;
    gap: 4px !important;
    width: 92% !important;
    margin-bottom: 8px !important;
    border-radius: 8px !important;
  }
  .pf-add-cart-btn svg {
    width: 11px !important;
    height: 11px !important;
  }

  .pf-wishlist-btn {
    right: 6px !important;
    top: 6px !important;
  }

  .pf-badge {
    top: 7px !important;
    left: 7px !important;
    font-size: 8px !important;
    padding: 2px 7px !important;
  }

  /* ─────────────────────────────────────────
     [14] PAGINATION mobile
  ───────────────────────────────────────── */
  .pf-pagination {
    gap: 4px;
    padding: 24px 0 40px;
  }
  .pf-page-btn {
    min-width: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }
}
/* ================================================================
   PARFUMILYA — Sidebar Premium Upgrade
   Améliorations visuelles de la zone filtres
   + Type de produit pills ACF
================================================================ */

/* ──────────────────────────────────────────────────────────────
   [A] SIDEBAR CONTAINER — fond chaud, ombre raffinée
────────────────────────────────────────────────────────────── */
.pf-sidebar {
  background: #FAFAF8 !important;
  border: 1px solid #EDE8E2 !important;
  border-radius: 14px !important;
  box-shadow:
    0 2px 20px rgba(0,0,0,0.05),
    0 1px 6px rgba(0,0,0,0.03) !important;
}

/* ──────────────────────────────────────────────────────────────
   [B] SIDEBAR HEAD — visible desktop seulement
────────────────────────────────────────────────────────────── */
.pf-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px 15px;
  border-bottom: 1px solid #EDE8E2;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 2;
}

.pf-sidebar-head-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.pf-sidebar-head-title svg {
  width: 14px;
  height: 14px;
  color: var(--pf-red);
  stroke: var(--pf-red);
  flex-shrink: 0;
}

/* Bouton "Tout effacer" dans le header */
.pf-sidebar-clear-btn {
  font-family: 'Poppins', sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #AAAAAA !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  width: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: inline !important;
}
.pf-sidebar-clear-btn:hover {
  color: var(--pf-red) !important;
  background: none !important;
  transform: none !important;
}

/* ──────────────────────────────────────────────────────────────
   [C] FILTER SECTIONS — séparateurs plus raffinés
────────────────────────────────────────────────────────────── */
.pf-filter-section {
  padding: 18px 22px !important;
  border-bottom: 1px solid #F0ECE7 !important;
}
.pf-filter-section:last-child { border-bottom: none !important; }

/* ──────────────────────────────────────────────────────────────
   [D] FILTER TITLE — accent rouge gauche + typographie premium
────────────────────────────────────────────────────────────── */
.pf-sidebar .pf-filter-title {
  padding-left: 12px !important;
  position: relative !important;
  font-size: 9.5px !important;
  letter-spacing: 1.8px !important;
  color: #222222 !important;
}

.pf-sidebar .pf-filter-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: var(--pf-red);
  border-radius: 2px;
}

/* ──────────────────────────────────────────────────────────────
   [E] CATÉGORIES — style liste raffiné, active pill + red bar
────────────────────────────────────────────────────────────── */
.pf-category-list {
  margin: 0 -4px !important;
  padding: 0 !important;
}

.pf-category-link {
  padding: 8px 10px !important;
  border-radius: 7px !important;
  border-bottom: none !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  margin-bottom: 2px !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

.pf-category-link:hover {
  background: rgba(217,31,43,0.06) !important;
  color: var(--pf-red) !important;
}

.pf-category-link.active {
  background: rgba(217,31,43,0.08) !important;
  color: var(--pf-red) !important;
  font-weight: 600 !important;
  box-shadow: inset 3px 0 0 var(--pf-red) !important;
  padding-left: 14px !important;
}

.pf-category-link.active .pf-category-count {
  color: rgba(217,31,43,0.6) !important;
}

.pf-category-count {
  font-size: 11px !important;
  color: #CCCCCC !important;
  font-weight: 400 !important;
}

/* ──────────────────────────────────────────────────────────────
   [F] MARQUES — checkbox rows améliorés
────────────────────────────────────────────────────────────── */
.pf-brand-item {
  padding: 7px 4px !important;
  border-radius: 6px !important;
  border-bottom: none !important;
  transition: background 0.15s ease !important;
  margin-bottom: 1px !important;
}

.pf-brand-item:hover { background: rgba(0,0,0,0.03) !important; }

.pf-brand-label {
  font-size: 13px !important;
}

.pf-brand-checkbox {
  border: 1.5px solid #CCCCCC !important;
  border-radius: 4px !important;
}

.pf-brand-checkbox:checked {
  background: var(--pf-red) !important;
  border-color: var(--pf-red) !important;
}

.pf-brand-count {
  font-size: 11px !important;
  color: #CCCCCC !important;
}

/* ──────────────────────────────────────────────────────────────
   [G] PRIX — section raffinée avec affichage premium
────────────────────────────────────────────────────────────── */
.pf-price-range-header {
  background: #F5F1ED !important;
  border-radius: 9px !important;
  padding: 10px 14px !important;
  margin-bottom: 18px !important;
  font-size: 12px !important;
}

.pf-price-range-header span {
  font-weight: 700 !important;
  color: var(--pf-black) !important;
}

.pf-price-input {
  border-radius: 9px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #E5DED7 !important;
  font-size: 12.5px !important;
}

.pf-price-input:focus {
  border-color: var(--pf-red) !important;
  box-shadow: 0 0 0 3px rgba(217,31,43,0.07) !important;
}

.pf-price-input-label {
  color: #BBBBBB !important;
  font-size: 9px !important;
  letter-spacing: 1.2px !important;
}

/* ──────────────────────────────────────────────────────────────
   [H] TYPE DE PRODUIT — pills modernes et élégantes
────────────────────────────────────────────────────────────── */
.pf-type-pills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pf-type-pill-item {
  /* conteneur flex item */
}

/* Checkbox caché — la magie est dans le label */
.pf-type-checkbox {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Label pill */
.pf-type-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border: 1.5px solid #E0D8D0;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #555555;
  background: #FFFFFF;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  line-height: 1.3;
  user-select: none;
}

.pf-type-pill-label:hover {
  border-color: var(--pf-red);
  color: var(--pf-red);
  background: rgba(217,31,43,0.05);
}

/* État coché — pill active */
.pf-type-checkbox:checked + .pf-type-pill-label {
  background: var(--pf-red);
  border-color: var(--pf-red);
  color: #FFFFFF;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(217,31,43,0.30);
}

.pf-type-pill-count {
  font-size: 10px;
  opacity: 0.6;
  font-weight: 400;
}

.pf-type-checkbox:checked + .pf-type-pill-label .pf-type-pill-count {
  opacity: 0.75;
}

/* Message si aucun type ACF trouvé */
.pf-no-types {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #AAAAAA;
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}
.pf-no-types code {
  background: #F0ECE8;
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
  font-size: 10.5px;
  color: var(--pf-red);
}

/* ──────────────────────────────────────────────────────────────
   [I] BOUTONS ACTIONS — Apply & Reset améliorés
────────────────────────────────────────────────────────────── */
.pf-sidebar .pf-apply-filters,
.pf-apply-filters {
  background: var(--pf-red) !important;
  background-image: none !important;
  border-radius: 10px !important;
  padding: 13px 16px !important;
  font-size: 10px !important;
  letter-spacing: 1.5px !important;
  box-shadow: 0 4px 14px rgba(217,31,43,0.28) !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}

.pf-sidebar .pf-apply-filters:hover,
.pf-apply-filters:hover {
  background: #B51823 !important;
  box-shadow: 0 6px 20px rgba(217,31,43,0.35) !important;
  transform: translateY(-1px) !important;
}

.pf-sidebar .pf-reset-filters,
.pf-reset-filters {
  border-radius: 10px !important;
  border: 1.5px solid #E8E2DB !important;
  color: #AAAAAA !important;
  font-size: 10.5px !important;
  margin-top: 8px !important;
}

.pf-sidebar .pf-reset-filters:hover,
.pf-reset-filters:hover {
  border-color: #CCCCCC !important;
  color: #666666 !important;
  background: #F8F5F2 !important;
}

/* ──────────────────────────────────────────────────────────────
   [J] Masquer la sidebar-head sur mobile (bottom sheet a son header)
────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pf-sidebar-head {
    display: none !important;
  }

  /* Type pills — s'adaptent au bottom sheet */
  .pf-type-pills-list {
    gap: 8px;
  }

  .pf-type-pill-label {
    padding: 7px 14px;
    font-size: 12.5px;
  }
}