/* ============================================================
   K-Techno — Boutique publique (mobile-first)
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body, Inter, sans-serif);
  color: var(--ink); background: var(--cloud); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display, Sora, sans-serif); margin: 0; color: var(--ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.sh-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.sh-bar { display: flex; align-items: center; gap: 12px; height: 62px; }
.sh-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-weight: 800;
  font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.sh-brand img { height: 34px; width: auto; object-fit: contain; }
.sh-logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--indigo);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.sh-search { flex: 1; position: relative; display: flex; align-items: center; max-width: 620px; }
.sh-search i { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--ink-3); }
.sh-search input {
  width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 0 16px 0 42px; font-size: 15px; background: var(--cloud); color: var(--ink); outline: none;
  transition: border-color .12s, background .12s;
}
.sh-search input:focus { border-color: var(--indigo); background: var(--white); }
.sh-icons { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sh-iconbtn { position: relative; width: 44px; height: 44px; border: none; background: transparent;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.sh-iconbtn:hover { background: var(--cloud); }
.sh-iconbtn i { width: 22px; height: 22px; }
.sh-cart-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--crimson); color: #fff; border-radius: 100px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.sh-pro-link { font-size: 13px; color: var(--ink-3); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.sh-pro-link:hover { color: var(--indigo); background: var(--cloud); }

/* barre catégories */
.sh-cats { border-top: 1px solid var(--line); background: var(--white); }
.sh-cats-row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.sh-cats-row::-webkit-scrollbar { display: none; }
.sh-chip { flex-shrink: 0; padding: 7px 15px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--white); color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; }
.sh-chip i { width: 15px; height: 15px; }
.sh-chip:hover { border-color: var(--indigo); color: var(--indigo); }
.sh-chip.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ---------- Hero ---------- */
.sh-hero { margin: 20px 0 8px; border-radius: var(--radius-card); overflow: hidden;
  background: linear-gradient(120deg, var(--indigo) 0%, var(--indigo-deep) 100%); color: #fff;
  padding: 40px 28px; position: relative; }
.sh-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: rgba(255,255,255,.08); border-radius: 50%; }
.sh-hero h1 { color: #fff; font-size: 30px; line-height: 1.15; max-width: 620px; }
.sh-hero p { margin: 12px 0 22px; font-size: 16px; color: rgba(255,255,255,.9); max-width: 560px; }
.sh-hero .sh-btn { background: #fff; color: var(--indigo); }
.sh-hero .sh-badge-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.sh-hero .sh-hb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.95); }
.sh-hero .sh-hb i { width: 18px; height: 18px; }

/* ---------- Boutons ---------- */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border: none; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px;
  background: var(--indigo); color: #fff; transition: filter .12s, transform .06s; }
.sh-btn:hover { filter: brightness(1.06); }
.sh-btn:active { transform: translateY(1px); }
.sh-btn i { width: 18px; height: 18px; }
.sh-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.sh-btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.sh-btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); filter: none; }
.sh-btn-block { width: 100%; }
.sh-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Sections ---------- */
.sh-section { margin: 26px 0; }
.sh-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.sh-section-head h2 { font-size: 20px; }
.sh-section-head .sh-count { font-size: 13px; color: var(--ink-3); }
.sh-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.sh-scroll::-webkit-scrollbar { height: 6px; }
.sh-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 100px; }
.sh-scroll .sh-card { flex: 0 0 200px; scroll-snap-align: start; }

/* grille produits */
.sh-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }

/* ---------- Carte produit ---------- */
.sh-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .14s, transform .14s, border-color .14s; }
.sh-card:hover { box-shadow: 0 10px 30px rgba(15,23,42,.10); transform: translateY(-2px); border-color: transparent; }
.sh-card-img { position: relative; aspect-ratio: 1 / 1; background: var(--cloud); display: flex; align-items: center;
  justify-content: center; overflow: hidden; cursor: pointer; }
.sh-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-card-img .sh-noimg { color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sh-card-img .sh-noimg i { width: 34px; height: 34px; }
.sh-tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 100px; font-size: 11px;
  font-weight: 700; color: #fff; letter-spacing: .02em; }
.sh-tag-promo { background: var(--crimson); }
.sh-tag-service { background: var(--indigo); }
.sh-tag-top { position: absolute; top: 10px; right: 10px; background: var(--amber); }
.sh-card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sh-card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; }
.sh-card-name { font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.sh-card-name:hover { color: var(--indigo); }
.sh-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.sh-price { font-family: var(--font-mono); font-weight: 700; font-size: 16px; color: var(--ink); }
.sh-price-old { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
.sh-avail { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.sh-avail.ok { color: var(--emerald); }
.sh-avail.no { color: var(--crimson); }
.sh-avail .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sh-card .sh-add { margin-top: 8px; }

/* ---------- Drawer panier ---------- */
.sh-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 90; opacity: 0;
  pointer-events: none; transition: opacity .2s; }
.sh-overlay.show { opacity: 1; pointer-events: auto; }
.sh-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; background: var(--white);
  z-index: 100; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .24s ease;
  box-shadow: -12px 0 40px rgba(15,23,42,.18); }
.sh-drawer.show { transform: translateX(0); }
.sh-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px;
  border-bottom: 1px solid var(--line); }
.sh-drawer-head h2 { font-size: 18px; }
.sh-drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.sh-drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px; background: var(--white); }
.sh-close { width: 38px; height: 38px; border: none; background: var(--cloud); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.sh-close:hover { color: var(--crimson); }
.sh-close i { width: 18px; height: 18px; }

.sh-citem { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sh-citem-img { width: 64px; height: 64px; border-radius: 10px; background: var(--cloud); flex-shrink: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sh-citem-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-citem-img i { width: 22px; height: 22px; color: var(--ink-3); }
.sh-citem-main { flex: 1; min-width: 0; }
.sh-citem-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.sh-citem-price { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.sh-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.sh-qty button { width: 30px; height: 30px; border: none; background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 16px; }
.sh-qty button:hover { color: var(--indigo); }
.sh-qty span { min-width: 32px; text-align: center; font-weight: 600; font-size: 14px; font-family: var(--font-mono); }
.sh-citem-remove { border: none; background: transparent; color: var(--ink-3); align-self: flex-start; padding: 2px; }
.sh-citem-remove:hover { color: var(--crimson); }
.sh-citem-remove i { width: 17px; height: 17px; }
.sh-cart-empty { text-align: center; color: var(--ink-3); padding: 48px 16px; }
.sh-cart-empty i { width: 44px; height: 44px; color: var(--line); margin-bottom: 10px; }
.sh-sumrow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; color: var(--ink-2); }
.sh-sumrow.total { font-size: 20px; font-weight: 800; color: var(--ink); font-family: var(--font-display); margin: 10px 0 14px; }
.sh-sumrow.total .sh-num { font-family: var(--font-mono); color: var(--indigo); }

/* ---------- Modal ---------- */
.sh-modal-wrap { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 16px; }
.sh-modal-wrap.show { display: flex; }
.sh-modal { position: relative; background: var(--white); border-radius: var(--radius-card); width: 100%;
  max-width: 720px; max-height: 92vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(15,23,42,.28); animation: shpop .18s ease; }
@keyframes shpop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.sh-modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.sh-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.sh-detail-img { aspect-ratio: 1 / 1; background: var(--cloud); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sh-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-detail-img .sh-noimg i { width: 46px; height: 46px; color: var(--ink-3); }
.sh-detail-gallery { display: flex; flex-direction: column; }
.sh-thumbs { display: flex; gap: 8px; padding: 10px; flex-wrap: wrap; background: var(--white); }
.sh-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid var(--line);
  background: var(--cloud); cursor: pointer; padding: 0; transition: border-color .12s; }
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-thumb.active { border-color: var(--indigo); }
.sh-thumb:hover { border-color: var(--indigo); }
.sh-detail-info { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.sh-detail-info h2 { font-size: 22px; line-height: 1.2; }
.sh-detail-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.sh-detail-info .sh-price-row { margin: 4px 0; }
.sh-detail-info .sh-price { font-size: 24px; }

/* checkout */
.sh-form { padding: 4px 0; }
.sh-field { margin-bottom: 14px; }
.sh-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.sh-field input, .sh-field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-control);
  padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink); background: var(--white); outline: none; }
.sh-field input:focus, .sh-field textarea:focus { border-color: var(--indigo); }
.sh-field textarea { min-height: 70px; resize: vertical; }
.sh-payopts { display: flex; flex-direction: column; gap: 8px; }
.sh-payopt { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: var(--radius-control);
  padding: 12px 14px; cursor: pointer; font-size: 14.5px; transition: border-color .12s, background .12s; }
.sh-payopt:hover { border-color: var(--indigo); }
.sh-payopt input { width: 18px; height: 18px; accent-color: var(--indigo); flex-shrink: 0; }
.sh-payopt:has(input:checked) { border-color: var(--indigo); background: var(--indigo-50); }
.sh-osummary { background: var(--cloud); border-radius: var(--radius-card); padding: 14px 16px; margin-bottom: 16px; }
.sh-osummary .sh-oline { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; color: var(--ink-2); }
.sh-success { text-align: center; padding: 34px 24px; }
.sh-success .sh-check { width: 66px; height: 66px; border-radius: 50%; background: var(--emerald-50); color: var(--emerald);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.sh-success .sh-check i { width: 34px; height: 34px; }
.sh-success h2 { font-size: 22px; margin-bottom: 6px; }
.sh-success p { color: var(--ink-2); margin: 0 0 6px; }
.sh-success .sh-ordernum { font-family: var(--font-mono); font-weight: 700; color: var(--indigo); font-size: 18px; }
.sh-wa { background: #25D366 !important; color: #fff !important; }

/* moyens de paiement (écran succès) */
.sh-pay { text-align: left; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 16px; margin: 20px auto 0; max-width: 460px; }
.sh-pay-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700;
  font-size: 15px; color: var(--ink); margin-bottom: 12px; }
.sh-pay-title i { width: 18px; height: 18px; color: var(--indigo); }
.sh-pay-grid { display: grid; gap: 12px; }
.sh-pay-m { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--white); }
.sh-pay-label { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13.5px; color: var(--indigo); margin-bottom: 5px; }
.sh-pay-label i { width: 15px; height: 15px; }
.sh-pay-line { font-size: 13px; color: var(--ink); font-family: var(--font-mono); line-height: 1.6; word-break: break-word; }
.sh-pay-k { color: var(--ink-3); font-family: var(--font-body); }

/* section moyens de paiement (page d'accueil boutique) */
.sh-pay-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sh-pay-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px 16px; }
.sh-pay-card .sh-pay-label { font-size: 15px; margin-bottom: 8px; }
.sh-pay-card .sh-pay-label i { width: 17px; height: 17px; }
.sh-pay-card .sh-pay-line { font-size: 13.5px; line-height: 1.7; }
.sh-pay-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink-2);
  background: var(--indigo-50); border-radius: var(--radius-control); padding: 12px 14px; }
.sh-pay-note i { width: 17px; height: 17px; color: var(--indigo); flex-shrink: 0; }

.sh-modal-pad { padding: 24px; }

/* ---------- Footer ---------- */
.sh-footer { background: var(--ink); color: #cbd5e1; margin-top: 40px; padding: 40px 0 26px; }
.sh-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.sh-footer h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.sh-footer p, .sh-footer a { font-size: 13.5px; color: #94a3b8; margin: 5px 0; display: block; }
.sh-footer a:hover { color: #fff; }
.sh-footer .sh-fbrand { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 8px; }
.sh-foot-bottom { border-top: 1px solid #1e293b; margin-top: 26px; padding-top: 18px; text-align: center;
  font-size: 12.5px; color: #64748b; }
.sh-foot-bottom a { color: #94a3b8; }

/* ---------- Toast ---------- */
.sh-toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sh-toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: shtoast .2s ease;
  display: flex; align-items: center; gap: 8px; }
.sh-toast.ok { background: var(--emerald); }
.sh-toast.err { background: var(--crimson); }
.sh-toast i { width: 17px; height: 17px; }
@keyframes shtoast { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sh-empty-block { text-align: center; padding: 50px 16px; color: var(--ink-3); }
.sh-empty-block i { width: 46px; height: 46px; color: var(--line); margin-bottom: 10px; }

/* ---------- Améliorations UI/UX ---------- */
/* barre de confiance */
.sh-announce { background: var(--ink); color: #e2e8f0; font-size: 12.5px; }
.sh-announce-row { display: flex; align-items: center; gap: 22px; height: 34px; overflow-x: auto; scrollbar-width: none; }
.sh-announce-row::-webkit-scrollbar { display: none; }
.sh-announce-row span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sh-announce-row i { width: 14px; height: 14px; color: #93c5fd; }

/* bouton effacer la recherche */
.sh-search-clear { position: absolute; right: 8px; width: 28px; height: 28px; border: none; background: transparent;
  border-radius: 50%; display: none; align-items: center; justify-content: center; color: var(--ink-3); cursor: pointer; }
.sh-search-clear.show { display: flex; }
.sh-search-clear:hover { background: var(--line); color: var(--ink); }
.sh-search-clear i { width: 15px; height: 15px; }

/* image : zoom au survol de la carte + ajout rapide */
.sh-card-img img { transition: transform .3s ease; }
.sh-card:hover .sh-card-img img { transform: scale(1.06); }
.sh-quickadd { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: var(--indigo); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(79,70,229,.4); cursor: pointer; opacity: 0; transform: translateY(6px) scale(.9);
  transition: opacity .16s, transform .16s, filter .12s; }
.sh-card:hover .sh-quickadd { opacity: 1; transform: none; }
.sh-quickadd:hover { filter: brightness(1.1); }
.sh-quickadd:active { transform: scale(.92); }
.sh-quickadd i { width: 20px; height: 20px; }
.sh-tag-top { display: inline-flex; align-items: center; justify-content: center; padding: 4px; }
.sh-tag-top i { width: 13px; height: 13px; }

/* animation du panier à l'ajout */
.sh-iconbtn.bump { animation: shbump .4s ease; }
@keyframes shbump { 0%,100% { transform: scale(1); } 30% { transform: scale(1.22); } 55% { transform: scale(.92); } }

/* retour en haut */
.sh-totop { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: var(--white); color: var(--indigo); box-shadow: 0 8px 24px rgba(15,23,42,.18);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 80;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.sh-totop.show { opacity: 1; pointer-events: auto; transform: none; }
.sh-totop:hover { background: var(--indigo); color: #fff; }
.sh-totop i { width: 20px; height: 20px; }

/* barre panier mobile (fixe en bas) */
.sh-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; padding: 10px 12px;
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(15,23,42,.10);
  transform: translateY(120%); transition: transform .24s ease; display: none; }
.sh-mobilebar.show { transform: none; }
.sh-mobilebar-btn { width: 100%; border: none; background: var(--indigo); color: #fff; border-radius: var(--radius-pill);
  height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px;
  font-size: 15px; font-weight: 700; cursor: pointer; }
.sh-mobilebar-left { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; }
.sh-mobilebar-left i { width: 18px; height: 18px; }
.sh-mobilebar-count { background: rgba(255,255,255,.25); border-radius: 100px; padding: 1px 8px; font-size: 12.5px; }
.sh-mobilebar-total { font-family: var(--font-mono); }

/* focus visible accessible */
.sh-btn:focus-visible, .sh-iconbtn:focus-visible, .sh-chip:focus-visible, .sh-quickadd:focus-visible,
.sh-search input:focus-visible, .sh-payopt:focus-within { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) { .sh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .sh-grid { grid-template-columns: repeat(4, 1fr); } .sh-scroll .sh-card { flex-basis: 220px; } }
@media (min-width: 1080px) { .sh-grid { grid-template-columns: repeat(5, 1fr); } }

/* la barre panier fixe et le décalage ne concernent que le mobile */
@media (max-width: 760px) {
  .sh-mobilebar { display: block; }
  body:has(.sh-mobilebar.show) { padding-bottom: 74px; }
  body:has(.sh-mobilebar.show) .sh-totop { bottom: 84px; }
  /* sur écran tactile, l'ajout rapide reste visible (pas de survol) */
  .sh-quickadd { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  /* logo + panier sur la 1re ligne, recherche pleine largeur sur la 2e */
  .sh-bar { height: auto; gap: 8px 10px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .sh-brand { flex: 1 1 auto; }
  .sh-brand img { height: 30px; }
  .sh-brand span { display: none; }
  .sh-icons { order: 2; flex: 0 0 auto; }
  .sh-search { order: 3; flex-basis: 100%; max-width: 100%; }
  .sh-search input { height: 42px; }
  .sh-announce-row { gap: 16px; }
  .sh-hero { padding: 28px 20px; }
  .sh-hero h1 { font-size: 23px; }
  .sh-hero p { font-size: 14.5px; }
  .sh-detail { grid-template-columns: 1fr; }
  .sh-section-head h2 { font-size: 18px; }
}
@media (max-width: 380px) {
  .sh-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
