/**
 * Custom Box Builder - Styles mis à jour selon les maquettes
 * Fichier: assets/css/builder-updated.css
 */

:root {
    --primary-color: #F98C6E;
    --primary-light: #FFB5A0;
    --secondary-color: #89D5C9;
    --text-color: #333;
    --text-light: #666;
    --light-gray: #F5F5F5;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --pink-light: #FFE4E0;
    --badge-bestseller: #FF8B7B;
    --badge-new: #C89FF5;
    --badge-stock: #FFB5A0;
    --badge-tendance: #FF6B9D;
}

* {
    box-sizing: border-box;
}

/* ===============================================
   ATTRIBUTS DE PRODUIT (Couleurs, Tailles, etc.)
   =============================================== */
.cbb-product-attribute {
    margin-bottom: 20px;
}

.cbb-product-attribute label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.cbb-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Style pour les couleurs (cercles) */
.cbb-attribute-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cbb-attribute-color:hover {
    transform: scale(1.1);
}

.cbb-attribute-color .color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cbb-attribute-color.selected .color-circle {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(249, 140, 110, 0.2);
}

.cbb-attribute-color .color-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.cbb-attribute-color.selected .color-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Badge "Sélectionné" */
.cbb-attribute-color.selected::after {
    content: "Sélectionné";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(249, 140, 110, 0.3);
}

.cbb-attribute-color {
    position: relative;
    padding-top: 12px;
}

/* Style pour les tailles/autres attributs (boutons) */
.cbb-attribute-button {
    min-width: 50px;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.cbb-attribute-button:hover {
    border-color: var(--primary-light);
    background: #FFF5F3;
    transform: translateY(-2px);
}

.cbb-attribute-button.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(249, 140, 110, 0.3);
}

/* Badge "Sélectionné" pour les boutons */
.cbb-attribute-button.selected::after {
    content: "Sélectionné";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(249, 140, 110, 0.3);
}

/* Animation pour attribut obligatoire non sélectionné */
.cbb-attribute-options.cbb-attribute-required {
    animation: shake 0.5s;
    border: 2px dashed var(--error-color);
    padding: 10px;
    border-radius: 8px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Message d'erreur pour attributs */
.cbb-attribute-error {
    background: #FEE;
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cbb-attribute-options {
        gap: 10px;
    }
    
    .cbb-attribute-color .color-circle {
        width: 35px;
        height: 35px;
    }
    
    .cbb-attribute-button {
        min-width: 45px;
        padding: 8px 16px;
        font-size: 13px;
    }
}


.cbb-add-gift-controls {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

/* Inline chooser that replaces the button on hover/focus */
.cbb-add-gift-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 8px 8px 0 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    pointer-events: none;
    width: 100%;
    justify-content: center;
    height: 0;
    overflow: hidden;
}

.cbb-add-gift-controls:hover .cbb-add-gift-qty,
.cbb-add-gift-controls:focus-within .cbb-add-gift-qty,
.cbb-add-gift-controls.hover .cbb-add-gift-qty {
    opacity: 1;
    transform: translateY(-4px);
    pointer-events: auto;
    height: auto;
}

/* Hide the add button while chooser is visible to create the replacement effect */
.cbb-add-gift-btn {
    transition: all 0.16s ease;
    border-radius: 4px;
}

.cbb-add-gift-controls:hover .cbb-add-gift-btn,
.cbb-add-gift-controls:focus-within .cbb-add-gift-btn,
.cbb-add-gift-controls.hover .cbb-add-gift-btn {
    /* collapse completely so it behaves like it doesn't exist */
    border-radius: 0 0 8px 8px;
    transform: translateY(-4px);
}

.cbb-add-gift-qty button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cbb-add-gift-qty button:active,
.cbb-add-gift-qty button:focus {
    outline: none;
    opacity: 0.85;
}

.cbb-add-gift-qty-display {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    color: white;
}

.cbb-step.active .cbb-step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.cbb-step.completed .cbb-step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.cbb-step.completed .cbb-step-number::after {
    content: '✓';
}

.cbb-step-label {
    font-size: 14px;
    color: var(--text-color);
    text-align: center;
    max-width: 120px;
}

/* ===== EN-TÊTE DES ÉTAPES (Selon maquette) ===== */
.cbb-step-header-top {
    margin-bottom: 30px;
}

.step-label {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    letter-spacing: 1.5px;
}

.step-title {
    font-size: 32px;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-title .title-icon {
    font-size: 36px;
    vertical-align: middle;
}

/* Indicateur de progression dans chaque étape */
.step-progress-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.step-progress-indicator .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* font-weight: bold; */
    font-size: 14px;
    color: var(--text-color);
}

.step-progress-indicator .step-circle.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-progress-indicator .step-circle.completed {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-progress-indicator .step-text {
    font-size: 14px;
    color: var(--text-color);
    margin-right: 15px;
}

/* Rendre les étapes cliquables - uniquement les étapes complétées pour revenir en arrière */
.step-progress-indicator .step-circle.completed.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-progress-indicator .step-circle.completed.clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #e67a5a;
    border-color: #e67a5a;
}

/* Les textes sont cliquables seulement s'ils correspondent à une étape complétée */
.step-progress-indicator .step-text.clickable {
    transition: all 0.3s ease;
    cursor: default;
}

/* Classe dynamique ajoutée par JS pour les textes d'étapes complétées */
.step-progress-indicator .step-text.is-clickable {
    cursor: pointer;
}

.step-progress-indicator .step-text.is-clickable:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Les étapes actives et futures ne sont pas cliquables visuellement */
.step-progress-indicator .step-circle.active.clickable,
.step-progress-indicator .step-circle:not(.completed):not(.active).clickable {
    cursor: default;
}

/* ===== CONTENT ===== */
.cbb-content {
    display: block;
    width: 100%;
}

.cbb-main-content {
    background: white;
    padding: 30px;
    min-height: 500px;
}

/* ===== FILTRES EN UNE SEULE LIGNE ===== */
.cbb-filters-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.cbb-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.cbb-category-item {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cbb-category-item:hover {
    background: var(--pink-light);
    border-color: var(--primary-color);
}

.cbb-category-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: bold;
}

.filters-left {
    display: flex;
    gap: 15px;
    flex: 1;
    flex-wrap: nowrap;
}

.filters-right {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.cbb-filter {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.cbb-filter:hover,
.cbb-filter:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===== LAYOUT 2 COLONNES ===== */
.cbb-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cbb-boxes-column,
.cbb-products-column {
    min-height: 400px;
}

/* ===== RÉCAPITULATIF (Colonne droite) ===== */
.cbb-recap-column {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.cbb-recap-box {
    background: var(--pink-light);
    padding: 20px;
    border-radius: 8px;
    border: none;
}

.recap-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.gift-icon {
    font-size: 24px;
}

.recap-header h3 {
    font-size: 16px;
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

.recap-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 15px;
}

.recap-total .price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.recap-subtitle {
    font-size: 14px;
    margin: 20px 0 10px 0;
    color: var(--text-color);
    font-weight: 600;
}

.recap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.recap-item:last-child {
    border-bottom: none;
}

/* ===== GRILLE DES BOXES (Étape 1) ===== */
.cbb-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cbb-box-item {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.cbb-box-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cbb-box-item.selected {
    border-color: var(--primary-color);
    border-width: 3px;
    background: var(--pink-light);
}

.cbb-box-item.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.cbb-box-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 15px;
    position: relative;
}

.cbb-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbb-box-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.cbb-box-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

/* ===== GRILLE DES CADEAUX (Étape 2) ===== */
.cbb-gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cbb-gift-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
}

.cbb-gift-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* BADGES PRODUITS - Position correcte selon maquette */
.cbb-gift-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 10;
    letter-spacing: 0.5px;
}

.cbb-gift-badge.badge-best-seller,
.cbb-gift-badge:not([class*="badge-"]) {
    background: #FF8B7B;
}

.cbb-gift-badge.badge-new,
.cbb-gift-badge.badge-nouveaute {
    background: #D291BC;
}

.cbb-gift-badge.badge-tendance {
    background: #6CB4EE;
}

.cbb-gift-badge.badge-sale,
.cbb-gift-badge.badge-stock-final {
    background: #FFB4A2;
}

.cbb-gift-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
}

.cbb-gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbb-gift-item h4 {
    font-size: 14px;
    margin-bottom: 8px;
    min-height: 40px;
    color: var(--text-color);
}

.cbb-gift-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 12px;
}

.cbb-add-gift-btn {
    width: 100%;
    padding: 10px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cbb-add-gift-btn:hover {
    background: #71C5CB;
    transform: translateY(-2px);
}

.cbb-add-gift-btn .icon {
    font-size: 18px;
}

/* ===== GRILLE DES CARTES (Étape 3) ===== */
.cbb-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.cbb-card-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    background: white;
    transition: all 0.3s ease;
}

.cbb-card-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cbb-card-item.selected {
    border-color: var(--primary-color);
    border-width: 2px;
    background: var(--pink-light);
}

.cbb-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 10;
}

.cbb-card-image-clickable {
    cursor: pointer;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.cbb-card-image-clickable:hover {
    transform: scale(1.05);
}

.cbb-card-image-clickable img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbb-card-item h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.cbb-card-price {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.cbb-select-card-btn {
    width: 100%;
    padding: 8px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cbb-select-card-btn:hover {
    background: #71C5CB;
}

.step3-bottom-buttons {
    margin-top: 30px;
    text-align: center;
}

/* ===== BOUTONS NAVIGATION ===== */
.cbb-navigation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-start;
}

.cbb-back-btn {
    padding: 12px 24px;
    background: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cbb-back-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cbb-continue-btn {
    padding: 12px 30px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.cbb-continue-btn:hover:not(:disabled) {
    background: #71C5CB;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.cbb-continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.cbb-no-card-btn {
    padding: 12px 24px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cbb-no-card-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== CONTRÔLES QUANTITÉ ===== */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.qty-minus,
.qty-plus {
    width: 25px;
    height: 25px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-minus:hover,
.qty-plus:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.remove-gift {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 12px;
    margin-top: 5px;
    transition: opacity 0.3s ease;
}

.remove-gift:hover {
    opacity: 0.7;
}

/* ===== MODAL CARTE PERSONNALISÉE ===== */
.cbb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cbb-modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cbb-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.cbb-modal-close:hover {
    color: var(--error-color);
}

.cbb-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cbb-modal-content .modal-subtitle {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.cbb-modal-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
}

.cbb-modal-content .modal-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.cbb-modal-content .modal-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cbb-modal-content .modal-note {
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin-bottom: 20px;
    margin-top: -5px;
}

#card-message {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    margin-bottom: 5px;
}

#card-message:focus {
    outline: none;
    border-color: var(--primary-color);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.cbb-btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cbb-btn-primary:hover {
    background: #71C5CB;
    transform: translateY(-2px);
}

.cbb-btn-secondary {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cbb-btn-secondary:hover {
    background: #ff6b59;
    transform: translateY(-2px);
}

/* ===== ÉTAPE 4 - PANIER (2 COLONNES) ===== */
.cart-main-title {
    color: var(--primary-color);
    font-size: 32px;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.cbb-cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.cart-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cbb-cart-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.cbb-cart-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.cbb-cart-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.modify-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.modify-link:hover {
    color: #ff6b59;
}

/* Items du panier */
.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr 100px 40px;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item:first-child {
    padding-top: 0;
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-controls button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-qty-controls button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-qty-controls span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    text-align: right;
    color: var(--text-color);
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: var(--error-color);
}

.card-message-preview {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin: 5px 0 0 0;
}

/* Sous-total du coffret */
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--pink-light);
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 15px;
}

.cart-items {
    min-height: 40px;
}

.cart-item-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.cart-item-simple:last-child {
    border-bottom: none;
}

.cart-item-simple .item-price {
    font-weight: 600;
    color: var(--text-color);
}

.cart-item-simple .item-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-simple .qty-text {
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.card-message-text {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.empty-message {
    color: #999;
    font-size: 14px;
    margin: 10px 0;
}

/* Détails des prix (colonne droite) */
.cart-price-section {
    background: var(--light-gray);
}

.price-details-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
}

.price-row.total-row {
    border-top: 2px solid var(--text-color);
    padding-top: 15px;
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
}

/* Code promotionnel */
.cbb-promo-input {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cbb-promo-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.cbb-promo-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.apply-promo-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
}

.apply-promo-btn:hover {
    background: #ff6b59;
}

/* Points de fidélité */
.loyalty-section {
    background: var(--secondary-color);
    color: white;
}

.loyalty-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.loyalty-icon {
    font-size: 30px;
}

.loyalty-text {
    flex: 1;
}

.loyalty-text p {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.loyalty-detail {
    font-size: 13px;
    opacity: 0.9;
}

/* Boutons d'action panier */
.cart-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cbb-checkout-btn,
.cbb-create-new-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.cbb-checkout-btn {
    background: var(--secondary-color);
    color: white;
}

.cbb-checkout-btn:hover {
    background: #71C5CB;
    transform: translateY(-2px);
}

.cbb-create-new-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cbb-create-new-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.cart-submit a {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 14px;
}

.cart-submit a:hover {
    color: #ff6b59;
}

/* ===== NOTIFICATIONS ===== */
.cbb-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.cbb-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cbb-notification.success {
    background: var(--success-color);
}

.cbb-notification.error {
    background: var(--error-color);
}

.cbb-notification.info {
    background: var(--secondary-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cbb-step-content {
    animation: fadeIn 0.4s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cbb-two-column-layout {
        grid-template-columns: 1fr;
    }

    .cbb-recap-column {
        position: relative;
        top: 0;
    }

    .cbb-boxes-grid,
    .cbb-gifts-grid,
    .cbb-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    /* Panier responsive */
    .cbb-cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .step-title {
        font-size: 24px;
    }

    .cbb-progress {
        flex-wrap: wrap;
        padding: 0;
    }

    .cbb-step {
        width: 50%;
        margin-bottom: 20px;
    }

    .cbb-progress::before {
        display: none;
    }

    .cbb-filters-row {
        flex-direction: column;
    }

    .filters-left {
        width: 100%;
        flex-direction: column;
    }

    .cbb-filter {
        width: 100%;
    }

    .cbb-boxes-grid,
    .cbb-gifts-grid,
    .cbb-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .cbb-main-content {
        padding: 20px;
    }

    .cbb-modal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .cbb-boxes-grid,
    .cbb-gifts-grid,
    .cbb-cards-grid {
        grid-template-columns: 1fr;
    }

    .step-label {
        font-size: 10px;
    }

    .step-title {
        font-size: 20px;
    }

    .cbb-step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

main#content {
    max-width: 1240px;
    width: 90%;
}

div#cbb-container {
    padding: 0;
}

.cbb-main-content {
    padding: 0;
}
.page-id-916  .page-header {
    display: none;
}
.step-progress-indicator .step-circle.completed {
    background: #F98C6E !important;
    border-color: #F98C6E !important;
}

/* ===== SHORTCODES - GRILLES PRODUITS ===== */
.cbb-shortcode-section {
    margin: 40px 0;
}

.cbb-section-title {
    font-size: 32px;
    color: var(--text-color);
    margin: 0 0 30px 0;
    text-align: center;
    font-weight: bold;
}

.cbb-products-grid {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.cbb-products-grid.cbb-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cbb-products-grid.cbb-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cbb-products-grid.cbb-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cbb-products-grid.cbb-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.cbb-product-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cbb-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cbb-product-badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cbb-product-badge {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.cbb-product-badge.badge-new {
    background: #4CAF50;
}

.cbb-product-badge.badge-sale {
    background: #f44336;
}

.cbb-product-badge.badge-stock {
    background: #ff9800;
}

.cbb-product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: 2px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.cbb-product-wishlist:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cbb-product-wishlist.active {
    background: #F98C6E;
    color: white;
    border-color: #F98C6E;
}

.cbb-product-image {
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cbb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cbb-product-card:hover .cbb-product-image img {
    transform: scale(1.05);
}

.cbb-product-info {
    text-align: center;
}

.cbb-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    min-height: 40px;
    line-height: 1.3;
}

.cbb-product-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cbb-product-title a:hover {
    color: var(--primary-color);
}

.cbb-product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    margin: 10px 0 15px 0;
}

.cbb-product-add-btn {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cbb-product-add-btn:hover {
    background: #71C5CB;
    transform: translateY(-2px);
}

.cbb-product-add-btn .cbb-icon {
    font-size: 18px;
}

.cbb-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cbb-btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Shortcodes */
@media (max-width: 1024px) {
    .cbb-products-grid.cbb-columns-4,
    .cbb-products-grid.cbb-columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cbb-products-grid.cbb-columns-3,
    .cbb-products-grid.cbb-columns-4,
    .cbb-products-grid.cbb-columns-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cbb-section-title {
        font-size: 24px;
    }

    .cbb-product-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .cbb-products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== NOTIFICATIONS ===== */
.cbb-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    min-width: 300px;
    max-width: 400px;
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cbb-notification.show {
    right: 20px;
}

.cbb-notification-success {
    border-left: 4px solid #4CAF50;
}

.cbb-notification-error {
    border-left: 4px solid #f44336;
}

.cbb-notification-info {
    border-left: 4px solid #2196F3;
}

/* ========================================
   PRODUCT DETAILS PAGE
   ======================================== */

.cbb-product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Galerie d'images */
.cbb-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cbb-product-main-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.cbb-product-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.cbb-product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.cbb-product-thumbnail {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.cbb-product-thumbnail:hover,
.cbb-product-thumbnail.active {
    border-color: var(--primary-color);
}

.cbb-product-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Informations produit */
.cbb-product-details-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cbb-product-details-badge {
    display: inline-block;
    background: #FF8B7B;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbb-product-details-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.cbb-product-details-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.cbb-product-short-description {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}

/* Section ajout à la box */
.cbb-product-add-section {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    background: #fafafa;
}

.cbb-product-add-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.cbb-product-quantity {
    margin-bottom: 20px;
}

.cbb-product-quantity label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.cbb-quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 150px;
}

.cbb-qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.cbb-qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.cbb-qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.cbb-product-add-to-box {
    width: 100%;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.cbb-product-add-to-box:hover {
    background: #e57558;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 140, 110, 0.4);
}

.cbb-product-single-purchase-section {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.cbb-product-single-purchase-section p {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
}

.cbb-single-purchase-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
}

/* Accordéon */
.cbb-product-accordion {
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.cbb-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.cbb-accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
}

.cbb-accordion-header:hover {
    color: var(--primary-color);
}

.cbb-accordion-icon {
    font-size: 20px;
}

.cbb-accordion-header span:nth-child(2) {
    flex: 1;
}

.cbb-accordion-toggle {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.cbb-accordion-item.active .cbb-accordion-toggle {
    transform: rotate(45deg);
}

.cbb-accordion-content {
    display: none;
    padding: 20px 0;
}

.cbb-accordion-content p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.cbb-attributes-table,
.cbb-info-table {
    width: 100%;
    border-collapse: collapse;
}

.cbb-attributes-table th,
.cbb-info-table th {
    text-align: left;
    padding: 10px;
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
    width: 40%;
}

.cbb-attributes-table td,
.cbb-info-table td {
    padding: 10px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.payment-methods {
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .cbb-product-details {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .cbb-product-details-info h1 {
        font-size: 22px;
    }

    .cbb-product-details-price {
        font-size: 20px;
    }

    .cbb-product-add-section {
        padding: 20px;
    }

    .cbb-accordion-header {
        font-size: 14px;
        padding: 15px 0;
    }

    .cbb-attributes-table th,
    .cbb-info-table th {
        width: 35%;
        font-size: 13px;
    }

    .cbb-attributes-table td,
    .cbb-info-table td {
        font-size: 13px;
    }
}

/* ========================================
   PAGINATION
   ======================================== */

.cbb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 50px 0 40px;
    padding: 20px 0;
}

.cbb-pagination-prev,
.cbb-pagination-next,
.cbb-pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #666;
    background: white;
    border: 1px solid #E0E0E0;
    transition: all 0.3s;
}

.cbb-pagination-prev:hover,
.cbb-pagination-next:hover,
.cbb-pagination-number:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: white;
}

.cbb-pagination-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 700;
}

.cbb-pagination-prev.disabled,
.cbb-pagination-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.cbb-pagination-dots {
    color: #999;
    font-weight: 700;
    padding: 0 5px;
}

/* ========================================
   SLIDERS (MEILLEURES VENTES & TU POURRAIS AUSSI AIMER)
   ======================================== */

.cbb-related-products-section,
.cbb-related-slider-section,
.cbb-best-sellers-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.cbb-related-header,
.cbb-best-sellers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.cbb-related-title,
.cbb-best-sellers-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 0;
}

.cbb-related-arrows,
.cbb-slider-arrows {
    display: flex;
    gap: 10px;
}

.cbb-slider-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.cbb-slider-arrow:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(249, 140, 110, 0.3);
}

.cbb-slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.cbb-related-slider,
.cbb-products-slider {
    position: relative;
    overflow: hidden;
}

.cbb-related-slider-track,
.cbb-products-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* Cartes produits dans le slider */
.cbb-products-slider-track .cbb-product-card,
.cbb-related-slider-track .cbb-product-card {
    flex: 0 0 auto;
    width: calc(25% - 15px); /* 4 cartes visibles par défaut */
    min-width: 250px;
}

@media (max-width: 1200px) {
    .cbb-products-slider-track .cbb-product-card,
    .cbb-related-slider-track .cbb-product-card {
        width: calc(33.333% - 14px); /* 3 cartes sur tablette */
    }
}

@media (max-width: 768px) {
    .cbb-products-slider-track .cbb-product-card,
    .cbb-related-slider-track .cbb-product-card {
        width: calc(50% - 10px); /* 2 cartes sur mobile */
    }
}

@media (max-width: 480px) {
    .cbb-products-slider-track .cbb-product-card,
    .cbb-related-slider-track .cbb-product-card {
        width: calc(100% - 20px); /* 1 carte sur petit mobile */
    }
}

/* ========================================
   FILTRES ONGLETS (MEILLEURES VENTES)
   ======================================== */

.cbb-filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
}

.cbb-filter-tabs::-webkit-scrollbar {
    height: 6px;
}

.cbb-filter-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cbb-filter-tabs::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.cbb-filter-tab {
    padding: 10px 25px;
    border-radius: 25px;
    border: 2px solid #E0E0E0;
    background: white;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.cbb-filter-tab:hover:not(.active) {
    border-color: var(--primary-light);
    background: #FFF5F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cbb-filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    pointer-events: none;
}

/* ========================================
   SLIDER WRAPPER & BOUTON
   ======================================== */

.cbb-best-sellers-slider-wrapper,
.cbb-related-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.cbb-best-sellers-slider,
.cbb-related-slider {
    flex: 1;
    overflow: hidden;
}

.cbb-products-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.cbb-best-sellers-slider-wrapper .cbb-slider-arrow,
.cbb-related-slider-wrapper .cbb-slider-arrow {
    flex-shrink: 0;
    z-index: 10;
}

.cbb-section-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 40px;
}

.cbb-section-button-wrapper {
    text-align: center;
    margin-top: 30px;
}

.cbb-section-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: var(--secondary-color);
    color: white;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cbb-section-button:hover {
    background: #6DBEB5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(137, 213, 201, 0.4);
}

/* ========================================
   PANIER STICKY (MODAL)
   ======================================== */

.cbb-sticky-cart {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
}

.cbb-sticky-cart.open {
    display: block;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateY(-50%) translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

.cbb-sticky-cart-header {
    padding: 20px;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cbb-sticky-cart-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.cbb-sticky-cart-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #666;
}

.cbb-sticky-cart-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cbb-sticky-cart-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: #FFF6F4; /* pale pink card */
    border-radius: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.cbb-sticky-cart-item:last-child {
    border-bottom: none;
}

.cbb-sticky-cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cbb-sticky-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbb-sticky-cart-item-info {
    flex: 1;
}

.cbb-sticky-cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px;
}

.cbb-sticky-cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.cbb-sticky-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cbb-sticky-cart-item-qty button {
    width: 34px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.08);
    background: white;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cbb-sticky-cart-qty-display {
    min-width: 44px;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.cbb-sticky-cart-footer {
    padding: 20px;
    border-top: 1px solid #E0E0E0;
}

.cbb-sticky-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cbb-sticky-cart-total-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cbb-sticky-cart-total-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.cbb-sticky-cart-checkout-btn {
    width: 100%;
    padding: 14px 18px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 18px rgba(113, 195, 192, 0.18);
}

.cbb-sticky-cart-checkout-btn:hover {
    background: #6DBEB5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(137, 213, 201, 0.4);
}

.cbb-sticky-cart-recently {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
}

.cbb-sticky-cart-recently h4 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin: 0 0 15px;
}

.cbb-sticky-cart-recently-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cbb-sticky-cart-recently-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.cbb-sticky-cart-recently-item:hover {
    transform: scale(1.05);
}

.cbb-sticky-cart-recently-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   PRODUCT GRID IMPROVEMENTS
   ======================================== */

.cbb-product-listing {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.cbb-products-header {
    text-align: center;
    margin-bottom: 40px;
}

.cbb-products-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.cbb-products-count {
    font-size: 16px;
    color: #666;
}

.cbb-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
}

.cbb-filters::-webkit-scrollbar {
    height: 6px;
}

.cbb-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cbb-filters::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.cbb-filters::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.cbb-filter,
.cbb-sort {
    padding: 10px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 25px;
    background: white;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cbb-filter:hover,
.cbb-sort:hover {
    border-color: var(--primary-light);
    background: #FFF5F2;
}

.cbb-filter:focus,
.cbb-sort:focus {
    outline: none;
    border-color: var(--primary-color);
}

.cbb-products-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.cbb-products-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.cbb-products-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.cbb-products-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.cbb-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    border: 1px solid #F0F0F0;
}

.cbb-product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.cbb-product-badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cbb-product-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    color: white;
}

.cbb-product-badge.badge-best-seller {
    background: var(--badge-bestseller);
}

.cbb-product-badge.badge-new,
.cbb-product-badge.badge-nouveaute {
    background: var(--badge-new);
}

.cbb-product-badge.badge-stock-final {
    background: var(--badge-stock);
}

.cbb-product-badge.badge-tendance {
    background: var(--badge-tendance);
}

.cbb-product-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cbb-product-wishlist:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.cbb-product-wishlist.active {
    background: #F98C6E;
    color: white;
    border-color: #F98C6E;
    transform: scale(1.1);
}

.cbb-product-image {
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #F5F5F5;
}

.cbb-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cbb-product-card:hover .cbb-product-image img {
    transform: scale(1.05);
}

.cbb-product-info {
    padding: 20px;
}

.cbb-product-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    min-height: 40px;
    line-height: 1.3;
}

.cbb-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.cbb-product-title a:hover {
    color: var(--primary-color);
}

.cbb-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cbb-product-add-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cbb-product-add-btn:hover {
    background: #6DBEB5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(137, 213, 201, 0.4);
}

.cbb-product-add-btn .cbb-icon {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .cbb-products-grid[data-columns="5"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .cbb-products-grid[data-columns="4"],
    .cbb-products-grid[data-columns="5"] {
        grid-template-columns: repeat(3, 1fr);
    }

    .cbb-sticky-cart {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .cbb-products-grid[data-columns="3"],
    .cbb-products-grid[data-columns="4"],
    .cbb-products-grid[data-columns="5"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .cbb-related-title,
    .cbb-best-sellers-title {
        font-size: 24px;
    }

    .cbb-sticky-cart {
        width: 90%;
        right: 5%;
    }

    /* Les filtres restent en ligne sur mobile aussi */
    .cbb-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Slider arrows plus petits sur mobile */
    .cbb-slider-arrow {
        width: 40px;
        height: 40px;
    }

    /* Ajuster les gaps entre les flèches et le slider */
    .cbb-best-sellers-slider-wrapper,
    .cbb-related-slider-wrapper {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cbb-products-grid {
        grid-template-columns: 1fr;
    }

    .cbb-sticky-cart-recently-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== SECTION PAIEMENT SANS ACCORDÉON ===== */
.cbb-payment-section {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.cbb-payment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cbb-payment-header .cbb-accordion-icon {
    font-size: 20px;
}

.cbb-payment-content {
    padding-left: 35px; /* Alignement avec l'icône */
}

.cbb-payment-content .payment-methods {
    margin-top: 0;
}
.cbb-modal-content {
    gap: 0 !important;
}

p.modal-subtitle {
    margin: 0 !important;
}

body .cbb-modal-content h2 {
    font-size: 26px !important;
}

button#create-new-choice {
    background: #f98c6e !important;
}

button#add-without-box-choice {
    border-color: #f98c6e !important;
}
