

.boutique-hero {
  background: var(--gris-950);
  padding: calc(var(--header-height) + var(--space-5)) 0 var(--space-5);
}

.boutique-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.boutique-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--gris-500);
  margin-bottom: var(--space-5);
}

.boutique-hero__breadcrumb a {
  color: var(--gris-400);
  transition: color var(--transition-fast);
}

.boutique-hero__breadcrumb a:hover {
  color: var(--blanc);
}

.boutique-hero__breadcrumb svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.boutique-hero__title {
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1.1;
  color: var(--blanc);
  margin-bottom: var(--space-2);
}

.boutique-hero__title em {
  font-style: normal;
  color: var(--jaune);
}

.boutique-hero__desc {
  font-size: 0.875rem;
  color: var(--gris-400);
  max-width: 560px;
}

.boutique-hero__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--jaune);
}

.filters {
  position: sticky;
  top: calc(var(--header-height) + var(--space-2));
  z-index: var(--z-sticky);
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-200);
  padding: var(--space-3) 0;
  transition: top var(--transition-base);
}

.header.is-scrolled ~ main .filters {
  top: calc(var(--header-height-scrolled) + var(--space-2));
}

/* Quand la promo-bar est affichee, le header est decale de 40px vers le bas
   (body:has(.promo-bar){padding-top:40px}). La barre de filtres sticky doit
   integrer ce meme decalage pour ne pas passer sous le header. */
body:has(.promo-bar) .filters {
  top: calc(var(--header-height) + var(--space-2) + 40px);
}

body:has(.promo-bar) .header.is-scrolled ~ main .filters {
  top: calc(var(--header-height-scrolled) + var(--space-2) + 40px);
}

.filters__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}

.filters__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--noir);
  background: var(--gris-50);
  border: 1px solid var(--gris-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filters__toggle:hover {
  border-color: var(--gris-400);
}

.filters__toggle.is-open {
  background: var(--noir);
  color: var(--blanc);
  border-color: var(--noir);
}

.filters__toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filters__toggle-left svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.filters__toggle-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--jaune);
  color: var(--noir);
}

.filters__toggle-count.is-hidden {
  display: none;
}

.filters__toggle-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.filters__toggle.is-open .filters__toggle-chevron {
  transform: rotate(180deg);
}

.filters__groups {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-3) 0 0;
}

.filters__groups.is-open {
  display: flex;
}

.filters__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-shrink: 0;
}

.filters__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gris-400);
  flex-shrink: 0;
}

.filters__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filters__divider {
  display: none;
  width: 1px;
  height: 24px;
  background: var(--gris-200);
  flex-shrink: 0;
}

.filters__sort {
  flex-shrink: 0;
}

.filters__select {
  width: 100%;
  padding: 8px 36px 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--gris-200);
  border-radius: var(--radius-full);
  background: var(--blanc);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.filters__select:hover {
  border-color: var(--gris-400);
}

.section.boutique-products {
  padding-top: 0;
  padding-bottom: var(--space-3);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: 0 0 var(--space-6);
}

.card {
  display: flex;
  flex-direction: row;
  background: var(--blanc);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gris-200);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  border-color: var(--gris-300);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card__image {
  position: relative;
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  background: var(--gris-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  overflow: hidden;
}

.card__image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.card:hover .card__image img {
  transform: none;
}

.card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
  min-width: 0;
}

.card__category {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jaune-dark);
}

.card__title {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--noir);
}

.card__title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.card__title a:hover {
  color: var(--jaune-dark);
}

.card__specs {
  display: none;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  font-size: 0.8125rem;
  color: var(--gris-500);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: none;
}

.card__price {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--noir);
  line-height: 1;
}

.card__price-ht {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--gris-500);
  margin-left: 2px;
}

.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-9) var(--space-5);
  color: var(--gris-500);
}

.products-empty svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  color: var(--gris-300);
}

.products-empty__title {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--noir);
  margin-bottom: var(--space-2);
}

.card[data-filtered="false"] {
  display: none;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    flex-direction: column;
  }

  .card__image {
    width: auto;
    aspect-ratio: 3 / 3;
  }

  .card:hover .card__image img {
    transform: scale(1.05);
  }

  .card__body {
    padding: var(--space-4);
    gap: var(--space-2);
  }

  .card__title {
    font-size: 1rem;
  }

  .card__specs {
    display: flex;
  }

  .card__footer {
    border-top: 1px solid var(--gris-100);
    padding-top: var(--space-3);
  }

  .filters__toggle {
    display: none;
  }

  .filters__groups {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-4);
    padding: 0;
  }

  .filters__inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
  }

  .filters__group {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .filters__divider {
    display: block;
  }

  .filters__select {
    width: auto;
  }
}

@media (min-width: 768px) {
  .boutique-hero {
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-8);
  }

  .boutique-hero__title {
    font-size: 2rem;
  }

  .boutique-hero__desc {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .boutique-hero__title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card__image{position:relative}
.card__promo{
  position:absolute; top:10px; left:10px; z-index:2;
  background:#0A0A0A; color:#FFD51F; font-weight:800; font-size:13px;
  padding:4px 10px; border-radius:999px; letter-spacing:.02em;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}
.card__price-old{
  color:var(--gris-400,#9a9a9a); text-decoration:line-through;
  font-weight:600; font-size:.62em; margin-right:4px;
}

/* Prix remises + badge promo sur mobile (cartes horizontales, image 120px) */
@media (max-width: 639px) {
  .card__promo{
    top:6px; left:6px; font-size:11px; padding:3px 8px;
  }
  .card__footer{
    flex-wrap:wrap; row-gap:var(--space-2);
  }
  .card__footer .btn{
    flex:1 1 100%;
  }
  .card__price{
    font-size:1rem;
  }
  .card__price-old{
    font-size:.6em; margin-right:3px;
  }
}
