/* ===========================================================
   Câlins & Threads — Design System
   Palette : crème + rose poudré + bordeaux + doré
   Fonts   : Fraunces (titres) · Inter (corps) · Caveat (script)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --cream:        #FFF8F3;
  --cream-deep:   #F5EBE0;
  --blush:        #F6D7DC;
  --blush-soft:   #FFEFF3;
  --blush-deep:   #E8B4BC;
  --pink:         #F4A6B5;
  --pink-bright:  #E07595;
  --rose-vif:     #D86A87;
  --burgundy:     #C26384;
  --burgundy-deep:#9E4B6B;
  --gold:         #C9A24B;
  --gold-soft:    #E5C97A;
  --coffee:       #3D2B25;
  --coffee-soft:  #7A5F55;
  --red-error:    #C04162;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-script:  'Caveat', cursive;

  --radius-card:   1.25rem;
  --radius-button: 999px;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-soft: 0 4px 24px -8px rgba(61, 43, 37, 0.12);
  --shadow-pop:  0 10px 28px -10px rgba(216, 106, 135, 0.40);
  --shadow-pink: 0 10px 30px -12px rgba(216, 106, 135, 0.45);
}

* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--coffee);
  background-color: var(--cream);
  background-image:
    radial-gradient(at 18% 8%,  rgba(244, 166, 181, 0.30) 0px, transparent 55%),
    radial-gradient(at 82% 18%, rgba(246, 215, 220, 0.55) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(235, 122, 147, 0.18) 0px, transparent 60%),
    radial-gradient(at 5% 75%,  rgba(229, 201, 122, 0.20) 0px, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Texture papier subtile */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--coffee);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

a { color: var(--burgundy); text-decoration: none; transition: color .2s var(--ease-smooth); }
a:hover { color: var(--burgundy-deep); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Container ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .container { padding: 0 2rem; } }

/* ---------- Typography helpers ---------- */
.script {
  font-family: var(--font-script);
  color: var(--burgundy);
  font-weight: 700;
}

.section-title { font-size: clamp(1.875rem, 4vw, 3rem); }

.text-muted { color: var(--coffee-soft); }
.text-burgundy { color: var(--burgundy); }
.text-center { text-align: center; }
.italic { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-button);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease-smooth);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}
.btn-primary:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: var(--cream); box-shadow: var(--shadow-pop); }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-secondary:hover { background: var(--burgundy); color: var(--cream); }
.btn-secondary:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--coffee);
  padding: 0.5rem 1rem;
  border-color: transparent;
}
.btn-ghost:hover { color: var(--burgundy); }

.btn[disabled],
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--cream);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.card.stitched::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius-card) - 8px);
  border: 1px dashed rgba(162, 62, 72, 0.25);
  pointer-events: none;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-unique { background: var(--blush); color: var(--burgundy-deep); }
.badge-stock  { background: var(--cream-deep); color: var(--coffee-soft); }
.badge-soldout { background: var(--burgundy); color: var(--cream); }
.badge-mto { background: linear-gradient(135deg, #f4cce0, #efb9c2); color: #6b1e3d; font-weight: 600; }

/* ---------- Forms ---------- */
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--coffee);
}
.input, .textarea, select.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--cream-deep);
  background: rgba(255, 255, 255, 0.6);
  color: var(--coffee);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, select.input:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px var(--blush);
}
.textarea { min-height: 8rem; resize: vertical; }
.input::placeholder { color: rgba(122, 95, 85, 0.6); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 243, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 235, 224, 0.5);
  transition: background .2s ease, box-shadow .2s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  transition: height .25s var(--ease-smooth);
}
@media (min-width: 768px) { .site-header .container { height: 5rem; } }

/* Header compact quand on scroll */
.site-header.scrolled {
  background: rgba(255, 248, 243, 0.96);
  box-shadow: 0 2px 12px -6px rgba(61,43,37,.18);
}
.site-header.scrolled .container { height: 3.25rem; }
@media (min-width: 768px) { .site-header.scrolled .container { height: 3.75rem; } }
.site-header.scrolled .brand { font-size: 1.1rem; }
@media (min-width: 768px) { .site-header.scrolled .brand { font-size: 1.25rem; } }

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--coffee);
  letter-spacing: -0.01em;
  text-decoration: none;
}
@media (min-width: 768px) { .brand { font-size: 1.5rem; } }
.brand .amp { font-family: var(--font-script); color: var(--burgundy); font-weight: 700; margin: 0 0.1em; }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-desktop a { color: var(--coffee); }
.nav-desktop a:hover { color: var(--burgundy); }

.nav-toggle {
  display: inline-flex;
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: var(--coffee);
  cursor: pointer;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.nav-mobile {
  display: none;
  border-top: 1px solid rgba(245, 235, 224, 0.5);
  background: var(--cream);
  padding: 1rem 0;
}
.nav-mobile.open { display: block; }
@media (min-width: 768px) { .nav-mobile { display: none !important; } }
.nav-mobile .container { flex-direction: column; align-items: stretch; gap: 0.75rem; height: auto; }
.nav-mobile a { padding: 0.5rem 0; color: var(--coffee); }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--coffee);
}
.cart-link:hover { color: var(--burgundy); }
.cart-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.75rem;
  background: var(--burgundy);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 999px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 6rem;
}
@media (min-width: 768px) { .hero { padding: 6rem 0 7rem; } }

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }

.hero h1 {
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 1.05;
}
.hero-image {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--blush-soft);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.hero-image .blob-1 { position: absolute; top: -1.5rem; right: -1.5rem; width: 8rem; height: 8rem; border-radius: 50%; background: var(--blush); opacity: 0.6; }
.hero-image .blob-2 { position: absolute; bottom: -2rem; left: -2rem; width: 10rem; height: 10rem; border-radius: 50%; background: var(--gold); opacity: 0.25; }

/* ---------- Section ---------- */
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card .image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--blush-soft);
  overflow: hidden;
}
.product-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-smooth); }
.product-card:hover .image-wrap img { transform: scale(1.05); }
.product-card .body { padding: 1.25rem; }
.product-card .name { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.product-card .price { color: var(--burgundy); font-weight: 500; margin-top: 0.25rem; }
.product-card .badge-floating {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}
.product-card .soldout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 248, 243, 0.7);
  display: grid;
  place-items: center;
}

/* Indicateurs de zone (survol multi-photos) — masqués hors hover sur desktop.
   Sur tactile on les laisse visibles pour signaler qu'il y a plusieurs photos. */
.product-card .hover-indicators {
  position: absolute;
  left: 50%;
  bottom: .6rem;
  transform: translateX(-50%);
  display: flex;
  gap: .3rem;
  padding: .25rem .5rem;
  background: rgba(255, 248, 243, 0.78);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  opacity: 0;
  transition: opacity .2s var(--ease-smooth);
  pointer-events: none;
}
.product-card:hover .hover-indicators { opacity: 1; }
@media (hover: none) {
  .product-card .hover-indicators { opacity: 1; }
}
.product-card .hover-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(61, 43, 37, 0.25);
  transition: background .15s var(--ease-smooth), transform .15s var(--ease-smooth);
}
.product-card .hover-dot.active {
  background: var(--burgundy);
  transform: scale(1.3);
}

/* ---------- Filters bar ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  border: 1px solid var(--cream-deep);
  background: var(--cream);
  color: var(--coffee);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s var(--ease-smooth);
}
.pill:hover { border-color: var(--burgundy); }
.pill.active { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }

.sort-form { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.sort-form select {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--cream-deep);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

/* ---------- Product page ---------- */
.product-detail {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--blush-soft);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--blush-soft);
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity .2s, border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--burgundy); opacity: 1; }
.thumb:hover { opacity: 1; }

.product-info h1 { font-size: clamp(2rem, 4vw, 3rem); }
.product-info .price-big { font-size: 1.875rem; color: var(--burgundy); font-weight: 500; margin: 0.75rem 0; }
.product-info .badges { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.product-info .description { white-space: pre-wrap; color: var(--coffee-soft); margin: 1.5rem 0; }
.product-info .info-list {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--cream-deep);
  font-size: 0.875rem;
  color: var(--coffee-soft);
}
.product-info .info-list li { padding: 0.25rem 0; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 360px; gap: 2.5rem; } }

.cart-line {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}
.cart-line .img {
  width: 6rem;
  height: 6rem;
  border-radius: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blush-soft);
}
.cart-line .img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .name { font-family: var(--font-display); font-size: 1.125rem; }
.cart-line .qty { display: inline-flex; align-items: center; gap: 0.5rem; }
.cart-line .qty button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--cream-deep);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-line .qty button:hover:not(:disabled) { border-color: var(--burgundy); color: var(--burgundy); }
.cart-line .qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.cart-line .remove {
  border: none;
  background: transparent;
  color: var(--coffee-soft);
  cursor: pointer;
  padding: 0.5rem;
}
.cart-line .remove:hover { color: var(--burgundy); }

.cart-summary {
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid rgba(245, 235, 224, 0.5);
  background: rgba(245, 235, 224, 0.3);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h4 { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500; color: var(--coffee); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 0.25rem 0; }
.site-footer a { color: var(--coffee-soft); }
.site-footer a:hover { color: var(--burgundy); }
.site-footer .copy { border-top: 1px solid rgba(245, 235, 224, 0.5); padding: 1rem 0; text-align: center; font-size: 0.75rem; color: var(--coffee-soft); }
.site-footer .social { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
.site-footer .social a { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- Toast (vanilla) ---------- */
.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: calc(100vw - 1.5rem);
  width: max-content;
}
.toast {
  background: var(--coffee);
  color: var(--cream);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-pop);
  animation: toast-in .3s var(--ease-smooth), toast-out .3s var(--ease-smooth) 4.2s forwards;
}
.toast.success { background: var(--burgundy); }
.toast.error { background: var(--red-error); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }

/* Toast riche : photo + nom + lien voir panier */
.toast-rich {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .85rem .55rem .55rem;
  border-radius: 999px;
  background: #fff;
  color: var(--coffee);
  border: 1px solid var(--cream-deep);
  box-shadow: var(--shadow-pop);
  pointer-events: auto;
  max-width: min(380px, calc(100vw - 1.5rem));
  animation: toast-in .3s var(--ease-smooth), toast-out .35s var(--ease-smooth) 4.2s forwards;
}
.toast-rich .tr-img {
  width: 38px; height: 38px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blush-soft);
}
.toast-rich .tr-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.toast-rich .tr-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.toast-rich .tr-title {
  font-size: .75rem;
  color: #4a9b58;
  font-weight: 600;
}
.toast-rich .tr-name {
  font-size: .85rem;
  color: var(--coffee);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.toast-rich .tr-cta {
  flex-shrink: 0;
  background: var(--burgundy);
  color: #fff;
  text-decoration: none;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  transition: background .15s ease;
}
.toast-rich .tr-cta:hover { background: var(--burgundy-deep); color: #fff; }

/* Bouton flottant Instagram */
.fab-insta {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdf497, #fd5949 50%, #d6249f 90%, #285AEB);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -8px rgba(214,36,159,.5), 0 2px 6px rgba(0,0,0,.12);
  z-index: 50;
  transition: transform .15s var(--ease-bounce), box-shadow .15s ease;
  text-decoration: none;
}
.fab-insta:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(214,36,159,.65), 0 3px 8px rgba(0,0,0,.18);
}
.fab-insta svg { display: block; }
@media (max-width: 480px) {
  .fab-insta { bottom: 1rem; right: 1rem; width: 46px; height: 46px; }
}
/* Décale le fab quand le sticky add-to-cart est visible (fiche produit mobile) */
body.has-sticky-cta .fab-insta { bottom: 5rem; }

/* ---------- Admin ---------- */
.admin-header {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-deep);
  position: sticky;
  top: 0;
  z-index: 30;
}
.admin-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.admin-nav { display: flex; gap: 0.25rem; }
.admin-nav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--coffee);
  text-decoration: none;
  transition: all .2s;
}
.admin-nav a.active { background: var(--burgundy); color: var(--cream); }
.admin-nav a:not(.active):hover { background: var(--blush-soft); }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.admin-stat { padding: 1.5rem; }
.admin-stat .label { font-size: 0.875rem; color: var(--coffee-soft); margin-bottom: 0.5rem; }
.admin-stat .value { font-family: var(--font-display); font-size: 2rem; }

.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table thead { background: rgba(245, 235, 224, 0.4); text-align: left; }
.admin-table th { padding: 0.85rem 1rem; font-weight: 500; }
.admin-table td { padding: 0.85rem 1rem; border-top: 1px solid var(--cream-deep); }
.admin-table img { width: 48px; height: 48px; border-radius: 0.5rem; object-fit: cover; background: var(--blush-soft); }
.admin-actions { display: inline-flex; gap: 0.5rem; }
.admin-actions a, .admin-actions button {
  background: transparent;
  border: none;
  padding: 0.5rem;
  color: var(--coffee);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
}
.admin-actions a:hover, .admin-actions button:hover { color: var(--burgundy); }

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.status-pending   { background: var(--cream-deep); color: var(--coffee); }
.status-paid      { background: var(--blush); color: var(--burgundy-deep); }
.status-shipped   { background: var(--burgundy); color: var(--cream); }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--blush);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background: var(--cream);
  display: block;
}
.upload-zone:hover { border-color: var(--burgundy); }
.upload-zone input[type="file"] { display: none; }

.image-thumbs-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.image-thumb-admin {
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}
.image-thumb-admin img { aspect-ratio: 1/1; width: 100%; object-fit: cover; }
.image-thumb-admin .meta { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.6rem; font-size: 0.75rem; color: var(--coffee-soft); }
.image-thumb-admin .meta button {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--burgundy);
  padding: 0.1rem 0.3rem;
}

/* ---------- Forms (admin) ---------- */
.form-grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .form-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.check-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  cursor: pointer;
}
.check-card input[type=checkbox] { accent-color: var(--burgundy); width: 1rem; height: 1rem; }
.check-card .check-label { font-weight: 500; }
.check-card .check-hint { font-size: 0.75rem; color: var(--coffee-soft); }

/* ---------- Utils ---------- */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-12 { padding: 3rem 0; }
.py-20 { padding: 5rem 0; }
.max-w-xl { max-width: 36rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; }

.empty-state { padding: 4rem 0; text-align: center; }
.empty-state .big-script { font-size: 2rem; }

/* =========================================================================
   FICHE PRODUIT — RÉORDONNANCEMENT MOBILE
   Placé tout en fin de fichier pour battre les classes utilitaires .mt-4 /
   .mt-6 (qui définissent margin-top). On utilise une spécificité renforcée
   (.product-detail .product-info .X) pour passer devant ces utilitaires.
   ========================================================================= */
@media (max-width: 767px) {
  .product-detail .product-info {
    display: flex;
    flex-direction: column;
  }
  .product-detail .product-info > .badges          { order: 1; margin-bottom: .5rem; margin-top: 0; }
  .product-detail .product-info > h1               { order: 2; margin: .25rem 0; }
  .product-detail .product-info > .price-big       { order: 3; margin: .25rem 0 .75rem; }
  .product-detail .product-info > .variant-picker  { order: 4; margin-top: .25rem; }
  .product-detail .product-info > .mto-info        { order: 5; margin-top: 1rem; }
  .product-detail .product-info > .trust-badges    { order: 6; margin-top: 1rem; }
  .product-detail .product-info > .product-actions { order: 7; margin-top: .85rem; }
  .product-detail .product-info > .share-row       { order: 8; margin-top: .85rem; }
  .product-detail .product-info > .description     { order: 9; margin-top: 2rem; }
  .product-detail .product-info > .info-list       { order: 10; margin-top: 1.5rem; }
}
