/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #f1f5f9; color: #0f172a; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TITRES — Barlow Semi Condensed ===== */
.section-title, .catalog-title, .page-title, .auth-title,
.product-detail-name, .reviews-title, .dashboard-name,
.collection-section-title, .summary-title {
  font-family: 'Barlow Semi Condensed', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

/* ===== BARRE PROMO ===== */
.promo-bar {
  background: linear-gradient(90deg, #1565c0 0%, #0d47a1 100%);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ===== HEADER DESKTOP ===== */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  border-bottom: 1px solid #e2e8f0;
}
.header-mobile { display: none; }

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 76px;
  max-width: 1500px;
  margin: 0 auto;
  gap: 16px;
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-badge {
  background: linear-gradient(135deg, #1565c0 0%, #1e88e5 50%, #1565c0 100%);
  border: 3px solid #ffffff;
  border-radius: 50%;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(21,101,192,0.35);
  transition: transform 0.2s;
}
.logo-badge:hover { transform: scale(1.06) rotate(-3deg); }
.logo-badge.small { width: 56px; height: 56px; }
.logo-inner { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; }
.logo-top  { font-size: 7px; font-weight: 700; color: #ffffff; text-transform: uppercase; }
.logo-icon { font-size: 18px; margin: 1px 0; }
.logo-bottom { font-size: 8px; font-weight: 700; color: #ffffff; text-transform: uppercase; letter-spacing: 0.5px; }
.logo-badge.small .logo-top, .logo-badge.small .logo-bottom { font-size: 6px; }
.logo-badge.small .logo-icon { font-size: 14px; }

/* Nav center */
.nav-center {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center; flex-wrap: wrap;
}
.nav-link {
  padding: 7px 11px;
  font-size: 13px; font-weight: 600;
  color: #334155;
  border-radius: 7px;
  position: relative;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover { background: #f0f7ff; color: #1565c0; }
.nav-link .arrow { font-size: 10px; margin-left: 2px; }
.nav-link.coupe-monde { color: #dc2626; font-weight: 700; }
.nav-link.coupe-monde:hover { background: #fef2f2; color: #b91c1c; }

/* Dropdown */
.nav-link.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px); left: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
  border: 1px solid #e2e8f0;
  padding: 10px 0;
  min-width: 180px;
  z-index: 200;
}
.dropdown.wide { display: none; min-width: 360px; flex-direction: row; gap: 0; padding: 12px; }
.nav-link.has-dropdown:hover .dropdown { display: block; }
.nav-link.has-dropdown:hover .dropdown.wide { display: flex; }
.dropdown-col { flex: 1; padding: 0 8px; }
.dropdown-title { display: block; font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px 8px; }
.dropdown a {
  display: block; padding: 8px 14px; font-size: 13px; color: #334155;
  border-radius: 6px; transition: background 0.1s, color 0.1s;
}
.dropdown a:hover { background: #f0f7ff; color: #1565c0; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #334155; transition: background 0.15s, color 0.15s; position: relative;
}
.icon-btn:hover { background: #f0f7ff; color: #1565c0; }
.cart-count {
  position: absolute; top: 1px; right: 1px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  box-shadow: 0 2px 6px rgba(220,38,38,0.4);
}

/* Search bar */
.search-bar-wrapper {
  display: none; padding: 8px 24px;
  background: #f8fafc; align-items: center; gap: 8px;
  border-top: 1px solid #e2e8f0;
}
.search-bar-wrapper.active { display: flex; }
.search-input {
  width: 100%; padding: 10px 16px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 15px; background: #fff; outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: border-color 0.15s;
}
.search-input:focus { border-color: #1565c0; }
.search-close { font-size: 18px; color: #64748b; padding: 4px 8px; }

/* ===== HEADER MOBILE ===== */
@media (max-width: 960px) {
  .header { display: none; }
  .header-mobile {
    display: block; background: #fff;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.09);
    border-bottom: 1px solid #e2e8f0;
  }
  .mobile-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px;
    min-height: 60px;
  }
  .mobile-top > * { flex-shrink: 0; }
  .logo-mobile { flex: 1; display: flex; justify-content: center; }
  .logo-mobile { display: flex; align-items: center; }
  .mobile-search {
    display: flex; align-items: center; gap: 8px;
    margin: 0 16px 10px; background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px; padding: 9px 12px;
  }
  .search-input-mobile { border: none; outline: none; font-size: 14px; flex: 1; background: transparent; color: #334155; }
}

/* ===== MENU MOBILE ===== */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,0.5); z-index: 299;
  backdrop-filter: blur(2px);
}
.mobile-overlay.active { display: block; }
.mobile-menu {
  position: fixed; top: 0; left: -300px; width: 300px; height: 100vh;
  background: #fff; z-index: 300; transition: left 0.3s cubic-bezier(.4,0,.2,1);
  padding: 20px 0; overflow-y: auto;
  box-shadow: 4px 0 30px rgba(0,0,0,0.18);
}
.mobile-menu.open { left: 0; }
.mobile-close { font-size: 22px; padding: 4px 16px 16px; color: #64748b; display: block; }
.mobile-menu ul > li > a,
.mobile-acc-btn {
  display: block; width: 100%; text-align: left;
  padding: 13px 20px; font-size: 14px; font-weight: 600;
  color: #1e293b; border-bottom: 1px solid #f1f5f9; background: none;
}
.mobile-menu ul > li > a:hover,
.mobile-acc-btn:hover { background: #f0f7ff; color: #1565c0; }
.mobile-acc-btn { display: flex; justify-content: space-between; align-items: center; }
.mobile-acc-list { display: none; background: #f8fafc; }
.mobile-acc-list.open { display: block; }
.mobile-acc-list li a {
  padding: 10px 32px; font-size: 13px; color: #475569;
  display: block; border-bottom: 1px solid #f1f5f9;
}
.mobile-acc-list li a:hover { color: #1565c0; }

/* ===== MAIN ===== */
.main { max-width: 1500px; margin: 0 auto; padding: 24px 20px 48px; }

/* ===== SECTION ACCUEIL ===== */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 10px;
}
.section-title { font-size: 26px; font-weight: 700; color: #0f172a; }

/* Filter select */
.filter-select {
  appearance: none; background: #1565c0; color: #fff;
  border: none; border-radius: 8px; padding: 8px 30px 8px 14px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; outline: none;
  box-shadow: 0 2px 8px rgba(21,101,192,0.25);
  transition: background-color 0.15s, box-shadow 0.15s;
}
.filter-select:hover { background-color: #1d4ed8; box-shadow: 0 4px 12px rgba(21,101,192,0.35); }

/* ===== GRILLE PRODUITS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
@media (max-width: 1300px) { .products-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 800px)  { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ===== ANIMATION FADE-IN CARTES ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card { animation: fadeInUp 0.45s ease both; }
.products-grid .product-card:nth-child(1)  { animation-delay: 0.00s; }
.products-grid .product-card:nth-child(2)  { animation-delay: 0.05s; }
.products-grid .product-card:nth-child(3)  { animation-delay: 0.10s; }
.products-grid .product-card:nth-child(4)  { animation-delay: 0.14s; }
.products-grid .product-card:nth-child(5)  { animation-delay: 0.18s; }
.products-grid .product-card:nth-child(6)  { animation-delay: 0.22s; }
.products-grid .product-card:nth-child(7)  { animation-delay: 0.26s; }
.products-grid .product-card:nth-child(8)  { animation-delay: 0.30s; }
.products-grid .product-card:nth-child(9)  { animation-delay: 0.33s; }
.products-grid .product-card:nth-child(10) { animation-delay: 0.36s; }
.products-grid .product-card:nth-child(11) { animation-delay: 0.39s; }
.products-grid .product-card:nth-child(12) { animation-delay: 0.42s; }

/* ===== CARTE PRODUIT ===== */
.product-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
  transform: translateY(-4px);
  border-color: #bfdbfe;
}
.product-link { display: flex; flex-direction: column; flex: 1; }

.product-img-wrap {
  position: relative; background: #f1f5f9;
  aspect-ratio: 1; overflow: hidden;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

/* Badges */
.badge-new, .badge-promo {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-new { background: #2563eb; color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,0.35); }
.badge-promo { background: #dc2626; color: #fff; box-shadow: 0 2px 8px rgba(220,38,38,0.35); }

.product-info { padding: 10px 10px 6px; flex: 1; }
.product-name {
  font-size: 12px; color: #475569; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.product-price { display: flex; align-items: baseline; gap: 4px; }
.price-label { font-size: 11px; color: #94a3b8; }
.price { font-size: 15px; font-weight: 800; color: #0f172a; }

.btn-cart-add {
  width: 100%; padding: 9px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1565c0 100%);
  color: #fff;
  font-size: 12px; font-weight: 700; border-radius: 0 0 11px 11px;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, background 0.15s, box-shadow 0.15s;
}
.product-card:hover .btn-cart-add { opacity: 1; transform: translateY(0); }
.btn-cart-add:hover {
  background: linear-gradient(135deg, #1e40af 0%, #0d47a1 100%);
  box-shadow: 0 4px 15px rgba(21,101,192,0.4);
}
@media (max-width: 700px) { .btn-cart-add { opacity: 1; transform: none; font-size: 11px; padding: 8px; } }

/* ===== BOUTON CHARGER PLUS ===== */
.load-more-wrap { text-align: center; margin-top: 36px; }
.btn-load-more {
  background: #fff; color: #1565c0; border: 2px solid #1565c0;
  border-radius: 10px; padding: 12px 40px; font-size: 14px; font-weight: 700;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  display: inline-block; cursor: pointer;
  box-shadow: 0 2px 8px rgba(21,101,192,0.12);
}
.btn-load-more:hover { background: #1565c0; color: #fff; box-shadow: 0 4px 16px rgba(21,101,192,0.3); }
.btn-load-more:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ===== TOAST PANIER ===== */
.cart-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #0f172a; color: #fff;
  padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600; z-index: 999;
  opacity: 0; transition: all 0.3s cubic-bezier(.4,0,.2,1);
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== LAYOUT CATALOGUE (avec sidebar) ===== */
.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 768px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
}

/* Sidebar filtres */
.filter-sidebar {
  background: #fff; border-radius: 12px;
  border: 1px solid #e2e8f0; padding: 18px;
  position: sticky; top: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.filter-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: #0f172a; }
.filter-group { border-bottom: 1px solid #f1f5f9; margin-bottom: 2px; }
.filter-group-btn {
  width: 100%; text-align: left; padding: 10px 0;
  font-size: 13px; font-weight: 600; color: #334155;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer;
}
.filter-group-body { display: none; padding-bottom: 10px; }
.filter-group-body.open { display: block; }
.filter-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #475569; padding: 4px 0; cursor: pointer;
}
.filter-check input { cursor: pointer; accent-color: #1565c0; }

.price-range { padding: 6px 0; }
.range-input { width: 100%; accent-color: #1565c0; }
.price-range-labels { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; margin-top: 4px; }

.btn-reset-filters {
  margin-top: 14px; width: 100%; padding: 9px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b;
  cursor: pointer; transition: background 0.15s;
}
.btn-reset-filters:hover { background: #e2e8f0; color: #334155; }

/* Contenu catalogue */
.catalog-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.catalog-title { font-size: 22px; font-weight: 700; line-height: 1.3; color: #0f172a; }
.catalog-count { font-size: 13px; color: #64748b; margin-top: 4px; }
.catalog-desc { font-size: 13px; color: #64748b; line-height: 1.6; margin-top: 8px; max-width: 600px; }
.catalog-sort { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.catalog-sort label { font-size: 13px; color: #64748b; white-space: nowrap; }
.catalog-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== PAGE TITRE / BREADCRUMB ===== */
.page-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.breadcrumb { font-size: 13px; color: #94a3b8; margin-bottom: 28px; }
.breadcrumb a { color: #1565c0; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== COLLECTIONS ===== */
.collection-section { margin-bottom: 40px; }
.collection-section-title {
  font-size: 20px; font-weight: 700;
  border-left: 4px solid #1565c0;
  padding-left: 12px; margin-bottom: 16px; color: #0f172a;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 1200px) { .collection-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px)  { .collection-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .collection-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
@media (max-width: 420px)  { .collection-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } }

.collection-card {
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 10px; padding: 13px 8px;
  text-align: center; font-size: 13px; font-weight: 600;
  color: #334155;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  display: block;
}
.collection-card:hover {
  background: #1565c0; color: #fff;
  border-color: #1565c0; transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(21,101,192,0.28);
}

/* ===== FOOTER ===== */
/* Trust strip */
.footer-trust {
  background: #1a2332;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-trust-inner {
  max-width: 1500px; margin: 0 auto;
  display: flex; justify-content: center;
  gap: 40px; flex-wrap: wrap;
  padding: 20px 32px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #94a3b8; font-weight: 500;
}
.trust-item span { font-size: 18px; }

.footer { background: #1e2530; color: #ccc; margin-top: 60px; }
.footer-inner {
  max-width: 1500px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; padding: 44px 32px;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-col h4 {
  font-size: 12px; font-weight: 800; color: #fff;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a, .footer-col p { font-size: 13px; color: #94a3b8; }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li strong, .footer-col p strong { color: #e2e8f0; }
.f-icon { margin-right: 6px; font-size: 12px; }

.social-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.social-links a {
  font-size: 12px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px; border-radius: 8px; color: #94a3b8;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.social-links a:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 16px 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  max-width: 1500px; margin: 0 auto;
}
.footer-bottom p { font-size: 12px; color: #475569; }
.payment-icons { display: flex; gap: 6px; }
.pay-badge {
  background: rgba(255,255,255,0.08); color: #94a3b8;
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.12);
  letter-spacing: 0.02em;
}

/* ===== PAGE PANIER ===== */
.cart-empty {
  text-align: center; padding: 80px 20px;
}
.cart-empty-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.cart-empty p { font-size: 15px; color: #64748b; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px; align-items: start;
}
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 12px;
  border: 1px solid #e2e8f0; padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cart-item-img { width: 70px; height: 70px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #f1f5f9; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #0f172a; }
.cart-item-price { font-size: 13px; color: #64748b; }
.cart-item-qty { display: flex; align-items: center; gap: 0; border: 2px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.cart-item-total { font-size: 16px; font-weight: 800; min-width: 60px; text-align: right; color: #0f172a; }
.cart-item-remove {
  width: 28px; height: 28px; border-radius: 6px;
  background: #f8fafc; color: #94a3b8; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s; flex-shrink: 0;
}
.cart-item-remove:hover { background: #fee2e2; color: #dc2626; }

.cart-summary {
  background: #fff; border-radius: 12px;
  border: 1px solid #e2e8f0; padding: 22px;
  position: sticky; top: 100px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.summary-title { font-size: 19px; font-weight: 700; margin-bottom: 16px; color: #0f172a; }
.summary-promo { display: flex; gap: 8px; margin-bottom: 6px; }
.promo-input {
  flex: 1; padding: 9px 12px; border: 2px solid #e2e8f0;
  border-radius: 8px; font-size: 13px; outline: none;
  transition: border-color 0.15s;
}
.promo-input:focus { border-color: #1565c0; }
.btn-promo {
  background: #1565c0; color: #fff; border-radius: 8px;
  padding: 9px 14px; font-size: 13px; font-weight: 700;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-promo:hover { background: #1d4ed8; box-shadow: 0 4px 12px rgba(21,101,192,0.3); }
.promo-msg { font-size: 13px; margin-bottom: 14px; min-height: 18px; }

.summary-lines { border-top: 1px solid #f1f5f9; padding-top: 14px; margin-bottom: 16px; }
.summary-line {
  display: flex; justify-content: space-between;
  font-size: 14px; padding: 5px 0; color: #475569;
}
.total-line { font-size: 18px; font-weight: 800; color: #0f172a; border-top: 2px solid #0f172a; margin-top: 8px; padding-top: 12px; }

.btn-checkout {
  display: block; width: 100%; padding: 15px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1565c0 100%);
  color: #fff; text-align: center;
  border-radius: 10px; font-size: 16px; font-weight: 700;
  transition: all 0.2s ease; margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(21,101,192,0.35);
}
.btn-checkout:hover {
  background: linear-gradient(135deg, #1e40af 0%, #0d47a1 100%);
  box-shadow: 0 6px 20px rgba(21,101,192,0.5);
  transform: translateY(-1px);
}
.btn-continue {
  display: block; text-align: center; font-size: 13px;
  color: #1565c0; padding: 6px; margin-bottom: 16px; font-weight: 500;
}
.btn-continue:hover { text-decoration: underline; }
.summary-secure { text-align: center; font-size: 12px; color: #94a3b8; }
.summary-secure .payment-icons { justify-content: center; }

/* ===== PAGE COMPTE ===== */
.auth-wrapper {
  display: flex; justify-content: center;
  padding: 20px 0 40px;
}
.auth-card {
  background: #fff; border-radius: 14px;
  border: 1px solid #e2e8f0; padding: 36px 32px;
  width: 100%; max-width: 440px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);
}
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; color: #0f172a; }
.auth-subtitle { font-size: 14px; color: #64748b; margin-bottom: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 14px; font-weight: 600; color: #334155; }
.form-input {
  padding: 11px 14px; border: 2px solid #e2e8f0;
  border-radius: 9px; font-size: 14px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s; font-family: inherit;
}
.form-input:focus { border-color: #1565c0; box-shadow: 0 0 0 3px rgba(21,101,192,0.1); }
.input-with-toggle { position: relative; }
.input-with-toggle .form-input { width: 100%; padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 16px; background: none; border: none; cursor: pointer; color: #94a3b8;
}
.form-row-between { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #475569; cursor: pointer; }
.form-check input { margin-top: 2px; accent-color: #1565c0; flex-shrink: 0; }
.form-link { color: #1565c0; font-size: 13px; background: none; border: none; cursor: pointer; font-family: inherit; font-weight: 500; }
.form-link:hover { text-decoration: underline; }

.btn-auth {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1565c0 100%);
  color: #fff; border-radius: 9px; font-size: 15px; font-weight: 700;
  transition: all 0.2s ease; border: none; cursor: pointer; margin-top: 4px;
  box-shadow: 0 4px 15px rgba(21,101,192,0.3);
}
.btn-auth:hover {
  background: linear-gradient(135deg, #1e40af 0%, #0d47a1 100%);
  box-shadow: 0 6px 20px rgba(21,101,192,0.45);
  transform: translateY(-1px);
}
.auth-divider {
  text-align: center; margin: 20px 0; position: relative;
  color: #cbd5e1; font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: #e2e8f0;
}
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-switch { text-align: center; font-size: 14px; color: #64748b; }

/* Tableau de bord */
.account-dashboard { max-width: 900px; margin: 0 auto; }
.dashboard-header {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1565c0 100%);
  border-radius: 14px; padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 6px 24px rgba(21,101,192,0.3);
  color: #fff;
}
.dashboard-avatar { font-size: 48px; }
.dashboard-name { font-size: 22px; font-weight: 700; color: #fff; }
.dashboard-email { font-size: 13px; color: rgba(255,255,255,0.75); }
.btn-logout {
  margin-left: auto; background: rgba(255,255,255,0.15);
  color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600;
  transition: background 0.15s;
}
.btn-logout:hover { background: rgba(255,255,255,0.25); }
.dashboard-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 700px) { .dashboard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 450px) { .dashboard-grid { grid-template-columns: 1fr; } }
.dashboard-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 22px 18px; transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s; display: block;
}
.dashboard-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: #bfdbfe;
}
.dash-icon { font-size: 32px; margin-bottom: 12px; }
.dashboard-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #0f172a; }
.dashboard-card p { font-size: 13px; color: #64748b; }

/* ===== PAGE PRODUIT DÉTAIL ===== */
.product-page { max-width: 1200px; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
  min-width: 0;
}
.product-detail > * { min-width: 0; }
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 0; }
}

/* Galerie */
.gallery-thumbs-scroll {
  display: flex; gap: 7px; overflow-x: auto;
  padding-bottom: 6px; margin-bottom: 10px;
  scrollbar-width: none;
}
.gallery-thumbs-scroll::-webkit-scrollbar { display: none; }
.gallery-main {
  border-radius: 14px; overflow: hidden;
  background: #f1f5f9; aspect-ratio: 1;
  position: relative; max-height: 460px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
@media (max-width: 600px) {
  .gallery-main { border-radius: 10px; max-height: 320px; }
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-badges {
  position: absolute; bottom: 12px; left: 12px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.gallery-badge {
  padding: 6px 12px; border-radius: 8px;
  font-size: 11px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.gallery-badge.green { background: rgba(220,252,231,0.92); color: #15803d; border: 1px solid #86efac; }
.gallery-badge.orange { background: rgba(255,237,213,0.92); color: #c2410c; border: 1px solid #fdba74; }
.gallery-thumb {
  width: 58px; height: 58px; border-radius: 8px; flex-shrink: 0;
  object-fit: cover; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.15s, transform 0.15s;
}
@media (max-width: 600px) { .gallery-thumb { width: 52px; height: 52px; } }
.gallery-thumb:hover { border-color: #93c5fd; transform: scale(1.05); }
.gallery-thumb.active { border-color: #1565c0; box-shadow: 0 2px 8px rgba(21,101,192,0.25); }

/* Infos détail */
.product-detail-info { padding: 4px 0; }
@media (max-width: 768px) { .product-detail-info { padding: 18px 0 0; } }

.product-detail-name {
  font-size: 22px; font-weight: 700; line-height: 1.35;
  margin-bottom: 12px; color: #0f172a;
}
@media (max-width: 768px) { .product-detail-name { font-size: 18px; } }

.product-detail-price {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap;
}
.price-big { font-size: 32px; font-weight: 800; color: #0f172a; }
.price-old { font-size: 16px; color: #94a3b8; text-decoration: line-through; }
.badge-promo-detail {
  background: #dc2626; color: #fff;
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px;
  letter-spacing: 0.02em;
}

/* Stock & livraison */
.product-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}
.meta-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
}
.meta-badge.stock { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.meta-badge.delivery { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.meta-badge.returns { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }

.product-detail-promo {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d;
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: #92400e; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}

/* Options */
.option-group { margin-bottom: 20px; }
.option-label {
  display: block; font-size: 13px; font-weight: 700;
  margin-bottom: 10px; color: #334155; text-transform: uppercase; letter-spacing: 0.04em;
}
.size-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; width: 100%; }
.size-btn {
  padding: 9px 14px; border: 2px solid #e2e8f0;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  background: #fff; color: #475569; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
[data-style] { white-space: normal; flex: 1; text-align: center; min-width: 130px; }
.size-btn:hover { border-color: #93c5fd; color: #1565c0; background: #eff6ff; }
.size-btn.selected {
  background: #1565c0; border-color: #1565c0;
  color: #fff; font-weight: 700;
  box-shadow: 0 3px 10px rgba(21,101,192,0.35);
}
.size-guide-link { font-size: 12px; color: #1565c0; display: inline-block; margin-top: 4px; font-weight: 500; }
.size-guide-link:hover { text-decoration: underline; }

/* Nom & numéro */
.num-counter {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: #94a3b8;
}

/* Patches */
.patch-list { display: flex; flex-direction: column; gap: 10px; }
.patch-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border: 2px solid #e2e8f0;
  border-radius: 10px; cursor: pointer; font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
  background: #fff;
}
.patch-item:hover { border-color: #93c5fd; background: #f0f7ff; }
.patch-item input { accent-color: #1565c0; width: 16px; height: 16px; flex-shrink: 0; }
.patch-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* Boutons achat */
.buy-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.btn-add-main {
  width: 100%; padding: 16px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1565c0 100%);
  color: #fff;
  border-radius: 12px; font-size: 17px; font-weight: 800;
  border: none; cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(21,101,192,0.35);
  letter-spacing: 0.01em;
}
.btn-add-main:hover {
  background: linear-gradient(135deg, #1e40af 0%, #0d47a1 100%);
  box-shadow: 0 8px 28px rgba(21,101,192,0.5);
  transform: translateY(-2px);
}
.btn-buy-now {
  width: 100%; padding: 15px;
  background: #fff; color: #0f172a;
  border: 2px solid #e2e8f0; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: all 0.15s ease;
}
.btn-buy-now:hover { background: #f8fafc; border-color: #93c5fd; color: #1565c0; }

/* Accordion description */
.accordion-section {
  border: 1px solid #e2e8f0; border-radius: 12px;
  overflow: hidden; margin-bottom: 16px; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.accordion-btn {
  width: 100%; text-align: left; padding: 16px 20px;
  font-size: 15px; font-weight: 700; background: #fff;
  border: none; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  border-bottom: 1px solid transparent; transition: background 0.15s;
  color: #0f172a;
}
.accordion-btn:hover { background: #f8fafc; }
.acc-arrow { font-size: 14px; color: #94a3b8; }
.accordion-body { padding: 18px 20px; background: #fafbfd; border-top: 1px solid #e2e8f0; }
.desc-block {
  background: #fff; border-radius: 10px; padding: 14px 16px;
  margin-bottom: 12px; border: 1px solid #f1f5f9;
}
.desc-block:last-child { margin-bottom: 0; }
.desc-block h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.desc-block p { font-size: 13px; color: #475569; margin-bottom: 6px; line-height: 1.6; }
.desc-block p:last-child { margin-bottom: 0; }

/* Qty (panier page) */
.qty-btn {
  width: 36px; height: 40px; font-size: 18px; font-weight: 600;
  background: #f8fafc; color: #334155; transition: background 0.15s;
  border: none; cursor: pointer;
}
.qty-btn:hover { background: #e2e8f0; }
.qty-val {
  width: 40px; text-align: center; font-size: 15px; font-weight: 700;
  border-left: 2px solid #e2e8f0; border-right: 2px solid #e2e8f0;
  height: 40px; display: flex; align-items: center; justify-content: center;
  color: #0f172a;
}

/* Produits similaires */
.similar-products { margin-top: 8px; }

/* ===== GUIDE DES TAILLES ===== */
.size-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  min-width: 280px;
}
.size-table th {
  background: #f0f4f8; padding: 9px 12px; text-align: left;
  font-weight: 700; border-bottom: 2px solid #e2e8f0;
  white-space: nowrap; color: #334155;
}
.size-table td {
  padding: 9px 12px; border-bottom: 1px solid #f1f5f9;
  color: #475569;
}
.size-table tr:last-child td { border-bottom: none; }
.size-table tr:hover td { background: #f8fafc; }

/* ===== AVIS CLIENTS ===== */
.reviews-section { margin-bottom: 40px; }
.reviews-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 22px;
  flex-wrap: wrap; gap: 12px;
}
.reviews-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; color: #0f172a; }
.reviews-summary { display: flex; align-items: center; gap: 14px; }
.reviews-score {
  font-size: 44px; font-weight: 800; color: #0f172a; line-height: 1;
  font-family: 'Barlow Semi Condensed', sans-serif;
}
.stars-display { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
.reviews-count { font-size: 13px; color: #64748b; margin-top: 2px; }
.reviews-filter { flex-shrink: 0; }

.review-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 18px; margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.review-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.review-top {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px;
}
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.review-author { flex: 1; min-width: 0; }
.review-name { font-size: 14px; font-weight: 700; display: block; color: #0f172a; }
.review-verified {
  font-size: 11px; color: #15803d; background: #dcfce7;
  padding: 2px 8px; border-radius: 20px; font-weight: 700;
  display: inline-block; margin: 3px 0; border: 1px solid #86efac;
}
.review-city { font-size: 12px; color: #94a3b8; display: block; }
.review-date { font-size: 12px; color: #cbd5e1; flex-shrink: 0; white-space: nowrap; }
.review-stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; margin-bottom: 6px; }
.review-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #0f172a; }
.review-text { font-size: 13px; color: #475569; line-height: 1.65; margin-bottom: 12px; }
.review-actions {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.review-share {
  font-size: 13px; color: #94a3b8; background: none; border: none; cursor: pointer;
}
.review-share:hover { color: #1565c0; }
.review-useful {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: #64748b;
  flex-wrap: wrap;
}
.useful-btn {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px;
  padding: 4px 12px; font-size: 12px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  font-weight: 500;
}
.useful-btn:hover { background: #eff6ff; border-color: #93c5fd; color: #1565c0; }

/* ===== MOBILE FILTRE BUTTON ===== */
.mobile-filter-btn {
  display: none;
  align-items: center; gap: 8px;
  background: #fff; border: 2px solid #e2e8f0;
  border-radius: 10px; padding: 11px 18px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  margin-bottom: 16px; color: #334155;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mobile-filter-btn:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(21,101,192,0.15); }

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .mobile-filter-btn { display: flex; }
  .filter-sidebar { display: none !important; }
  .catalog-layout { grid-template-columns: 1fr !important; }
}

/* Drawer filtre mobile */
.filter-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  z-index: 400; backdrop-filter: blur(2px);
}
.filter-drawer {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 20px; max-height: 80vh; overflow-y: auto;
}
.filter-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 700; margin-bottom: 22px; color: #0f172a;
}
.filter-drawer-header button { font-size: 20px; color: #94a3b8; background: none; border: none; cursor: pointer; }
.filter-drawer-body { display: flex; flex-direction: column; gap: 20px; margin-bottom: 20px; }
.filter-group-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #334155; text-transform: uppercase; letter-spacing: 0.04em; }
.filter-select.w-full { width: 100%; }

/* ===== MOBILE GLOBAL ===== */
@media (max-width: 600px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  .main { padding: 16px 12px 40px; }
  .section-title { font-size: 20px; }
  .catalog-title { font-size: 19px; }
  .catalog-desc { font-size: 13px; }
  .product-detail-name { font-size: 17px; }
  .price-big { font-size: 26px; }
  .btn-add-main, .btn-buy-now { font-size: 15px; padding: 14px; }
  .accordion-btn { font-size: 15px; }
  .collection-section-title { font-size: 17px; }
  .footer-inner { padding: 28px 16px; }
  .footer-bottom { padding: 12px 16px; flex-direction: column; align-items: flex-start; }
  .auth-card { padding: 24px 18px; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .cart-item { gap: 10px; }
  .cart-item-img { width: 56px; height: 56px; }
  .cart-summary { padding: 16px; }

  .catalog-header { flex-direction: column; gap: 10px; }
  .catalog-sort { width: 100%; }
  .catalog-sort select { flex: 1; }

  .promo-bar { white-space: normal; line-height: 1.4; padding: 8px 12px; }

  .footer-trust-inner { gap: 20px; padding: 16px; }
  .trust-item { font-size: 12px; }
}

/* ===================================================
   OPTIMISATIONS MOBILES AVANCÉES
   =================================================== */

/* --- Prévention zoom iOS (font-size >= 16px obligatoire) --- */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Touch targets minimum 44px */
  .size-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .collection-card { min-height: 44px; }
  .filter-check { min-height: 36px; gap: 12px; }
  .btn-reset-filters { min-height: 44px; }
  .dropdown a { padding: 11px 14px; }

  /* Miniatures galerie plus faciles à tapper */
  .gallery-thumb { width: 64px; height: 64px; border-radius: 10px; }

  /* Menu mobile — items bien touchables */
  .mobile-menu ul > li > a { min-height: 48px; display: flex; align-items: center; }

  /* Ligne du tri catalogue — label + select propre */
  .catalog-sort { align-items: center; }
  .catalog-sort label { font-size: 13px; flex-shrink: 0; }
}

/* --- Améliorations 600px et moins --- */
@media (max-width: 600px) {

  /* Cacher la description SEO longue avant les produits */
  .catalog-desc { display: none; }

  /* Bouton filtre mobile : pleine largeur + couleur claire */
  .mobile-filter-btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 13px 20px;
    background: #eff6ff;
    border-color: #1565c0;
    color: #1565c0;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .mobile-filter-btn:hover {
    background: #dbeafe;
  }

  /* Noms de produits un peu plus lisibles */
  .product-name { font-size: 13px; line-height: 1.4; }
  .product-info { padding: 8px 8px 6px; }

  /* Prix des cartes */
  .price { font-size: 15px; }

  /* ---- PAGE PRODUIT ---- */
  .price-big { font-size: 24px; }
  .product-detail-name { font-size: 16px; }
  .accordion-btn { padding: 13px 14px; font-size: 14px; }
  .accordion-body { padding: 14px; }
  .patch-item { padding: 10px 12px; font-size: 13px; }
  .patch-img { width: 38px; height: 38px; }

  /* ---- AVIS CLIENTS ---- */
  .reviews-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .reviews-title { font-size: 18px; margin-bottom: 4px; }
  .reviews-filter { width: 100%; }
  .reviews-filter .filter-select { width: 100%; }
  .review-card { padding: 12px; margin-bottom: 10px; }
  .review-top { gap: 8px; }
  .review-avatar { width: 36px; height: 36px; font-size: 12px; }
  .review-useful { flex-wrap: wrap; gap: 6px; }
  .review-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
  .reviews-score { font-size: 36px; }

  /* ---- TABLEAU DE BORD ---- */
  .dashboard-header { flex-wrap: wrap; padding: 16px; gap: 4px; }
  .dashboard-header > div { flex: 1; min-width: 0; }
  .btn-logout {
    margin-left: 0;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    padding: 11px 16px;
    font-size: 14px;
    order: 3;
  }
  .dashboard-avatar { font-size: 40px; }
  .dashboard-name { font-size: 18px; }
  .dashboard-card { padding: 16px 14px; }
  .dash-icon { font-size: 28px; margin-bottom: 8px; }

  /* ---- PANIER — layout grille pour éviter overflow ---- */
  .cart-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    padding: 12px 10px;
    align-items: start;
  }
  .cart-item-img {
    width: 54px; height: 54px;
    grid-column: 1; grid-row: 1 / 3;
    align-self: center;
  }
  .cart-item-info {
    grid-column: 2; grid-row: 1;
    min-width: 0;
    align-self: end;
  }
  .cart-item-remove {
    grid-column: 3; grid-row: 1;
    align-self: center;
  }
  .cart-item-qty {
    grid-column: 2; grid-row: 2;
    align-self: center;
  }
  .cart-item-total {
    grid-column: 3; grid-row: 2;
    text-align: right;
    min-width: 0;
    font-size: 14px;
    align-self: center;
  }
  /* Boutons quantité compacts */
  .qty-btn { width: 30px; height: 32px; font-size: 15px; }
  .qty-val { width: 34px; height: 32px; font-size: 13px; }
  .summary-title { font-size: 17px; }
  .btn-checkout { font-size: 15px; padding: 14px; }

  /* ---- COLLECTIONS ---- */
  .collection-card { font-size: 12px; padding: 11px 6px; }
  .collection-section-title { font-size: 16px; }

  /* ---- FOOTER TRUST ---- */
  .footer-trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  /* ---- COMPTE / AUTH ---- */
  .auth-card { padding: 22px 14px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* --- Très petits écrans (≤ 375px, iPhone SE etc.) --- */
@media (max-width: 375px) {
  .product-detail-name { font-size: 15px; }
  .price-big { font-size: 22px; }
  .btn-add-main { font-size: 14px; padding: 13px; }
  .size-btn { padding: 8px 10px; font-size: 12px; }
  .auth-card { padding: 18px 12px; }
  .dashboard-card h3 { font-size: 14px; }
  .section-title { font-size: 18px; }
  .page-title { font-size: 22px; }
  .cart-item-name { font-size: 13px; }
}

/* ===== WISHLIST ===== */
.btn-wishlist {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,0.9);
  border: none; border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.15s;
  z-index: 2; color: #94a3b8;
}
.btn-wishlist:hover { transform: scale(1.15); color: #e53935; }
.btn-wishlist.active { color: #e53935; background: #fff; }
.product-img-wrap { position: relative; }
.wishlist-count {
  position: absolute; top: -5px; right: -5px;
  background: #e53935; color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  min-width: 16px;
}
.wishlist-btn-nav {
  position: relative; display: inline-flex;
  align-items: center; font-size: 20px;
  text-decoration: none; color: #0f172a;
}
