:root {
  --grossiste-red: #ff0b00;
  --grossiste-red-dark: #cc0900;
  --grossiste-red-soft: #fff1f0;
  --grossiste-black: #050505;
  --grossiste-ink: #111111;
  --grossiste-gray: #9b9b9b;
  --grossiste-border: #e6e6e6;
}

html { scroll-behavior: smooth; }
body { background: #f8fafc; color: var(--grossiste-ink); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media print { .print\:hidden { display: none !important; } body { background: white !important; } }
input, select, textarea, button { font: inherit; }

::selection { background: var(--grossiste-red); color: #fff; }
:focus-visible { outline: 3px solid rgba(255, 11, 0, .35); outline-offset: 2px; }

.brand-topbar { background: linear-gradient(90deg, #000 0%, #111 55%, #2b0301 100%); border-bottom: 3px solid var(--grossiste-red); }
.brand-header { box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.brand-footer { background: radial-gradient(circle at top left, rgba(255, 11, 0, .18), transparent 28%), #050505; }
.brand-admin-sidebar { background: linear-gradient(180deg, #050505 0%, #111 62%, #2b0301 100%); border-right: 4px solid var(--grossiste-red); }
.brand-admin-header { border-top: 4px solid var(--grossiste-red); }

.brand-btn, .btn-primary {
  background: var(--grossiste-red) !important;
  color: white !important;
  border-color: var(--grossiste-red) !important;
  box-shadow: 0 12px 26px rgba(255, 11, 0, .18);
}
.brand-btn:hover, .btn-primary:hover { background: var(--grossiste-red-dark) !important; }

.brand-card {
  border: 1px solid var(--grossiste-border);
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}
.brand-card:hover { box-shadow: 0 22px 60px rgba(15, 23, 42, .10); }
.brand-red-line { height: 4px; background: var(--grossiste-red); }
.brand-muted { color: #6b7280; }

/* Harmonisation Tailwind existante vers la charte du logo */
.bg-red-700, .bg-red-600 { background-color: var(--grossiste-red) !important; }
.hover\:bg-red-800:hover, .hover\:bg-red-700:hover { background-color: var(--grossiste-red-dark) !important; }
.text-red-700, .text-red-800 { color: var(--grossiste-red) !important; }
.hover\:text-red-700:hover { color: var(--grossiste-red) !important; }
.bg-red-50 { background-color: var(--grossiste-red-soft) !important; }
.border-red-200, .border-red-300\/30 { border-color: rgba(255, 11, 0, .24) !important; }
.text-red-100 { color: #ffe7e5 !important; }

/* Boutons et actions existants */
a[class*="bg-red-"], button[class*="bg-red-"] { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
a[class*="bg-red-"]:hover, button[class*="bg-red-"]:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 11, 0, .22); }

/* Tables admin plus nettes */
table thead { color: #475569; }
table tbody tr:hover { background: #fff7f6; }

/* Images logo */
.brand-logo-public { max-height: 44px; width: auto; object-fit: contain; }
.brand-logo-admin { max-height: 48px; width: auto; object-fit: contain; }
.brand-logo-auth { max-height: 60px; width: auto; object-fit: contain; }

/* Badges */
.brand-badge { background: var(--grossiste-red-soft); color: var(--grossiste-red); border: 1px solid rgba(255, 11, 0, .20); }

/* GROSSISTE V2.0.6 — icônes boutons et menus */
.brand-menu-link,
.brand-footer-link,
.brand-admin-bottom-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.brand-footer-link,
.brand-admin-bottom-link {
  width: fit-content;
}
.brand-menu-link svg,
.brand-footer-link svg,
.brand-admin-bottom-link svg,
.js-icon-enhanced svg {
  transition: transform .15s ease, opacity .15s ease;
}
.brand-menu-link:hover svg,
.brand-footer-link:hover svg,
.brand-admin-bottom-link:hover svg,
.js-icon-enhanced:hover svg {
  transform: translateY(-1px) scale(1.04);
}
.brand-admin-sidebar nav a svg {
  color: #ff2a22;
}
.brand-admin-sidebar nav a:hover svg {
  color: #fff;
}
.js-icon-enhanced {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .js-icon-enhanced { white-space: normal; }
}


/* GROSSISTE V2.0.7 — icônes complémentaires et espacement menu footer */
.grossiste-target-card,
.grossiste-pack-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.grossiste-target-card:hover,
.grossiste-pack-card:hover {
  transform: translateY(-2px);
}
.grossiste-footer-menu {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.grossiste-footer-menu .brand-footer-link {
  padding: .15rem 0;
  line-height: 1.25rem;
}
.grossiste-contact-line {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.grossiste-contact-line svg {
  color: #ff2a22;
}
@media (min-width: 768px) {
  .brand-header nav { gap: 1.75rem !important; }
}


/* GROSSISTE V2.0.8 — admin menu organisé et dashboard premium */
.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.admin-menu-group {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 1.15rem;
  overflow: hidden;
}
.admin-menu-group[open] {
  background: rgba(255,255,255,.06);
  box-shadow: inset 3px 0 0 var(--grossiste-red);
}
.admin-menu-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .82rem .9rem;
  color: #f8fafc;
  font-weight: 800;
  letter-spacing: -.01em;
}
.admin-menu-summary::-webkit-details-marker { display: none; }
.admin-menu-summary-left {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.admin-menu-summary-left svg { color: #ff2a22; }
.admin-menu-chevron {
  font-size: 1.2rem;
  line-height: 1;
  color: rgba(255,255,255,.55);
  transition: transform .16s ease;
}
.admin-menu-group[open] .admin-menu-chevron { transform: rotate(90deg); }
.admin-submenu {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding: 0 .5rem .55rem .5rem;
}
.admin-submenu-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  border-radius: .95rem;
  padding: .66rem .75rem;
  color: rgba(226,232,240,.92);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.admin-submenu-link svg { color: #ff2a22; }
.admin-submenu-link:hover {
  background: rgba(255,255,255,.10);
  color: #fff;
  transform: translateX(2px);
}
.admin-submenu-link:hover svg,
.admin-submenu-link.is-active svg { color: #fff; }
.admin-submenu-link.is-active {
  background: linear-gradient(90deg, var(--grossiste-red), var(--grossiste-red-dark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(255,11,0,.22);
}
.admin-dashboard-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,11,0,.38), transparent 26%),
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.10), transparent 22%),
    linear-gradient(135deg, #050505 0%, #151515 54%, #450603 100%);
  box-shadow: 0 28px 70px rgba(15,23,42,.18);
}
.admin-dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -45% auto;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  background: rgba(255,11,0,.18);
  filter: blur(6px);
}
.admin-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 800;
  padding: .78rem .9rem;
  font-size: .82rem;
  transition: transform .15s ease, background-color .15s ease;
}
.admin-quick-action:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.admin-kpi-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 1.75rem;
  padding: 1.15rem;
  color: #fff;
  min-height: 10rem;
  box-shadow: 0 18px 46px rgba(15,23,42,.12);
  transition: transform .16s ease, box-shadow .16s ease;
}
.admin-kpi-card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(15,23,42,.18); }
.admin-kpi-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3.5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
}
.admin-kpi-red { background: linear-gradient(135deg, var(--grossiste-red), #9f0903); }
.admin-kpi-dark { background: linear-gradient(135deg, #050505, #303030); }
.admin-kpi-amber { background: linear-gradient(135deg, #b45309, #7c2d12); }
.admin-kpi-green { background: linear-gradient(135deg, #047857, #064e3b); }
.admin-kpi-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.18);
  flex-shrink: 0;
}
.admin-kpi-label,
.admin-kpi-note,
.admin-mini-stat-label,
.admin-mini-stat-note {
  display: block;
}
.admin-kpi-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.74);
  font-weight: 800;
}
.admin-kpi-value {
  display: block;
  margin-top: .35rem;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -.04em;
}
.admin-kpi-note {
  margin-top: .55rem;
  font-size: .82rem;
  color: rgba(255,255,255,.72);
}
.admin-mini-stat-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  border-radius: 1.35rem;
  border: 1px solid #e5e7eb;
  padding: .95rem;
  background: linear-gradient(180deg, #fff, #fafafa);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.admin-mini-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,11,0,.25);
  box-shadow: 0 14px 36px rgba(15,23,42,.08);
}
.admin-mini-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 1rem;
  background: var(--grossiste-red-soft);
  color: var(--grossiste-red);
  border: 1px solid rgba(255,11,0,.14);
  flex-shrink: 0;
}
.admin-mini-stat-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  font-weight: 800;
}
.admin-mini-stat-value {
  display: block;
  margin-top: .12rem;
  font-size: 1.22rem;
  line-height: 1.1;
  font-weight: 950;
  color: #0f172a;
}
.admin-mini-stat-note {
  margin-top: .25rem;
  color: #64748b;
  font-size: .78rem;
}
@media (max-width: 768px) {
  .brand-admin-sidebar { position: relative; max-height: none; }
  .admin-kpi-card { min-height: auto; }
}

/* GROSSISTE V2.0.12 — affichage photos front, SKU auto et unités dynamiques */
.product-gallery-shell {
  box-shadow: 0 22px 60px rgba(15, 23, 42, .08);
}
.product-gallery-main img {
  transition: opacity .18s ease, transform .22s ease;
}
.product-photo-thumb {
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.product-photo-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
}
.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(226,232,240,.9);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.product-gallery-arrow:hover {
  background: var(--grossiste-red);
  color: #fff;
  transform: translateY(-50%) scale(1.04);
}
.product-gallery-prev { left: 1rem; }
.product-gallery-next { right: 1rem; }
.product-card-premium .product-card-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(15,23,42,.08), transparent);
  pointer-events: none;
}
.product-admin-photo-slot {
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.product-admin-photo-slot:hover {
  border-color: rgba(255, 11, 0, .24);
  box-shadow: 0 16px 36px rgba(15,23,42,.06);
}
#product-sku {
  letter-spacing: .035em;
  font-weight: 800;
}
@media (max-width: 640px) {
  .product-gallery-arrow {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.65rem;
  }
}


/* GROSSISTE V2.1 — finition production premium */
.grossiste-mobile-bottom {
  position: fixed;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .35rem;
  border-radius: 1.35rem;
  background: rgba(15, 23, 42, .96);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 55px rgba(2,6,23,.28);
  padding: .45rem;
  backdrop-filter: blur(16px);
}
.grossiste-mobile-bottom-link {
  min-width: 0;
  color: rgba(255,255,255,.78);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  border-radius: 1rem;
  padding: .55rem .25rem;
  font-size: .68rem;
  font-weight: 800;
}
.grossiste-mobile-bottom-link.is-cart {
  background: var(--grossiste-red);
  color: #fff;
  position: relative;
}
.grossiste-mobile-bottom-link.is-cart strong {
  position: absolute;
  top: -.35rem;
  right: .35rem;
  background: #fff;
  color: var(--grossiste-red);
  border-radius: 999px;
  min-width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
}
@media (max-width: 768px) {
  body { padding-bottom: 5.25rem; }
  .brand-topbar { display: none; }
  .brand-header .max-w-7xl { padding-top: .75rem; padding-bottom: .75rem; }
  .brand-logo-public { max-width: 155px; }
}
.static-page-card { transition: transform .15s ease, box-shadow .15s ease; }
.static-page-card:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(15,23,42,.08); }

/* GROSSISTE V2.2 — dashboard décisionnel et actions catalogue */
.admin-bar-chart {
  min-height: 15rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
  gap: .85rem;
  align-items: end;
}
.admin-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}
.admin-bar-value {
  font-size: .68rem;
  font-weight: 900;
  color: #334155;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-bar-track {
  height: 9.5rem;
  width: 100%;
  max-width: 3.2rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: end;
  overflow: hidden;
}
.admin-bar-fill {
  width: 100%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--grossiste-red), var(--grossiste-red-dark));
  box-shadow: 0 -8px 22px rgba(255, 11, 0, .18);
}
.admin-bar-label {
  font-size: .72rem;
  color: #64748b;
  font-weight: 800;
}
.admin-progress {
  width: 100%;
  height: .68rem;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.admin-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--grossiste-red), var(--grossiste-red-dark));
}
.admin-email-stat {
  border-radius: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: .9rem;
}
.admin-email-stat span {
  display: block;
  color: #64748b;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.admin-email-stat strong {
  display: block;
  margin-top: .2rem;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 950;
  color: #0f172a;
}
.admin-product-action-grid form { display: inline-flex; }

/* GROSSISTE V2.5.5 — topbar liens rapides et footer contact séparé */
.grossiste-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  opacity: .94;
  transition: opacity .15s ease, transform .15s ease, color .15s ease;
}
.grossiste-topbar-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.grossiste-topbar-link svg { color: #ff3a32; }
@media (max-width: 768px) {
  .brand-topbar { display: block; }
  .brand-topbar .max-w-7xl { padding-top: .45rem; padding-bottom: .45rem; }
  .grossiste-topbar-menu { gap: .9rem; font-size: .78rem; }
}
