/* ===================== Boutique ===================== */
:root{ --sh-line:rgba(56,182,255,.20); --sh-card:#0A1526; --sh-ok:#2DD4BF; --sh-warn:#FBBF24; --sh-err:#F87171; }

.page.sh-page{width:min(94vw,1120px)}
.sh-page h1{margin-bottom:.6rem}
.sh-page .muted{color:#7FA8C9}

/* Barre boutique : liens Boutique / Compte / Panier */
.sh-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1.4rem;padding:.55rem .9rem;
  border:1px solid var(--sh-line);border-radius:12px;background:rgba(10,21,38,.7);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.sh-bar a{color:var(--dim);text-decoration:none;font-weight:600;font-size:.9rem;display:inline-flex;align-items:center;gap:.4rem}
.sh-bar a:hover,.sh-bar a[aria-current]{color:var(--ink)}
.sh-bar-r{display:flex;gap:1.2rem}
.sh-bar svg{width:1.05rem;height:1.05rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sh-cart-link b{min-width:1.3rem;height:1.3rem;padding:0 .3rem;border-radius:20px;background:var(--azure);color:#04101F;
  font-size:.72rem;display:inline-flex;align-items:center;justify-content:center}

.sh-alert{margin:0 0 1.2rem;padding:.75rem 1rem;border-radius:10px;font-size:.92rem;border:1px solid rgba(45,212,191,.45);
  background:rgba(45,212,191,.08);color:#C8F5EC}
.sh-alert.err{border-color:rgba(248,113,113,.5);background:rgba(248,113,113,.08);color:#FECACA}

/* Boutons */
.sh-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;text-decoration:none;
  font:inherit;font-weight:700;font-size:.95rem;color:#04101F;background:linear-gradient(120deg,var(--azure),#6FD1FF);
  border:0;border-radius:10px;padding:.8rem 1.3rem;transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}
.sh-btn:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(56,182,255,.35)}
.sh-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.sh-btn.ghost{background:transparent;color:var(--ink);border:1px solid rgba(56,182,255,.55)}
.sh-btn.ghost:hover{background:rgba(56,182,255,.10);box-shadow:none}
.sh-btn.sm{padding:.5rem .85rem;font-size:.82rem;border-radius:8px}
.sh-btn.block{width:100%}
.sh-link{background:none;border:0;color:var(--azure);font:inherit;font-size:.88rem;cursor:pointer;padding:.4rem 0}
.sh-link:hover{color:#6FD1FF;text-decoration:underline}

/* Intro et filtres */
.sh-intro p{max-width:680px}
.sh-closed{padding:2.4rem 1.4rem;text-align:center;border:1px dashed rgba(56,182,255,.35);border-radius:14px;color:var(--ink);font-size:1.05rem}
.sh-filters{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.8rem;margin:1.2rem 0 1.4rem}
.sh-chips{display:flex;flex-wrap:wrap;gap:.45rem}
.sh-chips a{padding:.42rem .85rem;border-radius:20px;border:1px solid var(--sh-line);color:var(--dim);text-decoration:none;font-size:.85rem;font-weight:600}
.sh-chips a:hover{border-color:rgba(56,182,255,.55);color:var(--ink)}
.sh-chips a.on{background:var(--azure);border-color:var(--azure);color:#04101F}
.sh-search{display:flex;gap:.5rem;flex:0 1 420px}
.sh-search input,.sh-search select,.sh-panel input,.sh-panel select,.sh-qty input,.sh-line-qty input{
  font:inherit;font-size:.9rem;color:var(--ink);background:#081322;border:1px solid rgba(56,182,255,.28);border-radius:9px;padding:.6rem .75rem;min-width:0}
.sh-search input{flex:1}
.sh-search input:focus,.sh-search select:focus,.sh-panel input:focus,.sh-panel select:focus,.sh-qty input:focus,.sh-line-qty input:focus{
  outline:none;border-color:rgba(56,182,255,.75);box-shadow:0 0 0 3px rgba(56,182,255,.14)}
.sh-search option,.sh-panel option{background:#0A1A30}

/* Grille de cartes */
.sh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr));gap:1.1rem;margin:0 0 1.6rem}
.sh-card{display:flex;flex-direction:column;border:1px solid var(--sh-line);border-radius:14px;background:var(--sh-card);overflow:hidden;
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.sh-card:hover{border-color:rgba(56,182,255,.55);transform:translateY(-3px);box-shadow:0 18px 40px rgba(0,0,0,.5)}
.sh-card-img{position:relative;display:block;aspect-ratio:4/3;background:linear-gradient(150deg,#0C2240,#07101F);overflow:hidden}
.sh-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.sh-card:hover .sh-card-img img{transform:scale(1.04)}
.sh-ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:3rem;font-weight:800;
  color:rgba(56,182,255,.55);background:radial-gradient(circle at 30% 20%,rgba(56,182,255,.18),transparent 60%)}
.sh-badge{position:absolute;top:.7rem;left:.7rem;padding:.22rem .6rem;border-radius:20px;font-size:.68rem;font-weight:800;
  letter-spacing:.05em;text-transform:uppercase;background:var(--azure);color:#04101F}
.sh-badge.best{background:var(--sh-warn)}
.sh-badge.promo{background:#F472B6}
.sh-card-body{display:flex;flex-direction:column;flex:1;padding:1rem 1.05rem 1.1rem}
.sh-kind{color:var(--tool);font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.sh-card h3{font-size:1.05rem;margin:.3rem 0 .35rem;line-height:1.3}
.sh-card h3 a{color:var(--ink);text-decoration:none}
.sh-card h3 a:hover{color:#6FD1FF}
.sh-card-body p{color:var(--dim);font-size:.88rem;line-height:1.55;margin:0 0 .9rem;flex:1}
.sh-card-foot{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
.sh-price{color:var(--ink);font-weight:800;font-size:1.15rem;white-space:nowrap}
.sh-price small{font-size:.75rem;font-weight:600;color:var(--dim)}
.sh-was{color:#7FA8C9;font-size:.85rem}
.sh-empty{color:var(--dim)}
.sh-trust{color:#7FA8C9;font-size:.82rem;text-align:center;margin-top:1rem}

/* Fiche produit */
.sh-product{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:2.2rem;align-items:start;margin:.4rem 0 1rem}
.sh-hero{position:relative;margin:0;border:1px solid var(--sh-line);border-radius:16px;overflow:hidden;background:var(--sh-card);box-shadow:0 22px 60px rgba(0,0,0,.45)}
.sh-hero img{display:block;width:100%;height:auto}
.sh-hero-ph{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;background:linear-gradient(150deg,#0C2240,#07101F)}
.sh-hero-ph span{font-size:5rem;font-weight:800;color:rgba(56,182,255,.5)}
.sh-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:.6rem;margin-top:.7rem}
.sh-thumbs img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;border:1px solid var(--sh-line)}
.sh-buy{position:sticky;top:1.2rem}
.sh-buy h1{font-size:clamp(1.5rem,3.4vw,2.1rem);margin:.35rem 0 .7rem;line-height:1.2}
.sh-sum{color:#C9DDEE;font-size:1.02rem;line-height:1.65}
.sh-price-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:.3rem .8rem;margin:1rem 0 1.1rem;padding:1rem 0;
  border-top:1px solid var(--sh-line);border-bottom:1px solid var(--sh-line)}
.sh-price-row .sh-price{font-size:1.9rem}
.sh-price-row small{color:#7FA8C9;font-size:.8rem;flex-basis:100%}
.sh-add{display:flex;flex-wrap:wrap;gap:.6rem;align-items:flex-end}
.sh-add .sh-btn{flex:1 1 180px}
.sh-qty{display:flex;flex-direction:column;gap:.25rem;color:var(--dim);font-size:.75rem;font-weight:600}
.sh-qty input{width:5rem}
.sh-incart{margin:.8rem 0 0;font-size:.88rem;color:var(--sh-ok)}
.sh-incart a{color:var(--azure)}
.sh-assur{list-style:none;padding:0;margin:1.3rem 0 0;display:flex;flex-direction:column;gap:.6rem}
.sh-assur li{position:relative;padding-left:1.7rem;color:var(--dim);font-size:.86rem;line-height:1.5}
.sh-assur li::before{content:"✓";position:absolute;left:0;top:0;width:1.2rem;height:1.2rem;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:800;color:#04101F;background:var(--sh-ok)}
.sh-assur li.k-lock::before{content:"🔒";background:none;font-size:.85rem}
.sh-desc{margin-top:1.4rem;color:var(--dim);line-height:1.7}
.sh-desc h2,.sh-desc h3{color:var(--ink)}
.sh-desc ul,.sh-desc ol{margin:.4rem 0 1rem 1.3rem}
.sh-desc li{margin:.25rem 0}
.sh-desc a{color:var(--azure)}

/* Panier */
.sh-cart{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:1.6rem;align-items:start}
.sh-lines{display:flex;flex-direction:column;gap:.7rem}
.sh-line{display:flex;align-items:center;gap:1rem;padding:.8rem;border:1px solid var(--sh-line);border-radius:12px;background:var(--sh-card)}
.sh-line-img{flex:none;width:72px;height:54px;border-radius:8px;overflow:hidden;background:#07101F}
.sh-line-img img{width:100%;height:100%;object-fit:cover}
.sh-line-img .sh-ph{font-size:1.4rem}
.sh-line-info{flex:1;min-width:0;color:var(--ink)}
.sh-line-info a{color:var(--ink);font-weight:700;text-decoration:none}
.sh-line-info a:hover{color:#6FD1FF}
.sh-line-info small{display:block;color:#7FA8C9;font-size:.8rem;margin-top:.15rem}
.sh-line-info small a{color:var(--azure);font-weight:600}
.sh-line-qty input{width:4.4rem}
.sh-line-qty span{color:var(--dim);font-size:.9rem}
.sh-line-total{color:var(--ink);white-space:nowrap;min-width:5.5rem;text-align:right}
.sh-x{width:2rem;height:2rem;border-radius:50%;border:1px solid var(--sh-line);background:none;color:var(--dim);font-size:1.1rem;cursor:pointer}
.sh-x:hover{border-color:var(--sh-err);color:var(--sh-err)}
.sh-summary{position:sticky;top:1.2rem;padding:1.2rem;border:1px solid rgba(56,182,255,.35);border-radius:14px;
  background:linear-gradient(160deg,rgba(56,182,255,.08),rgba(56,182,255,.02))}
.sh-sum-row{display:flex;justify-content:space-between;gap:1rem;color:var(--ink);margin-bottom:.5rem}
.sh-sum-row b{font-size:1.3rem}
.sh-sum-row.muted{color:#7FA8C9;font-size:.85rem}
.sh-vat{color:#7FA8C9;font-size:.78rem;margin:0 0 1rem}
.sh-summary .sh-link{display:block;margin:.4rem auto 0}
.sh-secure{color:#7FA8C9;font-size:.75rem;line-height:1.5;margin:.8rem 0 0;text-align:center}
.sh-empty-cart{padding:2.4rem 1rem;text-align:center;border:1px dashed rgba(56,182,255,.35);border-radius:14px}

/* Confirmation */
.sh-done{text-align:center;padding:1.6rem 1rem 1.2rem}
.sh-check{width:4rem;height:4rem;margin:0 auto 1rem;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:2rem;font-weight:800;color:#04101F;background:var(--sh-ok);box-shadow:0 0 0 10px rgba(45,212,191,.15);animation:rise .5s ease both}
.sh-lines.done{max-width:760px;margin:0 auto 1.4rem}
.sh-keys{margin-top:.5rem}
.sh-keys span{display:block;font-size:.72rem;color:#7FA8C9;text-transform:uppercase;letter-spacing:.06em}
.sh-keys code{display:inline-block;margin-top:.2rem;padding:.45rem .6rem;border-radius:8px;background:#07101F;border:1px solid var(--sh-line);
  color:#C8F5EC;font-family:"Cascadia Code",Consolas,monospace;font-size:.88rem;line-height:1.6;user-select:all}
.sh-cta-account{max-width:760px;margin:0 auto 1rem;padding:1.1rem 1.2rem;border:1px solid rgba(56,182,255,.35);border-radius:14px;
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.sh-cta-account p{margin:0}

/* Compte client */
.sh-auth{display:grid;gap:1.2rem;margin:1rem 0 1.6rem;max-width:460px}
.sh-auth.two{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));max-width:none}
.sh-panel{padding:1.3rem;border:1px solid var(--sh-line);border-radius:14px;background:var(--sh-card)}
.sh-panel.hl{border-color:rgba(56,182,255,.6);box-shadow:0 0 0 3px rgba(56,182,255,.12)}
.sh-panel h1,.sh-panel h2{margin:0 0 .8rem;padding:0;border:0;font-size:1.2rem}
.sh-panel label{display:flex;flex-direction:column;gap:.3rem;margin-bottom:.8rem;color:var(--dim);font-size:.82rem;font-weight:600}
.sh-panel input:disabled{opacity:.6}
.sh-forgot{margin-top:.8rem}
.sh-forgot summary{cursor:pointer;color:var(--azure);font-size:.86rem}
.sh-forgot form{margin-top:.8rem}
.sh-acct-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.sh-order{margin:0 0 1rem;border:1px solid var(--sh-line);border-radius:14px;background:rgba(10,21,38,.6);overflow:hidden}
.sh-order header{display:flex;align-items:center;gap:1rem;padding:.8rem 1rem;border-bottom:1px solid var(--sh-line)}
.sh-order header div{flex:1;color:var(--ink)}
.sh-order header small{display:block;color:#7FA8C9;font-size:.78rem}
.sh-order-total{color:var(--ink)}
.sh-order .sh-line{border:0;border-radius:0;background:none;border-bottom:1px solid rgba(56,182,255,.10)}
.sh-order footer{display:flex;flex-wrap:wrap;gap:.8rem;padding:.7rem 1rem}
.sh-doc{color:var(--azure);font-size:.85rem;font-weight:600;text-decoration:none}
.sh-doc::before{content:"⬇ "}
.sh-doc:hover{color:#6FD1FF}
.sh-pill{padding:.2rem .6rem;border-radius:20px;font-size:.72rem;font-weight:700;border:1px solid var(--sh-line);color:var(--dim)}
.sh-pill.ok{border-color:rgba(45,212,191,.5);color:var(--sh-ok)}
.sh-pill.warn{border-color:rgba(251,191,36,.5);color:var(--sh-warn)}
.sh-pill.off{border-color:rgba(248,113,113,.45);color:var(--sh-err)}

/* Ventes flash, variantes, avis, abonnements */
.sh-badge.flash{background:#F87171;color:#fff}
.sh-off{display:inline-block;padding:.08rem .45rem;border-radius:6px;background:rgba(248,113,113,.16);color:#FCA5A5;font-size:.75rem;font-weight:800}
.sh-from{font-size:.72rem;font-weight:600;color:var(--dim)}
.sh-chips a.flash{border-color:rgba(248,113,113,.55);color:#FCA5A5}
.sh-chips a.flash.on{background:#F87171;border-color:#F87171;color:#fff}
.sh-countdown{margin:.2rem 0 .9rem;padding:.55rem .8rem;border-radius:10px;border:1px solid rgba(248,113,113,.45);
  background:rgba(248,113,113,.08);color:#FECACA;font-size:.88rem;font-weight:600;font-variant-numeric:tabular-nums}
.sh-variants{border:0;padding:0;margin:0 0 .4rem;flex-basis:100%;display:flex;flex-direction:column;gap:.45rem}
.sh-variants legend{color:var(--dim);font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.35rem}
.sh-var{display:flex;align-items:center;gap:.7rem;padding:.6rem .8rem;border:1px solid var(--sh-line);border-radius:10px;cursor:pointer;background:rgba(10,21,38,.6)}
.sh-var:hover{border-color:rgba(56,182,255,.55)}
.sh-var:has(input:checked){border-color:var(--azure);box-shadow:0 0 0 3px rgba(56,182,255,.14)}
.sh-var input{accent-color:var(--azure)}
.sh-var span{flex:1;display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;flex-wrap:wrap;color:var(--ink)}
.sh-var .sh-price{font-size:1rem}
.sh-add .sh-price-row{flex-basis:100%}
.sh-stars{position:relative;display:inline-block;width:5.2em;height:1em;font-size:.95rem;line-height:1;vertical-align:-.1em}
.sh-stars::before,.sh-stars span::before{content:"★★★★★";letter-spacing:.04em;position:absolute;left:0;top:0}
.sh-stars::before{color:rgba(127,168,201,.35)}
.sh-stars span{position:absolute;left:0;top:0;height:100%;overflow:hidden;white-space:nowrap}
.sh-stars span::before{color:var(--sh-warn)}
.sh-rating{display:inline-flex;align-items:center;gap:.4rem;color:var(--dim);text-decoration:none;margin:0 0 .5rem}
.sh-rating small{color:#7FA8C9;font-size:.8rem}
.sh-reviews{margin:2rem 0 1.4rem}
.sh-reviews h2{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.sh-review{padding:1rem 1.1rem;border:1px solid var(--sh-line);border-radius:12px;background:var(--sh-card);margin:0 0 .8rem}
.sh-review header{display:flex;align-items:center;gap:.7rem;color:var(--ink)}
.sh-review p{color:var(--dim);margin:.5rem 0;line-height:1.6}
.sh-review small{color:#7FA8C9;font-size:.78rem}
.sh-reply{margin-top:.7rem;padding:.6rem .8rem;border-left:3px solid var(--azure);background:rgba(56,182,255,.06);border-radius:0 8px 8px 0}
.sh-reply b{color:var(--ink);font-size:.8rem}
.sh-reply p{margin:.3rem 0 0}
.sh-review-form{margin-top:1rem}
.sh-review-form summary{list-style:none;display:inline-flex}
.sh-review-form summary::-webkit-details-marker{display:none}
.sh-review-form form{margin-top:1rem}
.sh-review-form textarea{font:inherit;font-size:.9rem;color:var(--ink);background:#081322;border:1px solid rgba(56,182,255,.28);border-radius:9px;padding:.6rem .75rem}
.sh-star-input{border:0;padding:0;margin:0 0 .8rem;display:inline-flex;flex-direction:row-reverse;gap:.15rem}
.sh-star-input legend{color:var(--dim);font-size:.82rem;font-weight:600;margin-bottom:.3rem}
.sh-star-input input{position:absolute;opacity:0;width:1px;height:1px}
.sh-star-input label{margin:0;font-size:1.7rem;color:rgba(127,168,201,.4);cursor:pointer;line-height:1}
.sh-star-input label:hover,.sh-star-input label:hover~label,.sh-star-input input:checked~label{color:var(--sh-warn)}
.sh-star-input input:focus-visible+label{outline:2px solid var(--azure);outline-offset:2px}
.sh-portal{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:0 0 2rem}
.sh-portal small{color:#7FA8C9;font-size:.8rem}
.sh-line-total small{display:block;font-size:.72rem;color:#7FA8C9;font-weight:600}
.sh-line-info s{color:#7FA8C9}

@media (max-width:860px){
  .sh-product{grid-template-columns:minmax(0,1fr);gap:1.4rem}
  .sh-buy{position:static}
  .sh-cart{grid-template-columns:minmax(0,1fr)}
  .sh-summary{position:static}
}
@media (max-width:560px){
  .sh-bar{flex-wrap:wrap}
  .sh-search{flex-basis:100%}
  .sh-line{flex-wrap:wrap}
  .sh-line-info{flex-basis:calc(100% - 90px)}
  .sh-line-total{margin-left:auto}
}
@media (prefers-reduced-motion:reduce){
  .sh-card,.sh-card-img img,.sh-btn{transition:none}
  .sh-check{animation:none}
}
