/* ==========================================================================
   Amélie Shop — système de design v3 (boutique en ligne)
   Signature : l'étiquette de prix rouge harissa posée sur la photo.
   Le reste reste calme : blanc, jasmin, bleu Sidi Bou Said pour le texte.
   Chargé APRÈS style.css et design-tokens.css.
   ========================================================================== */

:root {
  --am-blue: #1B4F72;
  --am-blue-deep: #123A56;
  --am-blue-soft: #E7EEF3;
  --am-jasmine: #FBF8F3;
  --am-red: #C1442D;
  --am-red-deep: #A33723;
  --am-green: #187A42;
  --am-ink: #1E2A33;
  --am-mute: #5F6D78;
  --am-line: #E7E1D8;
  --am-white: #FFFFFF;

  --am-font-head: 'Fraunces', Georgia, serif;
  --am-font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --am-r-s: 6px;
  --am-r-m: 12px;
  --am-r-l: 18px;
  --am-gutter: 16px;
  --am-wrap: 1240px;
  --am-header-h: 64px;
  --am-card-ratio: 4 / 5;
  --am-on-red: #FFFFFF;
  --am-on-blue: #FFFFFF;

  --am-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M22 2l8 12 12 8-12 8-8 12-8-12-12-8 12-8z'/%3E%3Ccircle cx='22' cy='22' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
body.am-body {
  font-family: var(--am-font-body);
  color: var(--am-ink);
  background: var(--am-white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px;
}
@media (min-width: 900px) { body.am-body { padding-bottom: 0; } }
body.am-body h1, body.am-body h2, body.am-body h3, body.am-body h4 {
  font-family: var(--am-font-head);
  color: var(--am-blue);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
}
body.am-body a { color: var(--am-blue); }
body.am-body a:hover { color: var(--am-red); }
.am-wrap { width: 100%; max-width: var(--am-wrap); margin: 0 auto; padding: 0 var(--am-gutter); }
.am-main { min-height: 60vh; }
.am-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--am-red); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.am-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  font: 600 15px/1 var(--am-font-body);
  border: 2px solid transparent; border-radius: var(--am-r-s);
  cursor: pointer; text-decoration: none !important;
  transition: background-color .15s, color .15s, border-color .15s;
}
.am-btn--red { background: var(--am-red); color: var(--am-on-red) !important; }
.am-btn--red:hover { background: var(--am-red-deep); }
.am-btn--blue { background: var(--am-blue); color: var(--am-on-blue) !important; }
.am-btn--blue:hover { background: var(--am-blue-deep); }
.am-btn--line { border-color: var(--am-blue); color: var(--am-blue) !important; background: transparent; }
.am-btn--line:hover { background: var(--am-blue); color: #fff !important; }
.am-btn--light { background: #fff; color: var(--am-blue) !important; }
.am-btn--light:hover { background: var(--am-jasmine); }
.am-btn--wa { background: var(--am-green); color: #fff !important; }
.am-btn--wa:hover { background: #126236; }
.am-btn--block { width: 100%; }
.am-btn--lg { min-height: 54px; font-size: 16px; }
.am-btn--sm { min-height: 40px; padding: 0 16px; }

/* ---------- Étiquette de prix (signature) ---------- */
.am-price {
  display: inline-block;
  background: var(--am-red); color: var(--am-on-red);
  font-family: var(--am-font-head); font-weight: 600; font-size: 18px; line-height: 1;
  padding: 9px 14px 9px 22px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  white-space: nowrap;
}
.am-price small { font-family: var(--am-font-body); font-size: 12px; font-weight: 600; margin-left: 2px; opacity: .92; }
.am-price--xl { font-size: 32px; padding: 14px 24px 14px 34px; clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%); }

/* ---------- Bande à moucharabieh ---------- */
.am-lattice { background-color: var(--am-blue); background-image: var(--am-lattice); color: #fff; }
.am-lattice h1, .am-lattice h2, .am-lattice h3 { color: #fff !important; }
.am-lattice-edge { height: 10px; background-color: var(--am-blue); background-image: var(--am-lattice); }

/* ---------- Bandeau d'annonce + header ---------- */
.am-topline { background: var(--am-blue-deep); color: #dbe6ee; font-size: 13px; }
.am-topline .am-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.am-topline a { color: #fff !important; text-decoration: none; font-weight: 600; white-space: nowrap; }
.am-topline span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .am-topline .am-wrap { justify-content: center; } .am-topline a { display: none; } }

.am-header { background: #fff; border-bottom: 1px solid var(--am-line); position: sticky; top: 0; z-index: 900; }
.am-header__row { display: flex; align-items: center; gap: 18px; min-height: var(--am-header-h); }
.am-logo { font: 600 27px/1 var(--am-font-head); color: var(--am-blue) !important; text-decoration: none !important; letter-spacing: -.02em; white-space: nowrap; }
.am-logo i { display: inline-block; width: 10px; height: 10px; background: var(--am-red); transform: rotate(45deg); margin: 0 4px 4px 0; }
.am-header__right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.am-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 0; color: var(--am-blue); font-size: 19px; cursor: pointer; text-decoration: none !important; }
.am-iconbtn:hover { background: var(--am-blue-soft); }
.am-count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--am-red); color: var(--am-on-red); font: 700 11px/19px var(--am-font-body); text-align: center; }

.am-search { position: relative; display: flex; flex: 1; max-width: 620px; background: var(--am-jasmine); border: 1.5px solid var(--am-line); border-radius: 999px; transition: border-color .15s, background-color .15s; }
.am-search:focus-within { border-color: var(--am-blue); background: #fff; }
.am-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; height: 44px; font: 500 15px var(--am-font-body); color: var(--am-ink); }
.am-search input:focus { outline: none; }
.am-search button { border: 0; background: var(--am-blue); color: var(--am-on-blue); width: 52px; margin: 3px; border-radius: 999px; font-size: 15px; cursor: pointer; }
.am-search button:hover { background: var(--am-blue-deep); }
.am-suggest { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-r-m); box-shadow: 0 16px 32px rgba(18,58,86,.16); z-index: 960; max-height: 360px; overflow: auto; }
.am-suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; color: var(--am-ink) !important; text-decoration: none; border-bottom: 1px solid var(--am-line); }
.am-suggest a:last-child { border-bottom: 0; }
.am-suggest a:hover { background: var(--am-jasmine); }
.am-suggest img { width: 44px; height: 54px; object-fit: cover; border-radius: 4px; }
.am-suggest b { display: block; font-size: 14px; font-weight: 600; }
.am-suggest span { color: var(--am-red); font-weight: 700; font-size: 14px; }
.am-suggest p { margin: 0; padding: 14px; color: var(--am-mute); text-align: center; }

.am-account { position: relative; }
.am-account__menu { display: none; position: absolute; right: 0; top: 50px; min-width: 210px; background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-r-m); box-shadow: 0 12px 30px rgba(18,58,86,.14); padding: 6px; z-index: 950; }
.am-account.is-open .am-account__menu { display: block; }
.am-account__menu a { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: var(--am-r-s); color: var(--am-ink) !important; text-decoration: none; font-size: 15px; }
.am-account__menu a:hover { background: var(--am-blue-soft); }
.am-account__menu i { width: 18px; color: var(--am-mute); }

/* Navigation catégories (bureau) */
.am-catnav { border-top: 1px solid var(--am-line); }
.am-catnav .am-wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.am-catnav .am-wrap::-webkit-scrollbar { display: none; }
.am-catnav a { flex: 0 0 auto; padding: 12px 14px; font-weight: 600; font-size: 14.5px; color: var(--am-ink) !important; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.am-catnav a:hover, .am-catnav a.is-on { color: var(--am-blue) !important; border-bottom-color: var(--am-red); }
.am-catnav a.am-catnav__sell { margin-left: auto; color: var(--am-red) !important; }

@media (max-width: 899px) {
  .am-catnav a { padding: 10px 12px; font-size: 14px; }
  .am-catnav .am-wrap { padding-right: 28px; }
  .am-header__row { flex-wrap: wrap; gap: 0 8px; padding-top: 8px; padding-bottom: 10px; min-height: 0; }
  .am-logo { font-size: 24px; }
  .am-header__right .am-hide-m { display: none; }
  .am-search { order: 3; flex: 0 0 100%; max-width: none; margin-top: 8px; }
}
@media (min-width: 900px) {
  .am-header__row { padding-top: 6px; padding-bottom: 6px; }
}

/* ---------- Barre d'onglets mobile ---------- */
.am-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 920; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--am-line); padding-bottom: env(safe-area-inset-bottom); height: calc(60px + env(safe-area-inset-bottom)); }
.am-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 11px/1 var(--am-font-body); color: var(--am-mute) !important; text-decoration: none; }
.am-tabbar a i { font-size: 20px; }
.am-tabbar a.is-on { color: var(--am-blue) !important; }
.am-tabbar a.is-on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; background: var(--am-red); border-radius: 0 0 3px 3px; }
.am-tabbar .am-tab-sell i { width: 46px; height: 46px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; background: var(--am-red); color: var(--am-on-red); font-size: 20px; border: 4px solid #fff; box-sizing: content-box; }
.am-tabbar .am-count { top: 6px; right: calc(50% - 22px); }
@media (min-width: 900px) { .am-tabbar { display: none; } }

/* ---------- Accueil : bannière (Azur) ---------- */
.am-banners { padding: 18px 0 0; }
.am-slider { position: relative; border-radius: var(--am-r-l); overflow: hidden; background: var(--am-blue-soft); }
.am-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.am-slider__track::-webkit-scrollbar { display: none; }
.am-slider__item { flex: 0 0 100%; scroll-snap-align: start; display: block; aspect-ratio: 21 / 8; background-size: cover; background-position: center; cursor: pointer; }
@media (max-width: 760px) { .am-slider__item { aspect-ratio: 4 / 3; } }
.am-slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.am-slider__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.65); box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.am-slider__dots i.is-on { background: #fff; width: 22px; border-radius: 4px; }

/* Bannière de secours quand Azur n'a mis aucun visuel */
.am-hero { padding: 40px 0; }
.am-hero__box { border-radius: var(--am-r-l); padding: 40px 28px; display: grid; gap: 22px; align-items: center; }
.am-hero h1 { font-size: clamp(30px, 6vw, 54px); margin: 0 0 12px; max-width: 16ch; }
.am-hero p { color: #d3e1ec; font-size: 18px; max-width: 46ch; margin: 0 0 22px; }
@media (min-width: 900px) { .am-hero__box { padding: 64px 56px; } }

/* ---------- Réassurance ---------- */
.am-trust { padding: 20px 0 6px; }
.am-trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.am-trust li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--am-line); border-radius: var(--am-r-m); background: #fff; }
.am-trust i { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--am-blue-soft); color: var(--am-blue); font-size: 17px; }
.am-trust b { display: block; font-size: 15px; }
.am-trust span { display: block; font-size: 13.5px; color: var(--am-mute); line-height: 1.35; }
@media (min-width: 760px) { .am-trust ul { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Sections ---------- */
.am-section { padding: 40px 0; }
.am-section--tint { background: var(--am-jasmine); }
.am-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.am-section__head h2 { font-size: clamp(24px, 4vw, 34px); margin: 0; }
.am-section__head a { font-weight: 600; white-space: nowrap; }

/* Tuiles de catégories */
.am-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .am-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .am-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
.am-tile { position: relative; display: block; aspect-ratio: 1 / 1.1; border-radius: var(--am-r-m); overflow: hidden; background: var(--am-blue); text-decoration: none !important; }
.am-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.am-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,58,86,.88) 0%, rgba(18,58,86,.15) 55%, rgba(18,58,86,0) 100%); }
.am-tile span { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; color: #fff; font: 600 16px/1.2 var(--am-font-head); }
.am-tile small { display: block; margin-top: 3px; font: 500 12px var(--am-font-body); opacity: .85; }
.am-tile:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Grille + carte article ---------- */
.am-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
@media (min-width: 720px) { .am-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1040px) { .am-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.am-grid--3 { }
@media (min-width: 1040px) { .am-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.am-card { position: relative; display: flex; flex-direction: column; }
.am-card__link { display: block; color: var(--am-ink) !important; text-decoration: none !important; }
.am-card__img { position: relative; aspect-ratio: var(--am-card-ratio); background: var(--am-blue-soft); border-radius: var(--am-r-m); overflow: hidden; }
.am-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-card__img .am-price { position: absolute; left: 0; bottom: 12px; }
.am-card__flag { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--am-blue); font: 700 12px/1 var(--am-font-body); padding: 6px 9px; border-radius: 4px; }
.am-card__cat { margin: 10px 0 2px; font-size: 12.5px; color: var(--am-mute); }
.am-card__title { margin: 0; font: 600 16px/1.3 var(--am-font-body) !important; color: var(--am-ink) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.am-card__link:hover .am-card__title { color: var(--am-red) !important; text-decoration: underline; text-underline-offset: 3px; }
.am-card__meta { margin-top: 5px; display: flex; gap: 14px; font-size: 13px; color: var(--am-mute); }
.am-card__meta i { color: var(--am-red); margin-right: 5px; }
.am-card form { margin: 10px 0 0; }
.am-add { width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1.5px solid var(--am-red); color: var(--am-red); border-radius: var(--am-r-s); font: 600 14px var(--am-font-body); cursor: pointer; transition: background-color .15s, color .15s; }
.am-add:hover { background: var(--am-red); color: var(--am-on-red); }

.am-empty { padding: 56px 16px; text-align: center; border: 2px dashed var(--am-line); border-radius: var(--am-r-m); }
.am-empty h3 { margin: 0 0 8px; font-size: 24px; }
.am-empty p { color: var(--am-mute); margin: 0 0 18px; }

/* ---------- Vendre (bande) ---------- */
.am-sell { padding: 52px 0; }
.am-sell .am-wrap { display: grid; gap: 20px; align-items: center; }
.am-sell h2 { font-size: clamp(26px, 4.5vw, 40px); margin: 0 0 8px; }
.am-sell p { margin: 0; color: #d3e1ec; font-size: 17px; max-width: 52ch; }
@media (min-width: 800px) { .am-sell .am-wrap { grid-template-columns: 1fr auto; } }

/* ---------- Liens utiles (Azur) ---------- */
.am-links { padding: 48px 0; background: var(--am-jasmine); border-top: 1px solid var(--am-line); }
.am-links h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 22px; }
.am-links__grid { display: grid; gap: 16px; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 600px) { .am-links__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .am-links__grid { grid-template-columns: repeat(4, 1fr); } }
.am-link { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-r-m); overflow: hidden; text-decoration: none !important; color: var(--am-ink) !important; height: 100%; }
.am-link:hover { border-color: var(--am-blue); }
.am-link img { width: 100%; height: 140px; object-fit: cover; }
.am-link div { padding: 16px; }
body.am-body .am-link h3 { font-family: var(--am-font-body); font-size: 17px; margin: 0 0 6px; }
.am-link p { margin: 0 0 8px; color: var(--am-mute); font-size: 14px; }
.am-link span { color: var(--am-red); font-weight: 600; font-size: 14px; }

/* ---------- Page liste ---------- */
.am-pagehead { padding: 28px 0 24px; }
.am-pagehead h1 { margin: 0 0 4px; font-size: clamp(28px, 5vw, 42px); }
.am-pagehead p { margin: 0; color: #d3e1ec; }
.am-crumbs { font-size: 13.5px; color: var(--am-mute); padding: 16px 0 0; }
.am-crumbs a { color: var(--am-mute) !important; text-decoration: none; }
.am-crumbs a:hover { text-decoration: underline; }
.am-crumbs span { margin: 0 6px; }

.am-shop { display: grid; gap: 20px; padding: 22px 0 56px; }
@media (min-width: 900px) { .am-shop { grid-template-columns: 250px 1fr; gap: 36px; align-items: start; } .am-shop > aside { position: sticky; top: calc(var(--am-header-h) + 52px); } }
.am-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.am-toolbar p { margin: 0; color: var(--am-mute); font-size: 15px; }
.am-toolbar select { height: 42px; border: 1px solid var(--am-line); border-radius: var(--am-r-s); padding: 0 12px; background: #fff; font: 600 14px var(--am-font-body); color: var(--am-ink); }

.am-filters { background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-r-m); }
.am-filters > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--am-blue); display: flex; justify-content: space-between; align-items: center; }
.am-filters > summary::-webkit-details-marker { display: none; }
.am-filters__body { display: grid; gap: 14px; padding: 0 16px 16px; }
.am-filters label { display: block; font-size: 13px; font-weight: 600; color: var(--am-mute); margin-bottom: 4px; }
.am-filters input, .am-filters select { width: 100%; height: 44px; border: 1px solid var(--am-line); border-radius: var(--am-r-s); padding: 0 12px; background: #fff; font: 500 15px var(--am-font-body); color: var(--am-ink); }
.am-filters__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-filters__go { display: grid; gap: 8px; }
@media (min-width: 900px) { .am-filters > summary { pointer-events: none; } .am-filters > summary .fa-chevron-down { display: none; } }

/* Pagination */
.am-pager { display: flex; justify-content: center; margin-top: 36px; }
.am-pager .pagination { gap: 6px; flex-wrap: wrap; justify-content: center; }
.am-pager .page-link { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--am-line) !important; border-radius: var(--am-r-s) !important; color: var(--am-blue); background: #fff; font-weight: 600; }
.am-pager .page-item.active .page-link { background: var(--am-blue) !important; color: #fff !important; border-color: var(--am-blue) !important; }

/* Espace publicitaire (géré par Azur) */
.am-adslot { position: relative; display: block; margin: 0 0 26px; border-radius: var(--am-r-m); overflow: hidden; background: var(--am-blue-soft); }
.am-adslot img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.am-adslot span { position: absolute; right: 8px; top: 8px; background: rgba(255,255,255,.92); color: var(--am-mute); font: 600 11px/1 var(--am-font-body); padding: 5px 8px; border-radius: 3px; }

/* ---------- Fiche article ---------- */
.am-pdp { display: grid; gap: 26px; padding: 14px 0 40px; }
@media (min-width: 900px) { .am-pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; padding-top: 22px; } .am-pdp__buy { position: sticky; top: calc(var(--am-header-h) + 60px); } }
.am-gal__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--am-r-l); overflow: hidden; background: var(--am-blue-soft); }
.am-gal__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-gal__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.am-gal__thumbs::-webkit-scrollbar { display: none; }
.am-gal__thumbs button { flex: 0 0 74px; height: 92px; padding: 0; border: 2px solid transparent; border-radius: var(--am-r-s); overflow: hidden; background: var(--am-blue-soft); cursor: pointer; opacity: .75; }
.am-gal__thumbs button.is-on { border-color: var(--am-red); opacity: 1; }
.am-gal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.am-pdp__cat { font-size: 14px; color: var(--am-mute); margin: 0 0 6px; }
.am-pdp__cat a { color: var(--am-mute) !important; }
.am-pdp h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 16px; }
.am-pdp__facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--am-line); }
.am-pdp__facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--am-line); font-size: 15px; }
.am-pdp__facts span { color: var(--am-mute); }
.am-pdp__facts b { font-weight: 600; text-align: right; }
.am-pdp__actions { display: grid; gap: 10px; margin-top: 22px; }
.am-pdp__seller { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding: 14px 16px; border: 1px solid var(--am-line); border-radius: var(--am-r-m); background: var(--am-jasmine); }
.am-pdp__seller i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--am-blue); color: #fff; }
.am-pdp__seller b { display: block; }
.am-pdp__seller span { font-size: 13.5px; color: var(--am-mute); }
.am-pdp__desc { margin-top: 28px; }
.am-pdp__desc h2 { font-size: 22px; margin: 0 0 10px; }
.am-pdp__desc p { color: #3a4752; line-height: 1.75; margin: 0; }
.am-contact { margin-top: 26px; border: 1px solid var(--am-line); border-radius: var(--am-r-m); }
.am-contact > summary { cursor: pointer; list-style: none; padding: 16px; font-weight: 700; color: var(--am-blue); display: flex; justify-content: space-between; align-items: center; }
.am-contact > summary::-webkit-details-marker { display: none; }
.am-contact[open] > summary i { transform: rotate(180deg); }
.am-contact form { padding: 0 16px 16px; display: grid; gap: 10px; }
.am-contact input, .am-contact textarea { width: 100%; border: 1px solid var(--am-line); border-radius: var(--am-r-s); padding: 11px 12px; font: 500 15px var(--am-font-body); }
.am-contact textarea { min-height: 96px; resize: vertical; }
.am-contact .am-btn[disabled] { opacity: .6; cursor: wait; }


/* Barre d'achat mobile (fiche article) */
.am-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 930; display: flex; align-items: center; gap: 12px; padding: 10px var(--am-gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--am-line); }
.am-buybar .am-price { font-size: 20px; }
.am-buybar form { flex: 1; margin: 0; }
@media (min-width: 900px) { .am-buybar { display: none; } }

/* ---------- Footer ---------- */
.am-footer { background: var(--am-blue-deep); color: #c4d4e0; }
.am-footer__top { padding: 52px 0 36px; display: grid; gap: 32px; }
@media (min-width: 800px) { .am-footer__top { grid-template-columns: 1.5fr 1fr 1fr; } }
.am-footer .am-logo { color: #fff !important; font-size: 28px; }
.am-footer p { margin: 14px 0 0; max-width: 40ch; }
body.am-body .am-footer h4 { color: #fff !important; font: 600 18px var(--am-font-head); margin: 0 0 14px; }
.am-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.am-footer a { color: #c4d4e0 !important; text-decoration: none; }
.am-footer a:hover { color: #fff !important; text-decoration: underline; }
.am-footer li a { display: inline-block; padding: 6px 0; }
.am-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0 28px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- WhatsApp flottant ---------- */
.am-wa { position: fixed; right: 14px; bottom: 76px; z-index: 880; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--am-green); color: #fff !important; text-decoration: none !important; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.am-wa i { font-size: 26px; }
.am-wa span { display: none; }
@media (min-width: 900px) { .am-wa { bottom: 18px; right: 18px; width: auto; padding: 0 20px 0 16px; border-radius: 28px; height: 52px; gap: 8px; font-weight: 700; } .am-wa span { display: inline; } }

/* ---------- Peau commune sur les pages restantes ---------- */
body.am-body .theme-btn { background: var(--am-red); border-radius: var(--am-r-s); }
body.am-body .theme-btn:hover { background: var(--am-red-deep); }
.custom-toast { border-right: 5px solid var(--am-red); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Liste avec colonne de filtres : 2 colonnes d'articles tant que la place manque */
@media (min-width: 900px) and (max-width: 1099px) { .am-shop .am-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .am-shop .am-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.am-filters input, .am-filters select, .am-contact input, .am-contact textarea { box-sizing: border-box; max-width: 100%; min-width: 0; }
.am-filters__pair > div { min-width: 0; }

.am-logo__img { display: block; height: 36px; width: auto; max-width: 180px; }
.am-logo:has(.am-logo__img) i { display: none; }


/* ==========================================================================
   Mouvement : bande défilante, carrousel, survols (désactivés si l'utilisateur
   préfère moins d'animations)
   ========================================================================== */

/* Bande défilante */
.am-ticker { background: var(--am-red); color: var(--am-on-red); overflow: hidden; font: 600 16px/1 var(--am-font-body); }
.am-ticker__track { display: flex; width: max-content; animation: am-scroll 48s linear infinite; }
.am-ticker:hover .am-ticker__track { animation-play-state: paused; }
.am-ticker ul { display: flex; flex: 0 0 auto; margin: 0; padding: 0; list-style: none; }
.am-ticker li { display: flex; align-items: center; white-space: nowrap; padding: 21px 0; }
.am-ticker li::after { content: ''; width: 7px; height: 7px; margin: 0 26px; background: currentColor; opacity: .55; transform: rotate(45deg); }
.am-ticker a { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
@keyframes am-scroll { to { transform: translateX(-50%); } }

/* Carrousel des nouveautés */
.am-rail { position: relative; }
.am-rail__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.am-rail__track::-webkit-scrollbar { display: none; }
.am-rail__item { flex: 0 0 calc((100% - 16px) / 2); scroll-snap-align: start; }
@media (min-width: 720px) { .am-rail__item { flex-basis: calc((100% - 32px) / 3); } }
@media (min-width: 1040px) { .am-rail__item { flex-basis: calc((100% - 48px) / 4); } }
.am-rail__btn { position: absolute; top: 34%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--am-blue); box-shadow: 0 4px 14px rgba(0,0,0,.22); cursor: pointer; display: none; place-items: center; }
.am-rail__btn:hover { background: var(--am-blue); color: var(--am-on-blue); }
.am-rail__btn--prev { left: -10px; } .am-rail__btn--next { right: -10px; }
@media (min-width: 720px) { .am-rail__btn { display: grid; } }

/* Carte : seconde photo, étiquette qui s'agite, badge Nouveau */
.am-card__img img { transition: opacity .35s ease, transform .6s ease; }
.am-card__alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .am-card:hover .am-card__alt { opacity: 1; }
  .am-card:hover .am-card__img img:first-child { transform: scale(1.04); }
  .am-card:hover .am-price { transform: rotate(-4deg) translateX(3px); }
}
.am-price { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); transform-origin: left center; }
.am-card__flag--new { background: var(--am-red); color: var(--am-on-red); }
.am-tile img { transition: transform .6s ease; }
.am-tile:hover img { transform: scale(1.07); }

/* Panier : petit rebond quand un article vient d'être ajouté */
.am-bump { animation: am-bump .6s cubic-bezier(.3, 1.8, .5, 1) 1; }
@keyframes am-bump { 0% { transform: scale(1); } 40% { transform: scale(1.7); } 100% { transform: scale(1); } }

/* Bannière : arrivée en douceur de la première image */
.am-slider { animation: am-fade .8s ease-out 1; }
@keyframes am-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .am-ticker { overflow-x: auto; }
  .am-ticker__track { width: auto; }
  .am-ticker ul[aria-hidden="true"] { display: none; }
}

/* ---------- Promotion + compte à rebours ---------- */
.am-promo { padding: 28px 0; }
.am-promo__grid { display: grid; gap: 18px; align-items: center; }
.am-promo h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 6px; }
.am-promo p { margin: 0; color: #d3e1ec; max-width: 48ch; }
.am-count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 360px; }
.am-count-grid div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--am-r-m); padding: 10px 4px; text-align: center; }
.am-count-grid b { display: block; font: 600 28px/1 var(--am-font-head); font-variant-numeric: tabular-nums; }
.am-count-grid span { display: block; margin-top: 4px; font-size: 12px; opacity: .85; }
@media (min-width: 900px) { .am-promo__grid { grid-template-columns: 1fr auto auto; gap: 36px; } }

/* ---------- Articles en vidéo ---------- */
.am-videos { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.am-videos::-webkit-scrollbar { display: none; }
.am-vid { position: relative; flex: 0 0 62%; max-width: 240px; aspect-ratio: 9 / 14; border-radius: var(--am-r-l); overflow: hidden; background: var(--am-blue); scroll-snap-align: start; text-decoration: none !important; }
@media (min-width: 720px) { .am-vid { flex-basis: 220px; } }
.am-vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.am-vid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 55%); pointer-events: none; }
.am-vid__title { position: absolute; left: 12px; right: 12px; bottom: 54px; z-index: 1; color: #fff; font: 600 15px/1.25 var(--am-font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.am-vid .am-price { position: absolute; left: 0; bottom: 12px; z-index: 1; font-size: 16px; }

.am-card__play { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding-left: 2px; }


/* ---------- Messenger, partage, contact ---------- */
.am-btn--msg { border-color: transparent !important; background-origin: border-box; background: linear-gradient(135deg, #0A7CFF, #A334FA 55%, #FF6968); color: #fff !important; }
.am-btn--msg:hover { filter: brightness(1.08); }
.am-sell__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.am-tabbar .am-tab-sell--wa i { background: var(--am-green); color: #fff; }

.am-sharebox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding: 14px; border: 1px dashed var(--am-line, #e5dccb); border-radius: var(--am-r-m); background: #fff; }
.am-sharebox > span { flex: 1 0 100%; font-size: 13px; font-weight: 600; color: var(--am-mute); }
.am-share { display: inline-flex; flex: 1 1 130px; gap: 8px; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #1877F2; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none !important; box-shadow: 0 6px 14px rgba(24,119,242,.28); transition: transform .15s ease, box-shadow .15s ease; }
.am-share:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(24,119,242,.35); }
.am-share i { font-size: 17px; }
.am-share--wa { background: var(--am-green); box-shadow: 0 6px 14px rgba(0,0,0,.18); }

/* Messenger flottant (au-dessus du bouton WhatsApp) */
.am-ms { position: fixed; right: 14px; bottom: 138px; z-index: 880; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #0A7CFF, #A334FA 55%, #FF6968); color: #fff !important; text-decoration: none !important; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.am-ms i { font-size: 26px; }
.am-ms span { display: none; }
@media (min-width: 900px) { .am-ms { bottom: 82px; right: 18px; width: auto; padding: 0 20px 0 16px; border-radius: 28px; height: 52px; gap: 8px; font-weight: 700; } .am-ms span { display: inline; } }

/* ---------- Garde-fous responsive : rien ne dépasse de l'écran ---------- */
body.am-body { overflow-x: clip; }
.am-main img, .am-main video, .am-main iframe { max-width: 100%; }
.am-search { min-width: 0; box-sizing: border-box; }
.am-search input { width: 100%; }
.am-header__row > * { min-width: 0; }
.am-logo { flex-shrink: 0; }
.am-card__title, .am-pdp h1, .am-pdp__desc, .am-link h3 { overflow-wrap: anywhere; }
.am-grid > *, .am-pdp > *, .am-shop > * { min-width: 0; }
@media (max-width: 360px) {
  :root { --am-gutter: 14px; }
  .am-logo { font-size: 22px; }
  .am-grid { gap: 10px; }
  .am-price { font-size: 15px; }
}

/* ---------- Connexion / inscription ---------- */
.am-auth { min-height: calc(100vh - 220px); display: grid; place-items: center; padding-top: 28px; padding-bottom: 56px; }
.am-auth__card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--am-line); border-radius: var(--am-r-l); padding: 28px 22px 24px; box-shadow: 0 18px 40px rgba(var(--site-primary-rgb), .08); }
.am-auth__brand { text-align: center; margin-bottom: 18px; }
.am-auth__brand img { max-height: 48px; max-width: 220px; width: auto; }
.am-auth__brand .am-logo { font-size: 30px; }
.am-auth h1 { font-size: 26px; text-align: center; margin: 0 0 6px; }
.am-auth__sub { text-align: center; color: var(--am-mute); margin: 0 0 20px; font-size: 15px; }
.am-field { margin-bottom: 14px; }
.am-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--am-ink); }
.am-field input[type=text], .am-field input[type=email], .am-field input[type=password], .am-field input[type=tel] { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--am-line); border-radius: var(--am-r-m); background: var(--am-jasmine); font: 500 16px var(--am-font-body); color: var(--am-ink); box-sizing: border-box; }
.am-field input:focus { outline: none; border-color: var(--am-blue); background: #fff; }
.am-field.has-error input { border-color: #C0392B; }
.am-field .am-err { color: #B03A2E; font-size: 13px; margin-top: 5px; display: block; }
.am-pass { position: relative; }
.am-pass input { padding-right: 48px !important; }
.am-pass button { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--am-mute); cursor: pointer; font-size: 16px; }
.am-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--am-mute); margin: 4px 0 18px; }
.am-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--am-blue); flex-shrink: 0; }
.am-check a { text-decoration: underline; }
.am-auth .am-btn { width: 100%; }
.am-auth__alert { background: #FDECEA; color: #8E2A1F; border-radius: var(--am-r-m); padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.am-auth__foot { text-align: center; margin: 18px 0 0; font-size: 14px; color: var(--am-mute); }

/* ---------- Pages d'information ---------- */
.am-legal { max-width: 820px; padding-top: 8px; padding-bottom: 56px; }
.am-legal h1 { font-size: clamp(28px, 5vw, 38px); margin: 6px 0 12px; }
.am-legal__lead { font-size: 17px; color: var(--am-mute); margin: 0 0 24px; }
.am-legal__sec { padding: 18px 0; border-top: 1px solid var(--am-line); }
.am-legal__sec h2 { font-size: 20px; margin: 0 0 8px; }
.am-legal__sec p, .am-legal__sec li { line-height: 1.65; margin: 0 0 8px; overflow-wrap: anywhere; }
.am-legal__sec ol { padding-left: 20px; margin: 0; }
.am-legal__help { margin-top: 24px; font-weight: 600; }

/* Carrousel d'affiches : légende + flèches */
.am-slider__item { position: relative; }
.am-slider__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 20px 16px; color: #fff; font: 700 clamp(16px, 2.4vw, 26px)/1.25 var(--am-font-body); background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.am-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #222; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.am-slider__nav--prev { left: 10px; }
.am-slider__nav--next { right: 10px; }
.am-slider__nav:hover { background: #fff; }
@media (max-width: 760px) { .am-slider__nav { width: 34px; height: 34px; font-size: 22px; } }

/* Espace publicitaire (piloté par les-annonces.com.tn) */
.am-adspace { display: block; position: relative; margin: 24px 0; border-radius: var(--am-r-m); overflow: hidden; border: 1px solid var(--am-line); background: var(--am-blue-soft); }
.am-adspace img { display: block; width: 100%; height: auto; }
.am-adspace span { position: absolute; top: 8px; right: 8px; font: 600 11px var(--am-font-body); padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; }

/* ---------- Panier et confirmation de commande ---------- */
.am-cart { display: grid; gap: 28px; padding: 28px 0 56px; }
@media (min-width: 900px) {
  .am-cart { grid-template-columns: 1fr 380px; align-items: start; }
  .am-cart .am-sum { position: sticky; top: calc(var(--am-header-h) + 56px); }
}
.am-cart__seller { margin: 0 0 4px; color: var(--am-mute); }
.am-cart__more { margin: 18px 0 0; font-weight: 600; }
.am-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--am-line); transition: opacity .15s; }
.am-line.is-busy { opacity: .6; }
.am-line__img img { width: 84px; height: 105px; object-fit: cover; border-radius: var(--am-r-s); background: var(--am-blue-soft); display: block; }
.am-line h3 { font: 600 16px/1.3 var(--am-font-body); margin: 0 0 2px; }
.am-line h3 a { color: var(--am-ink) !important; text-decoration: none; }
.am-line h3 a:hover { color: var(--am-red) !important; text-decoration: underline; }
.am-line__unit { margin: 0 0 10px; font-size: 13.5px; color: var(--am-mute); }
.am-line__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.am-line__row form { margin: 0; }
.am-line__sub { margin-left: auto; font: 600 18px var(--am-font-head); color: var(--am-blue); white-space: nowrap; }
.am-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--am-line); border-radius: var(--am-r-s); background: #fff; }
.am-qty button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--am-blue); font-size: 20px; line-height: 1; cursor: pointer; border-radius: var(--am-r-s); }
.am-qty button:hover { background: var(--am-blue-soft); }
.am-qty input { width: 44px; height: 40px; border: 0; text-align: center; font: 600 15px var(--am-font-body); color: var(--am-ink); background: transparent; -moz-appearance: textfield; }
.am-qty input::-webkit-outer-spin-button, .am-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.am-qty input:focus { outline: none; }
.am-qty:focus-within { border-color: var(--am-blue); }
.rm { background: none; border: 0; padding: 4px 0; color: var(--am-mute); text-decoration: underline; cursor: pointer; font: 500 14px var(--am-font-body); }
.rm:hover { color: var(--am-red); }

.am-sum { background: var(--am-jasmine); border: 1px solid var(--am-line); border-radius: var(--am-r-m); padding: 22px; }
.am-sum h2 { font-size: 22px; margin: 0 0 14px; }
.am-sum__row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 15px; color: var(--am-mute); }
.am-sum__row span:last-child { color: var(--am-ink); text-align: right; }
.am-sum__total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0; padding-top: 12px; border-top: 1px solid var(--am-line); font-weight: 600; }
.am-sum > small { display: block; color: var(--am-mute); margin-bottom: 16px; font-size: 13.5px; }
.am-sum > small a { text-decoration: underline; }
.am-sum .am-field { margin-bottom: 12px; }
.am-sum .am-field label { font-size: 13.5px; }
.am-sum .am-field input[type=text], .am-sum .am-field input[type=tel], .am-sum .am-field select, .am-sum .am-field textarea {
  width: 100%; border: 1.5px solid var(--am-line); border-radius: var(--am-r-m); background: #fff; padding: 0 14px; font: 500 15px var(--am-font-body); color: var(--am-ink);
}
.am-sum .am-field input[type=text], .am-sum .am-field input[type=tel], .am-sum .am-field select { height: 48px; }
.am-sum .am-field textarea { padding: 10px 14px; resize: vertical; }
.am-sum .am-field select:focus, .am-sum .am-field textarea:focus { outline: none; border-color: var(--am-blue); }
.am-sum .am-field.has-error select, .am-sum .am-field.has-error textarea { border-color: #C0392B; }
.am-sum__clear { margin: 14px 0 0; text-align: center; }
.am-done__steps { margin: 4px 0 18px; padding-left: 20px; color: var(--am-ink); }
.am-done__steps li { margin-bottom: 6px; }

/* ---------- Fiche produit : choix taille / couleur, rassurance, galerie ---------- */
.am-pdp__form { display: grid; gap: 14px; margin: 0; }
.am-opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.am-opt legend { font: 700 14px var(--am-font-body); color: var(--am-ink); margin: 0 0 8px; padding: 0; float: none; width: auto; }
.am-opt__list { display: flex; flex-wrap: wrap; gap: 8px; }
.am-chip { position: relative; margin: 0; cursor: pointer; }
.am-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.am-chip span { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--am-line); border-radius: var(--am-r-s); background: #fff; color: var(--am-ink); font: 600 15px var(--am-font-body); transition: border-color .15s, background-color .15s, color .15s; }
.am-chip:hover span { border-color: var(--am-blue); }
.am-chip input:checked + span { border-color: var(--am-blue); background: var(--am-blue); color: #fff; }
.am-chip input:focus-visible + span { outline: 3px solid var(--am-red); outline-offset: 2px; }
.am-pdp__assure { list-style: none; margin: 16px 0 0; padding: 14px 16px; display: grid; gap: 10px; border: 1px solid var(--am-line); border-radius: var(--am-r-m); background: var(--am-jasmine); font-size: 14.5px; }
.am-pdp__assure li { display: flex; gap: 12px; align-items: flex-start; }
.am-pdp__assure i { flex: 0 0 20px; margin-top: 3px; text-align: center; color: var(--am-blue); }
.am-pdp__assure-more { padding-left: 32px; font-size: 13.5px; }
.am-pdp__assure-more a { text-decoration: underline; }
.am-buybar__btn { flex: 1; }

.am-gal__main img { cursor: zoom-in; }
.am-gal__zoom, .am-gal__nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--am-blue); font-size: 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(18,58,86,.18); }
.am-gal__zoom { top: 12px; right: 12px; }
.am-gal__nav { top: 50%; margin-top: -22px; }
.am-gal__nav--prev { left: 10px; }
.am-gal__nav--next { right: 10px; }
.am-gal__zoom:hover, .am-gal__nav:hover { background: #fff; }
.am-gal__count { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(18,58,86,.78); color: #fff; font: 600 12.5px var(--am-font-body); }
@media (hover: hover) and (min-width: 900px) { .am-gal__nav { opacity: 0; transition: opacity .15s; } .am-gal__main:hover .am-gal__nav, .am-gal__nav:focus-visible { opacity: 1; } }

.am-noscroll { overflow: hidden; }
.am-lb { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: rgba(10,26,38,.94); overflow: hidden; }
.am-lb img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .2s; touch-action: pinch-zoom; }
.am-lb img.is-zoomed { transform: scale(2.2); cursor: zoom-out; }
.am-lb__close, .am-lb__nav { position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.am-lb__close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.am-lb__nav { top: 50%; margin-top: -24px; }
.am-lb__nav--prev { left: 10px; }
.am-lb__nav--next { right: 10px; }
.am-lb__close:hover, .am-lb__nav:hover { background: rgba(255,255,255,.28); }

/* Panier : variante sous le titre ; carte produit : « Choisir » à la place d'« Ajouter » */
.am-line__variant { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--am-blue); }
.am-card .am-add--choose { margin-top: 10px; text-decoration: none; border-color: var(--am-blue); color: var(--am-blue) !important; }
.am-card .am-add--choose:hover { background: var(--am-blue); color: #fff !important; }
