
.shw { padding: 4px 0 24px; }
.shw .num { font-variant-numeric: tabular-nums; }


.shw-seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-11); padding: 3px; gap: 2px; }
.shw-seg button {
    border: 0; background: transparent; height: 32px; padding: 0 12px; border-radius: var(--r-8);
    font-weight: 700; font-size: 12.5px; color: var(--slate); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer;
}
.shw-seg button:hover { color: var(--ink); }
.shw-seg button[aria-pressed="true"] { background: var(--teal-soft); color: var(--teal-dark); }


.shw-outils { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); padding: 12px; display: grid; gap: 10px; margin-bottom: 16px; }
.shw-rang1 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.shw-rang1 > :first-child { flex: 1 1 220px; min-width: 0; }
.shw-scan {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--r-10);
    border: 1px solid var(--line); background: var(--surface); color: var(--teal-dark);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.shw-filtres { display: contents; }
.shw-sel { width: auto; flex: 0 1 165px; min-width: 130px; height: 42px; border-radius: var(--r-10); font-size: 13.5px; }
.shw-rang2 { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.shw-k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.shw-chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--slate); cursor: pointer; user-select: none; }
.shw-sw { position: relative; width: 34px; height: 20px; flex: 0 0 auto; }
.shw-sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.shw-sw span { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .15s; }
.shw-sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-sm); transition: transform .15s; }
.shw-sw input:checked + span { background: var(--teal-dark); }
.shw-sw input:checked + span::after { transform: translateX(14px); }
.shw-legende { margin-left: auto; display: flex; gap: 12px; font-size: 12px; color: var(--slate); }
.shw-pt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.shw-pt-mien { background: var(--teal-dark); }
.shw-pt-rupture { background: var(--red-dark); }


.shw-compte { display: none; font-size: 13px; color: var(--slate); margin: 4px 0 12px; }
.shw-msg { font-size: 13.5px; color: var(--ink); background: var(--amber-soft); border: 1px solid var(--line); border-radius: var(--r-8); padding: 8px 12px; margin: 0 0 12px; }
.shw-vide { display: grid; gap: 4px; justify-items: center; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-14); padding: 40px; text-align: center; color: var(--slate); }
.shw-vide b { color: var(--ink); }


.shw-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.shw-carte {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); overflow: hidden;
    display: flex; flex-direction: column; cursor: pointer; transition: box-shadow .15s, border-color .15s; text-align: left; min-width: 0;
}
.shw-carte:hover { box-shadow: var(--sh-lg); }
.shw-carte:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.shw-carte-promo { border-color: var(--rose-soft); }
.shw-photo { position: relative; aspect-ratio: 4 / 3; background: var(--surface); border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; }
.shw-photo img { width: 100%; height: 100%; object-fit: contain; }
.shw-photo-vide { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--slate); }
.shw-photo-vide > span { width: 46px; height: 46px; border-radius: var(--r-12); background: var(--surface-alt); display: grid; place-items: center; }
.shw-badge {
    position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px;
    background: var(--rose); color: var(--surface); font-size: 12px; font-weight: 800; border-radius: var(--r-8); padding: 4px 9px;
}
.shw-corps { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.shw-nom { font-weight: 800; font-size: 14.5px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shw-ref { font-family: var(--num-font); font-size: 11.5px; color: var(--slate); }
.shw-variantes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.shw-variante { font-size: 11px; font-weight: 700; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--slate); }
.shw-prix-l { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.shw-prix { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.shw-prix small { font-size: 11px; font-weight: 700; color: var(--slate); }
.shw-prix-promo { color: var(--rose-dark); }
.shw-prix-avant { font-size: 12.5px; font-weight: 600; color: var(--slate); }
.shw-jusquau { font-size: 11.5px; font-weight: 700; color: var(--rose-dark); margin: -4px 0 8px; }
.shw-promo { font-size: 12.5px; font-weight: 700; color: var(--teal-dark); margin-bottom: 6px; }


.shw-stk { margin-top: auto; }
.shw-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.shw-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.shw-pill-ok { background: var(--green-soft); color: var(--green-dark); }
.shw-pill-zero { background: var(--red-soft); color: var(--red-dark); }
.shw-pill-neg { background: var(--red-dark); color: var(--surface); }
.shw-pill-ou { font-weight: 600; }
.shw-wh { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.shw-wh-l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.shw-wh-n { color: var(--slate); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shw-wh-mien .shw-wh-n { color: var(--ink); font-weight: 700; }
.shw-wh-mien .shw-wh-n::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-dark); margin-left: 6px; vertical-align: 1px; }
.shw-wh-q { font-weight: 800; min-width: 40px; text-align: right; color: var(--ink); }
.shw-q-z { color: var(--red-dark); }
.shw-wh-tot { border-top: 1px solid var(--line-soft); padding-top: 4px; margin-top: 2px; }
.shw-wh-tot .shw-wh-n { color: var(--ink); font-weight: 800; }
.shw-wh-plus { color: var(--teal-dark); font-weight: 700; font-size: 12px; }


.shw-liste-cadre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); overflow: auto; }
.shw-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.shw-table th {
    font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); text-align: left;
    padding: 11px 14px; background: var(--surface-alt); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.shw-table th.shw-th-mien { color: var(--teal-dark); }
.shw-table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.shw-table tbody tr { cursor: pointer; }
.shw-table tbody tr:hover td { background: var(--row-hover); }
.shw-table tr:last-child td { border-bottom: 0; }
.shw-table .shw-r { text-align: right; }
.shw-art { display: flex; gap: 12px; align-items: center; }
.shw-vignette { width: 46px; height: 46px; border-radius: var(--r-10); border: 1px solid var(--line-soft); display: grid; place-items: center; background: var(--surface); flex: 0 0 auto; overflow: hidden; }
.shw-vignette img { width: 100%; height: 100%; object-fit: contain; }
.shw-art b { display: block; font-weight: 800; color: var(--ink); }
.shw-art small { display: block; font-family: var(--num-font); font-size: 11.5px; color: var(--slate); }
.shw-fam { color: var(--slate); font-size: 12.5px; }
.shw-q { font-weight: 800; color: var(--ink); }
.shw-q.shw-q-z { color: var(--red-dark); }
.shw-q-tot { background: var(--surface-alt); }
.shw-prix-l-liste { font-weight: 800; color: var(--ink); white-space: nowrap; }
.shw-table td:first-child { min-width: 220px; }
.shw-table .shw-th-tot, .shw-table td.shw-q-tot { position: sticky; right: 0; box-shadow: inset 1px 0 0 var(--line); }
.shw-badge-liste { display: inline-block; background: var(--rose); color: var(--surface); font-size: 10.5px; font-weight: 800; border-radius: var(--r-6); padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.shw-prix-avant-liste { display: block; font-size: 12px; color: var(--slate); }

.shw-suite { display: flex; justify-content: center; margin-top: 16px; }


.shw-voile { position: fixed; inset: 0; background: rgba(15, 27, 58, .35); z-index: 1050; display: flex; justify-content: flex-end; }
.shw-panneau { width: min(480px, 100%); height: 100%; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--sh-lg); }
.shw-panneau-tete { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.shw-panneau-titre { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); flex: 1; }
.shw-x { width: 36px; height: 36px; border-radius: var(--r-10); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.shw-panneau-corps { overflow: auto; flex: 1; padding: 0 20px 24px; }
.shw-fiche-photo { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; margin: 0 -20px; border-bottom: 1px solid var(--line-soft); background: var(--surface); overflow: hidden; }
.shw-fiche-photo img { width: 100%; height: 100%; object-fit: contain; }
.shw-badge-fiche { top: auto; bottom: 14px; left: 20px; font-size: 13px; }
.shw-fiche-nom { font-size: 20px; font-weight: 800; margin: 16px 0 2px; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.shw-fiche-ref { font-family: var(--num-font); font-size: 12.5px; color: var(--slate); }
.shw-fiche-fam { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.shw-fiche-prix { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.shw-fiche-prix b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.shw-fiche-prix b.shw-prix-promo { color: var(--rose-dark); }
.shw-fiche-prix span { font-size: 13px; font-weight: 700; color: var(--slate); }
.shw-fiche-promo { display: flex; align-items: center; gap: 6px; margin-top: 14px; background: var(--rose-soft); border: 1px solid var(--rose-soft); border-radius: var(--r-10); padding: 10px 12px; font-size: 12.5px; color: var(--rose-dark); }
.shw-fiche-promo b { font-weight: 800; }
.shw-sbox { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-14); overflow: hidden; }
.shw-sbox-tete { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.shw-sbox-tete b { font-weight: 800; flex: 1; color: var(--ink); }
.shw-sbox-total { font-size: 22px; font-weight: 800; color: var(--ink); }
.shw-sbox-total small { font-size: 12px; color: var(--slate); font-weight: 700; margin-left: 3px; }
.shw-wrow { display: grid; grid-template-columns: 1fr 90px 60px; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.shw-wrow-n { font-weight: 700; color: var(--ink); }
.shw-wrow-n small { display: block; font-weight: 600; color: var(--teal-dark); font-size: 11.5px; }
.shw-barre { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.shw-barre i { display: block; height: 100%; background: var(--teal-dark); border-radius: 999px; }
.shw-wrow-q { text-align: right; font-weight: 800; color: var(--ink); }
.shw-snote { font-size: 12px; color: var(--slate); padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.shw-panneau-actions { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.shw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: var(--r-10);
    border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; white-space: nowrap; flex: 1; color: var(--ink); text-decoration: none;
}
.shw-btn:hover { background: var(--surface-alt); }


.shw-scan-zone { display: grid; gap: 8px; }
.shw-scan-video { width: 100%; max-height: 60vh; background: var(--ink); border-radius: var(--r-10); object-fit: cover; }
.shw-scan-aide { font-size: 13px; color: var(--slate); margin: 0; }

.shw-scan-vue { position: relative; }
.shw-scan-vue .shw-scan-video { display: block; }
.shw-scan-cadre {
    position: absolute; left: 10%; right: 10%; top: 35%; bottom: 35%;
    border: 3px solid var(--surface); outline: 2px solid var(--ink); border-radius: var(--r-10); pointer-events: none;
}


@media (max-width: 820px) {
    .shw-outils { background: transparent; border: 0; padding: 0; }
    .shw-rang1 { flex-wrap: wrap; }
    .shw-rang1 > :first-child { flex: 1 1 calc(100% - 50px); }
    .shw-filtres { display: flex; gap: 8px; overflow-x: auto; flex: 1 1 100%; min-width: 0; padding-bottom: 2px; scrollbar-width: none; }
    .shw-filtres .shw-sel { flex: 0 0 auto; height: 38px; font-size: 13px; border-radius: 999px; max-width: 220px; }
    .shw-rang2 { border: 0; padding-top: 0; gap: 8px; }
    .shw-rang2 .shw-k, .shw-legende { display: none; }
    .shw-rang2 .shw-seg { flex: 1 1 100%; }
    .shw-rang2 .shw-seg button { flex: 1; justify-content: center; padding: 0 6px; }
    .shw-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .shw-corps { padding: 10px 10px 12px; }
    .shw-nom { font-size: 13.5px; }
    .shw-prix { font-size: 15px; }
    .shw-wh-l { font-size: 12px; }
    .shw-pill { font-size: 11.5px; padding: 3px 8px; }
    .shw-pill-ou { display: none; }
    .shw-panneau { width: 100%; }
    .shw-table td:first-child { min-width: 190px; }
}
@media (max-width: 768px) { .shw-compte { display: block; } }
