/* ================================================================
   AMAZONIA — Boutique B2B (PrestaShop classic) — porté du design system GDC
   Green Day Concept · Design system + thème
   Direction : fonds clairs + aplats noirs (header/login/footer) + jaune CTA
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* ===============================================================
   1) DESIGN SYSTEM — TOKENS (à modifier ici en priorité)
   =============================================================== */
:root {
  /* Couleurs de marque ATS */
  --ats-black:      #282A2F;
  --ats-yellow:     #C89F4F;   /* CTA / accents — TEXTE NOIR uniquement */
  --ats-yellow-lt:  #D8B873;
  --ats-yellow-dk:  #B88A3A;
  --ats-white:      #FDFDFD;
  --ats-gray-50:    #F9F9F9;   /* surfaces claires */
  --ats-gray-100:   #F2F2F2;
  --ats-gray-200:   #E6E6E6;   /* bordures claires */
  --ats-gray-text:  #6B6B6B;   /* texte secondaire sur clair */

  /* Texte (contextuel — redéfini dans les zones sombres) */
  --ats-text:       #282A2F;
  --ats-muted:      #6B6B6B;

  /* Surfaces sombres (header / login / footer) */
  --ats-surface:    #1c1c1c;
  --ats-border:     #333333;

  /* États */
  --ats-success:    #2E9E5B;
  --ats-warning:    #E8920C;
  --ats-danger:     #D64545;

  /* Typographie */
  --ats-font:       'Montserrat', Arial, sans-serif;

  /* Rayons */
  --ats-radius-card: 12px;
  --ats-radius-btn:  8px;

  /* Ombres douces */
  --ats-shadow-sm:  0 2px 10px rgba(12,12,12,.06);
  --ats-shadow-md:  0 10px 30px rgba(12,12,12,.10);
  --ats-shadow-lg:  0 24px 60px rgba(12,12,12,.16);

  /* Espacement — échelle 4/8 */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
}

/* ===============================================================
   2) BASE — fonds clairs, texte noir, Montserrat
   =============================================================== */
body {
  background: var(--ats-white) !important;
  color: var(--ats-text) !important;
  font-family: var(--ats-font) !important;
}
#wrapper, #content-wrapper, #content, #main, .page-content,
.page-wrapper, #products, #js-product-list, .card, .block-categories {
  background: transparent !important;
  color: var(--ats-text) !important;
  box-shadow: none !important;
  border: 0;
}
#wrapper > .container { padding-top: var(--sp-6); padding-bottom: var(--sp-7); }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ats-font) !important;
  color: var(--ats-text) !important;
  font-weight: 800;
  letter-spacing: -.01em;
}
p, li, span, td, label, .text-muted, dd, dt { color: inherit; }
.text-muted, small { color: var(--ats-gray-text) !important; }

a { color: var(--ats-black); transition: color .15s ease, border-color .15s ease; }
a:hover, a:focus { color: var(--ats-black); text-decoration: none; }
::selection { background: var(--ats-yellow); color: #1c1d21; }

hr { border-color: var(--ats-gray-200) !important; }

/* ===============================================================
   3) BOUTONS
   =============================================================== */
.btn-primary, button.btn-primary, .btn.btn-primary,
.product-add-to-cart .btn, .add-to-cart, .cart-content-btn .btn,
.btn-add-to-cart, .checkout a.btn, #submit-login {
  background: var(--ats-yellow) !important;
  border: 1.5px solid var(--ats-yellow) !important;
  color: var(--ats-black) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: var(--ats-radius-btn) !important;
  box-shadow: none !important;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary:hover, .add-to-cart:hover, .btn-add-to-cart:hover {
  background: var(--ats-yellow-lt) !important;
  border-color: var(--ats-yellow-lt) !important;
  color: var(--ats-black) !important;
  box-shadow: var(--ats-shadow-md) !important;
}
.btn-primary:active { transform: translateY(1px); }

.btn-secondary, .btn-tertiary, .btn-outline-primary, .btn-outline-secondary {
  background: transparent !important;
  border: 1.5px solid var(--ats-black) !important;
  color: var(--ats-black) !important;
  font-weight: 700;
  border-radius: var(--ats-radius-btn) !important;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.btn-secondary:hover, .btn-tertiary:hover {
  background: var(--ats-black) !important;
  color: #fff !important;
}

/* ===============================================================
   5) HEADER — aplats noirs (top bar + barre logo/recherche/catalogue)
   =============================================================== */
/* tokens texte clair dans la zone sombre */
.ats-topbar, .ats-header { --ats-text: #FDFDFD; --ats-muted: #C4C4C4; }

.ats-topbar__container::before, .ats-topbar__container::after,
.ats-header__container::before, .ats-header__container::after {
  content: none !important; display: none !important;
}

.ats-topbar {
  background: #1c1d21 !important;
  border-bottom: 1px solid #1b1b1b;
  font-size: .85rem;
}
.ats-topbar__container { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.ats-topbar a {
  color: var(--ats-muted) !important;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0; white-space: nowrap;
}
.ats-topbar a:hover { color: var(--ats-yellow) !important; }
.ats-topbar .material-icons { font-size: 18px; line-height: 1; }
.ats-topbar__nav { display: flex; align-items: center; gap: 28px; }
.ats-topbar__logout { border-left: 1px solid #2a2a2a; padding-left: 20px !important; }
.ats-topbar__logout .material-icons { font-size: 20px; }
.ats-badge {
  background: var(--ats-yellow); color: #1c1d21;
  border-radius: 999px; font-size: .7rem; font-weight: 800;
  padding: 1px 7px; font-style: normal;
}

.ats-header { background: var(--ats-black) !important; border-bottom: 3px solid var(--ats-yellow) !important; }
.ats-header__container { display: flex; align-items: center; gap: 26px; min-height: 78px; }
.ats-header__logo {
  flex: 0 0 auto; display: block;
  width: 200px; height: 60px;
  background: url('../img/amazonia-logo.svg') no-repeat left center;
  background-size: contain;
}
.ats-header__search { flex: 1 1 auto; max-width: 1040px; }
.ats-header__search #search_widget, .ats-header__search .search-widgets { width: 100% !important; }
.ats-header__search form, #search_widget form {
  display: flex !important; align-items: center; width: 100%; position: relative;
  border: 1.5px solid var(--ats-yellow) !important;
  border-radius: 12px !important; overflow: hidden; background: transparent !important;
}
.ats-header__search input[type="text"], #search_widget input[type="text"] {
  flex: 1 1 auto !important; background: transparent !important;
  border: none !important; outline: none !important; box-shadow: none !important;
  color: var(--ats-text) !important; padding: 15px 20px !important;
  font-size: 1rem !important; font-family: var(--ats-font) !important;
  width: 100% !important; height: auto !important; min-width: 0;
}
.ats-header__search input[type="text"]::placeholder, #search_widget input[type="text"]::placeholder {
  color: var(--ats-muted); opacity: 1;
}
#search_widget i.material-icons.search {
  position: static !important; order: 2; flex: 0 0 auto;
  color: var(--ats-yellow) !important; font-size: 22px !important;
  padding: 0 26px 0 0 !important; line-height: 1; cursor: pointer;
  top: auto !important; left: auto !important; right: auto !important;
}
#search_widget i.material-icons.clear {
  position: static !important; order: 3; flex: 0 0 auto;
  color: var(--ats-muted) !important; font-size: 18px !important;
  padding: 0 10px 0 0 !important; cursor: pointer; top: auto !important; right: auto !important;
}
#search_widget button[type="submit"] { background: transparent !important; border: none !important; color: var(--ats-yellow) !important; padding: 0 16px !important; }
.ats-header__catalog {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  background: var(--ats-yellow) !important;
  font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: 13px 22px; border-radius: 10px; font-size: .9rem; white-space: nowrap;
}
.ats-header__catalog:hover { background: var(--ats-yellow-lt) !important; }
.ats-header__catalog, .ats-header__catalog span, .ats-header__catalog .material-icons { color: #1c1d21 !important; }
.ats-header__catalog .material-icons { font-size: 20px; }

/* ===============================================================
   6) FOOTER — aplat noir
   =============================================================== */
#footer { margin-top: var(--sp-8); }
#footer, .footer-container {
  background: var(--ats-black) !important;
  color: #C4C4C4 !important;
  border-top: 3px solid var(--ats-yellow);
}
#footer a, .footer-container a, .footer-container li a { color: #C4C4C4 !important; }
#footer a:hover, .footer-container a:hover { color: var(--ats-yellow) !important; }
.footer-container .h3, #footer .h3, #footer h3 { color: #fff !important; }

/* ===============================================================
   7) CATALOGUE — grille de cartes claires
   =============================================================== */
/* Titre / en-tête de page */
#category #js-product-list-header, .block-category, .page-header {
  background: transparent !important; border: 0 !important; padding: 0 !important; margin-bottom: var(--sp-5);
}
#js-product-list-header h1, .page-header h1, #category h1 {
  font-size: 2.2rem; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  margin: 0 0 var(--sp-2);
}
#js-product-list-header h1::after {
  content: ""; display: block; width: 64px; height: 4px;
  background: var(--ats-yellow); border-radius: 2px; margin-top: var(--sp-3);
}
.block-category .category-description, #category .text-muted { color: var(--ats-gray-text) !important; }

/* Barre de tri */
#js-product-list-top, .products-sort-order, .sort-by-row {
  margin-bottom: var(--sp-5);
}
.products-sort-order .select-title, .sort-by-row .select-title {
  background: #fff !important; border: 1px solid var(--ats-gray-200) !important;
  border-radius: var(--ats-radius-btn); color: var(--ats-black) !important;
}

/* Grille responsive : 4 / 2 / 1 */
#js-product-list .products, ul.products, .products.row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  margin: 0; padding: 0; list-style: none;
}
@media (max-width: 991px) { #js-product-list .products, ul.products, .products.row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { #js-product-list .products, ul.products, .products.row { grid-template-columns: 1fr; } }

.product-miniature, .js-product-miniature {
  width: 100% !important; max-width: none !important; margin: 0 !important; flex: none !important;
}

/* La carte */
.product-miniature .thumbnail-container {
  background: #fff !important;
  border: 1px solid var(--ats-gray-200) !important;
  border-radius: var(--ats-radius-card) !important;
  box-shadow: var(--ats-shadow-sm) !important;
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-miniature:hover .thumbnail-container {
  transform: translateY(-5px);
  box-shadow: var(--ats-shadow-lg) !important;
  border-color: var(--ats-yellow) !important;
}

/* Visuel produit */
.product-miniature .thumbnail-container .thumbnail,
.product-miniature .product-thumbnail {
  display: block; background: var(--ats-gray-50);
  aspect-ratio: 1 / 1; overflow: hidden;
}
.product-miniature .product-thumbnail img {
  width: 100% !important; height: 100% !important; object-fit: contain;
  padding: var(--sp-5); transition: transform .3s ease; mix-blend-mode: multiply;
}
.product-miniature:hover .product-thumbnail img { transform: scale(1.04); }

/* Corps de carte */
.product-miniature .product-description {
  background: #fff !important; border: 0 !important;
  padding: var(--sp-4) var(--sp-4) var(--sp-5) !important;
  display: flex; flex-direction: column; gap: var(--sp-2); flex: 1 1 auto;
}
.product-miniature .product-title { margin: 0; }
.product-miniature .product-title a {
  color: var(--ats-black) !important; font-weight: 800; font-size: 1rem;
  line-height: 1.25; text-transform: none;
}
.product-miniature .product-title a:hover { color: var(--ats-black) !important; }

/* Référence / catégorie sous le titre */
.product-miniature .product-reference, .product-miniature .product-flags { color: var(--ats-gray-text) !important; font-size: .82rem; }

/* Badge de disponibilité (stock) */
.product-miniature .product-availability,
.product-availability {
  display: inline-flex !important; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; margin: 0;
  padding: 4px 10px; border-radius: 999px; width: fit-content;
}
.product-availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }
/* dispo / rupture (PrestaShop met .product-unavailable quand 0) */
.product-availability { color: var(--ats-success); background: rgba(46,158,91,.10); }
.product-miniature .product-unavailable .product-availability,
.product-availability.product-unavailable { color: var(--ats-danger); background: rgba(214,69,69,.10); }

/* Boutons d'action sur la carte (si présents) */
.product-miniature .highlighted-informations,
.product-miniature .variant-links { display: none !important; }

/* Pagination */
.pagination { justify-content: center; margin-top: var(--sp-7); }
.pagination .page-list a, .pagination .page-list span {
  border: 1px solid var(--ats-gray-200); border-radius: 8px; color: var(--ats-black);
}
.pagination .current a { background: var(--ats-black); color: #fff; border-color: var(--ats-black); }

/* États vides */
#product-search-no-matches, .alert-warning {
  background: var(--ats-gray-50) !important; border: 1px solid var(--ats-gray-200) !important;
  color: var(--ats-black) !important; border-radius: var(--ats-radius-card);
}

/* ===============================================================
   9) RESPONSIVE header
   =============================================================== */
@media (max-width: 767px) {
  .ats-header__container { flex-wrap: wrap; gap: 16px; min-height: 0; padding: 14px 0; }
  .ats-header__search { order: 3; max-width: 100%; flex: 1 1 100%; }
  .ats-topbar__nav { gap: 16px; }
  .ats-topbar a span { display: none; }
  .ats-topbar__contact span { display: inline; }
  #js-product-list-header h1, .page-header h1, #category h1 { font-size: 1.6rem; }
}

/* ===============================================================
   10) CATALOGUE RECONSTRUIT — templates custom (.ats-card / .ats-grid)
   =============================================================== */
.ats-catalog {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--sp-5) var(--sp-8);
}
.ats-catalog__head {
  padding: var(--sp-7) 0 var(--sp-6);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--ats-gray-200);
}
.ats-catalog__eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ats-black);
  background: var(--ats-yellow); padding: 5px 13px; border-radius: 999px; margin-bottom: var(--sp-4);
}
.ats-catalog__title {
  font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; line-height: 1.03;
  letter-spacing: -.025em; margin: 0 0 var(--sp-3); text-transform: uppercase;
}
.ats-catalog__sub { color: var(--ats-gray-text); font-size: 1.05rem; margin: 0; }

/* Variante réduite (home) */
.ats-catalog__head--sm { padding: var(--sp-5) 0 var(--sp-4); margin-bottom: var(--sp-5); }
.ats-catalog__head--sm .ats-catalog__title { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.ats-catalog__head--sm .ats-catalog__eyebrow { font-size: .68rem; margin-bottom: var(--sp-3); }
.ats-catalog__head--sm .ats-catalog__sub { font-size: .92rem; }

/* Grille 4 / 3 / 2 / 1 */
.ats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width:1200px){ .ats-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width:880px) { .ats-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:520px) { .ats-grid{ grid-template-columns: 1fr; } }

/* Carte */
.ats-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ats-gray-200);
  border-radius: var(--ats-radius-card); overflow: hidden; box-shadow: var(--ats-shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.ats-card:hover { transform: translateY(-6px); box-shadow: var(--ats-shadow-lg); border-color: var(--ats-black); }

.ats-card__media { position: relative; display: block; aspect-ratio: 4/3; background: var(--ats-gray-50); overflow: hidden; }
.ats-card__img { width: 100%; height: 100%; object-fit: contain; padding: var(--sp-5); mix-blend-mode: multiply; transition: transform .3s ease; }
.ats-card:hover .ats-card__img { transform: scale(1.05); }
.ats-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #d2d2d2; }
.ats-card__placeholder .material-icons { font-size: 60px; }

/* Badge stock */
.ats-stock {
  position: absolute; top: 12px; left: 12px;
  font-size: .7rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.ats-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ats-stock--ok  { background: #eaf7ef; color: var(--ats-success); }
.ats-stock--low { background: #fff6e3; color: var(--ats-warning); }
.ats-stock--out { background: #fdeaea; color: var(--ats-danger); }

/* Corps */
.ats-card__body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-5); flex: 1 1 auto; }
.ats-card__ref { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ats-gray-text); }
.ats-card__title { margin: 0; font-size: 1.02rem; font-weight: 800; line-height: 1.28; }
.ats-card__title a { color: var(--ats-black); }
.ats-card__price { font-size: 1.2rem; font-weight: 900; color: var(--ats-black); letter-spacing: -.01em; margin: 2px 0; }
.ats-card__cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--ats-black); color: #fff !important; font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .03em; padding: 12px 16px; border-radius: var(--ats-radius-btn);
  transition: background .15s ease, color .15s ease;
}
.ats-card__cta .material-icons { font-size: 18px; transition: transform .15s ease; }
.ats-card:hover .ats-card__cta { background: var(--ats-yellow); color: var(--ats-black) !important; }
.ats-card:hover .ats-card__cta .material-icons { transform: translateX(3px); }

/* État vide + pagination */
.ats-empty { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--ats-gray-text); }
.ats-empty .material-icons { font-size: 64px; color: #d8d8d8; }
.ats-catalog__bottom { margin-top: var(--sp-7); }
.ats-catalog__bottom .pagination { justify-content: center; }

/* ===============================================================
   11) HEADER ATS v2 (reconstruit) — classes .atsh-*
   (remplace l'ancien header ; l'ancien CSS .ats-header devient inerte)
   =============================================================== */
.atsh-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--sp-5); }

/* Strip fine du haut */
.atsh-strip { background: #1c1d21; color: #b9b9b9; font-size: .82rem; border-bottom: 1px solid #1a1a1a; }
.atsh-strip__in { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.atsh-strip__in::before, .atsh-strip__in::after { content: none !important; }
.atsh-hello { color: #b9b9b9; }
.atsh-hello strong { color: #fff; font-weight: 700; }
.atsh-strip__links { display: flex; align-items: center; gap: 22px; }
.atsh-strip__links a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.atsh-strip__links a:hover { color: var(--ats-yellow); }
.atsh-strip__links .material-icons { font-size: 17px; }

/* Forçage couleur liens header (le thème classique met un #header a gris plus prioritaire) */
.atsh-strip__links a,
.atsh-bar .atsh-nav__link { color: #fff !important; }
.atsh-strip__links a .material-icons,
.atsh-bar .atsh-nav__link .material-icons { color: #fff !important; }
.atsh-strip__links a:hover,
.atsh-bar .atsh-nav__link:hover,
.atsh-strip__links a:hover .material-icons,
.atsh-bar .atsh-nav__link:hover .material-icons { color: var(--ats-yellow) !important; }

/* Barre principale (aplat noir) */
.atsh-bar { background: var(--ats-black); border-bottom: 3px solid var(--ats-yellow); }
.atsh-bar__in { display: flex; align-items: center; gap: var(--sp-6); min-height: 82px; }
.atsh-bar__in::before, .atsh-bar__in::after { content: none !important; }
.atsh-logo {
  flex: 0 0 auto; display: block; width: 196px; height: 56px;
  background: url('../img/amazonia-logo.svg') no-repeat left center; background-size: contain;
}

/* Recherche */
.atsh-search {
  flex: 1 1 auto; display: flex; align-items: center; gap: 10px;
  background: #161616; border: 1.5px solid #2a2a2a; border-radius: 12px; padding: 0 16px;
  transition: border-color .15s ease;
}
.atsh-search:focus-within { border-color: var(--ats-yellow); }
.atsh-search > .material-icons { color: #8a8a8a; font-size: 22px; }
.atsh-search input {
  flex: 1 1 auto; background: transparent; border: 0; outline: 0; color: #fff;
  font-family: var(--ats-font); font-size: 1rem; padding: 14px 0; min-width: 0;
}
.atsh-search input::placeholder { color: #7d7d7d; }

/* Nav droite */
.atsh-nav { flex: 0 0 auto; display: flex; align-items: center; gap: var(--sp-5); }
.atsh-nav__link {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.atsh-nav__link .material-icons { font-size: 24px; color: #fff; transition: color .15s ease; }
.atsh-nav__link:hover { color: var(--ats-yellow); }
.atsh-nav__link:hover .material-icons { color: var(--ats-yellow); }

/* Ma sélection (CTA jaune + compteur) */
.atsh-sel {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ats-yellow); color: #1c1d21 !important; font-weight: 800; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .03em; padding: 12px 18px; border-radius: 10px;
}
.atsh-sel:hover { background: var(--ats-yellow-lt); }
.atsh-sel .material-icons { font-size: 20px; color: #1c1d21; }
.atsh-sel__count {
  background: #1c1d21; color: var(--ats-yellow); font-style: normal; font-weight: 800;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; font-size: .72rem;
}

/* Responsive header v2 */
@media (max-width: 860px) {
  .atsh-bar__in { flex-wrap: wrap; gap: 14px; min-height: 0; padding: 14px 0; }
  .atsh-search { order: 3; flex: 1 1 100%; }
  .atsh-nav { gap: 16px; }
  .atsh-nav__link span, .atsh-sel span { display: none; }
  .atsh-strip__links a span { display: none; }
}

/* ===============================================================
   12) FICHE PRODUIT — reconstruite (.ats-product)
   =============================================================== */
.ats-product { max-width: 1200px; margin: 0 auto; padding: var(--sp-6) var(--sp-5) var(--sp-8); }
.ats-product__back {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ats-gray-text);
  font-weight: 700; font-size: .85rem; margin-bottom: var(--sp-5);
}
.ats-product__back:hover { color: var(--ats-black); }
.ats-product__back .material-icons { font-size: 18px; }

.ats-product__wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-7); align-items: start;
}
@media (max-width: 880px){ .ats-product__wrap { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* Galerie */
.ats-product__gallery { position: relative; display: flex; flex-direction: column; gap: var(--sp-4); }
.ats-product__coverbtn {
  position: relative; width: 100%; aspect-ratio: 1/1; padding: 0; cursor: zoom-in;
  background: var(--ats-gray-50); border: 1px solid var(--ats-gray-200); border-radius: var(--ats-radius-card);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.ats-product__cover { width: 100%; height: 100%; object-fit: contain; padding: var(--sp-7); mix-blend-mode: multiply; }
.ats-product__noimg {
  width: 100%; aspect-ratio: 1/1; background: var(--ats-gray-50); border: 1px solid var(--ats-gray-200);
  border-radius: var(--ats-radius-card); display: flex; align-items: center; justify-content: center;
}
.ats-product__noimg .material-icons { font-size: 96px; color: #d2d2d2; }
.ats-product__zoomhint {
  position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(12,12,12,.72); color: #fff; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.ats-product__coverbtn:hover .ats-product__zoomhint { opacity: 1; }
.ats-product__thumbs { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.ats-product__thumb {
  width: 68px; height: 68px; padding: 4px; cursor: pointer; overflow: hidden; background: #fff;
  border: 2px solid var(--ats-gray-200); border-radius: 10px;
}
.ats-product__thumb.is-active { border-color: var(--ats-black); }
.ats-product__thumb img { width: 100%; height: 100%; object-fit: contain; }
/* Lightbox image produit */
.ats-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(12,12,12,.92);
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.ats-lightbox[hidden] { display: none; }
.ats-lightbox__img { max-width: 92vw; max-height: 90vh; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.ats-lightbox__close {
  position: absolute; top: 20px; right: 24px; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ats-black); cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ===== Page « Votre compte » — tuiles ===== */
.ats-account { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 760px) { .ats-account { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ats-account { grid-template-columns: 1fr; } }
.ats-acctile {
  display: flex; flex-direction: column; gap: 4px; padding: var(--sp-5);
  background: #fff; border: 1px solid var(--ats-gray-200); border-radius: var(--ats-radius-card);
  text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}
.ats-acctile:hover { border-color: var(--ats-black); box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.ats-acctile .material-icons {
  font-size: 28px; color: var(--ats-black); background: var(--ats-yellow);
  width: 52px; height: 52px; line-height: 52px; text-align: center;
  border-radius: 12px; display: inline-block; margin-bottom: 8px; overflow: hidden;
}
.ats-acctile span { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; color: var(--ats-black); }
.ats-acctile small { color: var(--ats-gray-text); font-size: .85rem; }

/* ===== Page « Mon stock de dotation » ===== */
.ats-stockpage__intro { color: var(--ats-gray-text); margin-bottom: var(--sp-5); }
.ats-stocktable__wrap { overflow-x: auto; }
.ats-stocktable { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--ats-gray-200); border-radius: var(--ats-radius-card); overflow: hidden; }
.ats-stocktable th { background: var(--ats-black); color: #fff; text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; padding: 13px 16px; }
.ats-stocktable td { padding: 13px 16px; border-top: 1px solid var(--ats-gray-200); }
.ats-stocktable__c { text-align: center; }
.ats-stocktable__ref { font-weight: 800; color: var(--ats-gray-text); white-space: nowrap; }
.ats-stocktable__name { color: var(--ats-black); font-weight: 600; text-decoration: none; }
.ats-stocktable__name:hover { text-decoration: underline; }
.ats-stocktable__qty { font-weight: 800; font-size: 1.05rem; }
.ats-stocktable__reco { white-space: nowrap; }
.ats-statut { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.ats-statut--ok { background: #eaf7ef; color: var(--ats-success); }
.ats-statut--low { background: #fff6e3; color: var(--ats-warning); }
.ats-statut--block, .ats-statut--out { background: #fdeaea; color: var(--ats-danger); }
.ats-reco { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.ats-reco .material-icons { font-size: 18px; }
.ats-reco--ok { color: var(--ats-success); }
.ats-reco--warn { color: var(--ats-warning); }
.ats-reco--urgent { color: var(--ats-danger); }

/* ===== Footer ATS ===== */
#footer { padding: 0 !important; margin: 0 !important; background: transparent !important; }
.ats-footer { background: #282a2f; color: #cfcfcf; margin-top: 0; }
.ats-footer__in {
  max-width: 1280px; margin: 0 auto; padding: 18px 24px 16px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; align-items: center;
}
@media (max-width: 900px) { .ats-footer__in { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .ats-footer__in { grid-template-columns: 1fr; } }
.ats-footer__cobrand { display: flex; align-items: center; gap: 16px; margin-bottom: 0; }
.ats-footer__logo {
  flex: 0 0 auto; display: block; width: 132px; height: 50px;
  background: url('../img/amazonia-logo.svg') no-repeat left center; background-size: contain;
}
.ats-footer__x { color: #6a6a6a; font-size: 1.7rem; font-weight: 300; line-height: 1; align-self: center; }
.ats-footer__gdclink { display: block; line-height: 0; transition: opacity .15s ease; }
.ats-footer__gdclink:hover { opacity: .85; }
.ats-footer__gdc { height: 58px; width: auto; display: block; }
.ats-footer__brand p { font-size: .88rem; line-height: 1.55; color: #9a9a9a; max-width: 330px; margin: 0; }
.ats-footer__col h4 { color: #fff; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.ats-footer__col ul { list-style: none; margin: 0; padding: 0; }
.ats-footer__col li { margin-bottom: 10px; }
.ats-footer__col ul a { color: #cfcfcf !important; text-decoration: none; font-size: .92rem; transition: color .15s ease; }
.ats-footer__col ul a:hover { color: var(--ats-yellow) !important; }
.ats-footer__col > p { font-size: .9rem; line-height: 1.6; color: #9a9a9a; margin: 0 0 14px; }
.ats-footer__contact {
  display: inline-flex; align-items: center; gap: 8px; background: #1c1c1c; color: #fff !important;
  border: 1.5px solid var(--ats-yellow);
  font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; padding: 11px 18px; border-radius: 10px;
}
.ats-footer__contact:hover { background: var(--ats-yellow); color: #282a2f !important; }
.ats-footer__contact .material-icons { font-size: 18px; color: var(--ats-yellow); }
.ats-footer__contact:hover .material-icons { color: #282a2f; }
.ats-footer__bottom {
  border-top: 1px solid #242424; max-width: 1280px; margin: 0 auto; padding: 15px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: .82rem; color: #8a8a8a;
}
.ats-footer__by strong { color: #43a86a; }

/* ===== Pas de contour/halo au clic souris (focus clavier conservé pour l'accessibilité) ===== */
* { -webkit-tap-highlight-color: transparent; }
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible),
.atsh-logo:focus,
.ats-footer__logo:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ===== Page « Commande rapide » ===== */
.ats-quick__intro { color: var(--ats-gray-text); margin-bottom: var(--sp-5); }
.ats-quick__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 720px) { .ats-quick__list { grid-template-columns: 1fr; } }
.ats-quick__row { display: flex; align-items: center; gap: var(--sp-4); background: #fff; border: 1px solid var(--ats-gray-200); border-radius: 12px; padding: 10px 14px; }
.ats-quick__row.is-out { border: 1.5px solid #e03131; background: #fff5f5; }
.ats-quick__row.is-out .ats-quick__name { color: #c92a2a; }
.ats-quick__media { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; background: var(--ats-gray-50); display: flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none; }
.ats-quick__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ats-quick__media .material-icons { color: #ccc; }
.ats-quick__info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ats-quick__ref { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ats-gray-text); }
.ats-quick__name { font-weight: 700; color: var(--ats-black); }
.ats-quick__stock { font-size: .82rem; color: var(--ats-gray-text); }
.ats-quick__qty { flex: 0 0 auto; }
.ats-quick__qty input { width: 82px; height: 44px; text-align: center; font-weight: 800; font-size: 1rem; border: 1.5px solid var(--ats-gray-200); border-radius: 10px; -moz-appearance: textfield; }
.ats-quick__qty input::-webkit-outer-spin-button, .ats-quick__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ats-quick__na { color: var(--ats-gray-text); }
.ats-quick__actions { position: sticky; bottom: 0; padding: var(--sp-4) 0; margin-top: var(--sp-3); background: linear-gradient(to top, #fff 65%, rgba(255,255,255,0)); }
.ats-quick__submit { display: inline-flex; align-items: center; gap: 10px; background: var(--ats-yellow); color: var(--ats-black); border: 0; border-radius: var(--ats-radius-btn); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 16px 28px; cursor: pointer; }
.ats-quick__submit:hover { background: var(--ats-yellow-lt); }

/* Infos */
.ats-product__info { padding-top: var(--sp-2); }
.ats-product__ref { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ats-gray-text); }
.ats-product__title { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; margin: var(--sp-2) 0 var(--sp-4); }
.ats-product__stockline { margin-bottom: var(--sp-5); }
.ats-product__stockline .ats-stock { position: static; font-size: .82rem; padding: 7px 14px; }
.ats-product__desc { color: #444; font-size: 1.02rem; line-height: 1.6; margin-bottom: var(--sp-5); }

/* Form / quantité */
.ats-product__form {
  background: var(--ats-gray-50); border: 1px solid var(--ats-gray-200);
  border-radius: var(--ats-radius-card); padding: var(--sp-5); margin-bottom: var(--sp-6);
}
.ats-qty { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.ats-qty__label { font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }
.ats-qty__control { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--ats-gray-200); border-radius: var(--ats-radius-btn); overflow: hidden; }
.ats-qty__btn {
  width: 44px; height: 46px; border: 0; background: #fff; cursor: pointer;
  font-size: 1.3rem; font-weight: 700; color: var(--ats-black); line-height: 1;
  transition: background .12s ease;
}
.ats-qty__btn:hover { background: var(--ats-yellow); }
.ats-qty__control input {
  width: 64px; height: 46px; border: 0; border-left: 1.5px solid var(--ats-gray-200); border-right: 1.5px solid var(--ats-gray-200);
  text-align: center; font-size: 1.05rem; font-weight: 800; color: var(--ats-black); -moz-appearance: textfield;
}
.ats-qty__control input::-webkit-outer-spin-button, .ats-qty__control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ats-qty__control .qty { display: flex; margin: 0; }
/* Neutralise le widget touchspin de PrestaShop (on garde nos boutons +/-) */
.ats-qty__control .bootstrap-touchspin { display: contents; }
.ats-qty__control .input-group-btn-vertical,
.ats-qty__control .bootstrap-touchspin-up,
.ats-qty__control .bootstrap-touchspin-down { display: none !important; }
.ats-qty__max { color: var(--ats-gray-text); font-size: .9rem; }
.product-add-to-cart .add { width: 100%; margin-top: var(--sp-3); }
#product-availability:empty, .product-minimal-quantity:empty { display: none; margin: 0; }
.product-add-to-cart .control-label { display: none; }

.ats-product__add {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ats-yellow); color: var(--ats-black); border: 0; border-radius: var(--ats-radius-btn);
  font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem;
  padding: 16px; cursor: pointer; transition: background .15s ease, transform .08s ease;
}
.ats-product__add:hover { background: var(--ats-yellow-lt); }
.ats-product__add:active { transform: translateY(1px); }
.ats-product__add.is-disabled, .ats-product__add[disabled] { background: var(--ats-gray-200); color: var(--ats-gray-text); cursor: not-allowed; }
.ats-product__add .material-icons { font-size: 20px; }

/* Description longue */
.ats-product__longdesc { border-top: 1px solid var(--ats-gray-200); padding-top: var(--sp-5); }
.ats-product__longdesc h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 var(--sp-3); }
.ats-product__longdesc { color: #444; line-height: 1.7; }

/* ===============================================================
   13) MA SÉLECTION (ex-panier) — .ats-cart
   =============================================================== */
.ats-cart { max-width: 1200px; margin: 0 auto; padding: var(--sp-6) var(--sp-5) var(--sp-8); }
.ats-cart__eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ats-black); background: var(--ats-yellow);
  padding: 5px 13px; border-radius: 999px; margin-bottom: var(--sp-3);
}
.ats-cart__title { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin: 0 0 var(--sp-6); }

.ats-cart__layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--sp-6); align-items: start; }
@media (max-width: 880px){ .ats-cart__layout { grid-template-columns: 1fr; } }

/* Liste des items */
.ats-cart .cart-overview { background: transparent; }
.ats-cart .cart-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.ats-cart .cart-item { margin: 0; }

.ats-cart-line {
  display: grid; grid-template-columns: 92px 1fr auto auto; align-items: center; gap: var(--sp-4);
  background: #fff; border: 1px solid var(--ats-gray-200); border-radius: var(--ats-radius-card);
  padding: var(--sp-3) var(--sp-4); transition: border-color .15s ease, box-shadow .15s ease;
}
.ats-cart-line:hover { box-shadow: var(--ats-shadow-sm); }
.ats-cart-line__media {
  width: 76px; height: 76px; border-radius: 10px; background: var(--ats-gray-50);
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto;
}
.ats-cart-line__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
.ats-cart-line__noimg .material-icons { font-size: 30px; color: #cfcfcf; }
.ats-cart-line__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ats-cart-line__ref { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ats-gray-text); }
.ats-cart-line__name { font-weight: 800; color: var(--ats-black); font-size: 1rem; line-height: 1.25; }
.ats-cart-line__name:hover { color: var(--ats-black); }
.ats-cart-line__attr { font-size: .85rem; color: var(--ats-gray-text); }

/* Quantité (touchspin PrestaShop encapsule l'input) */
.ats-cart-line__qty { display: flex; align-items: center; }
.ats-cart-line__qtyinput, .ats-cart-line .bootstrap-touchspin {
  border: 1.5px solid var(--ats-gray-200) !important; border-radius: var(--ats-radius-btn); overflow: hidden;
}
.ats-cart-line__qtyinput {
  width: 64px; height: 42px; text-align: center; font-weight: 800; font-size: 1rem; color: var(--ats-black);
  -moz-appearance: textfield;
}
.ats-cart-line__qtyinput::-webkit-outer-spin-button, .ats-cart-line__qtyinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ats-cart-line .bootstrap-touchspin .btn { background: #fff !important; border: 0 !important; color: var(--ats-black) !important; }
.ats-cart-line .bootstrap-touchspin .btn:hover { background: var(--ats-yellow) !important; }

/* Suppression */
.ats-cart-line__remove .remove-from-cart {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; color: var(--ats-gray-text); transition: background .15s ease, color .15s ease;
}
.ats-cart-line__remove .remove-from-cart:hover { background: #fdeaea; color: var(--ats-danger); }
.ats-cart-line__remove .material-icons { font-size: 20px; }

/* Récap latéral */
.ats-cart__box {
  background: var(--ats-black); color: #fff; border-radius: var(--ats-radius-card);
  padding: var(--sp-5); position: sticky; top: var(--sp-5);
}
.ats-cart__box h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 var(--sp-4); }
.ats-cart__recap { list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.ats-cart__recap li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2a2a2a; padding-bottom: var(--sp-3); }
.ats-cart__recap span { color: #b9b9b9; }
.ats-cart__recap strong { color: var(--ats-yellow); font-size: 1.4rem; font-weight: 900; }
.ats-cart__checkout {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--ats-yellow); color: #1c1d21 !important; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: 16px; border-radius: var(--ats-radius-btn); margin-bottom: var(--sp-3);
}
.ats-cart__checkout:hover { background: var(--ats-yellow-lt); }
.ats-cart__continue { display: flex; align-items: center; justify-content: center; gap: 6px; color: #b9b9b9 !important; font-size: .88rem; }
.ats-cart__continue:hover { color: var(--ats-yellow) !important; }
.ats-cart__continue .material-icons, .ats-cart__checkout .material-icons { font-size: 18px; }

/* Bouton "Enregistrer pour plus tard" */
.ats-cart__save {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: transparent; border: 1.5px solid #555; color: #fff !important; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; font-size: .8rem;
  padding: 13px; border-radius: var(--ats-radius-btn); margin-bottom: var(--sp-3);
}
.ats-cart__save:hover { border-color: var(--ats-yellow); color: var(--ats-yellow) !important; }
.ats-cart__save .material-icons { font-size: 18px; }
.ats-cart__saveform { width: 100%; }
.ats-cart__save { cursor: pointer; font-family: inherit; }

/* ===== Page « Enregistré pour plus tard » ===== */
.ats-saved__intro { color: var(--ats-gray-text); margin-bottom: var(--sp-5); }
.ats-saved__list { display: flex; flex-direction: column; gap: 12px; }
.ats-saved__card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--ats-gray-200); border-radius: 12px; padding: 16px 18px;
}
.ats-saved__info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ats-saved__ic { color: var(--ats-black); background: var(--ats-yellow); width: 44px; height: 44px; line-height: 44px; text-align: center; border-radius: 10px; flex: 0 0 auto; display: inline-block; }
.ats-saved__name { display: block; font-weight: 800; color: var(--ats-black); font-size: 1rem; }
.ats-saved__meta { display: block; font-size: .85rem; color: var(--ats-gray-text); margin-top: 2px; }
.ats-saved__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ats-saved__actions form { margin: 0; }
.ats-saved__btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; border: 0; border-radius: 10px; padding: 11px 16px; }
.ats-saved__btn--restore { background: var(--ats-yellow); color: #282a2f; }
.ats-saved__btn--restore:hover { background: var(--ats-yellow-lt); }
.ats-saved__btn--del { background: #f3f3f3; color: #c92a2a; padding: 11px; }
.ats-saved__btn--del:hover { background: #ffe0e0; }
.ats-saved__btn .material-icons { font-size: 18px; }
@media (max-width: 560px) {
  .ats-saved__card { flex-direction: column; align-items: stretch; }
  .ats-saved__actions { justify-content: space-between; }
  .ats-saved__btn--restore { flex: 1; justify-content: center; }
}

/* ===== Toast d'ajout "ajouté à ma sélection" ===== */
.ats-toast {
  position: fixed; top: 138px; right: 24px; z-index: 9999;
  background: var(--ats-black); color: #fff; border-radius: 12px; padding: 14px 18px;
  display: flex; align-items: center; gap: 11px; box-shadow: var(--ats-shadow-lg);
  border-left: 4px solid var(--ats-yellow); max-width: 360px; font-size: .92rem; line-height: 1.35;
  transform: translateX(135%); transition: transform .7s cubic-bezier(.2,.85,.3,1.15);
}
.ats-toast--show { transform: translateX(0); }
.ats-toast .material-icons { color: var(--ats-yellow); font-size: 22px; flex: 0 0 auto; }
.ats-toast strong { color: var(--ats-yellow); }

/* Pulse du compteur "Ma sélection" */
.atsh-sel.ats-pulse { animation: atspulse .5s ease; }
@keyframes atspulse { 0%,100% { transform: scale(1); } 45% { transform: scale(1.13); } }

/* Modal d'ajout natif PrestaShop masqué (remplacé par le toast) */
#blockcart-modal { display: none !important; }

/* État vide */
.ats-cart__empty .material-icons { font-size: 72px; color: #d8d8d8; }
.ats-cart__empty h2 { margin: var(--sp-3) 0; }
.ats-cart__emptycta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: var(--sp-4);
  background: var(--ats-yellow); color: #1c1d21 !important; font-weight: 800; text-transform: uppercase;
  padding: 14px 24px; border-radius: var(--ats-radius-btn);
}
.ats-cart__emptycta:hover { background: var(--ats-yellow-lt); }

/* masque tout résidu de prix/total dans le panier */
.ats-cart .product-price, .ats-cart .cart-summary-line, .ats-cart .no-items { color: var(--ats-gray-text); }

/* ===============================================================
   14) CHECKOUT — Livraison + Validation (restyle ATS)
   =============================================================== */
body#checkout #content-wrapper, body#checkout #content { background: transparent !important; }
body#checkout #wrapper > .container { max-width: 1200px; }

/* Étapes en cartes */
.checkout-step {
  background: #fff; border: 1px solid var(--ats-gray-200); border-radius: var(--ats-radius-card);
  box-shadow: var(--ats-shadow-sm); margin-bottom: var(--sp-4); overflow: hidden;
}
.checkout-step.-current { border-color: var(--ats-black); box-shadow: var(--ats-shadow-md); }
.checkout-step .step-title, .checkout-step .step-edit {
  display: flex; align-items: center; gap: var(--sp-3); cursor: pointer;
  padding: var(--sp-4) var(--sp-5); margin: 0; font-size: 1.1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ats-black);
}
.checkout-step .step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ats-black); color: #fff; font-size: .95rem;
}
.checkout-step.-current .step-number { background: var(--ats-yellow); color: #1c1d21; }
.checkout-step.-complete .step-title { color: var(--ats-success); }
.checkout-step .content { padding: 0 var(--sp-5) var(--sp-5); }
.checkout-step.-unreachable .step-title { color: var(--ats-gray-text); cursor: default; }

/* Sélection d'adresse */
#delivery-addresses, .address-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.address-item {
  background: #fff; border: 1.5px solid var(--ats-gray-200); border-radius: var(--ats-radius-card);
  padding: var(--sp-4); transition: border-color .15s ease, box-shadow .15s ease;
}
.address-item:hover { border-color: var(--ats-black); }
.address-item.selected { border-color: var(--ats-yellow); box-shadow: 0 0 0 3px rgba(200,159,79,.25); }
.address-item .address { color: #444; font-size: .92rem; line-height: 1.5; }
.address-item .address-alias, .address-item h4 { font-weight: 800; text-transform: uppercase; font-size: .85rem; }
.address-footer .edit-address, .address-footer .delete-address { color: var(--ats-gray-text); }
.add-address a, .add-address {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ats-black);
}
.add-address a:hover { color: var(--ats-black); }

/* Formulaire d'adresse */
.js-address-form label, #checkout .form-control-label { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ats-gray-text); margin-bottom: 6px; }
#checkout .form-control, .js-address-form .form-control {
  background: #fff !important; border: 1.5px solid var(--ats-gray-200) !important; border-radius: var(--ats-radius-btn) !important;
  color: var(--ats-black) !important; padding: 12px 14px !important; height: auto !important;
}
#checkout .form-control:focus { border-color: var(--ats-yellow) !important; box-shadow: 0 0 0 3px rgba(200,159,79,.22) !important; }

/* Commentaire livraison (custom) */
.ats-checkout-comment { margin-bottom: var(--sp-4); }
.ats-checkout-comment label { display: block; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ats-gray-text); margin-bottom: 8px; }
.ats-checkout-comment textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--ats-gray-200); border-radius: var(--ats-radius-btn);
  padding: 12px 14px; font-family: var(--ats-font); color: var(--ats-black); resize: vertical;
}
.ats-checkout-comment textarea:focus { outline: none; border-color: var(--ats-yellow); box-shadow: 0 0 0 3px rgba(200,159,79,.22); }

/* Validation sans paiement */
.cart-payment-step-not-needed-info {
  background: #eaf7ef; color: var(--ats-success); border-radius: var(--ats-radius-btn);
  padding: var(--sp-4); font-weight: 700; text-align: center; margin-bottom: var(--sp-4);
}
.payment-options.hidden-xs-up, #conditions-to-approve, .ps-hidden-by-js { display: none !important; }

/* Boutons checkout */
.checkout-step .continue, .ats-checkout-next,
#payment-confirmation .btn, .checkout .btn-primary {
  background: var(--ats-yellow) !important; border: 0 !important; color: #1c1d21 !important;
  font-weight: 800 !important; text-transform: uppercase; letter-spacing: .04em;
  padding: 15px 28px !important; border-radius: var(--ats-radius-btn) !important; box-shadow: none !important;
  float: none !important; display: inline-flex; align-items: center; gap: 8px;
}
.checkout-step .continue:hover, #payment-confirmation .btn:hover, .ats-checkout-next:hover { background: var(--ats-yellow-lt) !important; }
#payment-confirmation { margin-top: var(--sp-4); }
#payment-confirmation .btn { width: 100%; justify-content: center; font-size: 1.05rem; padding: 17px !important; }

/* Récap latéral (colonne droite) — sans prix */
.cart-summary { background: var(--ats-black); color: #fff; border-radius: var(--ats-radius-card); padding: var(--sp-5); }
.cart-summary .h3, .cart-summary h3, .cart-summary .card-title { color: #fff; text-transform: uppercase; font-size: 1rem; }
.cart-summary .cart-summary-line, .cart-summary .product-line-info { color: #e6e6e6; }
.cart-summary .label, .cart-summary .value { color: #fff; }
/* totaux affichés (boutique marchande) */

/* Colonne droite : enlever réassurance + lignes de prix (dotation) */
body#checkout .block-reassurance, .cart-grid-right .block-reassurance { display: none !important; }
.cart-summary .show-details, .cart-summary .js-show-details { color: var(--ats-yellow) !important; }

/* Carnet d'adresses en menu déroulant */
.ats-addrpick { margin-bottom: var(--sp-4); }
.ats-addrpick__label { display: block; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ats-gray-text); margin-bottom: 8px; }
.ats-addrpick__selectwrap { position: relative; }
.ats-addrpick__select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: #fff; border: 1.5px solid var(--ats-gray-200); border-radius: var(--ats-radius-btn);
  padding: 13px 44px 13px 16px; font-family: var(--ats-font); font-size: 1rem; font-weight: 600; color: var(--ats-black); cursor: pointer;
}
.ats-addrpick__select:focus { outline: none; border-color: var(--ats-yellow); box-shadow: 0 0 0 3px rgba(200,159,79,.22); }
.ats-addrpick__chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ats-gray-text); }
.ats-addrpick__radios { display: none; }
.ats-addrpick__preview { margin-top: var(--sp-3); }
.ats-addrcard {
  background: var(--ats-gray-50); border: 1px solid var(--ats-gray-200); border-left: 4px solid var(--ats-yellow);
  border-radius: var(--ats-radius-btn); padding: var(--sp-4);
}
.ats-addrcard.ats-hide { display: none; }
.ats-addrcard__alias { display: block; font-weight: 800; text-transform: uppercase; font-size: .82rem; letter-spacing: .04em; margin-bottom: 6px; }
.ats-addrcard__body { color: #444; line-height: 1.5; }
.ats-addrcard__actions { display: flex; gap: var(--sp-4); margin-top: var(--sp-3); }
.ats-addrcard__actions a { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--ats-gray-text); }
.ats-addrcard__actions a:hover { color: var(--ats-black); }
.ats-addrcard__actions .material-icons { font-size: 17px; }

/* Mini récap (étape Récapitulatif) */
.ats-recap { margin-bottom: var(--sp-5); }
.ats-recap__title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 var(--sp-4); }
.ats-recap__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 680px) { .ats-recap__grid { grid-template-columns: 1fr; } }
.ats-recap__block { background: var(--ats-gray-50); border: 1px solid var(--ats-gray-200); border-radius: var(--ats-radius-card); padding: var(--sp-4); }
.ats-recap__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); gap: var(--sp-3); }
.ats-recap__head h4 { display: flex; align-items: center; gap: 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.ats-recap__head h4 .material-icons { font-size: 18px; color: var(--ats-gray-text); }
.ats-recap__edit { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--ats-gray-text); white-space: nowrap; }
.ats-recap__edit:hover { color: var(--ats-black); }
.ats-recap__edit .material-icons { font-size: 15px; }
.ats-recap__addr { color: #444; line-height: 1.5; font-size: .92rem; }
.ats-recap__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ats-recap__items li { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.ats-recap__qty { font-weight: 800; color: var(--ats-black); background: var(--ats-yellow); border-radius: 6px; padding: 1px 8px; font-size: .82rem; flex: 0 0 auto; }
.ats-recap__name { color: var(--ats-black); font-weight: 600; flex: 1 1 auto; }
.ats-recap__ref { color: var(--ats-gray-text); font-size: .78rem; flex: 0 0 auto; }

/* ===============================================================
   15) CONFIRMATION DE COMMANDE
   =============================================================== */
.ats-confirm { max-width: 760px; margin: 0 auto; padding: var(--sp-7) var(--sp-5) var(--sp-8); }
.ats-confirm__hero { text-align: center; margin-bottom: var(--sp-6); }
.ats-confirm__check { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ats-success); color: #fff; margin-bottom: var(--sp-4); }
.ats-confirm__check .material-icons { font-size: 50px; }
.ats-confirm__hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin: 0 0 var(--sp-3); }
.ats-confirm__hero p { color: var(--ats-gray-text); font-size: 1.05rem; margin: 0 0 var(--sp-4); }
.ats-confirm__ref { display: inline-flex; flex-direction: column; gap: 2px; background: var(--ats-black); color: #fff; padding: var(--sp-3) var(--sp-5); border-radius: var(--ats-radius-card); }
.ats-confirm__ref span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #b9b9b9; }
.ats-confirm__ref strong { color: var(--ats-yellow); font-size: 1.4rem; font-weight: 900; letter-spacing: .04em; }
.ats-confirm__box { background: #fff; border: 1px solid var(--ats-gray-200); border-radius: var(--ats-radius-card); padding: var(--sp-5); margin-bottom: var(--sp-5); box-shadow: var(--ats-shadow-sm); }
.ats-confirm__box h2 { display: flex; align-items: center; gap: 8px; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 var(--sp-4); }
.ats-confirm__box h2 .material-icons { font-size: 20px; color: var(--ats-gray-text); }
.ats-confirm__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.ats-confirm__btn { flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 16px; border-radius: var(--ats-radius-btn); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; }
.ats-confirm__btn--primary { background: var(--ats-yellow); color: #1c1d21 !important; }
.ats-confirm__btn--primary:hover { background: var(--ats-yellow-lt); }
.ats-confirm__btn--secondary { background: transparent; border: 1.5px solid var(--ats-black); color: var(--ats-black) !important; }
.ats-confirm__btn--secondary:hover { background: var(--ats-black); color: #fff !important; }
.ats-confirm__btn .material-icons { font-size: 20px; }

/* ===============================================================
   16) MES COMMANDES (historique)
   =============================================================== */
.ats-orders { display: flex; flex-direction: column; gap: var(--sp-3); }
.ats-order { display: flex; align-items: center; gap: var(--sp-4); background: #fff; border: 1px solid var(--ats-gray-200); border-radius: var(--ats-radius-card); padding: var(--sp-4) var(--sp-5); transition: border-color .15s ease, box-shadow .15s ease; }
.ats-order:hover { border-color: var(--ats-black); box-shadow: var(--ats-shadow-sm); }
.ats-order__main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ats-order__ref { font-weight: 800; color: var(--ats-black); font-size: 1rem; }
.ats-order__date { display: inline-flex; align-items: center; gap: 5px; color: var(--ats-gray-text); font-size: .85rem; }
.ats-order__date .material-icons { font-size: 15px; }
.ats-order__status { color: #fff; font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.ats-order__view { color: var(--ats-gray-text); display: flex; }
.ats-order:hover .ats-order__view { color: var(--ats-black); }


/* ===============================================================
   PAGE DE CONNEXION AMAZONIA (validée) — surcharge .amz-login
   =============================================================== */
/* =====================================================================
   AMAZONIA — Thème boutique (surcharge du thème classic)
   Design tokens centralisés + composants. Re-skin = on change les tokens.
   ===================================================================== */
:root{
  --amz-gold:#c89f4f;        /* couleur signature */
  --amz-gold-soft:#d8b873;
  --amz-dark:#282a2f;        /* anthracite */
  --amz-darker:#1c1d21;
  --amz-cream:#f3e1cc;
  --amz-light:#fafafa;
  --amz-font:'Montserrat',-apple-system,'Segoe UI',Roboto,sans-serif;
}

/* =====================================================================
   PAGE DE CONNEXION — 100% Amazonia, sans header ni footer
   ===================================================================== */
#authentication #header,
#authentication #footer,
#authentication .header-nav,
#authentication .l-header,
#authentication .page-header,
#authentication .breadcrumb{ display:none !important; }

/* fond anthracite + pas de débordement (supprime la bande blanche / scroll horizontal en bas) */
body#authentication{ background:var(--amz-dark) !important; overflow-x:hidden !important; margin:0; }
#authentication #wrapper,
#authentication #wrapper .container,
#authentication #content-wrapper,
#authentication #main,
#authentication #content{
  max-width:none !important; width:100% !important;
  margin:0 !important; padding:0 !important; box-shadow:none !important; background:transparent !important;
  overflow-x:hidden !important;
}

.amz-login{
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  font-family:var(--amz-font);
  background:
    radial-gradient(1100px 560px at 50% -12%, rgba(200,159,79,.18), transparent 60%),
    linear-gradient(160deg, var(--amz-dark) 0%, var(--amz-darker) 100%);
}
.amz-login__card{
  width:100%; max-width:420px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(200,159,79,.35);
  border-radius:16px;
  padding:42px 34px 30px;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  text-align:center;
}
.amz-login__logo{ height:34px; width:auto; margin:0 auto 26px; display:block; }
.amz-login__title{
  color:var(--amz-light); font-weight:600; font-size:1.5rem;
  letter-spacing:.04em; margin:0 0 6px;
}
.amz-login__sub{ color:rgba(250,250,250,.6); font-size:.92rem; margin:0 0 26px; }

.amz-login .login-form,.amz-login .login-form *{ font-family:var(--amz-font); }
/* mise en page verticale : on neutralise la grille bootstrap (label|champ) -> label au-dessus, champ pleine largeur */
.amz-login .form-group.row{ display:block; margin:0 0 16px; }
.amz-login .form-group.row > div[class*="col-"],
.amz-login .form-group.row > label[class*="col-"]{
  display:block; width:100%; max-width:100%; flex:0 0 100%; padding:0; margin:0;
}
.amz-login .form-group.row .col-md-3:empty{ display:none; }
.amz-login label,.amz-login .form-control-label{
  color:rgba(250,250,250,.75); font-size:.8rem; font-weight:500; letter-spacing:.03em;
  text-align:left; padding:0 0 6px; margin:0;
}
.amz-login input,.amz-login .form-control{
  background:rgba(0,0,0,.28) !important; border:1px solid rgba(255,255,255,.14) !important;
  color:var(--amz-light) !important; border-radius:10px; height:46px; padding:0 14px; box-shadow:none !important;
}
.amz-login input:focus,.amz-login .form-control:focus{
  border-color:var(--amz-gold) !important; box-shadow:0 0 0 3px rgba(200,159,79,.18) !important; outline:none;
}
.amz-login .input-group{ display:flex !important; width:100% !important; flex-wrap:nowrap; }
.amz-login .input-group input,
.amz-login .input-group > .form-control{ flex:1 1 auto !important; width:auto !important; min-width:0; border-radius:10px 0 0 10px; }
.amz-login .input-group-append,
.amz-login .input-group-btn{ flex:0 0 auto; display:flex; }
.amz-login .input-group-btn .btn,
.amz-login .input-group-append .btn,
.amz-login .input-group button{
  background:rgba(0,0,0,.28) !important; border:1px solid rgba(255,255,255,.14) !important;
  color:rgba(250,250,250,.5) !important; border-radius:0 10px 10px 0;
  font-size:.72rem; letter-spacing:.04em; white-space:nowrap;
}
.amz-login [type=submit],
.amz-login .btn-primary{
  width:100%; background:var(--amz-gold) !important; border:none !important; color:#1c1d21 !important;
  font-weight:700; letter-spacing:.06em; text-transform:uppercase; border-radius:10px; height:48px; margin-top:8px;
  transition:filter .2s, transform .05s;
}
.amz-login [type=submit]:hover,.amz-login .btn-primary:hover{ filter:brightness(1.07); }
.amz-login [type=submit]:active{ transform:translateY(1px); }
.amz-login .forgot-password{ text-align:center; margin-top:14px; }
.amz-login .forgot-password a{ color:var(--amz-gold-soft); font-size:.85rem; text-decoration:none; }
.amz-login .forgot-password a:hover{ text-decoration:underline; }
.amz-login__help{ color:rgba(250,250,250,.45); font-size:.8rem; line-height:1.5; margin:22px 0 0; }
.amz-login__help::before{ content:""; display:block; height:1px; background:rgba(255,255,255,.08); margin:0 0 16px; }

/* restes éventuels du template natif */
.amz-login .no-account,.amz-login>hr{ display:none !important; }
