/* ==================================================================
 * Boutique Weavy : /shop/, /shop/{slug}/, /cart/ et /checkout/
 * Complète site.css (variables --wls-*, en-tête, pied de page).
 * ================================================================== */

.wsh {
    --wsh-accent: #764be9;
    --wsh-accent-dark: #5b32c9;
    --wsh-accent-soft: #f1ebfd;
    --wsh-ink: var(--wls-navy);
    --wsh-muted: #6b7088;
    --wsh-line: #e6e8ef;
    --wsh-surface: #fff;
    --wsh-radius: 20px;
    --wsh-radius-sm: 12px;
    --wsh-shadow: 0 1px 2px rgba(28, 36, 75, 0.04), 0 8px 24px rgba(28, 36, 75, 0.06);
    --wsh-shadow-hover: 0 2px 4px rgba(28, 36, 75, 0.06), 0 22px 48px rgba(28, 36, 75, 0.12);
    --wsh-success: #1f9d63;
    --wsh-warning: #c26a00;

    padding-bottom: 96px;
    color: var(--wsh-ink);
    font-family: var(--wls-sf);
}

.wsh a:hover {
    color: inherit;
}

/* ------------------------------------------------------------------
 * Éléments communs
 * ------------------------------------------------------------------ */

.wsh-eyebrow {
    margin: 0 0 14px !important;
    color: var(--wsh-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.wsh-section-title {
    margin-bottom: 32px !important;
    color: var(--wsh-ink);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.wsh-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.wsh-badge--accent {
    background: var(--wsh-accent);
    color: #fff;
}

.wsh-badge--muted {
    background: var(--wsh-ink);
    color: #fff;
}

.wsh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 32px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wsh .wsh-button--primary,
.wsh .wsh-button--primary:hover {
    color: #fff;
}

.wsh-button--primary {
    background: var(--wsh-accent);
    box-shadow: 0 10px 24px rgba(118, 75, 233, 0.28);
}

.wsh-button--primary:hover {
    background: var(--wsh-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(118, 75, 233, 0.34);
}

.wsh-button:focus-visible,
.wsh-qty__btn:focus-visible,
.wsh-gallery__thumb:focus-visible,
.wsh-card__link:focus-visible {
    outline: 3px solid rgba(118, 75, 233, 0.45);
    outline-offset: 3px;
}

.wsh-button[disabled] {
    background: #c9cbd6;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.wsh-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0 !important;
}

.wsh-price__now {
    color: var(--wsh-ink);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.wsh-price__was {
    color: var(--wsh-muted);
    font-size: 15px;
}

.wsh-price__pill {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--wsh-accent-soft);
    color: var(--wsh-accent-dark);
    font-size: 13px;
    font-weight: 700;
}

.wsh-price--lg .wsh-price__now {
    font-size: clamp(30px, 3.4vw, 40px);
}

.wsh-price--lg .wsh-price__was {
    font-size: 18px;
}

.wsh-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    font-size: 14px;
    font-weight: 600;
}

.wsh-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.wsh-stock--in {
    color: var(--wsh-success);
}

.wsh-stock--low {
    color: var(--wsh-warning);
}

.wsh-stock--low::before {
    animation: wsh-pulse 1.6s ease-in-out infinite;
}

.wsh-stock--out {
    color: var(--wsh-muted);
}

@keyframes wsh-pulse {
    50% {
        opacity: 0.35;
    }
}

/* ------------------------------------------------------------------
 * En-tête de la boutique
 * ------------------------------------------------------------------ */

.wsh-hero {
    padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px);
    background:
        radial-gradient(60% 120% at 85% 0%, rgba(118, 75, 233, 0.12), transparent 60%),
        radial-gradient(50% 100% at 0% 100%, rgba(121, 56, 187, 0.08), transparent 70%),
        var(--wls-grey-bg);
    text-align: center;
}

.wsh-hero__inner {
    max-width: 760px;
}

.wsh-hero__title {
    color: var(--wsh-ink);
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.wsh-hero__intro {
    max-width: 560px;
    margin: 18px auto 0 !important;
    color: var(--wsh-muted);
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.5;
}

/* ------------------------------------------------------------------
 * Produit mis en avant
 * ------------------------------------------------------------------ */

.wsh-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    margin-top: clamp(-40px, -3vw, -24px);
    padding: clamp(24px, 3vw, 40px);
    border-radius: calc(var(--wsh-radius) + 8px);
    background: var(--wsh-surface);
    box-shadow: var(--wsh-shadow-hover);
}

.wsh-spotlight__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--wsh-radius);
    background: var(--wls-grey-bg);
}

.wsh-spotlight__img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wsh-spotlight:hover .wsh-spotlight__img {
    transform: scale(1.03);
}

.wsh-spotlight__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.wsh-spotlight__title {
    color: var(--wsh-ink);
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.wsh-spotlight__excerpt {
    margin: 0 !important;
    color: var(--wsh-muted);
    font-size: 17px;
    line-height: 1.6;
}

.wsh-spotlight .wsh-button {
    margin-top: 8px;
}

/* ------------------------------------------------------------------
 * Réassurance
 * ------------------------------------------------------------------ */

.wsh-trust {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wsh-trust__item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wsh-trust__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wsh-accent-soft);
    color: var(--wsh-accent);
}

.wsh-trust__icon svg {
    width: 22px;
    height: 22px;
}

.wsh-trust__text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.wsh-trust__title {
    color: var(--wsh-ink);
    font-size: 15px;
}

.wsh-trust__desc {
    color: var(--wsh-muted);
    font-size: 14px;
}

.wsh-trust-band {
    padding: clamp(40px, 5vw, 64px) 0 0;
}

.wsh-trust--strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 28px clamp(20px, 3vw, 40px);
    border: 1px solid var(--wsh-line);
    border-radius: var(--wsh-radius);
}

.wsh-trust--list {
    display: grid;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--wsh-line);
}

/* ------------------------------------------------------------------
 * Grille et cartes produit
 * ------------------------------------------------------------------ */

.wsh-collection {
    padding-top: clamp(56px, 7vw, 96px);
}

.wsh-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.wsh-grid__item {
    display: flex;
}

.wsh-card {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--wsh-radius);
    background: var(--wsh-surface);
    box-shadow: var(--wsh-shadow);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.wsh-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wsh-shadow-hover);
}

.wsh-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--wls-grey-bg);
}

.wsh-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wsh-card__img--hover {
    opacity: 0;
}

.wsh-card:hover .wsh-card__img {
    transform: scale(1.04);
}

.wsh-card:hover .wsh-card__img--hover {
    opacity: 1;
}

.wsh-card.is-sold-out .wsh-card__img {
    filter: grayscale(0.6);
    opacity: 0.75;
}

.wsh-card__placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--wls-grey-bg), var(--wsh-accent-soft));
}

.wsh-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

.wsh-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
}

.wsh-card__title {
    font-size: 20px;
    line-height: 1.25;
}

.wsh .wsh-card__link {
    color: var(--wsh-ink);
    text-decoration: none;
}

/* Toute la carte est cliquable, avec un seul lien pour les lecteurs d'écran. */
.wsh-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.wsh-card__excerpt {
    display: -webkit-box;
    margin: 0 !important;
    overflow: hidden;
    color: var(--wsh-muted);
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.wsh-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}

.wsh-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wsh-accent);
    font-size: 14px;
    font-weight: 600;
}

.wsh-card__cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.wsh-card:hover .wsh-card__cta svg {
    transform: translateX(4px);
}

.wsh-empty,
.wsh-not-found {
    padding: 80px 0;
    color: var(--wsh-muted);
    font-size: 18px;
    text-align: center;
}

.wsh-not-found__title {
    margin-bottom: 12px !important;
    color: var(--wsh-ink);
    font-size: clamp(30px, 4vw, 44px);
}

.wsh-not-found__text {
    margin-bottom: 32px !important;
}

/* ------------------------------------------------------------------
 * Page produit
 * ------------------------------------------------------------------ */

.wsh-breadcrumb {
    padding: 24px 0;
}

.wsh-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--wsh-muted);
    font-size: 14px;
}

.wsh-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #b8bbc9;
}

.wsh .wsh-breadcrumb a {
    color: var(--wsh-muted);
    text-decoration: none;
}

.wsh .wsh-breadcrumb a:hover {
    color: var(--wsh-ink);
}

.wsh-breadcrumb [aria-current] {
    color: var(--wsh-ink);
    font-weight: 600;
}

.wsh-product {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
}

.wsh-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wsh-gallery__stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--wsh-radius);
    background: var(--wls-grey-bg);
}

.wsh-gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    animation: wsh-fade 0.4s ease;
}

.wsh-gallery__slide[hidden] {
    display: none;
}

.wsh-gallery__img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.wsh-gallery__badge {
    position: absolute;
    top: 20px;
    left: 20px;
}

@keyframes wsh-fade {
    from {
        opacity: 0;
    }
}

.wsh-gallery__thumbs {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0 0 4px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
}

.wsh-gallery__thumb {
    display: block;
    width: 84px;
    height: 84px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: var(--wsh-radius-sm);
    background: var(--wls-grey-bg);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.wsh-gallery__thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.wsh-gallery__thumb:hover,
.wsh-gallery__thumb.is-active {
    opacity: 1;
}

.wsh-gallery__thumb.is-active {
    border-color: var(--wsh-accent);
}

.wsh-buy {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wsh-buy__title {
    color: var(--wsh-ink);
    font-size: clamp(32px, 3.6vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.wsh-buy__tax {
    margin: -10px 0 0 !important;
    color: var(--wsh-muted);
    font-size: 13px;
}

.wsh-buy__excerpt {
    margin: 0 !important;
    color: var(--wsh-muted);
    font-size: 17px;
    line-height: 1.6;
}

.wsh-buy__form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
    border-radius: var(--wsh-radius);
    background: var(--wls-grey-bg);
}

.wsh-buy__submit {
    width: 100%;
}

.wsh-buy__feedback {
    grid-column: 1 / -1;
    margin: 0 !important;
    font-size: 14px;
    font-weight: 600;
}

.wsh-buy__feedback:empty {
    display: none;
}

.wsh-buy__feedback.is-success {
    color: var(--wsh-success);
}

.wsh-buy__feedback.is-error {
    color: #c0392b;
}

.wsh-buy__note {
    margin: 0 !important;
    color: var(--wsh-muted);
    font-size: 14px;
}

.wsh-qty {
    display: inline-flex;
    align-items: center;
    height: 54px;
    padding: 0 4px;
    border: 1px solid var(--wsh-line);
    border-radius: 999px;
    background: #fff;
}

.wsh-qty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--wsh-ink);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wsh-qty__btn:hover:not([disabled]) {
    background: var(--wls-grey-bg);
}

.wsh-qty__btn[disabled] {
    color: #c9cbd6;
    cursor: not-allowed;
}

.wsh-qty__btn svg {
    width: 18px;
    height: 18px;
}

.wsh-qty__input {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wsh-ink);
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.wsh-qty__input::-webkit-inner-spin-button,
.wsh-qty__input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.wsh-qty__input:focus {
    outline: none;
}

.wsh-qty:focus-within {
    border-color: var(--wsh-accent);
}

/* Descriptif saisi dans le module Produits */

.wsh-details {
    margin-top: clamp(64px, 8vw, 112px);
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--wls-grey-bg);
}

.wsh-details__inner {
    max-width: 820px;
}

.wsh-richtext {
    color: #3a3f58;
    font-size: 17px;
    line-height: 1.75;
}

.wsh-richtext > *:first-child {
    margin-top: 0;
}

.wsh-richtext h2,
.wsh-richtext h3,
.wsh-richtext h4 {
    margin: 1.8em 0 0.6em;
    color: var(--wsh-ink);
    line-height: 1.25;
}

.wsh-richtext h2 {
    font-size: 26px;
}

.wsh-richtext h3 {
    font-size: 21px;
}

.wsh-richtext p,
.wsh-richtext ul,
.wsh-richtext ol {
    margin: 0 0 1.1em;
}

.wsh-richtext ul,
.wsh-richtext ol {
    padding-left: 1.3em;
}

.wsh-richtext li {
    margin-bottom: 0.4em;
}

.wsh-richtext img {
    border-radius: var(--wsh-radius-sm);
}

.wsh-richtext table {
    width: 100%;
    margin: 0 0 1.2em;
    border-collapse: collapse;
    font-size: 15px;
}

.wsh-richtext th,
.wsh-richtext td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--wsh-line);
    text-align: left;
}

.wsh-richtext a {
    color: var(--wsh-accent);
}

.wsh .wsh-buy__feedback-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
 * Panier et tunnel de commande : éléments communs
 * ------------------------------------------------------------------ */

.wsh [hidden] {
    display: none !important;
}

.wsh-button--block {
    width: 100%;
}

.wsh .wsh-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--wsh-accent);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.wsh .wsh-link:hover {
    color: var(--wsh-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wsh-page-head {
    padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 32px);
}

.wsh-page-head__title {
    color: var(--wsh-ink);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.wsh-page-head__meta {
    margin: 8px 0 0 !important;
    color: var(--wsh-muted);
    font-size: 16px;
}

.wsh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    padding: clamp(40px, 8vw, 96px) 0;
    text-align: center;
}

.wsh-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--wsh-accent-soft);
    color: var(--wsh-accent);
}

.wsh-empty__icon svg {
    width: 38px;
    height: 38px;
}

.wsh-empty__title {
    color: var(--wsh-ink);
    font-size: clamp(24px, 3vw, 30px);
}

.wsh-empty__text {
    margin: 12px 0 28px !important;
    color: var(--wsh-muted);
    font-size: 17px;
    line-height: 1.6;
}

.wsh-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -3px;
    animation: wsh-spin 0.7s linear infinite;
}

.wsh-spinner--lg {
    width: 36px;
    height: 36px;
    border-width: 3px;
}

@keyframes wsh-spin {
    to {
        transform: rotate(360deg);
    }
}

.wsh-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0 !important;
    color: var(--wsh-muted);
    font-size: 13px;
}

.wsh-secure svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}

/* Récapitulatif (panier et commande) */

.wsh-summary {
    padding: clamp(22px, 2.6vw, 32px);
    border-radius: var(--wsh-radius);
    background: var(--wls-grey-bg);
}

.wsh-summary__title {
    margin-bottom: 18px !important;
    color: var(--wsh-ink);
    font-size: 20px;
}

.wsh-summary__rows {
    margin: 0;
}

.wsh-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    font-size: 15px;
}

.wsh-summary__row dt {
    color: var(--wsh-ink);
}

.wsh-summary__row dd {
    margin: 0;
    color: var(--wsh-ink);
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.wsh-summary .wsh-summary__muted {
    color: var(--wsh-muted);
    font-weight: 400;
}

.wsh-summary__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--wsh-line);
    color: var(--wsh-ink);
    font-size: 17px;
    font-weight: 600;
}

.wsh-summary__total strong {
    font-size: 26px;
    letter-spacing: -0.01em;
}

.wsh-summary__tax {
    margin: 4px 0 22px !important;
    color: var(--wsh-muted);
    font-size: 13px;
    text-align: right;
}

/* ------------------------------------------------------------------
 * Panier
 * ------------------------------------------------------------------ */

.wsh-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    align-items: start;
    gap: clamp(28px, 4vw, 56px);
    transition: opacity 0.2s ease;
}

[data-wsh-cart].is-busy .wsh-cart__lines {
    opacity: 0.6;
    pointer-events: none;
}

.wsh-cart__message {
    margin: 0 !important;
    color: #c0392b;
    font-size: 14px;
    font-weight: 600;
}

.wsh-cart__message:empty {
    display: none;
}

.wsh-cart__lines {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--wsh-line);
    list-style: none;
}

.wsh-cart__continue {
    display: inline-block;
    margin-top: 24px;
}

.wsh-cart .wsh-summary {
    position: sticky;
    top: 24px;
}

.wsh-line {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) auto 110px 40px;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--wsh-line);
    transition: opacity 0.25s ease;
}

.wsh-line.is-leaving {
    opacity: 0.3;
}

.wsh-line__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--wsh-radius-sm);
    background: var(--wls-grey-bg);
}

.wsh-line__media img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.wsh .wsh-line__name {
    color: var(--wsh-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.wsh .wsh-line__name:hover {
    color: var(--wsh-accent);
}

.wsh-line__unit {
    margin: 4px 0 0 !important;
    color: var(--wsh-muted);
    font-size: 14px;
}

.wsh-line__notice {
    margin: 6px 0 0 !important;
    color: var(--wsh-warning);
    font-size: 13px;
    font-weight: 600;
}

.wsh-line.is-inactive .wsh-line__media,
.wsh-line.is-inactive .wsh-line__name {
    opacity: 0.55;
}

.wsh-line__total {
    margin: 0 !important;
    color: var(--wsh-ink);
    font-size: 17px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.wsh-line__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--wsh-muted);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wsh-line__remove:hover {
    background: #fdecea;
    color: #c0392b;
}

.wsh-line__remove svg {
    width: 19px;
    height: 19px;
}

.wsh-line__remove:focus-visible,
.wsh .wsh-link:focus-visible {
    outline: 3px solid rgba(118, 75, 233, 0.45);
    outline-offset: 2px;
}

.wsh-qty--sm {
    height: 44px;
}

.wsh-qty--sm .wsh-qty__btn {
    width: 36px;
    height: 36px;
}

.wsh-qty--sm .wsh-qty__input {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

/* ------------------------------------------------------------------
 * Tunnel de commande
 * ------------------------------------------------------------------ */

.wsh--checkout {
    padding-top: clamp(24px, 4vw, 48px);
}

.wsh-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    align-items: start;
    gap: clamp(32px, 6vw, 96px);
}

.wsh-checkout__main {
    max-width: 620px;
    min-height: 420px;
}

.wsh-checkout__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.wsh-checkout__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px 6px 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--wsh-ink);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.wsh-checkout__back:hover {
    background: var(--wls-grey-bg);
}

.wsh-checkout__back svg {
    width: 20px;
    height: 20px;
}

.wsh-checkout__step {
    margin-left: auto;
    color: var(--wsh-muted);
    font-size: 14px;
    font-weight: 600;
}

.wsh-progress {
    flex: 1 0 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--wsh-line);
}

.wsh-progress__fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--wsh-accent), #a37bf3);
    transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wsh-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: wsh-step-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes wsh-step-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
}

.wsh-step.is-busy {
    cursor: progress;
}

.wsh .wsh-step__title {
    display: block;
    margin: 0;
    color: var(--wsh-ink);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.wsh .wsh-step__title:focus {
    outline: none;
}

.wsh-step__hint,
.wsh-step__note {
    margin: -6px 0 0 !important;
    color: var(--wsh-muted);
    font-size: 16px;
    line-height: 1.55;
}

.wsh-step__note {
    margin: 0 !important;
    font-size: 14px;
}

.wsh-step__error {
    margin: 0 !important;
    color: #c0392b;
    font-size: 15px;
    font-weight: 600;
}

.wsh-step__error:empty {
    display: none;
}

.wsh-step__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: 6px;
}

.wsh-step__actions .wsh-button .wsh-spinner {
    margin-right: 4px;
}

/* Champs */

.wsh-input {
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border: 1.5px solid var(--wsh-line);
    border-radius: var(--wsh-radius-sm);
    background: #fff;
    color: var(--wsh-ink);
    font-family: inherit;
    font-size: 17px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wsh-input:hover {
    border-color: #cfd2dd;
}

.wsh-input:focus {
    border-color: var(--wsh-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(118, 75, 233, 0.14);
}

.wsh-input[aria-invalid="true"] {
    border-color: #c0392b;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
}

.wsh-input--xl {
    min-height: 64px;
    font-size: 21px;
}

.wsh-input--select {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7088' d='M6.7 8.3 12 13.6l5.3-5.3a1 1 0 1 1 1.4 1.4l-6 6a1 1 0 0 1-1.4 0l-6-6a1 1 0 0 1 1.4-1.4z'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 20px;
    -webkit-appearance: none;
    appearance: none;
}

.wsh-address,
.wsh-name-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wsh-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wsh-field--full {
    grid-column: 1 / -1;
}

.wsh-field__label {
    color: var(--wsh-ink);
    font-size: 14px;
    font-weight: 600;
}

.wsh-password {
    position: relative;
}

.wsh-password .wsh-input {
    padding-right: 60px;
}

.wsh-password__toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--wsh-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.wsh-password__toggle[aria-pressed="true"] {
    color: var(--wsh-accent);
}

.wsh-password__toggle svg {
    width: 22px;
    height: 22px;
}

.wsh-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--wsh-ink);
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
}

.wsh-check input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--wsh-accent);
    cursor: pointer;
}

.wsh-check input[aria-invalid="true"] {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}

.wsh-check a {
    color: var(--wsh-accent);
}

/* Choix (adresses enregistrées, modes de livraison) */

.wsh-saved,
[data-wsh-rates] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wsh-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--wsh-line);
    border-radius: var(--wsh-radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wsh-option:hover {
    border-color: #cfd2dd;
}

.wsh-option:has(input:checked) {
    border-color: var(--wsh-accent);
    background: #fbf9ff;
    box-shadow: 0 0 0 3px rgba(118, 75, 233, 0.12);
}

.wsh-option input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--wsh-accent);
}

.wsh-option__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: var(--wsh-muted);
    font-size: 14px;
    line-height: 1.45;
}

.wsh-option__body strong {
    color: var(--wsh-ink);
    font-size: 16px;
}

.wsh-option__tag {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--wsh-accent-soft);
    color: var(--wsh-accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.wsh-option__price {
    color: var(--wsh-ink);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* Frais de livraison affichés dès que l'adresse est complète */

.wsh-quote {
    padding: 16px 18px;
    border-radius: var(--wsh-radius-sm);
    background: var(--wls-grey-bg);
    animation: wsh-step-in 0.3s ease;
}

.wsh-quote__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 !important;
    color: var(--wsh-ink);
    font-size: 16px;
    font-weight: 600;
}

.wsh-quote__row strong {
    font-size: 18px;
    white-space: nowrap;
}

.wsh-quote__label {
    color: var(--wsh-muted);
    font-weight: 400;
}

.wsh-quote__title {
    margin: 0 0 10px !important;
    color: var(--wsh-ink);
    font-size: 16px;
    font-weight: 700;
}

.wsh-quote__rates {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wsh-quote__status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: var(--wsh-muted);
    font-size: 15px;
}

.wsh-quote__status--error {
    color: var(--wsh-warning);
    font-weight: 600;
}

/* Récapitulatif avant paiement */

.wsh-recap {
    display: grid;
    gap: 0;
    border: 1.5px solid var(--wsh-line);
    border-radius: var(--wsh-radius-sm);
}

.wsh-recap__block {
    padding: 16px 18px;
}

.wsh-recap__block + .wsh-recap__block {
    border-top: 1px solid var(--wsh-line);
}

.wsh-recap__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.wsh .wsh-recap__title {
    color: var(--wsh-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wsh-recap__body {
    margin: 0 !important;
    color: var(--wsh-ink);
    font-size: 15px;
    line-height: 1.55;
}

.wsh-rates {
    margin: 0;
    padding: 0;
    border: 0;
}

.wsh-rates__legend {
    margin-bottom: 10px;
    padding: 0;
    color: var(--wsh-ink);
    font-size: 16px;
    font-weight: 700;
}

.wsh-rates__empty {
    margin: 0 !important;
    padding: 16px 18px;
    border-radius: var(--wsh-radius-sm);
    background: #fff4e5;
    color: var(--wsh-warning);
    font-size: 15px;
    font-weight: 600;
}

/* Paiement */

.wsh-dropin {
    min-height: 120px;
}

.wsh-dropin__loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: var(--wsh-muted);
    font-size: 15px;
}

/* Confirmation */

.wsh-done {
    align-items: center;
    padding: clamp(24px, 5vw, 56px) 0;
    text-align: center;
}

.wsh-done__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--wsh-accent-soft);
    color: var(--wsh-accent);
}

.wsh-done__icon svg {
    width: 40px;
    height: 40px;
}

.wsh-done.is-paid .wsh-done__icon {
    background: #e6f6ee;
    color: var(--wsh-success);
    animation: wsh-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.wsh-done.is-failed .wsh-done__icon {
    background: #fdecea;
    color: #c0392b;
}

@keyframes wsh-pop {
    from {
        transform: scale(0.6);
    }
}

.wsh-done__text {
    max-width: 480px;
    margin: 0 !important;
    color: var(--wsh-muted);
    font-size: 17px;
    line-height: 1.6;
}

.wsh-done .wsh-step__actions {
    justify-content: center;
}

/* Récapitulatif latéral */

.wsh-checkout__aside {
    position: sticky;
    top: 24px;
}

.wsh-summary-toggle {
    display: none;
}

.wsh-summary__lines {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--wsh-line);
    list-style: none;
}

.wsh-mini {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.wsh-mini__media {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff, var(--wsh-accent-soft));
}

.wsh-mini__media img {
    width: 100%;
    height: 100% !important;
    border-radius: inherit;
    object-fit: cover;
}

.wsh-mini__qty {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--wsh-ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    box-sizing: border-box;
}

.wsh-mini__name {
    color: var(--wsh-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.wsh-mini__price {
    color: var(--wsh-ink);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.wsh-checkout.is-complete .wsh-checkout__aside {
    opacity: 0.75;
}

/* ------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 1024px) {
    .wsh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wsh-cart,
    .wsh-checkout {
        grid-template-columns: minmax(0, 1fr);
    }

    .wsh-cart .wsh-summary {
        position: static;
    }

    .wsh-checkout__main {
        max-width: none;
        min-height: 0;
    }

    /* Le récapitulatif passe au-dessus du tunnel, replié. */
    .wsh-checkout__aside {
        position: static;
        order: -1;
    }

    .wsh-summary-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 20px;
        border: 0;
        border-radius: var(--wsh-radius-sm);
        background: var(--wls-grey-bg);
        color: var(--wsh-accent-dark);
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }

    .wsh-summary-toggle strong {
        color: var(--wsh-ink);
        font-size: 17px;
    }

    .wsh-summary--checkout {
        display: none;
        margin-top: 8px;
    }

    .is-summary-open .wsh-summary--checkout {
        display: block;
    }
}

@media (max-width: 767px) {
    .wsh {
        padding-bottom: 64px;
    }

    .wsh-spotlight,
    .wsh-product {
        grid-template-columns: minmax(0, 1fr);
    }

    .wsh-spotlight {
        margin-top: -20px;
        padding: 16px 16px 28px;
    }

    .wsh-spotlight .wsh-button,
    .wsh-not-found .wsh-button {
        width: 100%;
    }

    .wsh-trust--strip {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 24px 20px;
    }

    .wsh-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wsh-breadcrumb {
        padding: 16px 0;
    }

    .wsh-buy {
        position: static;
    }

    .wsh-buy__form {
        padding: 16px;
    }

    .wsh-gallery__thumb {
        width: 68px;
        height: 68px;
    }

    .wsh-line {
        grid-template-columns: 80px minmax(0, 1fr) 40px;
        grid-template-areas:
            "media info remove"
            "media qty total";
        gap: 10px 14px;
        padding: 18px 0;
    }

    .wsh-line__media {
        grid-area: media;
        align-self: start;
    }

    .wsh-line__info {
        grid-area: info;
    }

    .wsh-line__qty {
        grid-area: qty;
        justify-self: start;
    }

    .wsh-line__total {
        grid-area: total;
    }

    .wsh-line__remove {
        grid-area: remove;
        align-self: start;
    }

    .wsh-address,
    .wsh-name-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .wsh-step__actions .wsh-button {
        width: 100%;
    }

    .wsh-step__actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .wsh-input--xl {
        min-height: 58px;
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wsh *,
    .wsh *::before {
        animation: none !important;
        transition: none !important;
    }

    .wsh .wsh-spinner {
        animation: wsh-spin 1.6s linear infinite !important;
    }
}
