/* Boutique — complète le style.css du site vitrine (mêmes couleurs, même police). */
.sh-body { min-height: 100vh; display: flex; flex-direction: column; }
.sh-main { max-width: 1200px; width: 100%; margin: 0 auto; padding: 6.5rem 1.5rem 3rem; flex: 1; }
.sh-center { text-align: center; }
.sh-muted { color: var(--text-muted); }
.sh-small { font-size: .85rem; }
.sh-h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.sh-card { background: var(--bg-lighter); border: 1px solid var(--border-glass); border-radius: 18px; padding: 1.4rem; }
.sh-notice { background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .4); color: var(--accent); padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .9rem; }
.sh-error { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); color: #fca5a5; padding: .7rem 1rem; border-radius: 12px; margin: .6rem 0; font-size: .92rem; }
.sh-link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.sh-nav { display: flex; align-items: center; gap: 1.2rem; }
.sh-nav a { font-weight: 600; font-size: .95rem; }
.sh-cart-link { display: inline-flex; align-items: center; gap: .4rem; }
.sh-cart-count { background: var(--bg-dark); color: var(--accent); border-radius: 99px; padding: 0 .45rem; font-size: .8rem; min-width: 1.3rem; text-align: center; }
.sh-cart-count[hidden] { display: none; }
.sh-crumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.sh-crumbs a { color: var(--text-muted); }
.sh-crumbs a:hover { color: var(--accent); }

/* ---------- fiche produit */
.sh-product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.sh-gallery { position: sticky; top: 6rem; }
.sh-gallery-main { position: relative; border-radius: 18px; overflow: hidden; background: var(--bg-lighter); border: 1px solid var(--border-glass); aspect-ratio: 1 / 1; }
.sh-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sh-noimg { display: grid; place-items: center; height: 100%; font-size: 4rem; }
.sh-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-glass); background: rgba(10, 14, 23, .65); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.sh-gal-nav.prev { left: 10px; } .sh-gal-nav.next { right: 10px; }
.sh-thumbs { display: flex; gap: .5rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .3rem; }
.sh-thumb { flex: 0 0 68px; height: 68px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg-lighter); opacity: .7; }
.sh-thumb.on { border-color: var(--accent); opacity: 1; }
.sh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sh-title { font-size: 1.6rem; line-height: 1.25; margin-bottom: .8rem; }
.sh-price-row { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.sh-price { font-size: 2rem; font-weight: 800; color: var(--accent); }
.sh-price small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.sh-old { text-decoration: line-through; color: var(--text-muted); }
.sh-badge { background: #ef4444; color: #fff; font-weight: 700; font-size: .8rem; border-radius: 99px; padding: .15rem .6rem; }
[hidden] { display: none !important; }
.sh-zone { display: flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--text-muted); margin: .4rem 0 1.4rem; }
.sh-zone select, .sh-summary select, .sh-field input, .sh-field textarea, .sh-field select.sh-select {
  background: var(--bg-dark); color: var(--text-main); border: 1px solid var(--border-glass); border-radius: 10px; padding: .55rem .7rem; font: inherit; }
.sh-zone select { padding: .3rem .5rem; font-size: .85rem; }
.sh-form { display: flex; flex-direction: column; gap: 1.1rem; }
.sh-field { border: 0; display: flex; flex-direction: column; gap: .45rem; }
.sh-field legend, .sh-field > label { font-weight: 600; margin-bottom: .45rem; }
.sh-field input, .sh-field textarea { width: 100%; }
.sh-req { color: var(--accent); }
.sh-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.sh-chip input, .sh-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.sh-chip span { display: inline-block; padding: .5rem 1rem; border-radius: 99px; border: 1px solid var(--border-glass); background: rgba(255, 255, 255, .04); cursor: pointer; transition: var(--transition); }
.sh-chip input:checked + span { border-color: var(--accent); background: rgba(245, 158, 11, .15); color: var(--accent); font-weight: 600; }
.sh-chip input:focus-visible + span, .sh-swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sh-swatches { display: flex; flex-wrap: wrap; gap: .55rem; }
.sh-swatch { position: relative; cursor: pointer; }
.sh-swatch span { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, .25); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .15); transition: var(--transition); }
.sh-swatch input:checked + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.sh-swatch em { position: absolute; right: -4px; top: -6px; background: var(--accent); color: var(--bg-dark); font-style: normal; font-weight: 800; font-size: .7rem; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; }
.sh-upload input[type=file] { padding: .5rem; }
.sh-upload-state { display: flex; align-items: center; gap: .6rem; }
.sh-upload-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.sh-qty-row { display: flex; gap: .8rem; align-items: stretch; flex-wrap: wrap; }
.sh-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-glass); border-radius: 99px; overflow: hidden; }
.sh-qty button { background: none; border: 0; color: var(--text-main); width: 40px; height: 100%; min-height: 44px; font-size: 1.2rem; cursor: pointer; }
.sh-qty input, .sh-qty span { width: 44px; text-align: center; background: none; border: 0; color: var(--text-main); font: inherit; -moz-appearance: textfield; }
.sh-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sh-qty-sm button { min-height: 32px; width: 32px; }
.sh-add { flex: 1; min-width: 200px; }
.sh-add:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.sh-done { background: #22c55e !important; }
.sh-added { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); padding: .7rem; border-radius: 14px; }
.sh-added .btn-primary, .sh-added .btn-secondary, .sh-small-btn { padding: .45rem 1rem; font-size: .9rem; }
.sh-facts { margin: 1.4rem 0; display: flex; flex-direction: column; gap: .45rem; color: var(--text-muted); font-size: .95rem; }
.sh-elsewhere { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; border-top: 1px solid var(--border-glass); padding-top: 1rem; }
.sh-desc { margin-top: 3rem; max-width: 800px; }
.sh-desc h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.sh-desc-text { color: var(--text-muted); line-height: 1.7; }

/* ---------- panier */
.sh-cart { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 2rem; align-items: start; }
.sh-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border-glass); }
.sh-line-img { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: var(--bg-lighter); display: block; }
.sh-line-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-line-title { font-weight: 600; }
.sh-line-sub { color: var(--accent); }
.sh-line-actions { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
.sh-line-price { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; white-space: nowrap; }
.sh-summary { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: .7rem; }
.sh-summary h2 { font-size: 1.2rem; }
.sh-label { font-size: .9rem; color: var(--text-muted); }
.sh-ship-opts { display: flex; flex-direction: column; gap: .5rem; }
.sh-ship { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--border-glass); border-radius: 12px; padding: .65rem .8rem; cursor: pointer; }
.sh-ship:has(input:checked) { border-color: var(--accent); background: rgba(245, 158, 11, .08); }
.sh-ship-txt { flex: 1; display: flex; flex-direction: column; }
.sh-ship-txt small { color: var(--text-muted); }
.sh-totals { border-top: 1px solid var(--border-glass); padding-top: .8rem; display: flex; flex-direction: column; gap: .35rem; }
.sh-totals > div { display: flex; justify-content: space-between; }
.sh-total { font-size: 1.25rem; margin-top: .3rem; }
.sh-total b { color: var(--accent); }
.sh-checkout { width: 100%; }
.sh-checkout:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.sh-footer { border-top: 1px solid var(--border-glass); padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .9rem; }
.sh-footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.sh-footer a { color: var(--text-muted); } .sh-footer a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .sh-product, .sh-cart { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .sh-gallery, .sh-summary { position: static; }
  .sh-main { padding-top: 7rem; }
  .sh-hide-sm { display: none; }
  .sh-nav { gap: .9rem; }
  .sh-nav a { font-size: 1.05rem; }
  .sh-nav .btn-nav { margin-top: 0; padding: .45rem .9rem; }
  .sh-body .nav-container { padding: 1rem 1.2rem; }
  .sh-body .logo a { font-size: 1.15rem; }
  .sh-line { grid-template-columns: 72px minmax(0, 1fr); }
  .sh-line-img { width: 72px; height: 72px; }
  .sh-line-price { grid-column: 2; align-items: flex-start; }
}
.sh-chip { position: relative; }

/* ---------- commande */
.sh-co-main { display: flex; flex-direction: column; gap: 1.2rem; }
.sh-co-block { display: flex; flex-direction: column; gap: .8rem; }
.sh-co-block h2 { font-size: 1.15rem; }
label.sh-field > span { font-weight: 600; font-size: .92rem; }
.sh-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.sh-input, .sh-co-block select { width: 100%; background: var(--bg-dark); color: var(--text-main); border: 1px solid var(--border-glass); border-radius: 10px; padding: .55rem .7rem; font: inherit; }
.sh-check { display: flex; gap: .55rem; align-items: flex-start; cursor: pointer; }
.sh-check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.sh-check a { color: var(--accent); }
.sh-acc { display: flex; flex-direction: column; gap: .5rem; }
.sh-acc input[type=password] { background: var(--bg-dark); color: var(--text-main); border: 1px solid var(--border-glass); border-radius: 10px; padding: .55rem .7rem; font: inherit; }
.sh-sum-lines { display: flex; flex-direction: column; gap: .7rem; max-height: 340px; overflow: auto; }
.sh-sum-line { display: grid; grid-template-columns: 48px 1fr auto; gap: .6rem; align-items: start; }
.sh-sum-line img, .sh-sum-line > span { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--bg-dark); }
#mrWidget { background: #fff; color: #222; border-radius: 12px; overflow: hidden; margin-bottom: .5rem; }
#mrWidget:empty { display: none; }
.sh-status { display: inline-block; padding: .2rem .7rem; border-radius: 99px; font-weight: 700; font-size: .85rem; background: rgba(34, 197, 94, .15); color: #4ade80; }
.sh-status.pending { background: rgba(245, 158, 11, .15); color: var(--accent); }
.sh-status.refunded, .sh-status.partial_refund, .sh-status.expired { background: rgba(148, 163, 184, .15); color: var(--text-muted); }
.sh-steps { display: flex; gap: .4rem; flex-wrap: wrap; margin: .8rem 0; }
.sh-steps span { padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--border-glass); color: var(--text-muted); font-size: .85rem; }
.sh-steps span.done { border-color: rgba(34, 197, 94, .5); color: #4ade80; }
.sh-orders { display: flex; flex-direction: column; gap: .6rem; }
@media (max-width: 600px) { .sh-grid2 { grid-template-columns: 1fr; } }
form.sh-card > label.sh-field, form.sh-card > fieldset.sh-field { margin-bottom: 1rem; }
.sh-field select.sh-select { width: 100%; }
.sh-surcharge { color: var(--accent); font-weight: 600; font-size: .85em; margin-left: .3rem; }
