/* =============================================
   SHOP HERO
   ============================================= */
.shop-hero {
  padding: 100px 64px 60px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.shop-hero::after {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,132,154,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.shop-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 300; margin: 14px 0 12px;
}

.shop-hero-sub {
  font-size: 15px; color: var(--ink-soft); font-weight: 300;
}

/* =============================================
   FILTRES
   ============================================= */
.filters {
  display: flex; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  padding: 40px 64px 56px;
  background: var(--white);
}

.filter-btn {
  padding: 10px 24px; border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--white); color: var(--ink-soft);
  font-family: var(--sans); font-size: 13px; font-weight: 300;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover { border-color: var(--ink); color: var(--ink); }

.filter-btn.is-active {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
}

/* =============================================
   GRILLE PRODUITS
   ============================================= */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
  padding: 0 64px 120px;
  background: var(--white);
}

.grid-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 100px 20px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* =============================================
   CARTE PRODUIT
   ============================================= */
.product-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--t) var(--ease), box-shadow var(--t);
  display: flex; flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

/* Image */
.prod-img {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: var(--rose-pale);
}

.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
  display: block;
}

.product-card:hover .prod-img img { transform: scale(1.04); }

.prod-img-ph {
  text-align: center; color: rgba(212,132,154,0.35);
  font-family: var(--serif); font-size: 22px; font-style: italic;
  user-select: none; position: relative; z-index: 1;
}

/* Badge rupture */
.badge-out {
  position: absolute; top: 14px; left: 14px;
  background: rgba(20,20,20,0.7); color: #fff;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; z-index: 2;
}

/* Corps */
.prod-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 16px;
  flex: 1;
}

.prod-title {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
}

.prod-price {
  font-size: 16px; font-weight: 400;
  color: var(--rose);
}

/* Select taille */
.prod-size {
  width: 100%; padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--sans); font-size: 13px;
  color: var(--ink); background: #fafafa;
  outline: none; cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: 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='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.prod-size:focus { border-color: var(--rose); }

/* Quantité */
.qty-row {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; width: fit-content;
}

.qty-row button {
  width: 36px; height: 36px;
  background: none; border: none;
  font-size: 18px; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.qty-row button:hover { background: var(--rose-pale); color: var(--ink); }

.qty-row .qty-num {
  min-width: 36px; text-align: center;
  font-size: 14px; font-weight: 500;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 36px; display: flex; align-items: center; justify-content: center;
}

/* Bouton ajouter */
.btn-cart {
  margin-top: auto;
  padding: 12px 20px;
  border-radius: 12px; border: none;
  background: var(--ink); color: #fff;
  font-family: var(--sans); font-size: 13px;
  font-weight: 400; letter-spacing: 0.5px;
  transition: background var(--t), transform var(--t);
  width: 100%;
}

.btn-cart:hover:not(:disabled) { background: #2a2a2a; transform: scale(1.01); }
.btn-cart:disabled { background: #ccc; cursor: not-allowed; }

/* =============================================
   RESPONSIVE SHOP
   ============================================= */
@media (max-width: 1024px) {
  .shop-hero { padding: 80px 32px 48px; }
  .filters { padding: 32px 32px 44px; }
  .shop-grid { padding: 0 32px 80px; gap: 20px; }
}

@media (max-width: 768px) {
  .shop-hero { padding: 60px 20px 40px; }
  .filters { padding: 24px 20px 36px; justify-content: flex-start; }
  .shop-grid { padding: 0 16px 60px; gap: 14px; grid-template-columns: repeat(2, 1fr); }
  .prod-img { aspect-ratio: 3/4; }
  .prod-body { padding: 14px 16px 18px; gap: 12px; }
}

/* ── LAZY LOADING ── */
img.lazy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(90deg, #fdf0f3 25%, #fae4ea 50%, #fdf0f3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  opacity: 1;
  transition: none;
}

img.lazy-img.loaded {
  animation: none;
  background: none;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}