/* ============================================================
   Vente TLS Nord  — Style Principal
   Palette Apple : Primary #0071E3 · Text #1D1D1F
                   BG-alt #F5F5F7 · Secondary text #6E6E73
   ============================================================ */

/* ---- Reset hidden attribute ---- */
[hidden] { display: none !important; }

/* ---- Variables ---- */
:root {
  --primary:    #0071E3;
  --primary-dk: #0055B3;
  --secondary:  #34AADC;
  --accent:     #34AADC;
  --danger:     #FF3B30;
  --success:    #34C759;
  --warning:    #FF9500;

  --bg:         #FFFFFF;
  --bg-alt:     #F5F5F7;
  --bg-card:    #FFFFFF;
  --text:       #1D1D1F;
  --text-light: #6E6E73;
  --border:     #D2D2D7;

  --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow:     0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl:  0 20px 60px rgba(0, 0, 0, 0.16);

  --radius:     16px;
  --radius-sm:  10px;
  --radius-xs:  6px;
  --radius-full:50px;

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:  1280px;

  --grad-main:  linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-accent:linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  --grad-hero:  linear-gradient(135deg, #F5F5F7 0%, #FFFFFF 100%);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad-main);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav__logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav__logo-name em {
  font-style: normal;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__logo-sub {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__refresh {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}
.nav__refresh:hover { border-color: var(--primary); color: var(--primary); }
.nav__refresh.spinning svg { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav__btn {
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.nav__btn:hover {
  background: var(--primary-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 90px 0 36px;
  background: var(--grad-hero);
  overflow: hidden;
}

.hero__bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 113, 227, 0.06) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
  display: inline-block;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__info-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 18px;
  background: rgba(255,255,255,0.75);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}
.hero__info-bar svg { flex-shrink: 0; color: var(--primary); }
.hero__info-sep { opacity: 0.35; }

.hero__disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  max-width: 440px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  opacity: 0.85;
}
.hero__disclaimer svg { flex-shrink: 0; margin-top: 1px; }

.hero__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0;
}

.hero__banner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero__banner-sep {
  width: 1px;
  height: 44px;
  background: var(--border);
  opacity: 0.6;
}
.hero__socials {
  display: flex;
  gap: 20px;
  align-items: center;
}
.hero__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s;
}
.hero__social:hover { transform: translateY(-3px); }
.hero__social-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--surface);
}
.hero__social-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.01em;
}
.hero__social-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.hero__social-badge--fb {
  background: #1877F2;
  color: white;
}
.hero__social-badge--snap {
  background: #FFFC00;
  color: #000;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__stat { text-align: center; }
.hero__stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}
.hero__stat-label { font-size: 0.78rem; color: var(--text-light); font-weight: 500; }
.hero__stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Bouton hero */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.btn--hero {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 113, 227, 0.28);
}
.btn--hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 113, 227, 0.38);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--primary);
  background: rgba(0, 113, 227, 0.04);
}


/* ============================================================
   CATALOG
   ============================================================ */
.catalog {
  padding: 60px 0 80px;
}

/* Controls bar */
.catalog__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 12px 40px 12px 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}
.search-input::placeholder { color: var(--text-light); }
.search-input:focus { border-color: var(--primary); }
.search-clear {
  position: absolute;
  right: 12px;
  top: 50%; transform: translateY(-50%);
  background: var(--border);
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
  transition: all var(--transition);
  padding: 0;
}
.search-clear:hover { background: var(--danger); color: #fff; }

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-light);
  transition: all var(--transition);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip--active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.chip__dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}
.chip__dot--green  { background: var(--success); }
.chip__dot--orange { background: var(--warning); }
.chip__dot--red    { background: var(--danger); }

.catalog__count {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 24px;
  font-weight: 500;
}

/* ---- Loading bar ---- */
.loading {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: loading-bar 1.2s linear infinite;
  position: sticky;
  top: 64px;
  z-index: 50;
}
@keyframes loading-bar {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ---- Error / Empty states ---- */
.error-state,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
}
.error-state svg, .empty-state svg { color: var(--border); }
.error-state h3, .empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.error-state p, .empty-state p { font-size: 0.9rem; margin-bottom: 8px; }

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 113, 227, 0.2);
}

/* --- Photo --- */
.product-card__photo-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
}
.product-card__photo {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform var(--transition);
}
.product-card:hover .product-card__photo {
  transform: scale(1.04);
}
.product-card__photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--border);
  flex-direction: column;
  gap: 8px;
}
.product-card__photo-placeholder span {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}
.product-card__photo-wrap { cursor: pointer; }

/* --- Carrousel --- */
.carousel__btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.carousel__btn--prev { left: 7px; }
.carousel__btn--next { right: 7px; }
.product-card__photo-wrap:hover .carousel__btn { opacity: 1; }
@media (hover: none) {
  .product-card__photo-wrap { cursor: default; }
  .carousel__btn { opacity: 0.85; }

  .product-card:hover .product-card__photo { transform: none; }
}
.carousel__btn:hover { background: rgba(0,0,0,0.72); }
.carousel__dots {
  position: absolute;
  bottom: 9px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
  z-index: 3;
}
.carousel__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background var(--transition);
}
.carousel__dot.active { background: #fff; }

/* --- Stock badge (sur la photo) --- */
.product-card__stock-badge {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
}
.badge--stock {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.badge--reserved {
  background: rgba(249, 115, 22, 0.15);
  color: #9a3412;
  border: 1px solid rgba(249, 115, 22, 0.4);
}
.badge--sold {
  background: rgba(255, 87, 87, 0.15);
  color: #991b1b;
  border: 1px solid rgba(255, 87, 87, 0.4);
}
.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge--stock   .badge__dot { background: var(--success); }
.badge--reserved .badge__dot { background: var(--warning); }
.badge--sold    .badge__dot { background: var(--danger); }
.badge--repair {
  background: rgba(59, 130, 246, 0.15);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.badge--repair .badge__dot { background: #3b82f6; }
.badge--soon {
  background: rgba(139, 92, 246, 0.15);
  color: #5b21b6;
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.badge--soon .badge__dot { background: #8b5cf6; }

/* Overlay sold */
.product-card--sold .product-card__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
}
.product-card--sold { opacity: 0.75; }

/* --- Body --- */
.product-card__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

/* Tags : Grade + Batterie */
.product-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
}
.tag--grade {
  background: rgba(0, 113, 227, 0.08);
  color: var(--primary);
}
.tag--battery {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}
.tag--battery.warn { background: rgba(234, 179, 8, 0.1); color: #92400e; }
.tag--battery.low  { background: rgba(255, 87, 87, 0.1); color: #991b1b; }
.tag--etat {
  background: rgba(56, 182, 255, 0.1);
  color: #0369a1;
}

/* Model row (name + like/share) */
.product-card__top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.product-card {
  cursor: pointer;
}
.product-card__social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.social__btns {
  display: flex;
  align-items: center;
  gap: 2px;
}
.card__ref {
  font-size: 0.65rem;
  color: var(--text-light);
  opacity: 0.65;
  font-weight: 500;
  text-align: right;
}
.btn-like,
.btn-share {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 5px 6px;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  line-height: 1;
}
.btn-like:hover          { color: #FF3B30; }
.btn-like.is-liked       { color: #FF3B30; }
.btn-like.is-liked svg   { fill: #FF3B30; stroke: #FF3B30; }
.btn-share:hover         { color: var(--primary); }
.btn-share.share-ok      { color: var(--success); }
.like-count              { min-width: 10px; }
@keyframes like-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.btn-like.like-pop { animation: like-pop 0.28s ease; }

/* Model name */
.product-card__model {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

/* Specs line */
.product-card__specs {
  font-size: 0.83rem;
  color: var(--text-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.product-card__specs-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

/* Défauts */
.product-card__defauts {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
}
.defauts__label {
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.defauts__value--bad {
  color: var(--danger);
  font-weight: 600;
}
.defauts__value--ok {
  color: var(--success);
  font-weight: 600;
}
.product-card__accessoires {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
}
.accessoires__label {
  font-weight: 700;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.accessoires__value {
  color: var(--primary);
  font-weight: 600;
}

/* Description */
.product-card__desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card.is-expanded .product-card__desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Divider */
.product-card__divider {
  height: 1px;
  background: var(--border);
}

/* Price */
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.card__toggle {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 0;
  font-size: 0.8rem; font-weight: 600;
  color: var(--primary); cursor: pointer;
  transition: color var(--transition);
  white-space: nowrap;
}
.card__toggle:hover { color: var(--primary-dk); }
.card__toggle svg { transition: transform 0.28s ease; }
.product-card.is-expanded .card__toggle svg { transform: rotate(180deg); }
.card__expand {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px 18px 16px;
  position: absolute;
  left: -1px; right: -1px;
  top: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  z-index: 10;
}
.product-card.is-expanded {
  overflow: visible;
  z-index: 11;
}
.product-card.is-expanded .card__expand {
  display: flex;
  animation: expand-in 0.22s ease;
}
@keyframes expand-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card__price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}
.product-card__price .price--original {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 4px;
}
.product-card__price .price--promo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #e53935;
  letter-spacing: -0.5px;
}
.product-card__price .price--promo-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  background: #e53935;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 5px;
  letter-spacing: 0.04em;
}
.product-card__price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

/* --- Contact buttons --- */
.product-card__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 18px 16px;
}
.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.btn-whatsapp {
  background: var(--bg-alt);
  color: #25D366;
  border: 2px solid var(--border);
}
.btn-whatsapp:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.08);
  transform: translateY(-1px);
}
.btn-sms {
  background: var(--bg-alt);
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-sms:hover {
  border-color: var(--primary);
  background: rgba(0, 113, 227, 0.06);
  transform: translateY(-1px);
}
.btn-call {
  background: var(--bg-alt);
  color: var(--success);
  border: 2px solid var(--border);
}
.btn-call:hover {
  border-color: var(--success);
  background: rgba(52, 199, 89, 0.08);
  transform: translateY(-1px);
}
/* Disable contact for sold items */
.product-card--sold .btn-whatsapp,
.product-card--sold .btn-sms,
.product-card--sold .btn-call {
  pointer-events: none;
  opacity: 0.4;
}

/* ============================================================
   MODAL PHOTO
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  cursor: pointer;
}
.modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: min(94vw, 860px);
  max-height: 88vh;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  color: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background var(--transition);
}
.modal__close:hover { background: #fff; }
.modal__img {
  display: block;
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  background: #fff;
  padding: 28px 28px 52px;
}
.modal__caption { display: none; }
.modal__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  color: #1a1a1a; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background var(--transition);
}
.modal__nav:hover { background: #fff; }
.modal__prev { left: 14px; }
.modal__next { right: 14px; }
.modal__counter {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
}
.modal__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  transition: all 0.2s;
}
.modal__dot--active {
  background: #1a1a1a;
  width: 22px;
  border-radius: 4px;
}
@media (max-width: 480px) {
  .modal { padding: 12px; }
  .modal__img { padding: 16px 16px 48px; }
}

/* ============================================================
   FOOTER
   ============================================================ */

/* ---- Bouton retour en haut ---- */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,113,227,0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--primary-dk); }

.footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 40px 0 24px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.footer__logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 6px;
}
.footer__logo em {
  font-style: normal;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__tagline { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer__meta {
  max-width: 360px;
  font-size: 0.83rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

/* ---- Badge New ---- */
.new-badge {
  display: inline-flex;
  align-items: center;
  background: var(--warning);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.product-card__photo-wrap .new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

/* Tablet */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* Mobile */
@media (max-width: 640px) {
  .hero { padding: 80px 0 28px; }
  .hero__stats { gap: 16px; }
  .hero__stat-divider { display: none; }
  .hero__banner-sep { display: none; }
  .hero__banner-row { gap: 16px; }

  .catalog { padding: 40px 0 60px; }
  .catalog__controls { flex-direction: column; align-items: stretch; }
  .filter-chips { justify-content: flex-start; }

  .products-grid { grid-template-columns: 1fr; gap: 16px; }

  .footer__inner { flex-direction: column; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* Very small */
@media (max-width: 380px) {
  .product-card__price { font-size: 1.2rem; }
}
