.cn-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.cn-swatch-item {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ✴️ Animation au survol */
.cn-swatch-item:hover {
    transform: scale(1.08);
    box-shadow: 0 0 4px rgba(0,0,0,0.15);
    border-color: #888;
}

/* ✅ État actif (sélectionné) */
.cn-swatch-item.active {
    border-color: #2e3a8c !important;
    box-shadow: 0 0 0 2px #2e3a8c40; /* léger halo autour */
    transform: scale(1.05);
}

/* 🌈 Tooltip */
.cn-swatch-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, bottom 0.2s ease;
}

.cn-swatch-item:hover .cn-swatch-tooltip {
    opacity: 1;
    bottom: 130%;
}

/* 🧩 Alignement WooCommerce */
table.variations tr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

table.variations .label {
    line-height: 14px !important;
    font-size: 14px;
}

/* 🔹 Base */
.cn-attr-group ul {
    list-style: none;
    padding-left: 0;
}

/* 🎨 Swatch Couleur */
.cn-swatch-item-color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: 0.2s;
}

/* 🏷️ Swatch Label */
.cn-swatch-item-label {
    padding: 4px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
    font-size: 13px;
    line-height: 26px;
    transition: 0.2s;
}

/* Effet hover/actif uniformisé pour label et couleur */
.cn-swatch-item-label:hover,
.cn-swatch-item-color:hover {
    border-color: #999;
}

.cn-swatch-item-label.active,
.cn-swatch-item-color.active {
    border-color: #2e3a8c;
    background-color: #eef0ff;
    box-shadow: 0 0 0 2px #2e3a8c40;
}





/* === Supprime les flèches ↑↓ sur les champs quantité === */

/* Chrome, Safari, Edge, Opera */
.cn-quantity-wrapper .quantity input.qty::-webkit-outer-spin-button,
.cn-quantity-wrapper .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.cn-quantity-wrapper .quantity input.qty[type=number] {
    -moz-appearance: textfield;
}
.cn-quantity-wrapper .quantity input.qty {
    appearance: none;
    background: transparent;
}
/* === Quantité moderne avec + / - === */
.cn-quantity-wrapper .quantity {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0px;
    overflow: hidden;
    background: #fff;
    height: 40px;
    flex-direction: row;
    max-width: max-content;
    border: 1px solid #e3e3e3;
    margin-bottom: 15px !important;
}

.cn-quantity-wrapper .quantity input.qty {
    border: none !important;
    width: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    outline: none;
}

.cn-qty-btn {
    background: transparent !important;
    border: none;
    width: 40px;
    height: 100%;
    font-size: 17px;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px !important;
}
.cn-qty-btn:hover {
    background: #e5e5e5;
}

.single-product .single_add_to_cart_button{
    width: 100%;
    margin-left: 0px !important;
    min-height: 45px;
}

.single-product .reset_variations{
    display: block;
    margin-top: -10px !important;
}


@media (max-width: 600px) {
    .cn-quantity-wrapper .quantity { height: 44px; }
    .cn-qty-btn { width: 36px; font-size: 18px; }
    .cn-quantity-wrapper .quantity input.qty { width: 50px; }
}




