/* ============================================================
   SAKO BUSSINESS — Feuille de styles principale
   Toute la mise en forme du site est ici, aucun style inline
   ============================================================ */

/* ── 1. VARIABLES ─────────────────────────────────────────── */
:root {
  /* Couleurs professionnelles */
  --c-primary:      #f29b30;
  --c-primary-dk:   #c96c10;
  --c-primary-lt:   rgba(242, 155, 48, 0.16);
  --c-secondary:    #4caf50;
  --c-secondary-lt: rgba(76, 175, 80, 0.1);
  --c-bg:           #060707;
  --c-bg-alt:       #101313;
  --c-bg-alt-soft:  #171b1b;
  --c-dark:         #000000;
  --c-text:         #ffffff;
  --c-muted:        #c8c8c8;
  --c-border:       #222727;
  --c-white:        #ffffff;
  --c-danger:       #ff5252;
  --c-success:      #4caf50;
  --c-warning:      #ff9800;

  /* Typographie professionnelle */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espacements */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Bordures */
  --r-sm:   4px;
  --r-md:   10px;
  --r-lg:   18px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Ombres */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-btn: 0 14px 32px rgba(242, 155, 48, 0.3);
  --shadow-btn-hover: 0 18px 40px rgba(242, 155, 48, 0.4);

  --shadow-sm: 0 1px 4px rgba(26,17,8,0.07);
  --shadow-md: 0 4px 20px rgba(26,17,8,0.11);
  --shadow-lg: 0 10px 40px rgba(26,17,8,0.16);
  --shadow-card: 0 2px 12px rgba(196,98,45,0.10);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 280ms var(--ease);
  --t-slow: 500ms var(--ease);

  /* Layout */
  --max-w:      1200px;
  --header-h:   70px;
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: auto; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at top left, #222 0, var(--c-bg) 45%, #000 100%);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

.hidden { display: none !important; }

/* ── 3. PAGE TRANSITION ───────────────────────────────────── */
.page-transition { animation: fadeIn 0.4s var(--ease) both; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-exit {
  animation: fadeOut 0.3s var(--ease) forwards;
  pointer-events: none;
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ── 4. UTILITAIRES ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-4);
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .container {
    padding-inline: var(--sp-3);
  }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-center   { text-align: center; }
.text-muted    { color: var(--c-muted); }
.mt-auto       { margin-top: auto; }
.mx-auto       { margin-left: auto; margin-right: auto; }
.w-full        { width: 100%; }

/* ── 5. TYPOGRAPHIE ───────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.2;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.link-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-primary);
  white-space: nowrap;
  transition: color var(--t-fast);
}
.link-more:hover { color: var(--c-primary-dk); }

/* ── 6. BOUTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--t-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--c-primary), #f7d15b);
  color: #221;
  border-color: var(--c-primary);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
  color: #221;
}

.btn--secondary {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--secondary:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.btn--ghost:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.btn--ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
}
.btn--ghost-light:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.08);
}

.btn--danger {
  background: var(--c-danger);
  color: var(--c-white);
  border-color: var(--c-danger);
}
.btn--danger:hover { background: #b5261e; transform: translateY(-1px); }

.btn--success {
  background: var(--c-secondary);
  color: var(--c-white);
  border-color: var(--c-secondary);
}
.btn--success:hover { background: #24502f; transform: translateY(-2px); }

.btn--whatsapp {
  background: #25D366;
  color: var(--c-white);
  border-color: #25D366;
  font-size: 1rem;
  padding: var(--sp-4) var(--sp-8);
}
.btn--whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

.btn--lg { padding: var(--sp-4) var(--sp-10); font-size: 1rem; }
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: 0.8rem; }
.btn--full { width: 100%; justify-content: center; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── 7. HEADER ────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(20px);
  background: rgba(6, 7, 7, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  justify-content: space-between;
  padding: 0 var(--sp-4);
}

@media (min-width: 1600px) {
  .header__inner {
    max-width: calc(var(--max-w) + var(--sp-8));
    margin: 0 auto;
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
.logo:hover {
  opacity: 0.85;
}
.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: conic-gradient(from 160deg, var(--c-primary), #f7d15b, var(--c-primary));
  color: #111;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(242, 155, 48, 0.2);
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.5px;
}

/* Nav */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  list-style: none;
}
.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--t-fast), transform var(--t-fast);
  text-decoration: none;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--c-primary);
  transition: width var(--t-base);
}
.nav__link:hover,
.nav__link--active {
  color: var(--c-primary);
  transform: translateY(-1px);
}
.nav__link--active::after,
.nav__link:hover::after {
  width: 100%;
}

.nav__link:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 4px;
}


/* Header actions container */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-shrink: 0;
}

/* Admin button */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  background: linear-gradient(135deg, var(--c-primary), #f7d15b);
  color: #111;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all var(--t-fast);
  box-shadow: 0 2px 8px rgba(242, 155, 48, 0.25);
  border: none;
}
.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(242, 155, 48, 0.35);
  color: #111;
}
.admin-btn__icon {
  font-size: 1rem;
}

/* Cart button */
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  font-size: 1.2rem;
  transition: all var(--t-fast);
  flex-shrink: 0;
  cursor: pointer;
}
.cart-btn:hover {
  border-color: var(--c-primary);
  background: rgba(242, 155, 48, 0.1);
}
.cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--sp-1);
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast);
}
.cart-btn__count.bump {
  animation: bump 0.3s var(--ease);
}
@keyframes bump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-2);
  cursor: pointer;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.menu-toggle:hover {
  border-color: var(--c-primary);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--t-base);
}
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* ── 8. HERO ──────────────────────────────────────────────── */
.hero {
  padding: var(--sp-16) 0 var(--sp-20);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: var(--sp-12);
  justify-content: space-between;
}
.hero__content {
  max-width: 580px;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--sp-2) var(--sp-4);
  background: rgba(242, 155, 48, 0.12);
  color: var(--c-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.05;
  margin-bottom: var(--sp-5);
}
.hero__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  margin-bottom: var(--sp-8);
  max-width: 460px;
}
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.hero__circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(242, 155, 48, 0.2), rgba(16, 19, 19, 0.8));
  position: relative;
}
.hero__circle::after {
  content: '🛒';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.2rem;
}
.hero__badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--r-xl);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.85rem;
  font-weight: 700;
  color: #070606;
  animation: float 3s ease-in-out infinite;
}
.hero__badge span { font-size: 1.05rem; }
.hero__badge--1 { top: 0; right: 0; animation-delay: 0s; }
.hero__badge--2 { bottom: 0; left: 0; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
  .hero__visual {
    height: 300px;
  }
  .hero__circle {
    width: 280px;
    height: 280px;
  }
  .hero {
    padding: var(--sp-16) 0 var(--sp-20);
  }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: var(--sp-5);
  }
  .hero__desc {
    font-size: 0.95rem;
    margin-bottom: var(--sp-6);
  }
  .hero__visual {
    height: 260px;
  }
  .hero__circle {
    width: 240px;
    height: 240px;
  }
  .hero__circle::after {
    font-size: 4.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--sp-12) 0 var(--sp-16);
  }
  .hero__inner {
    gap: var(--sp-6);
  }
  .hero__title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
  }
  .hero__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--sp-5);
  }
  .hero__visual {
    height: 220px;
  }
  .hero__circle {
    width: 200px;
    height: 200px;
  }
  .hero__circle::after {
    font-size: 3.5rem;
  }
  .hero__badge {
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.75rem;
  }
  .hero__badge span {
    font-size: 0.95rem;
  }
}

/* ── 9. SECTIONS ──────────────────────────────────────────── */
section {
  padding: var(--sp-16) 0;
  width: 100%;
  box-sizing: border-box;
}

/* ── 10. CATÉGORIES ───────────────────────────────────────── */
.categories .section-title { margin-bottom: var(--sp-8); }
.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-4);
  justify-items: center;
  max-width: 100%;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-4);
  border-radius: var(--r-lg);
  text-align: center;
  transition: all var(--t-base);
  cursor: pointer;
  border: 1px solid transparent;
}
.category-card:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-lt);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card__icon { font-size: 2rem; }
.category-card__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
}
.category-card:hover .category-card__name { color: var(--c-primary); }

/* ── 11. GRILLE PRODUITS ──────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
  justify-items: center;
  max-width: 100%;
}

/* Carte produit */
.product-card {
  background: var(--c-bg-alt);
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base);
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.2);
  border-color: rgba(242,155,48,0.25);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(255, 255, 255, 0.1);
}

.product-card__badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 1;
}
.product-card__badge--new     { background: var(--c-secondary); color: var(--c-white); }
.product-card__badge--rupture { background: var(--c-danger);    color: var(--c-white); }
.product-card__badge--promo   { background: var(--c-warning);   color: var(--c-text);  }

.product-card__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
  display: block;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.product-card__img[src=""],
.product-card__img:not([src]) {
  display: none;
}
.product-card__img[src=""]:has(+ .product-card__img-placeholder) + .product-card__img-placeholder,
.product-card__img:not([src]):has(+ .product-card__img-placeholder) + .product-card__img-placeholder {
  display: flex;
}
.product-card__img-placeholder {
  font-size: 3rem;
  opacity: 0.4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.product-card__img-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__body {
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}
.product-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-primary);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
}
.product-card__desc {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.5;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-border);
}
.product-card__price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-primary);
}
.product-card__unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--c-muted);
  font-family: var(--font-body);
}
.product-card__stock {
  font-size: 0.75rem;
  color: var(--c-muted);
}
.product-card__stock--low { color: var(--c-warning); font-weight: 600; }

.product-card__add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: var(--r-md);
  font-size: 1.1rem;
  transition: all var(--t-fast);
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}
.product-card__add:hover {
  background: var(--c-primary-dk);
  transform: scale(1.1);
}
.product-card__add:disabled {
  background: var(--c-border);
  color: var(--c-muted);
  cursor: not-allowed;
  transform: none;
}

.product-detail-page {
  padding: var(--sp-12) 0 var(--sp-20);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-6);
  color: var(--c-muted);
  font-size: 0.95rem;
}
.breadcrumb a {
  color: var(--c-text);
  opacity: 0.75;
}
.breadcrumb__current {
  font-weight: 600;
  color: var(--c-white);
}
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: var(--sp-10);
  align-items: start;
}
.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.product-detail-main-image {
  background: var(--c-bg-alt);
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}
.product-detail-thumb {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg-alt);
  padding: 0.25rem;
  display: inline-flex;
  width: 100%;
}
.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.product-detail-tags {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.product-detail-tags span {
  background: rgba(242, 155, 48, 0.12);
  color: var(--c-primary);
  border-radius: var(--r-full);
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.product-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0;
  line-height: 1.1;
}
.product-detail-meta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
}
.product-detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--c-primary);
}
.product-detail-stock {
  color: var(--c-muted);
  font-weight: 600;
}
.product-detail-summary {
  color: var(--c-muted);
  line-height: 1.8;
}
.product-detail-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.product-detail-extra {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}
.product-detail-section {
  text-align: left;
}
.product-detail-section h2 {
  margin-bottom: var(--sp-3);
  font-size: 1.05rem;
  color: var(--c-text);
}
.product-detail-section p {
  color: var(--c-muted);
  line-height: 1.8;
}
.product-detail-features {
  display: grid;
  gap: 0.75rem;
  margin: auto;
  padding: 0 0 0 var(--sp-4);
  color: var(--c-muted);
  list-style: none;
}
.product-detail-features li {
  position: relative;
  line-height: 1.7;
  padding-left: var(--sp-4);
  text-align: left;
  margin: 0.5rem;
}
.product-detail-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--c-primary);
}
.product-detail-no-image {
  color: var(--c-muted);
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  background: var(--c-bg-alt);
  color: var(--c-text);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: 320px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── 12. FILTRES BOUTIQUE ─────────────────────────────────── */
.shop-header {
  padding: var(--sp-10) 0 var(--sp-6);
}
.products-section {
  padding-bottom: var(--sp-20);
}
.shop-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.shop-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  padding: var(--sp-3) var(--sp-4);
  flex: 1 1 min(420px, 100%);
  max-width: 420px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.search-bar--compact { flex: 1 1 250px;
  padding: var(--sp-2) var(--sp-3);
}
.search-bar:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(242,155,48,0.12); }
.search-bar__icon { font-size: 1rem; color: var(--c-muted); }
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: var(--c-text);
  min-width: 0;
}

.filters {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding-bottom: var(--sp-6);
  margin-top: var(--sp-4);
}
.filter-btn {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: #020202;
  transition: all var(--t-fast);
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

/* ── 13. SQUELETTE DE CHARGEMENT ──────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--c-border) 25%, var(--c-bg-alt) 50%, var(--c-border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-card--skeleton .product-card__img-wrap { background: unset; }
.skeleton-img  { height: 200px; width: 100%; }
.skeleton-text { height: 14px; margin: var(--sp-2) 0; }
.skeleton-text--sm { width: 60%; }
.skeleton-text--lg { height: 20px; }

/* ── 14. ÉTAT VIDE ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--sp-24) var(--sp-6);
  grid-column: 1 / -1;
  margin: 0 auto;
}
.empty-state__icon { font-size: 4rem; margin-bottom: var(--sp-4); }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}
.empty-state p { color: var(--c-muted); margin-bottom: var(--sp-6); }

/* ── 15. PAGE PANIER ──────────────────────────────────────── */
.cart-page {
  padding: var(--sp-10) 0 var(--sp-20);
}
.cart-actions {
  margin-top: var(--sp-5);
  text-align: right;
}
.cart-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-8);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--sp-8);
  align-items: start;
}

@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
    top: auto;
  }
}

/* Items panier */
.cart-items { display: flex; flex-direction: column; gap: var(--sp-4); }

.cart-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: var(--sp-4);
  align-items: center;
  background: var(--c-bg-alt);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  transition: all var(--t-base);
  margin: 0;
}
.cart-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cart-item__img-wrap {
  width: 90px;
  height: 90px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-item__img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img-placeholder { font-size: 2rem; opacity: 0.5; }

.cart-item__info { flex: 1; }
.cart-item__category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-1);
}
.cart-item__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-1);
}
.cart-item__unit-price {
  font-size: 0.82rem;
  color: var(--c-muted);
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
}
.cart-item__subtotal {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-primary);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: var(--sp-1) var(--sp-2);
}
.qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: #050606;
  transition: all var(--t-fast);
  cursor: pointer;
  border: none;
  background: var(--c-white);
  line-height: 1;
}
.qty-btn:hover { background: var(--c-primary); color: var(--c-white); }
.qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.cart-item__remove {
  font-size: 0.8rem;
  color: var(--c-danger);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  transition: opacity var(--t-fast);
  padding: 0;
}
.cart-item__remove:hover { opacity: 0.7; }

/* Récapitulatif */
.cart-summary {
  background: var(--c-bg-alt);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
  width: 100%;
  box-sizing: border-box;
}
.cart-summary__title {
  color: var(--c-text);
}
.cart-summary__line {
  color: rgba(255,255,255,0.75);
}
.cart-summary__total-label {
  color: var(--c-text);
}
.cart-summary__info {
  color: rgba(255,255,255,0.65);
}
.cart-summary__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}

.cart-summary__lines { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.cart-summary__line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--c-muted);
}
.cart-summary__line strong { color: var(--c-text); }

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) 0;
  border-top: 2px solid var(--c-dark);
  margin-bottom: var(--sp-6);
}
.cart-summary__total-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
}
.cart-summary__total-amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-primary);
}

.cart-summary__info {
  font-size: 0.8rem;
  color: var(--c-muted);
}
.cart-summary__footer {
  margin-top: var(--sp-6);
}

/* ── 16. CTA SECTION ──────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #221;
  border-radius: var(--r-xl);
  margin: 0 var(--sp-6);
  margin: auto;
}
.cta__inner {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}
.cta__desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto var(--sp-10);
  line-height: 1.7;
}
.cta__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
}
.cta__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.cta__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary);
  font-weight: 700;
  font-size: 1.1rem;
}
.cta__step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ── 17. ADMIN ────────────────────────────────────────────── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-alt);
}
.admin-login__card {
  width: 100%;
  max-width: 420px;
  background: var(--c-bg-alt);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-border);
}
.admin-login__logo { text-align: center; margin-bottom: var(--sp-8); }
.admin-login__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
  margin-bottom: var(--sp-2);
}
.admin-login__sub {
  font-size: 0.9rem;
  color: var(--c-muted);
  text-align: center;
  margin-bottom: var(--sp-8);
}

/* Admin dashboard */
.admin-body { background: var(--c-bg-alt); min-height: 100vh; }
.admin-header {
  background: var(--c-bg);
  color: var(--c-text);
  padding: var(--sp-4) var(--sp-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.admin-badge {
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-primary);
  border-radius: var(--r-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.admin-header__actions { display: flex; align-items: center; gap: var(--sp-4); }
.admin-user { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

.admin-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-8);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.stat-card {
  background: var(--c-bg-alt);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(10px);
}
.stat-card__label { font-size: 0.8rem; color: var(--c-muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.stat-card__value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--c-text); }
.stat-card__icon { float: right; font-size: 1.5rem; }

.admin-panel {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: flex-start;
  width: 100%;
  overflow-x: hidden;
}

/* Make the form card a fixed-ish column and allow the products list to grow/shrink */
.product-form-card {
  flex: 0 0 380px;
  max-width: 380px;
}
.admin-products-list {
  flex: 1 1 0%;
  min-width: 0;
}

@media (max-width: 1200px) {
  .admin-panel {
    gap: var(--sp-4);
  }
  .product-form-card { flex-basis: 300px; max-width: 300px; }
}
@media (max-width: 1024px) {
  .admin-panel {
    flex-direction: column;
    gap: var(--sp-4);
  }
  .product-form-card,
  .admin-products-list { max-width: 100%; flex-basis: auto; }
}
@media (max-width: 768px) {
  .admin-panel {
    flex-direction: column;
    gap: var(--sp-3);
  }
}

/* Product form card responsive */
@media (max-width: 1024px) {
  .product-form-card {
    position: static;
    order: 1;
  }

  .admin-products-list {
    order: 2;
  }
}

@media (max-width: 768px) {
  .admin-main {
    padding: var(--sp-4);
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .admin-header__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }

  .admin-products-header {
    flex-direction: column;
    align-items: stretch;
    padding: var(--sp-4);
  }
  .search-bar {
    width: 100%;
    max-width: 100%;
  }
  .admin-products-header__title {
    width: 100%;
  }
  .product-form-card__title {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }
  .product-form-card__title button {
    width: auto;
  }
}

/* Formulaire produit admin */
.product-form-card {
  background: var(--c-bg-alt);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  position: sticky;
  top: var(--sp-6);
  backdrop-filter: blur(10px);
  width: 100%;
  overflow-x: hidden;
  max-width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
@media (max-width: 1024px) {
  .product-form-card {
    position: static;
    top: auto;
    padding: var(--sp-5);
  }
}
@media (max-width: 640px) {
  .product-form-card {
    padding: var(--sp-4);
    border-radius: var(--r-lg);
  }
}
.product-form-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Formulaires */
.form-group { margin-bottom: var(--sp-5); }
.form-group--small { margin-top: var(--sp-3); }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(196,98,45,0.12);
}
.form-textarea { min-height: 90px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  width: 100%;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-error {
  font-size: 0.78rem;
  color: var(--c-danger);
  margin-top: var(--sp-1);
  display: none;
}
.form-error.show { display: block; }

/* Upload image */
.upload-zone {
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--c-bg);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--c-primary);
  background: var(--c-primary-lt);
}
.upload-zone__icon { font-size: 2rem; margin-bottom: var(--sp-2); }
.upload-zone p { font-size: 0.85rem; color: var(--c-muted); }
.upload-zone__note { margin-top: var(--sp-1); font-size: 0.85rem; color: var(--c-muted); }
.upload-zone p strong { color: var(--c-primary); }
.upload-zone input { display: none; }
.upload-preview {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-top: var(--sp-3);
  display: none;
}
.upload-preview.show { display: block; }
.upload-additional-list {
  margin-top: var(--sp-4);
  display: grid;
  gap: var(--sp-3);
}
.upload-additional-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.upload-additional-name {
  color: var(--c-text);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.upload-additional-link {
  color: var(--c-primary);
  font-weight: 600;
  white-space: nowrap;
}

/* Liste produits admin */
.admin-products-list {
  background: var(--c-bg-alt);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--c-border);
  gap: var(--sp-4);
}
.admin-products-header__title {
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-text);
}
.admin-products-count {
  display: inline-block;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-muted);
  margin-left: var(--sp-3);
}

/* ── Admin header & brand styling ───────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--c-text);
}
.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-accent), rgba(0,0,0,0.25));
  color: white;
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.logo__text {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.admin-badges {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--c-muted);
  border: 1px solid rgba(255,255,255,0.03);
  font-size: 0.85rem;
}
.badge--accent {
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: var(--c-text);
  border: 1px solid rgba(255,255,255,0.06);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
}
.admin-header__brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.admin-user {
  font-size: 0.95rem;
  color: var(--c-muted);
}

/* Polished admin panel container */
.admin-main {
  max-width: 1200px;
  margin: 2.25rem auto;
  padding: var(--sp-6);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius: var(--r-xl);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Buttons refinement with enhanced emphasis */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  background: var(--c-accent);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--t-base);
  box-shadow: 0 6px 16px rgba(242, 155, 48, 0.25);
  text-decoration: none;
  margin-bottom: 2rem;
}
.btn:hover {
  background: var(--c-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(242, 155, 48, 0.35);
}
.btn:active {
  transform: translateY(0);
}
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--c-text);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  align-items: center;
}

/* Table subtle improvements */
.admin-table th { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.admin-table td { vertical-align: middle; }
.admin-table__img { width:48px; height:48px; border-radius:8px; object-fit:cover; }


.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}
@media (max-width: 1024px) {
  .admin-table {
    min-width: 600px;
    font-size: 0.85rem;
  }
}
@media (max-width: 768px) {
  .admin-table {
    min-width: 550px;
    font-size: 0.8rem;
  }
}
@media (max-width: 480px) {
  .admin-table {
    min-width: 500px;
    font-size: 0.7rem;
  }
}
.admin-table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  border-bottom: 1px solid var(--c-border);
}
@media (max-width: 768px) {
  .admin-table th {
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.7rem;
  }
}
.admin-table td {
  padding: var(--sp-4) var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  font-size: 0.88rem;
  color: var(--c-text);
  vertical-align: middle;
  word-wrap: break-word;
}
@media (max-width: 768px) {
  .admin-table td {
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.8rem;
  }
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--c-bg); }
.empty-row td { padding: var(--sp-6); }
.admin-error-row td { color: var(--c-danger); padding: var(--sp-6); }

.admin-table__img {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--c-bg-alt);
}
.admin-table__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.admin-table__public-link {
  display: block;
  margin-top: 4px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--c-muted);
  font-size: 0.78rem;
}
.admin-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.stock-badge {
  display: inline-block;
  padding: 2px var(--sp-2);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
}
.stock-badge--ok      { background: var(--c-secondary-lt); color: var(--c-secondary); }
.stock-badge--low     { background: rgba(255, 193, 7, 0.2); color: #ff9800; }
.stock-badge--rupture { background: rgba(244, 67, 54, 0.2); color: var(--c-danger); }

/* Alert / messages */
.alert {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: var(--sp-4);
  display: none;
}
.alert.show    { display: block; }
.alert--error  { background: rgba(244, 67, 54, 0.1); color: var(--c-danger); border: 1px solid rgba(244, 67, 54, 0.3); }
.alert--success { background: rgba(76, 175, 80, 0.1); color: var(--c-success); border: 1px solid rgba(76, 175, 80, 0.3); }

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: var(--c-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 18. FOOTER ───────────────────────────────────────────── */
.footer {
  background: rgba(6, 7, 7, 0.95);
  color: var(--c-text);
  padding: var(--sp-16) 0 0;
  margin-top: var(--sp-18);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
}
.footer .logo__text,
.footer .logo__mark { color: var(--c-white); }
.footer .logo__mark { background: var(--c-primary); }
.footer__brand p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-top: var(--sp-4);
  max-width: 320px;
  line-height: 1.75;
}
.footer__links h4,
.footer__contact h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-4);
}
.footer__links ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__links a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--c-primary); }
.footer__contact p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--sp-2);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-5) 0;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}

/* ── 19. MODAL DE CONFIRMATION ────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,17,8,0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #000000;
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  max-width: 420px;
  width: calc(100% - var(--sp-8));
  transform: scale(0.95);
  transition: transform var(--t-base);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-2);
}
.modal__body { font-size: 0.9rem; color: var(--c-muted); margin-bottom: var(--sp-6); }
.modal__actions { display: flex; gap: var(--sp-3); justify-content: flex-end; }

/* ── 20. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .categories__grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--sp-3);
  }
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-5);
  }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-panel { grid-template-columns: 1fr; }
  .product-form-card { position: static; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .header__inner {
    gap: var(--sp-3);
    padding: 0 var(--sp-3);
  }

  .logo__text {
    font-size: 1.1rem;
  }

  .admin-btn__text {
    display: none;
  }

  .admin-btn {
    padding: var(--sp-2) var(--sp-3);
    justify-content: center;
  }

  .hero__inner { grid-template-columns: 1fr; }
  .hero { padding: var(--sp-12) 0; }
  .hero__visual { display: none; }
  .hero__content { max-width: 100%; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-main-image { min-height: 320px; }
  .product-detail-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .categories__grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--sp-2);
  }
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--sp-4);
  }

  .shop-header__inner { flex-direction: column; align-items: flex-start; }
  .search-bar { flex: 1; width: 100%; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary {
    position: relative;
    margin-left: -1rem;
    margin-right: 1.5rem;
  }
  .cart-item { grid-template-columns: 70px 1fr;}
  .cart-item__controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }

  .cta__steps { flex-direction: column; gap: var(--sp-6); }
  .cta { margin: 0; border-radius: 0; }

  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-8); }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 7, 7, 0.95);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    z-index: 99;
    padding: var(--sp-4) 0;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease-out;
    pointer-events: none;
  }
  .nav.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav.open .nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .nav__link {
    font-size: 1rem;
    padding: var(--sp-3) var(--sp-6);
    width: 100%;
    text-align: left;
    border-radius: 0;
    transition: background 0.2s ease;
    position: relative;
  }
  .nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--sp-6);
    right: var(--sp-6);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
  }
  .nav__link:last-child::after {
    display: none;
  }
  .menu-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }

  .modal {
    width: calc(100% - var(--sp-4));
    padding: var(--sp-6);
  }
  .modal__actions { flex-direction: column; gap: var(--sp-2); }
}

@media (max-width: 480px) {
  :root { --header-h: 60px; }

  .header__inner {
    gap: var(--sp-2);
    padding: 0 var(--sp-2);
  }

  .logo {
    gap: var(--sp-1);
  }

  .logo__mark {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .logo__text {
    font-size: 1rem;
    display: none;
  }

  .header-actions {
    gap: var(--sp-2);
  }

  .cart-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
  }
  .categories__grid {
    gap: var(--sp-2);
  }
  .section-header { flex-direction: column; align-items: flex-start; }

  .product-card {
    max-width: none;
  }

  .hero__title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

  .container {
    padding-inline: var(--sp-4);
  }

  .product-card__body {
    padding: var(--sp-3) var(--sp-4);
  }

  .product-card__name {
    font-size: 1rem;
  }

  .product-card__price {
    font-size: 1.2rem;
  }
}

/* ── RESPONSIVE ADMIN ─────────────────────────────────────── */
@media (max-width: 1200px) {
  .admin-panel {
    flex-direction: column;
    gap: var(--sp-4);
  }

  .product-form-card {
    position: static;
    order: 1;
    max-width: 100%;
    flex-basis: auto;
    margin: auto;
  }

  .admin-products-list {
    order: 2;
    max-width: 100%;
    flex-basis: auto;
  }

  .admin-table {
    min-width: 700px;
  }
}

@media (max-width: 1024px) {
  .admin-main {
    padding: var(--sp-4);
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }

  .admin-table {
    min-width: 650px;
  }
}

@media (max-width: 768px) {
  .admin-main {
    padding: var(--sp-3);
  }

  .admin-stats {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .admin-header {
    padding: var(--sp-3) var(--sp-4);
    flex-direction: column;
    gap: var(--sp-3);
    text-align: center;
  }

  .admin-header__actions {
    flex-direction: column;
    gap: var(--sp-2);
  }

  .admin-table {
    min-width: 800px;
    font-size: 0.75rem;
  }

  .admin-table th,
  .admin-table td {
    padding: var(--sp-2) var(--sp-1);
  }

  .admin-table__img {
    width: 40px;
    height: 40px;
  }
}


  .admin-table th,
  .admin-table td {
    padding: var(--sp-2) var(--sp-3);
  }

  .admin-products-header {
    padding: var(--sp-3) var(--sp-4);
    justify-content: center;
    align-items: center;
    gap: var(--sp-2);
  }

  .admin-table {
    min-width: 550px;
  }


@media (max-width: 480px) {
  .admin-main {
    padding: var(--sp-2);
  }

  .admin-table {
    min-width: 450px;
    font-size: 0.7rem;
  }

  .admin-table th,
  .admin-table td {
    padding: var(--sp-1) var(--sp-2);
  }

  .admin-table__img {
    width: 32px;
    height: 32px;
  }

  .admin-products-header {
    padding-inline: var(--sp-3);
  }

  .admin-products-header__title {
    font-size: 1rem;
  }
  .empty-state {
    margin: 0 auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE CARD DESIGN FOR PRODUCTS TABLE (<=600px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .admin-products-list,
  .table-wrapper {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .admin-main {
    padding: var(--sp-3);
  }

  /* Compact header layout */
  .admin-products-header {
    padding: var(--sp-4);
    flex-direction: column;
    gap: var(--sp-3);
  }

  .admin-products-header__title {
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1 1 100%;
    min-width: 0;

  }

  .search-bar {
    width: 100%;
    max-width: 100%;
  }

  /* Hide table header on mobile */
  .admin-table thead {
    display: none;
  }

  /* Transform tbody to grid of cards */
  .table-wrapper {
    overflow: visible;
    padding: var(--sp-4);
  }

  .admin-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    width: 100% !important;
    min-width: unset !important;
    border-collapse: initial;
  }

  /* Each row becomes a card */
  .admin-table tbody {
    display: contents;
  }

  .admin-table tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    margin-bottom: 0;
    border-bottom: none !important;
  }

  .admin-table tr:hover {
    background: var(--c-bg-alt);
    border-color: var(--c-primary);
  }

  .admin-table tr.empty-row {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--sp-6);
  }

  /* Transform each cell */
  .admin-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: 0;
    border: none;
    min-width: 0;
    font-size: 0.9rem;
    word-wrap: break-word;
  }

  /* Image cell: full width card header */
  .admin-table td:first-child {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--c-border);
  }

  .admin-table__img {
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    object-fit: cover;
    flex-shrink: 0;
  }

  /* Name cell */
  .admin-table td:nth-child(2) {
    font-weight: 600;
    font-size: 1rem;
    grid-column: 1 / -1;
  }

  /* Category cell */
  .admin-table td:nth-child(3)::before {
    content: "Catégorie: ";
    font-weight: 600;
    color: var(--c-muted);
    margin-right: var(--sp-2);
  }

  /* Supplier cell */
  .admin-table td:nth-child(4)::before {
    content: "Fournisseur: ";
    font-weight: 600;
    color: var(--c-muted);
    margin-right: var(--sp-2);
  }

  /* Price cell */
  .admin-table td:nth-child(5)::before {
    content: "Prix: ";
    font-weight: 600;
    color: var(--c-muted);
    margin-right: var(--sp-2);
  }

  /* Stock cell */
  .admin-table td:nth-child(6) {
    justify-content: space-between !important;
  }
  
  .admin-table td:nth-child(6)::before {
    content: "Stock: ";
    font-weight: 600;
    color: var(--c-muted);
    margin-right: 0;
  }

  /* Hide "Ajouté le" on mobile */
  .admin-table td:nth-child(7) {
    display: none;
  }

  /* Actions cell: full width with buttons side-by-side */
  .admin-table td:nth-child(8) {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--c-border);
  }

  .admin-table__actions {
    width: 100%;
    display: flex;
    gap: var(--sp-2);
  }

  .admin-table__actions .btn {
    flex: 1;
    padding: var(--sp-3) var(--sp-2);
    font-size: 0.85rem;
  }
}

.publish-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg-alt);
}

.publish-card__media {
  width: 72px;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--c-primary);
  color: var(--c-text);
  font-weight: 800;
}

.publish-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publish-card__body {
  display: grid;
  gap: var(--sp-1);
  min-width: 0;
}

.publish-card__body span {
  color: var(--c-muted);
  font-size: 0.9rem;
}

.publish-card__url {
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: var(--sp-2);
  font-size: 0.82rem;
  color: var(--c-text);
  background: var(--c-bg);
}

.publish-card .btn {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .publish-card {
    grid-template-columns: 56px 1fr;
  }

  .publish-card__media {
    width: 56px;
  }
}

/* Small-screen fixes (420px and below) */
@media (max-width: 420px) {
  .admin-main {
    padding: var(--sp-2);
  }

  .empty-state {
    margin: auto;
  }

  .admin-products-header {
    padding: var(--sp-3);
    width: 100%;
    gap: var(--sp-2);
  }

  .admin-products-header__title {
    font-size: 1rem;
  }

  .table-wrapper {
    padding: var(--sp-3);
  }

  .admin-table tr {
    padding: var(--sp-3);
    gap: var(--sp-1);
  }

  .admin-table td {
    font-size: 0.85rem;
  }

  .admin-table__img {
    width: 48px;
    height: 48px;
  }

  .admin-table__actions .btn {
    padding: var(--sp-2) var(--sp-1);
    font-size: 0.8rem;
  }

  .search-bar--compact {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .admin-products-header__title {
    margin-left: 0;
    width: 100%;
  }

  .admin-products-list {
    margin: auto;
    width: 100%;
    max-width: 100%;
  }

  .table-wrapper {
    width: 100%;
    max-width: 100%;
  }
}
