.sleek-configurator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    font-family: Arial;
}

/* LEFT */
.sleek-left {
    min-width: 0;
}

.sleek-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.25;
    color: #fff;
}

.sleek-price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px 0;
}

.sleek-price {
    font-size: 32px;
    font-weight: 800;
    color: #a3d609;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

/* Prix normal (sans promo) */
.sleek-price .woocommerce-Price-amount {
    color: #a3d609;
}

/* Prix barré (ancien prix en promo) */
.sleek-price del {
    font-size: 20px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.sleek-price del .woocommerce-Price-amount {
    color: #999;
}

/* Prix promo */
.sleek-price ins {
    text-decoration: none;
    color: #a3d609;
}

.sleek-price .woocommerce-Price-currencySymbol {
    font-size: 22px;
}

.sleek-stock {
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.sleek-stock.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.sleek-stock.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.sleek-connector-desc {
    margin-top: 12px;
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
}

.sleek-connector-desc p {
    margin: 0 0 6px 0;
}

.sleek-description {
    margin-top: 20px;
}

.sleek-description h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sleek-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0 0 10px 0;
}

.sleek-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    background: #ffffff; /* blanc obligatoire pour mix-blend-mode: multiply */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

/* Calque couleur — masqué à la forme de la dragonne */
#sleek-color-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    /* background-color et mask-image définis dynamiquement par JS */
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: background-color 0.3s ease;
}

/* Image de base au-dessus du calque, avec multiply */
#sleek-product-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease;
}

/* RIGHT */
.sleek-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #000;
    padding: 24px;
    border-radius: 16px;
    color: #fff;
}

.step {
    padding: 14px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #111;
}

.step h3 {
    font-size: 13px;
    margin-bottom: 10px;
    color: #fff;
}

/* BUTTONS — modèle & connecteur */
.step button:not(.sleek-color-btn) {
    margin: 4px;
    padding: 10px 12px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step button:not(.sleek-color-btn) img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.step button:not(.sleek-color-btn).active {
    background: #fff;
    color: #000;
    border-color: #a3d609;
    box-shadow: 0 0 0 1px #a3d609;
}

/* BUTTONS — swatches couleur */
.sleek-color-btn {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid transparent;
    margin: 4px;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
    transition: border-color 0.15s, transform 0.15s;
    vertical-align: middle;
}

.sleek-color-btn:hover {
    transform: scale(1.15);
}

.sleek-color-btn.active {
    border-color: #a3d609;
    box-shadow: 0 0 0 2px #a3d609;
}

/* PROGRESS BAR */
.sleek-progress-bar {
    width: 100%;
    height: 3px;
    background: #222;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

#sleek-progress-fill {
    height: 100%;
    width: 0%;
    background: #a3d609;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* HINT */
#sleek-hint {
    font-size: 13px;
    color: #a3d609;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    transition: opacity 0.3s ease;
}

.sleek-hint-arrow {
    display: inline-block;
    animation: sleek-pulse-arrow 1s ease-in-out infinite;
}

@keyframes sleek-pulse-arrow {
    0%, 100% { transform: translateX(0);   opacity: 1; }
    50%       { transform: translateX(4px); opacity: 0.5; }
}

/* PULSE sur le premier step */
@keyframes sleek-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(163, 214, 9, 0); }
    50%       { box-shadow: 0 0 0 5px rgba(163, 214, 9, 0.35); }
}

.sleek-pulse [data-step="type"] button:not(.active) {
    animation: sleek-pulse-glow 1.5s ease-in-out infinite;
}

/* HIDE */
.hidden {
    display: none;
}

/* SUMMARY */
#sleek-summary {
    font-size: 14px;
    margin-bottom: 10px;
}

#sleek-add-to-cart {
    width: 100%;
    padding: 14px;
    background: #a3d609;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
    color: #000;
}

#sleek-add-to-cart:hover:not(:disabled) {
    background: #8ab508;
}

#sleek-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#sleek-add-to-cart.success {
    background: #4caf50;
    color: #fff;
}

#sleek-add-to-cart svg {
    display: block;
}

/* Messages panier */
#sleek-cart-message {
    margin-top: 8px;
    font-size: 14px;
    border-radius: 6px;
    padding: 0;
}

#sleek-cart-message.sleek-success {
    color: #2e7d32;
    padding: 8px 10px;
    background: #e8f5e9;
}

#sleek-cart-message.sleek-error {
    color: #c62828;
    padding: 8px 10px;
    background: #ffebee;
}

#sleek-cart-message a {
    color: inherit;
    font-weight: bold;
}

/* ─── RESPONSIVE MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .sleek-configurator {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 16px auto;
        padding: 0;
    }

    .sleek-left {
        order: 1;
    }

    .sleek-right {
        order: 2;
        padding: 16px;
        border-radius: 12px;
    }

    /* Container carré pour garder le calque aligné */
    .sleek-image {
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    /* Classe appliquée par JS quand l'image sort de l'écran */
    .sleek-image.sleek-sticky {
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: var(--sleek-sticky-width, 168px);
        max-width: var(--sleek-sticky-width, 168px);
        z-index: 1000;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }

    .sleek-title {
        font-size: 22px;
    }

    .sleek-price {
        font-size: 26px;
    }

    /* Boutons connecteur en ligne */
    .step button:not(.sleek-color-btn) img {
        width: 70px;
        height: 70px;
    }

    /* Swatches couleur légèrement plus grandes pour le touch */
    .sleek-color-btn {
        width: 38px;
        height: 38px;
    }
}