:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #141414;
  --muted: #6d7178;
  --border: #e5e7eb;
  --primary: #111827;
  --accent: #f59e0b;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.topbar {
  position: relative;
  height: 48px;
  min-height: 48px;
  overflow: hidden;
  background: #111827;
  color: white;
}

.topbar-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-100%);
  animation: message-vertical 9s infinite;
}

.message-1 {
  animation-delay: 0s;
}


.message-2 {
  animation-delay: 3s;
}

.message-3 {
  animation-delay: 6s;
}

@keyframes message-vertical {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }

  10%, 28% {
    opacity: 1;
    transform: translateY(0);
  }

  38%, 100% {
    opacity: 0;
    transform: translateY(100%);
  }
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 12px 6%;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.logo img {
  display: block;
  width: auto;
  height: 82px;
  max-width: 235px;
  object-fit: contain;
}

.logo-card {
  padding: 0;
  overflow: hidden;
  background: white;
}

.logo-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: contain;
  padding: 25px;
}
.hero-card.logo-card {
  padding: 0 !important;
  background: transparent !important;
  min-height: 330px;
  overflow: hidden;
  border-radius: 26px;
}

.hero-card.logo-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  padding: 0 !important;
  margin: 0 !important;
  object-fit: contain;
  background: white;
  border-radius: 26px;
}

.header nav { display: flex; gap: 26px; color: var(--muted); }
.header nav a:hover { color: var(--text); }
.header-actions, .social-links { display: flex; align-items: center; }
.header-actions { gap: 16px; }
.social-links { gap: 8px; }
.social-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #f1f3f5;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.social-links a:hover { transform: translateY(-2px); background: var(--primary); color: white; }
.social-links svg { width: 19px; height: 19px; fill: currentColor; }
.cart-button { display: inline-flex; align-items: center; gap: 8px; }
.cart-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.cart-button, .primary-button, .secondary-button, .danger-button {
  border: 0;
  border-radius: 12px;
  padding: 12px 17px;
  cursor: pointer;
  font-weight: 700;
  transition: .2s ease;
}
.cart-button, .primary-button { background: var(--primary); color: white; }
.primary-button:hover, .cart-button:hover { transform: translateY(-1px); opacity: .9; }
.secondary-button { background: #eef0f3; color: var(--text); }
.danger-button { background: #fee4e2; color: var(--danger); }
.full { display: block; width: 100%; text-align: center; }

.hero {
  max-width: 1200px;
  margin: 50px auto;
  padding: 65px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff, #e8ebf0);
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  align-items: center;
  gap: 50px;
}
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; margin: 12px 0 20px; letter-spacing: -3px; }
.hero p { color: var(--muted); line-height: 1.7; max-width: 660px; }
.hero .primary-button { display: inline-block; margin-top: 16px; }
.hero-card {
  background: var(--primary);
  color: white;
  border-radius: 26px;
  padding: 45px 35px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}
.hero-card p { color: #cbd5e1; }
.hero-brand-logo {
  width: auto;
  height: 92px;
  max-width: 230px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 14px;
  padding: 8px 12px;
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.18));
}
.hero-card h3 { margin: 0 0 7px; font-size: 27px; }
.hero-badge {
  width: max-content;
  padding: 8px 12px;
  background: var(--accent);
  color: #111;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: auto;
}
.eyebrow { margin: 0; font-size: 12px; letter-spacing: 2px; font-weight: 800; color: var(--accent); }

.about-description {
  position: relative;
  margin-top: 24px;
  padding: 26px 25px 26px 32px;

  color: #4b5563;
  background: linear-gradient(135deg, #ffffff, #fffaf0);

  border: 1px solid #f1e5ce;
  border-radius: 18px;

  font-size: 16px;
  line-height: 1.8;

  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

/* Ligne décorative dorée */

.about-description::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;

  width: 5px;
  background: linear-gradient(#f59e0b, #f6c667);
  border-radius: 0 10px 10px 0;
}

/* Petite étoile décorative */

.about-description::after {
  content: "✦";
  position: absolute;
  top: -15px;
  right: 22px;

  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;

  color: white;
  background: #f59e0b;
  border: 4px solid #f6f7f9;
  border-radius: 50%;

  font-size: 16px;
}

.products-section, .info-section { max-width: 1200px; margin: 0 auto; padding: 55px 20px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 30px;
}
.section-heading h2, .info-section h2 { font-size: 36px; margin: 8px 0 0; }
.filters { display: flex; gap: 10px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: white;
  border-radius: 11px;
  padding: 12px 14px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #9ca3af; box-shadow: 0 0 0 3px rgba(17,24,39,.08); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(15,23,42,.06);
  transition: .25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image-button {
    width: 100%;
    aspect-ratio: 4 / 5;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #ffffff;
    overflow: hidden;
    display: block;
}

.product-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.product-card-content { padding: 18px; }
.product-card h3 { min-height: 46px; margin: 8px 0 14px; font-size: 17px; }
.category { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.price-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 18px; }
.price-row strong { font-size: 19px; }
.price-row del { color: var(--muted); font-size: 13px; }

.info-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 45px;
}

.benefits article {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: white;
  border: 1px solid #ebeef2;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: 0.25s ease;
}

.benefits article:hover {
  transform: translateY(-4px);
  border-color: #f6c667;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 14px;
  font-size: 20px;
  font-weight: 800;
}

.benefits article > div:last-child {
  display: grid;
  gap: 8px;
}

.benefits article strong {
  font-size: 16px;
}

.benefits article span {
  color: #6d7178;
  line-height: 1.65;
}

/* Cartes cachées avant l’arrivée de l’utilisateur */

.benefits {
  overflow: hidden;
}

.benefits article {
  opacity: 0;
  transform: translateX(-70px);
}

/* Animation déclenchée au défilement */

.benefits.show-benefits article {
  animation: benefit-appear 0.8s ease forwards;
}

.benefits.show-benefits article:nth-child(1) {
  animation-delay: 0s;
}

.benefits.show-benefits article:nth-child(2) {
  animation-delay: 0.25s;
}

.benefits.show-benefits article:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes benefit-appear {
  from {
    opacity: 0;
    transform: translateX(-70px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefits article {
    opacity: 1;
    transform: none;
  }

  .benefits.show-benefits article {
    animation: none;
  }
}

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

.modern-footer {
  display: block;
  margin-top: 70px;
  padding: 0;
  background: #111827;
  color: white;
}

.footer-news {
  padding: 55px 6%;
  text-align: center;
  background: linear-gradient(135deg, #1f2937, #111827);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-small-title {
  margin: 0;
  color: #f59e0b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.footer-news h2 {
  max-width: 750px;
  margin: 12px auto;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.15;
}

.footer-news > p:last-child {
  margin-bottom: 0;
  color: #cbd5e1;
  font-size: 16px;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  padding: 55px 25px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr;
  gap: 55px;
}

.footer-column h3 {
  margin: 0 0 22px;
  font-size: 20px;
}

.footer-logo {
  width: auto;
  height: 75px;
  max-width: 190px;
  margin-bottom: 18px;
  object-fit: contain;
}

.footer-contact p {
  display: grid;
  gap: 5px;
  margin: 17px 0;
}

.footer-contact strong {
  color: white;
  font-size: 13px;
}

.footer-contact span,
.footer-contact a,
.footer-follow p {
  color: #cbd5e1;
  line-height: 1.6;
}

.footer-contact a:hover {
  color: #f59e0b;
}

/* Questions et réponses */

.footer-faq details {
  margin-bottom: 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
}

.footer-faq summary {
  position: relative;
  padding: 16px 48px 16px 17px;
  cursor: pointer;
  color: white;
  font-weight: 700;
  list-style: none;
}

.footer-faq summary::-webkit-details-marker {
  display: none;
}

.footer-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%);
  color: #f59e0b;
  font-size: 23px;
}

.footer-faq details[open] summary::after {
  content: "−";
}

.faq-answer {
  margin: 0 12px 12px;
  padding: 16px;
  color: #dbe2ea;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

/* Réseaux sociaux */

.footer-socials {
  display: flex;
  gap: 11px;
  margin-top: 22px;
}

.footer-socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #111827;
  background: white;
  border-radius: 50%;
  font-size: 21px;
  font-weight: 800;
  transition: 0.2s ease;
}

.footer-socials a:hover {
  color: white;
  background: #f59e0b;
  transform: translateY(-4px);
}

.footer-bottom {
  padding: 22px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #94a3b8;
  background: #0b101c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: white;
}

/* Affichage téléphone */

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 42px 22px;
  }

  .footer-news {
    padding: 42px 22px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(430px, 94vw);
  height: 100vh;
  z-index: 50;
  background: white;
  padding: 25px;
  transform: translateX(105%);
  transition: .3s ease;
  box-shadow: var(--shadow);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-header, .cart-total, .order-heading, .admin-header, .admin-actions, .form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.icon-button, .dialog-close {
  border: 0; background: #eee; border-radius: 50%; width: 38px; height: 38px; cursor: pointer;
}
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); }
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item img { width: 70px; height: 80px; object-fit: contain;object-position: center; border-radius: 10px; }
.cart-item div { display: grid; gap: 5px; }
.cart-item small, .cart-item span { color: var(--muted); }
.remove-item { border: 0; background: transparent; cursor: pointer; }
.cart-total { padding: 25px 0; font-size: 20px; }

dialog {
  width: min(900px, 94vw);
  border: 0;
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0,0,0,.6); }
.dialog-close { float: right; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; clear: both; }
.product-detail > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; }
.product-detail form, .checkout-form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.checkout-form { max-width: 560px; margin: auto; }
.empty { color: var(--muted); text-align: center; padding: 35px; }
.error { color: var(--danger); }

.admin-body { min-height: 100vh; padding: 30px; }
.auth-card, .admin-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 28px rgba(15,23,42,.07);
}
.auth-card { max-width: 460px; margin: 8vh auto; }
.auth-card form, .admin-card form { display: grid; gap: 15px; }
.admin-dashboard { max-width: 1300px; margin: auto; }
.admin-header { margin-bottom: 30px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab { border: 0; padding: 12px 18px; border-radius: 12px; cursor: pointer; font-weight: 700; }
.tab.active { background: var(--primary); color: white; }
.admin-grid { display: grid; grid-template-columns: 440px 1fr; gap: 22px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row { display: flex; align-items: center; }
.checkbox-row input { width: auto; }
.admin-list-item {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.admin-list-item img { width: 65px; height: 70px; object-fit: cover; border-radius: 9px; }
.admin-list-item div:nth-child(2) { display: grid; gap: 5px; }
.admin-list-item span { color: var(--muted); font-size: 13px; }
.list-actions { display: flex; gap: 7px; }
.order-card { border: 1px solid var(--border); border-radius: 15px; padding: 20px; margin-bottom: 14px; }
.order-heading > div { display: grid; gap: 6px; }
.order-heading span, .order-card p, .order-card li { color: var(--muted); }
.order-status { width: auto; }

@media (max-width: 900px) {
  .hero, .info-section, .admin-grid, .product-detail { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .header nav { display: none; }
  .header-actions { gap: 10px; }
  .hero { margin: 20px; padding: 35px 25px; }
  .hero h1 { letter-spacing: -1.8px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  footer { grid-template-columns: 1fr; }
  .admin-body { padding: 15px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .topbar { min-height: 42px; font-size: 12.5px; }
  .topbar-group { gap: 22px; padding-right: 22px; }
  .topbar-track { animation-duration: 19s; }
  .delivery-icon { width: 19px; height: 19px; }
  .header { min-height: 88px; padding: 8px 4%; }
  .logo img { height: 68px; max-width: 120px; }
  .header-actions { gap: 7px; }
  .social-links { gap: 5px; }
  .social-links a { width: 31px; height: 31px; }
  .social-links svg { width: 16px; height: 16px; }
  .cart-button { min-width: 42px; justify-content: center; padding: 10px; font-size: 0; }
  #cartCount { font-size: 11px; }
  .cart-icon { width: 20px; height: 20px; }
  .hero-brand-logo { height: 78px; max-width: 190px; }
  .product-grid { grid-template-columns: 1fr; }
  .filters, .two-columns, .list-actions { flex-direction: column; grid-template-columns: 1fr; }
  .admin-list-item { grid-template-columns: 55px 1fr; }
  .admin-list-item .list-actions { grid-column: 1/-1; display: flex; }
}

.field-help { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: -8px; }

/* Bouton WhatsApp flottant */

.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 25px;
  z-index: 1000;

  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;

  background: #25d366;
  color: white;
  border: 3px solid white;
  border-radius: 50%;

  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  animation: whatsapp-pulse 2s infinite;
  transition: transform 0.2s ease;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  background: #1ebe5d;
}

/* Animation du bouton */

@keyframes whatsapp-pulse {
  0% {
    box-shadow:
      0 8px 28px rgba(37, 211, 102, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow:
      0 8px 28px rgba(37, 211, 102, 0.4),
      0 0 0 18px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow:
      0 8px 28px rgba(37, 211, 102, 0.4),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Taille sur téléphone */

@media (max-width: 560px) {
  .whatsapp-float {
    left: 15px;
    bottom: 18px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}
/* Photos multiples dans l’administration */

.images-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.images-preview-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  color: #6d7178;
  text-align: center;
  background: #f7f8fa;
  border: 1px dashed #d8dde5;
  border-radius: 12px;
}

.image-preview-card {
  position: relative;
  overflow: hidden;
  padding: 5px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
}

.image-preview-card.is-primary {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.image-preview-card > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 9px;
}

.new-image-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 5px 8px;
  color: white;
  background: #2563eb;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
}

.image-preview-actions {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 6px;
  padding-top: 6px;
}

.set-primary-image,
.remove-preview-image {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.set-primary-image {
  padding: 6px 8px;
  color: #7c4a03;
  background: #fff3d6;
}

.image-preview-card.is-primary .set-primary-image {
  color: white;
  background: #f59e0b;
}

.remove-preview-image {
  color: #b42318;
  background: #fee4e2;
}

/* Galerie multi-photos de la fiche produit */

.product-gallery {
  min-width: 0;
}

.product-main-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    touch-action: pan-y;
}

.product-main-image-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Flèches */

.gallery-arrow {
  position: absolute;
  top: 50%;

  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;

  transform: translateY(-50%);

  color: #141414;
  background: rgba(255, 255, 255, 0.92);

  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;

  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);

  cursor: pointer;
  font-size: 29px;
  line-height: 1;
}

.gallery-previous {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

/* Compteur 1/4 */

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;

  padding: 6px 10px;

  color: white;
  background: rgba(17, 24, 39, 0.76);

  border-radius: 20px;

  font-size: 12px;
  font-weight: 800;
}

/* Petites photos */

.product-thumbnails {
  display: flex;
  gap: 9px;

  margin-top: 11px;
  padding: 3px 1px 6px;

  overflow-x: auto;
}

.product-thumbnail {
  flex: 0 0 70px;

  width: 70px;
  height: 82px;

  overflow: hidden;
  padding: 3px;

  background: white;
  border: 2px solid transparent;
  border-radius: 11px;

  cursor: pointer;
}

.product-thumbnail.active {
  border-color: #f59e0b;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 7px;
}

/* Téléphone */

@media (max-width: 560px) {
  .gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .product-thumbnail {
    flex-basis: 62px;
    width: 62px;
    height: 72px;
  }
}

/* Champs de livraison à domicile */

#homeDeliveryFields {
  display: grid;
  gap: 14px;
  padding: 17px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

/* Résumé du prix côté cliente */

.checkout-summary {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 20px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
}

.checkout-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.checkout-summary span {
  color: #6d7178;
}

.checkout-final-total {
  margin-top: 5px;
  padding-top: 15px;
  border-top: 1px solid #d8dde5;
}

.checkout-final-total span,
.checkout-final-total strong {
  color: #111827;
  font-size: 18px;
}

.checkout-final-total strong {
  color: #d97706;
}

/* Résumé du prix côté administration */

.admin-order-totals {
  display: grid;
  gap: 8px;
  margin-top: 17px;
  padding: 16px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.admin-order-totals span {
  color: #6d7178;
}

.admin-order-totals strong {
  padding-top: 10px;
  color: #d97706;
  border-top: 1px solid #d8dde5;
  font-size: 17px;
}

.stock-out {
  color: #b42318;
  font-weight: 700;
  margin: 8px 0 12px;
}

.stock-available {
  color: #067647;
  font-weight: 600;
  margin: 8px 0 12px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ================================
   Confirmation de commande
================================ */

.checkout-status {
  display: none;
}

.checkout-status:not(:empty) {
  display: block;
}

.checkout-status-loading {
  padding: 14px 16px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #4b5563;
  text-align: center;
  font-weight: 600;
}

.checkout-status-success {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 5px;
  padding: 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 15px;
}

.checkout-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  background: #16a34a;
  color: white;
  border-radius: 50%;
  font-size: 23px;
  font-weight: 800;
}

.checkout-success-content {
  display: grid;
  gap: 7px;
}

.checkout-success-content strong {
  color: #166534;
  font-size: 17px;
}

.checkout-success-content span {
  color: #374151;
  line-height: 1.55;
}

.checkout-success-content small {
  margin-top: 3px;
  color: #4b5563;
}

.checkout-success-content small b {
  color: #166534;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.checkout-status-error {
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #b42318;
  font-weight: 600;
}
/* Actions commandes administration */

.order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.delete-order {
  padding: 10px 13px;
  white-space: nowrap;
}

.delete-order:hover {
  opacity: 0.85;
}

.delete-order:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 560px) {

  .order-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-actions {
    width: 100%;
  }

  .order-status {
    flex: 1;
  }
}

.admin-product-info {
  display: block;
  margin-top: 7px;
}

.admin-stock-out {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 7px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
}