/* ============================================
   PAGE COLLECTION — conversion oriented
   ============================================ */

/* HERO */
.coll-hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--pink-50) 100%);
  padding: 56px var(--gutter) 48px;
  text-align: center;
}
.coll-hero__inner {
  max-width: 880px;
  margin: 0 auto;
}
.coll-hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink-500);
  margin: 0 0 8px;
}
.coll-hero__title {
  font-size: clamp(26px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}
.coll-hero__title em {
  font-family: 'Caveat', var(--font-body), cursive;
  font-style: normal;
  color: var(--pink-500);
  font-weight: 600;
  font-size: 1.05em;
}
.coll-hero__sub {
  font-size: 16px;
  color: var(--ink-700);
  line-height: 1.55;
  margin: 0 auto 18px;
  max-width: 640px;
}

/* Mobile compact : titre plus petit, padding réduit, USPs sur 1 ligne */
@media (max-width: 720px) {
  .coll-hero { padding: 24px var(--gutter) 20px; }
  .coll-hero__title { font-size: clamp(22px, 6vw, 30px) !important; margin-bottom: 10px; }
  .coll-hero__sub { font-size: 13px; line-height: 1.45; margin-bottom: 14px; max-width: 100%; }
  .coll-hero__eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 6px; }
  .coll-hero__usp {
    display: flex !important;
    gap: 10px 14px !important;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
  }
  .coll-hero__usp > span { gap: 4px !important; }
  .coll-hero__usp svg { width: 12px !important; height: 12px !important; }
}
@media (max-width: 380px) {
  .coll-hero__title { font-size: 20px !important; }
  .coll-hero__usp { gap: 6px 10px !important; font-size: 10.5px; }
}
.coll-hero__usp {
  display: inline-flex; gap: 18px 28px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}
.coll-hero__usp > span { display: inline-flex; align-items: center; gap: 8px; }
.coll-hero__usp svg { color: var(--pink-500); flex-shrink: 0; }

/* TOOLBAR (filtres + tri sticky) */
.coll-toolbar {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-100);
  padding: 14px var(--gutter);
}
.coll-toolbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  align-items: center;
  gap: 24px;
}
.coll-toolbar__count {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 600;
  white-space: nowrap;
}
.coll-toolbar__count strong { color: var(--ink-900); font-size: 16px; }

.coll-toolbar__group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.coll-toolbar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-500);
  white-space: nowrap;
  flex-shrink: 0;
}
.coll-toolbar__pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.coll-pill {
  padding: 8px 16px;
  border: 1.5px solid var(--ink-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 180ms ease, box-shadow 200ms ease;
  white-space: nowrap;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.coll-pill:hover {
  border-color: var(--pink-300);
  color: var(--pink-500);
  transform: translateY(-1px);
}
.coll-pill.is-active {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
  box-shadow: 0 4px 12px rgba(26,19,32,.18);
}
.coll-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  color: inherit;
  opacity: 1;
}
.coll-pill.is-active .coll-pill__count {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.coll-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.coll-toolbar__sort select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--ink-100);
  border-radius: 999px;
  padding: 8px 36px 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink-900);
  cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%231A1320' stroke-width='1.5' d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.coll-toolbar__sort select:focus { outline: none; border-color: var(--pink-300); }

/* Mobile : empile, pills horizontales scrollables, plus compact */
@media (max-width: 900px) {
  .coll-toolbar { padding: 10px var(--gutter); top: 56px; }
  .coll-toolbar__inner {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .coll-toolbar__count { grid-column: 1; grid-row: 1; font-size: 12px; }
  .coll-toolbar__count strong { font-size: 14px; }
  .coll-toolbar__sort { grid-column: 2; grid-row: 1; }
  .coll-toolbar__sort select { padding: 6px 30px 6px 12px; font-size: 12px; }
  .coll-toolbar__group {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .coll-toolbar__label { font-size: 10px; letter-spacing: .08em; }
  .coll-toolbar__pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 0 calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .coll-toolbar__pills::-webkit-scrollbar { display: none; }
  .coll-pill { flex-shrink: 0; padding: 6px 12px; font-size: 12px; }
  .coll-pill__count { min-width: 18px; height: 16px; font-size: 10px; padding: 0 5px; margin-left: 3px; }
  .coll-grid { padding: 16px var(--gutter) 40px; gap: 14px; }
}

/* GRID */
.coll-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* CARD — conversion-optimized */
.pcard {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
  border: 1px solid transparent;
}
.pcard.is-hidden { display: none !important; }
.coll-empty { display: none; }
.coll-empty.is-shown { display: block; }
.coll-grid.is-empty { display: none; }
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-100);
}

.pcard__media {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--bg-soft);
}
.pcard__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 400ms ease, transform 700ms ease;
}
.pcard__img--alt {
  opacity: 0;
}
.pcard:hover .pcard__img--main { opacity: 0; }
.pcard:hover .pcard__img--alt  { opacity: 1; transform: scale(1.04); }
.pcard:hover .pcard__img--main:only-child { opacity: 1; transform: scale(1.04); }

/* Badges (top-left) */
.pcard__badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.pcard__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pcard__badge--new      { background: var(--pink-500); color: #fff; }
.pcard__badge--sale     { background: var(--yellow); color: var(--ink-900); }
.pcard__badge--best     { background: var(--ink-900); color: #fff; }
.pcard__badge--free     { background: var(--orange); color: #fff; }
.pcard__badge--kids     { background: #8B5CF6; color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.pcard__badge--kids::before {
  content: '';
  width: 10px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M5 21a7 7 0 0 1 14 0'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M5 21a7 7 0 0 1 14 0'/></svg>") center/contain no-repeat;
}

/* Stock pill (top-right) */
.pcard__stock {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(255,255,255,.95);
  color: #15803D;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.pcard__stock::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #15803D;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Quick add button (revealed on hover, bottom of media) */
.pcard__quick {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  background: var(--ink-900);
  color: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-fast);
  z-index: 3;
}
.pcard__quick:hover { background: var(--pink-500); color: #fff; }
.pcard:hover .pcard__quick { opacity: 1; transform: translateY(0); }
@media (hover: none) {
  .pcard__quick { opacity: 1; transform: none; }
}

/* Body */
.pcard__body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.pcard__textures {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.pcard__texture {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink-500);
  background: var(--pink-50);
  padding: 3px 8px;
  border-radius: 999px;
}
.pcard__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__sub {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 2px;
}
.pcard__rating .stars { color: var(--pink-500); letter-spacing: 1px; font-size: 14px; }
.pcard__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.pcard__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
}
.pcard__compare {
  font-size: 14px;
  color: var(--ink-300);
  text-decoration: line-through;
  font-weight: 500;
}
.pcard__savings {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-500);
  background: var(--pink-50);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .04em;
}

/* Trust signals avant footer */
.coll-trust {
  background: var(--cream);
  padding: 56px var(--gutter);
}
.coll-trust__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.coll-trust__item {
  text-align: center;
  padding: 20px;
}
.coll-trust__icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.coll-trust__icon svg { width: 28px; height: 28px; }
.coll-trust__item h4 { margin: 4px 0 6px; font-size: 15px; font-weight: 700; }
.coll-trust__item p { margin: 0; color: var(--ink-500); font-size: 13px; line-height: 1.5; }

/* Empty state */
.coll-empty {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
  padding: 0 var(--gutter);
}
.coll-empty__icon {
  font-size: 56px;
  margin-bottom: 16px;
}
.coll-empty h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}
.coll-empty p {
  color: var(--ink-500);
  font-size: 15px;
  margin: 0 0 20px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .coll-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 840px) {
  .coll-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 24px var(--gutter) 56px; }
  .pcard__body { padding: 14px 14px 18px; }
  .pcard__title { font-size: 14px; }
  .pcard__sub { display: none; }
  .pcard__price { font-size: 16px; }
  .coll-trust__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .coll-toolbar { top: 60px; padding: 10px var(--gutter); }
  .coll-toolbar__inner { gap: 10px; }
}
@media (max-width: 480px) {
  .coll-grid { grid-template-columns: 1fr; }
  .coll-trust__grid { grid-template-columns: 1fr; }
}
