.adastraSpinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff9900;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
:root {
  --brand: #ff9900;
}

/* Fond blanc minimal */
#sda-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#sda-splash.hide {
  opacity: 0;
  visibility: hidden;
}

/* Spinner petit (type Vinted/X) */
.sda-splash__center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sda-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-top-color: var(--brand);
  animation: sda-spin 0.55s linear infinite;
  /* rapide */
}

@keyframes sda-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Progress bar fine et discrète */
.sda-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  /* 👈 au lieu de bottom */
  height: 2px;
  background: rgba(0, 0, 0, 0.05);
}

.sda-progress__bar {
  width: 0%;
  height: 100%;
  background: var(--brand);
  transition: width 0.12s ease;
  /* très rapide */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sda-spinner {
    animation: none;
  }

  .sda-progress__bar {
    transition: none;
  }
}

/* ========= Responsive HEIGHT-first (petits téléphones) ========= */
/* ========= Overrides fluides pour petits téléphones ========= */
:root {
  /* Hauteur des champs de recherche (input + bouton) */
  --sa-search-field-h: clamp(30px, 6.2vh, 40px);
  --sa-search-font: clamp(11px, 3vw, 14px);

  /* Icône panier et badge */
  --sa-cart-icon: clamp(24px, 6vw, 32px);
  /* taille image panier */
  --sa-cart-hit: calc(var(--sa-cart-icon) + 8px);
  /* zone tactile */
  --sa-badge: clamp(10px, 2.6vw, 12px);
  /* taille police badge */
  --sa-badge-box: clamp(14px, 3.4vw, 18px);
  /* diamètre badge */
}

.softadastra-cart-quantity {
  position: absolute;
  top: 4px;
  right: -4px;
  min-width: var(--sa-badge-box);
  height: var(--sa-badge-box);
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4d6d;
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--sa-badge)) !important;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Mobile (≤991px) ===== */
@media (max-width: 991px) {
  /* Champ de recherche compact et fluide */
  .softadastra-header-bottom {
    height: var(--sa-h-search) !important;
    /* tu gardes ta variable */
    margin-top: var(--sa-gap) !important;
    display: flex;
    align-items: center;
  }

  .softadastra-search-input {
    height: var(--sa-search-field-h) !important;
    font-size: var(--sa-search-font) !important;
    padding: 0 10px !important;
  }

  .softadastra-search-btn {
    height: var(--sa-search-field-h) !important;
    width: clamp(36px, 9vw, 44px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .softadastra-search-btn img,
  .softadastra-search-btn svg {
    width: clamp(15px, 4.2vw, 18px) !important;
    height: clamp(15px, 4.2vw, 18px) !important;
  }

  /* Panier : icône + badge fluides */
  .softadastra-cart-link {
    position: relative;
    width: var(--sa-cart-hit) !important;
    height: var(--sa-cart-hit) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f2f3f5;
    /* halo clair lisible sur fond blanc */
    padding: 2px;
  }

  .softadastra-cart-icon {
    /* width: var(--sa-cart-icon) !important; */
    /* height: var(--sa-cart-icon) !important; */
    object-fit: contain;
    display: block;
  }

  .softadastra-cart-quantity {
    position: absolute;
    top: 4px;
    right: -4px;
    min-width: var(--sa-badge-box);
    height: var(--sa-badge-box);
    padding: 0 4px;
    border-radius: 999px;
    background: #ff4d6d;
    color: #fff;
    font-weight: 700;
    font-size: calc(var(--sa-badge)) !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== Très petits téléphones (encore plus compacts) ===== */
@media (max-width: 360px), (max-height: 640px) {
  :root {
    --sa-search-field-h: clamp(28px, 5.6vh, 34px);
    --sa-search-font: clamp(11px, 3.2vw, 12px);
    --sa-cart-icon: clamp(22px, 5.6vw, 28px);
    --sa-badge-box: clamp(12px, 3vw, 16px);
  }

  .softadastra-search-input {
    padding: 0 8px !important;
  }

  .softadastra-search-btn {
    width: clamp(34px, 9vw, 40px) !important;
  }

  /* Badge un peu plus proche de l'icône */
  .softadastra-cart-quantity {
    top: 3px;
    right: -3px;
  }
}

/* Réduction d’animation si l’utilisateur préfère */
@media (prefers-reduced-motion: reduce) {
  .softadastra-search-btn {
    transition: none;
  }
}

:root {
  /* hauteurs mobiles adaptatives */
  --sa-h-top: clamp(44px, 9vh, 60px);
  /* rangée icônes */
  --sa-h-search: clamp(36px, 7vh, 44px);
  /* rangée recherche */
  --sa-gap: clamp(4px, 1.2vh, 8px);
  /* espace entre les 2 rangées */
  --sa-h-mobile: calc(var(--sa-h-top) + var(--sa-gap) + var(--sa-h-search));

  /* subnav */
  --sa-subnav-h: clamp(34px, 6vh, 44px);

  /* tailles adaptatives */
  --sa-icon: clamp(18px, 4.8vw, 22px);
  --sa-brand: clamp(16px, 4.8vw, 20px);
  --sa-link: clamp(11px, 2.9vw, 14px);
}

/* ===== Mobile (≤991px): impose des hauteurs compactes ===== */
@media (max-width: 991px) {
  /* === Champ de recherche === */
  .softadastra-header-bottom {
    height: var(--sa-h-search) !important;
    margin-top: var(--sa-gap) !important;
    display: flex;
    align-items: center;
  }

  /* Container du champ */
  .softadastra-search-container {
    flex: 1;
    display: flex;
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
  }

  /* Input texte */
  .softadastra-search-input {
    flex: 1;
    font-size: clamp(13px, 3.4vw, 15px);
    padding: 0 10px;
    border: none;
    outline: none;
  }

  /* Bouton loupe */
  .softadastra-search-btn {
    width: clamp(38px, 9vw, 44px);
    background: var(--sa-primary, #ff9900);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .softadastra-search-btn svg {
    width: clamp(16px, 4.4vw, 18px);
    height: clamp(16px, 4.4vw, 18px);
  }

  /* === Subnav === */
  .softadastra-subnav-row {
    height: var(--sa-subnav-h) !important;
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.4vw, 8px);
    padding: 0 8px;
  }

  /* Liens du subnav */
  .softadastra-subnav a {
    font-size: clamp(12px, 3vw, 13px);
    padding: 0 6px;
    white-space: nowrap;
  }

  /* Icônes dans le subnav */
  .softadastra-subnav a svg {
    width: clamp(16px, 4vw, 18px);
    height: clamp(16px, 4vw, 18px);
    vertical-align: middle;
  }
}

/* ===== Très petite hauteur d’écran : on compacte plus ===== */
@media (max-height: 640px) {
  .softadastra-brand .sa-smile {
    display: none;
  }

  /* micro gain vertical */
  .softadastra-ship {
    display: none;
  }

  /* “Deliver to” masqué */
  .softadastra-mini {
    display: none;
  }

  /* mini liens (Orders/Help/Sell) */
  .softadastra-header-right {
    gap: 6px;
  }

  /* resserrer les gaps */
}

@media (max-height: 560px) {
  .softadastra-brand {
    font-size: calc(var(--sa-brand) - 2px) !important;
  }

  .softadastra-search-input {
    font-size: 13px !important;
  }

  .softadastra-search-icon {
    height: 18px !important;
  }

  /* subnav un peu plus compacte */
  :root {
    --sa-subnav-h: clamp(32px, 5.4vh, 40px);
  }

  .softadastra-cart-quantity {
    width: 10px;
    min-width: 15px;
    height: 15px;
  }
}

/* 📱 Téléphones très petits (≤360px de large ou ≤640px de haut) */
@media (max-width: 360px), (max-height: 640px) {
  /* === Champ de recherche réduit === */
  .softadastra-search-input {
    height: 34px !important;
    /* moins haut */
    font-size: 12px !important;
    padding: 0 8px !important;
  }

  .softadastra-search-btn {
    height: 34px !important;
    width: 38px !important;
    /* bouton plus petit */
  }

  .softadastra-search-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* === Icône panier === */
  .softadastra-cart-link {
    height: 34px !important;
    width: 34px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Badge du panier */
  .softadastra-cart-quantity {
    font-size: 10px !important;
    min-width: 14px !important;
    height: 14px !important;
    padding: 0 3px !important;
    top: 4px !important;
    right: -4px !important;
  }

  .softadastra-cart-icon {
    border-radius: 50%;
  }
}

/* ===== Accessibilité / confort ===== */
@media (prefers-reduced-motion: reduce) {
  .softadastra-header,
  .softadastra-subnav {
    scroll-behavior: auto;
  }
}

/* Conteneur principal */
.softadastra-brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-family: "Amazon Ember", Arial, sans-serif;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  /* adaptatif */
  font-weight: bold;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  /* évite le retour à la ligne */
}

/* Couleurs du texte */
.softadastra-brand .sa-soft {
  color: var(--sa-orange);
}

.softadastra-brand .sa-adastra {
  color: var(--sa-black);
  margin-left: 4px;
}

.softadastra-brand .sa-dot {
  color: var(--sa-orange);
  margin-left: 1px;
}

/* Sourire */
.softadastra-brand .sa-smile {
  position: absolute;
  bottom: clamp(-6px, -0.9vh, -8px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(55%, 68%, 70%);
  height: clamp(9px, 1.4vh, 12px);
  border-bottom: 3px solid var(--sa-orange);
  border-radius: 50%;
}

/* Responsive très petits écrans */
@media (max-width: 360px) {
  .softadastra-brand {
    font-size: 1.2rem;
  }

  .softadastra-brand .sa-smile {
    height: 8px;
    border-bottom-width: 2px;
    width: 60%;
    bottom: -5px;
  }
}

.softadastra-navbar,
body {
  background: linear-gradient(90deg, #f8f8f8 0%, #ffffff 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.softadastra-subnav-link.is-active {
  color: #ff9900;
  font-weight: 600;
}

.softadastra-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.softadastra-subnav-link i {
  margin-right: 8px;
  font-size: 0.95em;
  line-height: 1;
  vertical-align: -1px;
  /* icône mieux alignée avec le texte */
}
.softadastra-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sa-footer {
  background: #fff;
  /* Fond blanc */
  color: #444;
  font-size: 14px;
  padding: 40px 20px 20px;
  border-top: 1px solid #eee;
  position: relative;
}

/* Dégradé orange doux */
.sa-footer::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255, 153, 0, 0.15), transparent);
}

.sa-footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.sa-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.sa-footer__title {
  color: #222;
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.sa-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sa-footer__list li {
  margin-bottom: 6px;
}

.sa-footer__list a {
  color: #555;
  text-decoration: none;
  transition: color 0.25s ease;
}

.sa-footer__list a:hover {
  color: #ff9900;
}

.sa-footer__social {
  text-align: center;
  margin-bottom: 20px;
}

.sa-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  color: #555;
  width: 36px;
  height: 36px;
  margin: 0 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.sa-footer__social a:hover {
  background: #ff9900;
  border-color: #ff9900;
  color: #fff;
}

.sa-footer__bottom {
  text-align: center;
  font-size: 13px;
  color: #777;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* Responsive */
@media (max-width: 600px) {
  .sa-footer {
    padding: 30px 15px 15px;
  }

  .sa-footer__title {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  footer {
    margin-bottom: 0px;
  }
}
:root {
  --bar-bg: #fff;
  --bar-fg: #111;
  --bar-muted: #666;
  --accent: #ff9900;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-2: 0 4px 6px rgba(0, 0, 0, 0.08);

  /* Hauteur adaptable : 44–56px, selon viewport */
  --bar-h: clamp(44px, 7vh, 56px);

  /* Tailles adaptatives */
  --icon-size: clamp(18px, 5.2vw, 22px);
  --label-size: clamp(9px, 2.9vw, 12px);
  --badge-size: clamp(9px, 2.6vw, 10px);
}

/* Barre blanche façon Vinted/Alibaba */
.artrio-navbar-wrapper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bar-bg);
  color: var(--bar-fg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-1), var(--shadow-2);
  z-index: 4000;
  display: none;
  /* mobile-only */
  /* ✅ safe-area sur la barre uniquement */
  padding-bottom: env(safe-area-inset-bottom);
}

.artrio-navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--bar-h);
  gap: 4px;
  padding: 0 6px;
}

/* Liens */
.artrio-nav-link {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
  color: var(--bar-fg);
  line-height: 1.1;
  position: relative;
  transition: transform 0.15s ease, color 0.15s ease;
  /* zone tactile min 44px */
  min-height: 44px;
}

.artrio-nav-link i {
  font-size: var(--icon-size);
  margin-bottom: 4px;
}

.artrio-nav-link span {
  font-size: var(--label-size);
  color: var(--bar-muted);
}

.artrio-nav-link.active,
.artrio-nav-link:focus-visible {
  color: var(--accent);
}

.artrio-nav-link:active {
  transform: scale(0.96);
}

/* Avatar */
.artrio-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Badge (notif / messages) */
.artrio-badge {
  position: absolute;
  top: 0;
  right: 22%;
  background: #ff4d4f;
  color: #fff !important;
  font-size: var(--badge-size);
  font-weight: 700;
  border-radius: 12px;
  padding: 1px 5px;
  line-height: 1;
  min-width: 16px;
  text-align: center;
}

/* Bouton central optionnel (plus lisible sur petits écrans) */
.create-icon {
  font-size: calc(var(--icon-size) + 2px);
}

/* Apparition */
@keyframes artrio-slide-up {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.artrio-navbar-wrapper.artrio-navbar-animated {
  animation: artrio-slide-up 0.24s ease-out;
}

/* Mobile only */
@media (max-width: 1024px) {
  .artrio-navbar-wrapper {
    display: block;
  }
}

@media (min-width: 1025px) {
  .artrio-navbar-wrapper {
    display: none;
  }
}

/* ✅ Le body réserve seulement la hauteur de barre (pas le safe-area) */
body.has-mobile-bar {
  padding-bottom: var(--bar-h);
}

/* ======= Ajustements petits téléphones ======= */

/* 1) Hauteur très petite (ex: iPhone SE, Galaxy S8 en paysage/étroit) */
@media (max-height: 640px) {
  :root {
    --bar-h: clamp(42px, 6.2vh, 52px);
  }

  .artrio-nav-link i {
    margin-bottom: 2px;
  }
}

/* 2) Hauteur ultra petite (≤560px) : on cache les labels pour gagner de la place */
@media (max-height: 560px) {
  .artrio-nav-link span {
    display: none;
  }

  .create-icon {
    font-size: calc(var(--icon-size) + 4px);
  }

  .artrio-badge {
    top: -2px;
    right: 26%;
  }
}

/* 3) Petites largeurs (≤360px : vieux iPhone, petits Android) */
@media (max-width: 360px) {
  :root {
    --icon-size: clamp(18px, 5.6vw, 20px);
    --label-size: clamp(9px, 3.2vw, 11px);
    --badge-size: 9px;
  }

  .artrio-navbar {
    gap: 2px;
    padding: 0 4px;
  }

  .artrio-badge {
    right: 20%;
  }
}

/* 4) Ultra étroit (≤320px) : labels masqués comme les apps */
@media (max-width: 320px) {
  .artrio-nav-link span {
    display: none;
  }

  .artrio-badge {
    right: 24%;
  }
}

/* Respecte l’accessibilité (moins d’animations) */
@media (prefers-reduced-motion: reduce) {
  .artrio-navbar-wrapper.artrio-navbar-animated {
    animation: none;
  }

  .artrio-nav-link {
    transition: none;
  }
}

/* --- Transition + ombre marquée --- */
.artrio-navbar-wrapper {
  will-change: transform, opacity;
  transition: transform 0.22s ease, opacity 0.18s ease;

  /* Ombre plus visible */
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.18),
    /* ombre proche */ 0 -6px 16px rgba(0, 0, 0, 0.16),
    /* ombre diffuse */ 0 -12px 24px rgba(0, 0, 0, 0.12);
  /* grande diffusion */
  background-color: #fff;
  /* s'assure que l'ombre se voit bien */
}

.artrio-navbar-wrapper.is-hidden {
  transform: translateY(calc(100% + env(safe-area-inset-bottom)));
  opacity: 0.98;
}

@media (prefers-reduced-motion: reduce) {
  .artrio-navbar-wrapper {
    transition: none;
  }
}

:root {
  --create-size: clamp(36px, 6.5vw, 44px);
  /* diamètre du bouton */
  --create-icon: clamp(16px, 3.4vw, 20px);
  /* taille de l’icône */
}

/* Pastille "créer" compacte */
.artrio-nav-link.create-icon {
  width: var(--create-size);
  height: var(--create-size);
  min-width: var(--create-size);
  min-height: var(--create-size);
  border-radius: 50px;
  background: #ff9900;
  /* Softadastra */
  color: #000;
  /* -> stroke du SVG */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* SVG net et centré */
.artrio-nav-link.create-icon .sa-plus {
  width: var(--create-icon);
  height: var(--create-icon);
  display: block;
}

/* Hover / active sobres */
.artrio-nav-link.create-icon:hover {
  background: #e68900;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

.artrio-nav-link.create-icon:active {
  transform: scale(0.96);
}

/* État actif (si /formulaire est la page courante) */
.artrio-nav-link.create-icon.active {
  background: #e07f00;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24),
    0 0 0 3px rgba(255, 153, 0, 0.18) inset;
}

/* Focus visible (a11y) */
.artrio-nav-link.create-icon:focus-visible {
  outline: 2px solid #ff9900;
  outline-offset: 2px;
}

/* Très petits téléphones : encore plus compact */
@media (max-width: 360px), (max-height: 640px) {
  :root {
    --create-size: clamp(34px, 6vw, 40px);
    --create-icon: clamp(15px, 3vw, 18px);
  }
}

/* ===== Compact header badges (only in header) ===== */
#sa-header-counters .sa-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

#sa-header-counters .sa-header-icon i {
  font-size: 14px;
}

/* Badge plus petit, mais qui s'élargit automatiquement si 2–3 chiffres */
#sa-header-counters .sa-badge {
  top: -4px;
  right: -4px;
  min-width: 14px;
  /* base compacte */
  height: 14px;
  line-height: 14px;
  padding: 0 4px;
  /* s'étire si > 1 chiffre */
  font-size: 10px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 10px rgba(225, 29, 72, 0.18);
  border: 1px solid #fff;
  /* petit liseré pour la lisibilité sur fond clair */
}

/* Option: encore plus compact sur très petits écrans */
@media (max-width: 380px) {
  #sa-header-counters .sa-header-icon {
    width: 34px;
    height: 34px;
  }

  #sa-header-counters .sa-badge {
    min-width: 13px;
    height: 13px;
    line-height: 13px;
    font-size: 9.5px;
    top: -3px;
    right: -3px;
  }
}

/* (facultatif) petite anim quand le nombre change */
@keyframes sa-bump {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

#sa-header-counters .sa-badge.bump {
  animation: sa-bump 0.22s ease;
}

@media (max-width: 991px) {
  body[data-auth="yes"] .sa-header-counters {
    display: none !important;
  }
}

/* Aligne le badge complètement à droite dans le lien */
.saord-right {
  margin-left: auto;
}

/* Badge (préfixé) */
.saord-badge {
  display: inline-flex !important;
  /* force l'affichage si un style global le masquait */
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid var(--sa-card-bd, #e5e7eb);
  background: var(--sa-hover, #f3f4f6);
  color: var(--sa-text-strong, #111827);
}

/* Variante neutre (fond clair par défaut, lisible sur fond blanc) */
.saord-badge--muted {
  background: #f3f4f6;
  color: #111827;
  border-color: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  .saord-badge--muted {
    background: #ff9900;
    color: #e5e7eb;
    border-color: #ff9900;
  }
}

/* Assure une bonne mise en page du lien "Orders" */
.sa-popover__link--orders {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sa-ellipsis {
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Variables (thème clair) */
:root {
  --search-bg: #ffffff;
  --search-text: #0b0c0f;
  --search-border: #d8dbe2;
  --search-border-focus: #ff9900;
  --search-shadow-focus: 0 0 0 4px rgba(255, 153, 0, 0.18);
  --search-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --search-placeholder: #94a3b8;
  --search-btn-bg: #ff9900;
  --search-btn-bg-hover: #e68900;
  --search-btn-bg-active: #d07c00;
  --search-btn-icon: #ffffff;
  --search-height: 44px;
  /* hauteur par défaut */
  --search-radius: 999px;
  --search-padding-x: 14px;
  --search-font-size: 15px;
  --search-gap: 8px;
}

.softadastra-search-btn:hover {
  background: var(--search-btn-bg-hover);
}

.softadastra-search-btn:active {
  background: var(--search-btn-bg-active);
  transform: scale(0.98);
}

.softadastra-search-btn:disabled {
  cursor: not-allowed;
  filter: saturate(0.2) opacity(0.7);
}

/* Icône */
.softadastra-search-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08));
}

/* Loading state (optionnel) */
.softadastra-header-middle.is-loading .softadastra-search-btn {
  position: relative;
}

.softadastra-header-middle.is-loading .softadastra-search-btn::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: rgba(255, 255, 255, 1);
  animation: soft-search-spin 800ms linear infinite;
}

@keyframes soft-search-spin {
  to {
    transform: rotate(360deg);
  }
}

/* RTL support */
:root[dir="rtl"] .softadastra-header-middle,
[dir="rtl"] .softadastra-header-middle {
  direction: rtl;
}

:root[dir="rtl"] .softadastra-search-input,
[dir="rtl"] .softadastra-search-input {
  text-align: right;
}

/* Accessibilité: focus visibles même sans :focus-within */
.softadastra-search-input:focus-visible,
.softadastra-search-btn:focus-visible {
  outline: 2px solid var(--search-border-focus);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Motion-safe */
@media (prefers-reduced-motion: reduce) {
  .softadastra-header-middle,
  .softadastra-search-btn {
    transition: none !important;
  }
}

@media (max-width: 991px) {
  .softadastra-header {
    padding: 0;
    height: var(--sa-header-h-mobile) !important;
  }
}
/* ton loader plein écran */
#adastraLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  /* pendant l’affichage */
  pointer-events: auto;
}

/* état masqué : non cliquable, réellement caché */
.adastraHidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* si ta barre de progression est en overlay */
#customProgressBar {
  position: fixed;
  left: 0;
  top: var(--loader-top, 0px);
  width: 0%;
  height: 3px;
  z-index: 10000;
  /* ⚠️ n'intercepte pas les clics */
  pointer-events: none;
}

@media (max-width: 991px) {
  body[data-auth="yes"] .sa-header-counters {
    display: none !important;
  }
}
.softadastra-ship .sa-pin {
  display: inline-flex;
  color: var(--accent, #ff9900);
}
.softadastra-ship svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 991px) {
  #sa-header-counters {
    display: none !important;
  }
}

/* ===== Drawer: variables */
:root {
  --sa-brand: #ff9900;
  --sa-text: #111827;
  /* gris très foncé */
  --sa-muted: #6b7280;
  /* gris moyen */
  --sa-bg: #ffffff;
  /* fond panel */
  --sa-overlay: rgba(17, 24, 39, 0.45);
  --sa-line: #e5e7eb;
  /* bordures légères */
  --sa-radius: 16px;
  --sa-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===== Overlay + container */
.sa-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr;
  pointer-events: none;
  /* activées quand visible */
}

.sa-drawer[aria-hidden="false"] {
  pointer-events: auto;
}

.sa-drawer__overlay {
  background: var(--sa-overlay);
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: opacity;
}

.sa-drawer[aria-hidden="false"] .sa-drawer__overlay {
  opacity: 1;
}

/* ===== Panel */
.sa-drawer__panel {
  position: fixed;
  top: 0;
  left: 0;
  /* panel côté gauche (façon Amazon) */
  height: 100%;
  width: min(92vw, 360px);
  background: var(--sa-bg);
  box-shadow: var(--sa-shadow);
  transform: translateX(-102%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  display: flex;
  flex-direction: column;
  outline: none;
}

.sa-drawer[aria-hidden="false"] .sa-drawer__panel {
  transform: translateX(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .sa-drawer__overlay,
  .sa-drawer__panel {
    transition: none !important;
  }
}

/* ===== Close button */
.sa-drawer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f3f4f6;
  color: var(--sa-text);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  transition: background 0.15s ease, transform 0.1s ease;
}

.sa-drawer__close:hover {
  background: #e5e7eb;
}

.sa-drawer__close:active {
  transform: scale(0.97);
}

.sa-drawer__close:focus-visible {
  outline: 2px solid var(--sa-brand);
  outline-offset: 2px;
}

/* ===== Header */
.sa-drawer__header {
  padding: 20px 18px 14px;
  border-bottom: 1px solid var(--sa-line);
}

.sa-drawer__hello {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sa-drawer__hello i {
  font-size: 28px;
  color: var(--sa-brand);
}

.sa-drawer__hello-top {
  font-size: 12px;
  color: var(--sa-muted);
}

.sa-drawer__hello-bottom {
  font-size: 16px;
  font-weight: 700;
  color: var(--sa-text);
  text-transform: capitalize;
}

/* ===== Nav */
.sa-drawer__nav {
  padding: 10px 8px 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.sa-drawer__section {
  padding: 12px 10px 6px;
  font-weight: 700;
  color: var(--sa-text);
  letter-spacing: 0.2px;
}

.sa-drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 4px;
  border-radius: 10px;
  color: var(--sa-text);
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.12s ease, transform 0.06s ease;
}

.sa-drawer__link i {
  color: var(--sa-muted);
  width: 18px;
  text-align: center;
}

.sa-drawer__link:hover {
  background: #f9fafb;
}

.sa-drawer__link:active {
  transform: translateY(1px);
}

.sa-drawer__link:focus-visible {
  outline: 2px solid var(--sa-brand);
  outline-offset: 2px;
}

/* ===== Catégories (drawerCats) */
#drawerCats {
  display: grid;
  grid-template-columns: 1fr;
}

#drawerCats .sa-drawer__link {
  /* mêmes styles, mais tu peux mettre une légère variante */
}

/* ===== Loader cat (skeleton) */
.sa-drawer__skeleton {
  display: grid;
  gap: 8px;
  padding: 8px 12px;
}

.sa-drawer__skeleton .line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f3f4f6 25%, #eceef1 37%, #f3f4f6 63%);
  background-size: 400% 100%;
  animation: saShimmer 1.2s ease-in-out infinite;
}

@keyframes saShimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* ===== Auth visibility helpers */
.sa-only-auth {
  display: none;
}

.sa-only-guest {
  display: none;
}

/* Active state (si tu veux colorer le lien courant, réutilisable) */
.sa-drawer__link.is-active {
  background: #fff7ed;
  /* léger orange pâle */
  box-shadow: inset 0 0 0 1px #fed7aa;
  /* contour doux */
}
body {
  font-family: "Montserrat", sans-serif !important;
}

/* ===== SUBNAV container ===== */
.softadastra-subnav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 16px;
}

.softadastra-subnav-row {
  display: flex;
  align-items: center;
  gap: 18px;
  /* espace uniforme entre les items */
  overflow-x: auto;
  /* scroll horizontal si trop d’éléments */
  white-space: nowrap;
  scrollbar-width: none;
  /* cache la scrollbar Firefox */
}

.softadastra-subnav-row::-webkit-scrollbar {
  display: none;
  /* cache la scrollbar Chrome/Safari */
}

/* ===== Bouton "All" ===== */
.softadastra-subnav-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.softadastra-subnav-all:hover {
  background: #f9fafb;
}

/* ===== Liens ===== */
.softadastra-subnav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  /* espace entre icône et texte */
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.softadastra-subnav-link i {
  font-size: 15px;
  color: #6b7280;
}

.softadastra-subnav-link:hover {
  background: #f9fafb;
  color: #ff9900;
  /* accent Softadastra */
}

.softadastra-subnav-link.is-active {
  color: #ff9900;
  font-weight: 600;
}

.artrio-nav-link .nav-icon,
.artrio-nav-link .sa-plus {
  width: 22px;
  height: 22px;
  display: inline-block;
}

.softadastra-subnav-link .nav-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
  vertical-align: middle;
}

.softadastra-subnav-link .nav-icon,
.softadastra-subnav-link .nav-icon * {
  color: #6b7280;
  stroke: currentColor;
}

.softadastra-subnav-link:hover .nav-icon,
.softadastra-subnav-link.is-active .nav-icon {
  color: #ff9900;
}

.softadastra-subnav-link .nav-icon,
.softadastra-subnav-all .nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #6b7280;
}

.softadastra-subnav-link:hover .nav-icon,
.softadastra-subnav-link.is-active .nav-icon,
.softadastra-subnav-all:hover .nav-icon {
  color: #ff9900;
}
.softadastra-subnav-link .nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #6b7280;
}
.softadastra-subnav-link:hover .nav-icon,
.softadastra-subnav-link.is-active .nav-icon {
  color: #ff9900;
}
/* style commun pour toutes les icônes SVG */
.nav-icon {
  width: 18px; /* taille fixe */
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px; /* espace entre icône et texte */
  color: currentColor; /* hérite de la couleur du texte */
}

/* dans le drawer */
.sa-drawer__link .nav-icon {
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

/* dans la subnav */
.softadastra-subnav-link .nav-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.sa-footer__list a.active {
  font-weight: bold;
  color: #ff6600; /* orange pour rappeler le style Amazon/Alibaba */
  text-decoration: underline;
}
.artrio-nav-link {
  gap: 3px;
}
/* caché par défaut (mobile) */
.sa-only-desktop {
  display: none !important; /* !important pour battre tout inline résiduel */
}

/* visible sur desktop */
@media (min-width: 1024px) {
  .sa-only-desktop {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    text-decoration: none;
  }
}

/* style du bouton + couleur blanche pour svg & texte */
.sa-sell-button {
  background-color: #ff9900;
  color: #fff; /* le texte ET le stroke du SVG via currentColor */
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}
.sa-sell-button:hover {
  background-color: #e68a00;
}
.sa-sell-button svg {
  color: #fff;
} /* s’assure que le stroke est blanc */
.sa-sell-button span {
  color: #fff;
}
/* Optionnel : style du message */
.sda-error {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
/* === Desktop top bar (clair) === */
.sa-desktop-nav {
  position: sticky;
  top: 0;
  z-index: 4000;
  height: var(--bar-h);
  background: var(--bar-bg);
  color: var(--bar-fg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-1);
  display: none;
  /* caché mobile, visible desktop plus bas */
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

/* Lien desktop */
.sa-top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-height: 36px;
  text-decoration: none;
  color: var(--bar-fg);
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sa-top-link:hover {
  background: #f9fafb;
}

.sa-top-link.active,
.sa-top-link:focus-visible {
  color: var(--accent);
}

/* Icônes héritent déjà via .nav-icon */
.sa-top-link .nav-icon {
  width: var(--icon-size);
  height: var(--icon-size);
}

.sa-top-link span {
  font-size: 14px;
  color: var(--bar-muted);
}

/* Desktop visible */
@media (min-width: 1025px) {
  .sa-desktop-nav {
    display: flex;
  }

  /* on cache la bottom bar en desktop */
  .artrio-navbar-wrapper {
    display: none;
  }
}

/* Mobile visible (garde ton comportement existant) */
@media (max-width: 1024px) {
  .artrio-navbar-wrapper {
    display: block;
  }
}

/* Harmonise les SVG compacts */
.nav-icon,
.sa-plus {
  width: var(--icon-size);
  height: var(--icon-size);
  display: inline-block;
  stroke: currentColor;
  color: currentColor;
}

.update-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  /* cachée par défaut */
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sa-border, #e5e7eb);
  background: var(--sa-panel, #fff);
  color: #111;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
  z-index: 2147483647;
  /* au-dessus de tout (nav, headers, etc.) */
}

.update-bar.show {
  display: flex;
  animation: updateSlideUp 0.22s ease-out;
}

.update-actions {
  display: inline-flex;
  gap: 8px;
}

.btn-primary,
.btn-secondary {
  appearance: none;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  height: 36px;
  padding: 0 12px;
  transition: background 0.15s ease, transform 0.06s ease, box-shadow 0.16s ease;
}

.btn-primary {
  background: var(--sa-accent, #ff9900);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.24);
}

.btn-primary:hover {
  background: #e68900;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: #f3f4f6;
  color: #111;
}

.btn-secondary:hover {
  background: #e7e9ec;
}

.btn-secondary:active {
  transform: translateY(1px);
}

@keyframes updateSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

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

/* Ajoute en CSS globale */
body.has-update-bar {
  padding-bottom: var(--update-bar-h, 0);
}

.update-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* espace icône/texte */
}

.update-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  color: var(--sa-accent, #ff9900);
  /* ou laisse hériter: remove cette ligne */
}
/* ===== Footer en FLEX sur tous les écrans ===== */
.sa-footer__columns {
  display: flex !important;
  /* force flex au lieu du grid */
  flex-wrap: wrap;
  /* passe à la ligne si besoin */
  gap: 20px;
  align-items: flex-start;
}

/* Chaque colonne : largeur fluide, min 160px */
.sa-footer__col {
  flex: 1 1 200px;
  /* grandit/rétrécit proprement */
  min-width: 160px;
}

/* Titres/listes compactes */
.sa-footer__title {
  margin: 0 0 10px;
}

.sa-footer__list li {
  margin-bottom: 6px;
}

/* ===== Mobile : 2 colonnes (50/50) si tu veux serrer le layout ===== */
@media (max-width: 600px) {
  .sa-footer {
    padding: 30px 15px 15px;
  }

  /* 2 colonnes par ligne sur mobile */
  .sa-footer__col {
    flex: 1 1 calc(50% - 10px);
    /* 2 colonnes, en respectant le gap */
    min-width: 0;
    /* permet de se compacter */
  }

  .sa-footer__title {
    font-size: 14px;
  }
}
