@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Couleurs principales - Design System */
    --background: #F5F7FA;
    --foreground: #003B66;
    --card: #ffffff;
    --card-foreground: #003B66;
    --primary: #003B66;
    --primary-foreground: #ffffff;
    --secondary: #01A6C7;
    --secondary-foreground: #ffffff;
    --accent: #01A6C7;
    --accent-foreground: #ffffff;
    --muted: #F5F7FA;
    --muted-foreground: #5A7A8C;
    --border: #D8E2EA;
    --radius: 0.75rem;
    --input: #E2E8F0;
    --ring: #01A6C7;
    --destructive: #ff4444;
    --destructive-foreground: #ffffff;

    /* Variables existantes pour compatibilité */
    --bleu-fonce: #003B66;
    --turquoise: #01A6C7;
    --gris-clair: #F5F7FA;
    --blanc: #ffffff;
    --shadow-light: 0 2px 8px rgba(0, 59, 102, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 59, 102, 0.12);
    --border-radius: 0.75rem;
    --border-radius-small: 0.5rem;
    --border-radius-large: 1.5rem;
    --blue-gradient: linear-gradient(135deg, #01A6C7 0%, #0088A8 100%);
    --blue-gradient-light: linear-gradient(135deg, rgba(1, 166, 199, 0.1) 0%, rgba(0, 136, 168, 0.1) 100%);
    --white: #ffffff;
    --light-blue: #F5F7FA;
    --sky-blu: #01A6C7;
    --shadow: 0 4px 16px rgba(0, 59, 102, 0.12);
    --dark-blue: #003B66;
    --text-primary: #003B66;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --border-color: #E2E8F0;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Variable pour la largeur de la barre de progression (définie dynamiquement via JavaScript) */
    --progress-bar-width: 0%;
}

* {
    box-sizing: border-box;
}

#step1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.product-wrapper {
    background: linear-gradient(160deg, #f0f6fb 0%, #F5F7FA 60%, #eaf2f8 100%);
    padding: 28px;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    border: none;
}

.product-overview {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 59, 102, 0.10), 0 1px 4px rgba(0, 59, 102, 0.06);
    margin-bottom: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    flex: 1;
    border: 1px solid rgba(0, 59, 102, 0.07);
    display: flex;
    flex-direction: column;
}

.product-wrapper>.product-overview:first-child:not(.curabox-fixed) {
    flex: 1;

    margin-right: 0;

}

.product-overview.curabox-fixed {
    flex: 1;

    position: static;
    z-index: 1000;

    align-self: flex-start;

    max-height: 95vh;

    overflow-y: auto;

}

.product-overview .header {
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    color: var(--foreground);
    padding: clamp(16px, 3vw, 20px) clamp(16px, 4vw, 24px);
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    flex-wrap: wrap;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    border-bottom: 2px solid #e8f4f8;
    border-left: 4px solid #01A6C7;
}

.product-overview .header::before {
    display: none;
}

.product-overview:not(.curabox-fixed) .header {
    padding: clamp(16px, 3vw, 20px) clamp(17px, 4vw, 24px) ;
    min-height: auto ;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%) ;
    color: var(--foreground) ;
    border-bottom: 2px solid #e8f4f8 ;
    border-left: 4px solid #01A6C7 ;
}

.product-overview:not(.curabox-fixed) .header i {
    color: var(--primary) ;
}

.product-overview.curabox-fixed .header {
    padding: 20px 24px;
    min-height: auto;
    gap: 12px;
    align-content: center;
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    contain: none;
    justify-content: space-between;
    background: linear-gradient(135deg, #003B66 0%, #005a99 100%);
    color: #ffffff;
    border-bottom: none;
    border-left: none;
}

.product-overview.curabox-fixed .header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 25px;

    right: 25px;

    height: 60px;

    background: transparent;
    pointer-events: none;
    z-index: 100;

    clip-path: inset(0 0 0 0);
}

.product-overview.curabox-fixed .header>i,
.product-overview.curabox-fixed .header>h5,
.product-overview.curabox-fixed .header>.hint {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.product-overview .header i {
    font-size: clamp(18px, 4vw, 20px);
    color: var(--primary);
    flex-shrink: 0;
}

/* Icône turquoise pour header "Unsere Produkte" */
.product-overview:not(.curabox-fixed) .header i {
    color: var(--primary);
}

.product-overview.curabox-fixed .header i {
    font-size: 20px;
    color: #ffffff;
}

.product-overview.curabox-fixed .header h5 {
    color: #ffffff !important;
}

.product-overview .header h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(18px, 4vw, 25px);
    font-weight: bold;
    margin: 0;
    color: #003d66 ;
    flex: 1;
    min-width: 0;
    text-align: left;

    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

/* Filtre par taille (liste Unsere Produkte) */
#product-list-overview .product-size-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
#product-list-overview .product-size-filter .size-filter-label {
    font-size: 13px;
    color: #003d66;
    font-weight: 500;
    white-space: nowrap;
}
#product-list-overview .product-size-filter .size-filter-input {
    width: 72px;
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #003d66;
    background: var(--card);
}
#product-list-overview .product-size-filter .size-filter-input::placeholder {
    color: #999;
}
#product-list-overview .product-size-filter .size-filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(1, 166, 199, 0.2);
}
@media (max-width: 576px) {
    #product-list-overview .product-size-filter {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    #product-list-overview .product-size-filter .size-filter-input {
        flex: 1;
        min-width: 60px;
    }
}

.product-overview .header .hint {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    margin-left: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: static;
    visibility: hidden;
    height: 0;
    overflow: visible;
}





/* Positionner le pourcentage sur la barre de progression comme indicateur */
.product-overview .header {
    position: relative;
}

.product-overview .header .progress {
    position: relative;
}


.product-overview .header .progress {
    background: var(--muted);
    border-radius: 10px;
    height: 12px;
    width: 100%;

    flex-basis: 100%;

    overflow: visible;
    box-shadow: none;
    margin-top: 8px;

    order: 10;

    box-sizing: border-box;
    position: relative;

}

.product-overview.curabox-fixed .header .progress {
    position: relative;
    z-index: 0;
    margin-top: 8px;

    height: 12px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;

}

/* Positionner l'indicateur de pourcentage directement sur la barre de progression */
.product-overview.curabox-fixed .header .progress #progress-percentage {
    position: absolute;
    top: 50%;
    left: clamp(22px, var(--progress-width, 0%), calc(100% - 22px));
    transform: translateX(-50%) translateY(-50%);
    background: #003d66;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 45px;
    max-width: fit-content;
    text-align: center;
    pointer-events: none;
    transition: left 0.5s ease;
    display: block;
    line-height: 1.4;
    visibility: visible;
    border: none;
    width: auto;
    margin: 0;
}

.product-overview .header::before {
    content: '';
    flex-basis: 100%;
    width: 100%;
    order: 9;

    height: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-overview.curabox-fixed .header::before {
    content: '';
    flex-basis: 100%;
    width: 100%;
    height: 0;
    order: 9;

    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-overview.curabox-fixed .header>i {
    flex-shrink: 0;
    width: 24px;

    max-width: 24px;
    min-width: 24px;
    box-sizing: border-box;
}

.product-overview.curabox-fixed .header>.hint {
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    background: transparent;
}



.product-overview .header .progress-bar {
    width: var(--progress-bar-width, 0%);
    background: linear-gradient(90deg, #01A6C7 0%, #005a99 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    height: 100%;
    position: relative;
    overflow: visible;
    box-shadow: 0 0 8px rgba(1, 166, 199, 0.4);
}

/* Indicateur rectangulaire arrondi à la fin de la barre de progression */
/* L'indicateur sera créé via le pourcentage positionné sur la barre */

/* Duplication supprimée - style défini ligne 264 */

.product-overview .content {
    padding: clamp(16px, 4vw, 20px) clamp(12px, 3vw, 20px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.5vw, 14px);
    background: #f8fbff;
}

.product-overview:not(.curabox-fixed) .content {
    background: #f8fbff;
}

.product-overview .content .product {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 20px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(12px, 3vw, 16px);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Cartes de produits dans "Unsere Produkte" - fond blanc avec bordure subtile */
.product-overview:not(.curabox-fixed) .content .product {
    background: #ffffff;
    border: 1px solid #e8f0f5;
    box-shadow: 0 1px 6px rgba(0, 59, 102, 0.06);
}

/* Produit sélectionné dans "Unsere Produkte" - bordure turquoise et fond turquoise clair */
.product-overview:not(.curabox-fixed) .content .product.selected,
.product-overview:not(.curabox-fixed) .content .product:has(.prod-btn i.fa-check-circle) {
    background: linear-gradient(135deg, rgba(1, 166, 199, 0.08) 0%, rgba(0, 136, 168, 0.05) 100%);
    border: 2px solid #01A6C7;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(1, 166, 199, 0.15);
}

.product-overview:not(.curabox-fixed) .content .product:hover {
    box-shadow: 0 4px 16px rgba(0, 59, 102, 0.12);
    transform: translateY(-2px);
    border-color: rgba(1, 166, 199, 0.3);
}

.product-overview .content .product.product-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-overview .content  {
    transform: none;
}

.product-overview .content .product img {
    width: clamp(64px, 12vw, 80px);
    height: clamp(64px, 12vw, 80px);
    object-fit: contain;
    border-radius: var(--border-radius-small);
    background: var(--muted);
    padding: clamp(10px, 2.5vw, 14px);
    flex-shrink: 0;
    border: none;
}

/* Images dans "Unsere Produkte" - fond gris clair avec bordure subtile */
.product-overview:not(.curabox-fixed) .content .product img {
    background: #f0f6fa;
    border: 1px solid #e0ecf3;
    width: clamp(64px, 12vw, 80px);
    height: clamp(64px, 12vw, 80px);
    padding: clamp(10px, 2.5vw, 14px);
    border-radius: 12px;
}

.product-overview .content .product .prod-info {
    text-align: left;
    flex: 1;
    min-width: 0;

}

.product-overview .content .product .prod-name {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(15px, 3.5vw, 18px);
    font-weight: 500;
    color:#003d66 ;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

.product-overview:not(.curabox-fixed) .content .product .prod-size {
    color: #666666 ;
    font-size: clamp(12px, 2.5vw, 14px);
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

/* Bouton pour produits non sélectionnés - turquoise avec "+" blanc */
.product-overview .content .product .prod-btn {
    width: clamp(32px, 7vw, 36px);
    height: clamp(32px, 7vw, 36px);
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(1, 166, 199, 0.2);
    flex-shrink: 0;
    border: none;
    margin-left: auto;
}

.product-overview .content .product .prod-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(1, 166, 199, 0.3);
}

/* Bouton pour produits non sélectionnés - cercle turquoise avec + blanc */
.product-overview:not(.curabox-fixed) .content .product .prod-btn {
    background: #01A6C7 ;
    box-shadow: 0 2px 8px rgba(1, 166, 199, 0.35) ;
    border: none ;
    border-radius: 50% ;
    width: 36px ;
    height: 36px ;
    min-width: 36px ;
    min-height: 36px ;
    padding: 0 ;
    display: flex ;
    align-items: center ;
    justify-content: center ;
    margin-left: auto ;
    opacity: 1 ;
    visibility: visible ;
    flex-shrink: 0 ;
    transition: all 0.2s ease ;
}

.product-overview:not(.curabox-fixed) .content .product .prod-btn:hover {
    background: #0088A8 ;
    transform: scale(1.1) ;
    box-shadow: 0 4px 12px rgba(1, 166, 199, 0.5) ;
}



.product-overview:not(.curabox-fixed) .content .product .prod-btn .plus-icon,
.product-overview:not(.curabox-fixed) .content .product .prod-btn i {
    color: #ffffff ;
    font-size: 18px ;
    font-weight: 700 ;
    line-height: 1 ;
    display: inline-block ;
    opacity: 1 ;
    visibility: visible ;
}



.product-overview:not(.curabox-fixed) .content .product .prod-btn:has(i.fa-check-circle),
.product-overview:not(.curabox-fixed) .content .product.selected .prod-btn {
    background: #003B66 ;
    box-shadow: 0 2px 8px rgba(0, 59, 102, 0.35) ;
}

.product-overview:not(.curabox-fixed) .content .product .prod-btn:has(i.fa-check-circle) i,
.product-overview:not(.curabox-fixed) .content .product.selected .prod-btn i {
    color: white;
    font-size: 16px ;
}



.product-overview .receiver {
    padding: 20px;
    background: #f8fbff;
    min-height: 200px;
}

.product-overview.curabox-fixed .receiver {
    max-height: 78vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px;
}



.product-overview.curabox-fixed .receiver .cartItem img {
    width: 36px;
    height: 36px;
    padding: 3px;
    border-radius: var(--border-radius-small);
    background: var(--gris-clair);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 59, 102, 0.06);
}

.product-overview.curabox-fixed .receiver .cartItem .prod-size {
    font-size: 10px;
    line-height: 1.2;
    color: #666666 ;
}

.product-overview.curabox-fixed .receiver .quantity-display {
    min-width: 18px;
    font-size: 14px;
    height: 22px;
}

.product-overview .receiver .cartItem {
    background: var(--muted);
    border-radius: var(--border-radius);
    padding: 0px 0px;
    margin-bottom: 1px;
    box-shadow: none;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: normal;
    gap: 0px;
}

/* CartItems dans la Curabox - fond blanc avec bordure subtile et ombre */
.product-overview.curabox-fixed .receiver .cartItem {
    background: #ffffff;
    border: 1px solid #e8f0f5;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 59, 102, 0.06);
    margin-bottom: 8px;
    padding: 12px;
}

.product-overview:not(.curabox-fixed) .receiver  {
    box-shadow: var(--shadow-medium);
}


.product-overview.curabox-fixed .receiver .quantity-display,
.product-overview.curabox-fixed .receiver .quantity-input {
    width: auto;
    min-width: 30px;
    height: auto;
    font-size: 16px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    box-sizing: border-box;
    font-weight: 600;
    color: #003d66;
}

.product-overview .receiver .cartItem .product {
    display: flex;
    align-items: normal;
    gap: 14px;
}

.product-overview.curabox-fixed .receiver .cartItem img {
    order: 1;
    margin: 0;
    margin-right: 14px;
    background-color: #e6e6e6;
    border-radius: 6px;
}

.product-overview.curabox-fixed .receiver .cartItem .prod-info {
    order: 2;
    flex: 1;

    text-align: left;
    margin-right: auto;
}

.product-overview.curabox-fixed .receiver .cartItem .quantity-selector {
    order: 3;
    margin: 0;
    margin-left: auto;

}


.product-overview .receiver .cartItem img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: var(--border-radius-small);
    background: var(--muted);
    padding: 6px;
    margin-right: 14px;
    flex-shrink: 0;
}

.product-overview .receiver .cartItem .prod-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}


.quantity-btn-minus,
.quantity-btn-plus {
    width: 32px;
    height: 32px;
    border: 2px solid #01A6C7;
    color: #01A6C7;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    line-height: 1;
    box-shadow: none;
    background-color: white;
    border-radius: 8px;
}

.quantity-btn-minus:hover,
.quantity-btn-plus:hover {
    background-color: #01A6C7;
    color: white;
    box-shadow: 0 2px 8px rgba(1, 166, 199, 0.35);
}

.quantity-delete,
.delete-btn,
.fa-trash,
.btn-delete {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 8px;
    background: white;
    color: #ff4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #ff4444;
    font-size: 14px;
}

.quantity-delete:hover,
.delete-btn:hover,
.btn-delete:hover {
    background: #ff4444;
    color: white;
}




.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.product-options-group {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gris-clair);
}

.product-options-group img[src*="icon-handschuh"] {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    min-width: 30px;
    min-height: 30px;
}

.product-options-group:last-child {
    border-bottom: none;
}

.product-options-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--bleu-fonce);
    margin-bottom: 10px;
}

.options-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.options-buttons-container label.prod-count {
    min-width: 32px;
    max-width: 32px;
    min-height: 32px;
    height: 32px;
    width: 32px;
    border: 2px solid var(--turquoise);
    border-color: var(--turquoise);
    border-radius: var(--border-radius-small);
    background: var(--blanc);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 2px;
    margin-right: 4px;
    margin-bottom: 4px;
    box-shadow: 0 2px 4px rgba(1, 166, 199, 0.1);
    position: relative;
}

.options-buttons-container label.prod-count .option-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
}

.options-buttons-container label.prod-count .option-inner span {
    font-size: 12px;
    color: #666;
    text-align: center;
    white-space: nowrap;
    font-weight: 400;
}


.product-overview.curabox-fixed .receiver .options-buttons-container label.prod-count {
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
}

.product-overview.curabox-fixed .receiver .options-buttons-container label.prod-count * {
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
}

.options-buttons-container label.prod-count:not(.selected):not(:has(input:checked)) {
    border: 2px solid var(--turquoise);
    border-color: var(--turquoise);
}

.options-buttons-container label.prod-count.selected,
.options-buttons-container label.prod-count:has(input:checked) {
    background: linear-gradient(135deg, #01A6C7 0%, #0088A8 100%);
    border-color: var(--bleu-fonce);
    border-width: 2.5px;
    box-shadow: 0 4px 16px rgba(1, 166, 199, 0.4);
    transform: scale(1.1);
    position: relative;
}

.options-buttons-container label.prod-count.selected .option-inner,
.options-buttons-container label.prod-count:has(input:checked) .option-inner {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.options-buttons-container label.prod-count.selected .option-inner span,
.options-buttons-container label.prod-count:has(input:checked) .option-inner span {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 59, 102, 0.3);
}

.options-buttons-container label.prod-count.selected::before,
.options-buttons-container label.prod-count:has(input:checked)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: var(--border-radius-small);
    pointer-events: none;
}

.options-buttons-container label.prod-count.selected span,
.options-buttons-container label.prod-count:has(input:checked) span,
.options-buttons-container label.prod-count.selected span p,
.options-buttons-container label.prod-count:has(input:checked) span p,
.options-buttons-container label.prod-count.selected div span,
.options-buttons-container label.prod-count:has(input:checked) div span,
.options-buttons-container label.prod-count.selected *,
.options-buttons-container label.prod-count:has(input:checked) * {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 59, 102, 0.3);
    position: relative;
    z-index: 1;
}

.options-buttons-container label.prod-count.selected div,
.options-buttons-container label.prod-count:has(input:checked) div {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.options-buttons-container label.prod-count input {
    display: none;
}

.options-buttons-container label.prod-count span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.options-buttons-container label.prod-count span p {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--bleu-fonce);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn__primary {
    background: var(--blue-gradient);
    border: none;
    color: var(--blanc);
    padding: 8px 1px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(1, 166, 199, 0.3);
    font-family: 'Montserrat', sans-serif;
    text-transform: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn__primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn__rounded {
    border-radius: 20px;
}



*:focus {
    outline: 3px solid var(--turquoise);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus {
    outline: 3px solid var(--turquoise);
    outline-offset: 2px;
}

.text-muted {
    color: #666;
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-overview,
.cartItem {
    animation: fadeIn 0.3s ease;
}

#step1 .row {
    position: relative;
}

#step1 .col-lg-12 {
    position: relative;
}





.cartItem {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 2px solid var(--light-blue);
}

.cartItem .product {
    display: flex;
    align-items: center;
    padding: 0;
    background: none;
    box-shadow: none;
}

.cartItem .product img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-right: 15px;
}

/* Styles .cartItem .prod-info déplacés vers la fin du fichier (lignes 1353+) */


.cartItem .qty:not(.quantity-selector *),
.content .qty:not(.quantity-selector *),
.product .qty:not(.quantity-selector *) {
    display: none;
}

/*progress-bar {
    background: #01a8c6;
    border-radius: var(--border-radius-large);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}
*/
.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.15);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cartItem .prod-btn {
    display: none;
}


.product-overview .content .product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.075);
    pointer-events: none;
}

.cartItem .qty {

    color: #003d66;
    border-radius: 22px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 10px;

}

/* Styles extraits de step1.blade.php */
#step1 {
    display: block;
}

.product-overview.curabox-fixed .header .hint {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    background: transparent;
    padding: 0;
    visibility: visible;
    height: auto;
}

.product-overview.curabox-fixed .header .hint  {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
}

/* Masquer le montant en euros dans le bloc Ihre curabox */
.product-overview.curabox-fixed .header .hint #cart-total-display-2 {
    display: none;
}

/* Indicateur de pourcentage sur la barre de progression - style rectangulaire arrondi bleu foncé */
.product-overview.curabox-fixed .header .progress #progress-percentage {
    position: absolute;
    top: 50%;
    left: clamp(22px, var(--progress-width, 0%), calc(100% - 22px));
    transform: translateX(-50%) translateY(-50%);
    background: #003d66;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    min-width: 45px;
    max-width: fit-content;
    text-align: center;
    pointer-events: none;
    transition: left 0.5s ease;
    display: block;
    line-height: 1.4;
    visibility: visible;
    border: none;
    width: auto;
    margin: 0;
}



.product-overview.curabox-fixed .header .progress {
    height: 12px;
    overflow: visible;
}

/* Styles pour les groupes d'options de produits */
.product-options-group.mt-2 {
    margin-bottom: 10px;
    border-bottom: 1px solid #F5F7FA;
    padding-bottom: 8px;
}

.product-options-group.mt-3 {
    margin-bottom: 20px;
    border-bottom: 1px solid #F5F7FA;
    padding-bottom: 15px;
}

.product-options-group img[src*="icon-handschuh"] {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    margin-right: 8px;
}

.product-options-group .glove-size-text {
    font-weight: 400;
    font-size: 11px;
    color: #666;
}

.product-options-group .option-icon {
    margin-right: 6px;
    font-size: 14px;
    color: #01A6C7;
}

.product-options-group .option-icon-large {
    margin-right: 8px;
    font-size: 16px;
    color: #01A6C7;
}

.product-options-group .option-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.product-options-group .option-label-large {
    font-size: 14px;
    font-weight: 500;
}

.options-buttons-container {
    gap: 6px;
    margin-top: 6px;
}

/* Styles pour les modals (générés dynamiquement en JavaScript) */
.modal-content-custom {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-header-error {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-header-info {
    background: linear-gradient(135deg, #003B66, #01A6C7);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-title-bold {
    font-weight: bold;
}

.modal-title-bold-large {
    font-weight: bold;
    font-size: 1.3rem;
    color: white;
}

.modal-body-centered {
    padding: 30px;
}

.modal-body-info {
    padding: 2.5rem;
    background: #F5F7FA;
}

.modal-footer-custom {
    border: none;
    padding: 20px 30px 30px;
    justify-content: center;
}

.modal-footer-info {
    border: none;
    padding: 1.5rem 2rem;
    justify-content: center;
    background: white;
}

.modal-icon-cart {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.modal-icon-hand {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #003B66, #01A6C7);
    padding: 20px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-text-title {
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.modal-text-info {
    color: #003B66;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.4rem;
}

.modal-text-paragraph {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.modal-text-paragraph-info {
    color: #003B66;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-text-white {
    color: white;
}

.btn-modal-primary {
    background: linear-gradient(135deg, #01A6C7, #003B66);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
}

.btn-modal-primary-large {
    background: linear-gradient(135deg, #01A6C7, #003B66);
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 15px rgba(1, 166, 199, 0.3);
}

.modal-fade-hidden {
    display: none;
}

.text-info-custom {
    display: block;
    margin-top: 4px;
}/* ===== CSS DÉPLACÉ DEPUIS assemble.blade.php ===== */
/* Premier bloc de styles (lignes 12-763) */

/* ===== CSS DÃ‰PLACÃ‰ DEPUIS assemble.blade.php - PREMIER BLOC ===== */
/* ===== DEVICE-SPECIFIC STYLES ===== */
.mobile-view .product-wrapper {
    flex-direction: column;
}

.desktop-view .product-wrapper {
    flex-direction: row;
}

* {
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Assurer que le wrapper principal est visible */
.wrapper,
.section-padding,
div[wire\:ignore\.self] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Assurer que tous les conteneurs sont visibles - SAUF dans le footer */
.wrapper .container,
.wrapper .container-fluid,
.section-padding .container,
.section-padding .container-fluid,
div[wire\:ignore\.self]>.container:not(.footer .container),
div[wire\:ignore\.self]>.container-fluid:not(.footer .container-fluid) {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== RESPONSIVE FLEXBOX/GRID SYSTEM ===== */
.row:not(.footer .row) {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.col,
[class*="col-"] {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

/* Desktop: colonnes côte à côte */
.col-lg-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.col-lg-6 {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-md-6 {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.col-md-4 {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

.col-md-3 {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

/* Product wrapper: deux colonnes sur desktop */
.product-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Desktop: deux colonnes côte à côte */

    .product-wrapper {
        flex-direction: row;
    }
    .product-wrapper>.product-overview {
        flex: 1 1 calc(50% - 10px);
        min-width: 300px;
        max-width: calc(50% - 10px);
        box-sizing: border-box;
    }


/*
.productOpacity {
    opacity: 0.5;
    background-color: #01a8c6 ;
    border-radius: 6px;
}*/


/* ===== CSS DÉPLACÉ DEPUIS assemble.blade.php - DEUXIÈME BLOC ===== */
.productOpacity {
    opacity: 0.5;
    background-color: #FFF;
    border-radius: 6px;
}

body {
    padding: 15px;
    font-family: sans-serif;
    font-size: 15px;
    line-height: 25px;
}

.container-fluid:not(.footer .container-fluid) {
    width: 100%;
}

.row:not(.footer .row) {
    display: flex;
    flex-wrap: wrap;
}


.d-flex {
    display: flex;
}

.j-s-between {
    justify-content: space-between;
}

.heading-1 {
    color: var(--sky-blu);
    font-family: sans-serif;
    margin-bottom: 10px;
    font-weight: 500;
}

.sub-heading {
    margin: 0;
    font-family: sans-serif;
}


.top-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: start;
}

.top-logo-sec {
    display: flex;
}

.logo-img {
    max-width: 200px;
    width: 100%;
    min-width: 50px;
}

.table-form table {
    width: 100%;
    border: 1px solid #000;
    /*		    padding: 10px;*/
}

.table-form table td {
    height: 50px;
    border: 1px solid var(--sky-blu);
    padding: 0px 10px;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.checkbox {
    border: 2px solid var(--sky-blu);
    text-align: center;
    color: var(--sky-blu);
    height: 25px;
    width: 25px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-form label {
    font-weight: 600;
    margin-right: 5px;
}

.multiple-checkboxes {
    display: flex;
    /*		justify-content: space-evenly;*/
    max-width: 100%;
}

.application-div {
    display: flex;
    align-items: flex-start;
    height: 100%;
    border: 1px solid;
    padding: 10px;
}

.application-div p {
    margin: 0;
}

.table-list-form table,
.reuseable-table table {
    width: 100%;
    margin-top: 30px;
    text-align: center;
    border: 1px solid #000;
}

.table-list-form th,
.reuseable-table th {
    height: 40px;
    border-bottom: 1px solid #000;
    padding: 5px;
}

.table-list-form td,
.reuseable-table td {
    height: 40px;
    padding: 5px;
}

.checkbox-td {
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-below-content {
    padding: 10px;
}

.table-below-content p {
    line-height: 28px;
}

.date_sign_wrap {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0 10px;
}

.date,
.sign {
    text-align: center;
    min-width: 200px;
    border-top: 2px solid;
    padding: 10px;
    margin-top: 50px;
}

.date label,
.sign label {
    padding: 9px 0px;
}


.bottom-table {
    margin-top: 50px;
    border: 2px solid var(--red);
    padding: 0px 15px 15px 15px;
}

.bottom-table small {
    color: var(--red);
}


.overlap-heading {
    text-align: center;
    margin-top: -10px;
}

.bottom-table h3 {
    max-width: 570px;
    background: #fff;
    margin: auto;
}

.bottom-table table {
    width: 100%;
}

.attached-date-sign-wrap {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    font-size: 14px;
}

span.text-field {
    min-width: 200px;
    border-bottom: 2px solid #000;
    display: inline-block;
    margin-left: 20px;
}

.bottom-contact-list {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    padding: 0;
}

.bottom-contact-list li {
    font-size: 12px;
}


/* ===== MODERN PROGRESS BAR des etape 1---5 ===== */
.progressbar-steps {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    min-width: 0;
}

.progressbar-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    min-width: 0;
    padding-bottom: 0;
}
.progressbar-steps .step .step-number {
    order: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.progressbar-steps .step .step-text {
    order: 2;
    margin-top: 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #666666;
}

.progressbar-steps .step .step-divider {
    order: 0;
    position: absolute;
    top: 20px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: var(--light-blue);
    z-index: 0;
}

.progressbar-steps .step:last-child .step-divider {
    display: none;
}

/* Bouton de retour - cercle turquoise avec flèche blanche */
.progressbar-steps .btn-back {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: none;
    color: var(--white);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: 8px;
}

.step .step-number span { font-weight: 600; }
.progressbar-steps .btn-back:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(1, 166, 199, 0.4);
}

/* Étape active */
.step.active .step-number {
    background: #01a8c6;
    color: var(--white);
    border: none;
}

.step.active .step-text {
    color: #003d66;
    font-weight: 500;
}

.step.active .step-divider {
    background: var(--light-blue);
    height: 5px;
}

/* Étapes inactives */
.step:not(.active) .step-text,
.step2:not(.active) .step-text,
.step3:not(.active) .step-text,
.step4:not(.active) .step-text,
.step5:not(.active) .step-text {
    color: #666666;
    font-weight: 400;
}

.step:not(.active) .step-number,
.step2:not(.active) .step-number,
.step3:not(.active) .step-number,
.step4:not(.active) .step-number,
.step5:not(.active) .step-number {
    font-weight: 400;
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d9e2ec;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: #6b7280;
}

.step:not(.active) .step-divider,
.step2:not(.active) .step-divider,
.step3:not(.active) .step-divider,
.step4:not(.active) .step-divider,
.step5:not(.active) .step-divider {
    background: var(--light-blue);
    height: 2px;
}



/* ===== MODERN BUTTON BACK STYLES ===== */
.btn-back {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--blue-gradient);
    border: none;
    color: var(--white);
    font-size: 18px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-hover);
    background: var(--blue-gradient-hover);
}

.btn-back:active {
    transform: translateY(0) scale(0.95);
}

/* ===== MODERN PRODUCT STYLES ===== */

.cartItem .prod-info {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

/* Assurer que les produits sont bien alignés verticalement */
.product-overview .content .product,
.cartItem .product {
    align-items: center;
    vertical-align: middle;
}

/* Amélioration de l'espacement entre les produits */
.product-overview .content {
    gap: 12px;
}

/* Forcer l'alignement vertical parfait */
.quantity-selector>* {
    vertical-align: middle;
}

/* ===== MODERN QUANTITY BUTTONS ===== */
.quantity-btn {
    width: 60px;
    height: 60px;
    border: 2px solid var(--sky-blu);
    background: var(--white);
    color: var(--sky-blu);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.quantity-btn:hover {
    background: var(--blue-gradient);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn.selected {
    background: var(--blue-gradient);
    color: var(--white);
    transform: scale(1.05);
}

/* ===== MODERN PROGRESS BAR STYLES ===== */
.progress {
    height: 12px;
    background: var(--light-blue);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* progress bar de montant */
.progress-bar {
    background: #01a8c6 ;
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
    width: var(--progress-bar-width, 0%);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.pagetitle__heading {
    background: #003d66;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pagetitle__desc {
    color: #666666;
    font-size: large;
    font-weight: 200;
    opacity: 0.6;
}

/* ===== MODERN SECTION TITLES ===== */
.section-title {
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--blue-gradient);
    border-radius: 2px;
}

/* ===== MODERN HINT/PRICE BADGE STYLES ===== */
.hint {
    background: var(--blue-gradient);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow);
    display: inline-block;
    margin: 10px 0;
    border: none;
}












div.hint span,
.product-overview div.hint span,
.header div.hint span {
    color: var(--white);
    font-weight: 700;
}

/* ===== OVERRIDE BLACK BACKGROUNDS ===== */
.badge {
    background: var(--blue-gradient);
    color: var(--white);
    border: none;
}

/* ===== CURABOX RECEIVER BACKGROUND ===== */

.box__sixe {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}



.product-overview .header {
    background: var(--blue-gradient);
    color: var(--white);
    padding: 25px;
    margin: 0;
    border-radius: 0;
}

.product-overview .header i {
    font-size: 24px;
    margin-right: 15px;
    opacity: 0.9;
    color: var(--white);
}


.product-overview .content {
    padding: 30px;
    background: var(--light-blue);
    border: 1px solid rgba(1, 166, 199, 0.2);
    border-top: none;
}


.btn_secondary {
    background: var(--blue-gradient);
    color: var(--white);
    border: none;
}




.form-control:focus {
    border-color: var(--sky-blu);
    box-shadow: 0 0 0 0.2rem rgba(1, 166, 199, 0.25);
}



/* ===== MODAL BACKDROP - FOND GRIS ===== */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1040 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    display: block !important;
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.show {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

.modal {
    z-index: 1050 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    pointer-events: none !important;
}

.modal.show {
    pointer-events: none !important;
}

/* ✅ S'assurer que les modals fermés ne bloquent pas les clics */
.modal:not(.show),
.modal[aria-hidden="true"],
.modal[style*="display: none"] {
    pointer-events: none !important;
    z-index: -1 !important;
}

.modal-dialog {
    position: relative !important;
    width: auto !important;
    margin: 0.5rem !important;
    pointer-events: none !important;
}

.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 1rem) !important;
}

.modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    pointer-events: auto !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.3rem !important;
    outline: 0 !important;
}

body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* ===== OVERLAY POUR MODAL BED PROTECTOR ===== */
.bed-protector-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1040 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgb(0 0 0 / 67%) !important;
    display: none !important;
    opacity: 0;
    transition: opacity 0.15s linear;
    pointer-events: none !important; /* Par défaut, ne pas bloquer les clics */
}

.bed-protector-overlay.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important; /* Seulement quand visible, bloquer les clics */
}

/* Styles pour le modal */
.error-icon {
    width: 50px;
    height: 50px;
    background: var(--blue-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.error-icon i {
    font-size: 24px;
    color: var(--white);
}

.error-list {
    max-height: 300px;
    overflow-y: auto;
}

.error-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: var(--light-blue);
    border-left: 4px solid var(--sky-blu);
    border-radius: 4px;
    animation: slideInLeft 0.3s ease-out;
}

.error-item i {
    color: var(--sky-blu);
    margin-right: 10px;
    font-size: 14px;
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--blue-gradient);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
    padding: 0px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.7rem;
}
p{line-height:1.75;
    margin-bottom:8px}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.modal-body {
    padding: 65px;
    text-align: center;
}
.cure-box-modal-content{
    position:relative;
    padding:90px 10px 0
}

.modal-footer {
    border: none;
    padding: 0 30px 30px;
    justify-content: center;
}

/* ===== MODAL BED PROTECTOR - NOUVEAU DESIGN ===== */

/* Container principal */
#bed_protector_modal .modal-dialog {
    max-width: 32rem; /* max-w-lg */
    width: 90%;
    margin: 0 auto;
}

.bed-protector-modal-content {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    background: transparent;
    padding: 0;
}


.bed-protector-modal-header-banner {
    background: white;
    color: hsl(var(--accent-foreground));
    padding: 2rem 1.5rem;
    text-align: center;
    width: 100%;
    border-radius: 1rem 1rem 0 0; /* Coins arrondis en haut uniquement */
}

@media (min-width: 768px) {
    .bed-protector-modal-header-banner {
        padding: 1rem 1rem;
    }
}

.bed-protector-modal-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    color: #003c66;
    letter-spacing: -0.025em; /* tracking-tight */
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .bed-protector-modal-title {
        font-size: 1.875rem; /* md:text-3xl */
    }
}

.bed-protector-modal-subtitle {
    color: #507895;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    opacity: 1;
}

/* Wrapper pour le body blanc */
.bed-protector-modal-body-wrapper {
    background: hsl(var(--card));
    padding: 1.5rem;
    border-radius: 0 0 1rem 1rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

@media (min-width: 768px) {
    .bed-protector-modal-body-wrapper {
        padding: 2rem;
    }
}

/* Carte produit */
.bed-protector-modal-body {
    padding: 0;
    flex: 1;
    background: transparent;
}

.bed-protector-product-card {
    position: relative;
    background: hsl(var(--card));
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1.25rem; /* p-5 */
    display: flex;
    align-items: center;
    gap: 1.25rem; /* gap-5 */
    border: 3px solid hsl(var(--border));
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* Ombre très subtile */
}

.bed-protector-product-image-wrapper {
    width: 9rem; /* w-36 */
    flex-shrink: 0;
    background: #F3F4F6; /* Fond gris clair pour l'image comme dans l'image */
    border-radius: 0.75rem; /* rounded-xl */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem; /* p-2 */
}

.bed-protector-product-image {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.bed-protector-product-info {
    flex: 1;
    position: relative;
}

.bed-protector-badge-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

/* Badge turquoise */
.bed-protector-badge {
    display: inline-block;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    font-size: 0.85rem; /* text-xs */
    font-weight: 600;
    padding: 0.275rem 0.85rem; /* px-3.5 py-1.5 */
    border-radius: 99px; /* rounded-full */
}

/* Prix */
.bed-protector-price-title {
    color: hsl(var(--foreground));
    font-size: 1.25rem; /* text-xl */
    font-weight: 800;
    line-height: 1.25;
    margin: 0.5rem 0;
}

.bed-protector-price-value {
    color: hsl(var(--accent));
    font-size: 1.875rem; /* text-3xl */
    font-weight: 800;
    margin: 0.25rem 0;
}

.bed-protector-price-old {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.25rem;
    text-decoration: line-through;
}

/* Sélecteur de quantité */
.bed-protector-qty-label {
    color: hsl(var(--foreground));
    font-weight: 600;
    font-size: 1rem; /* text-base */
    margin-bottom: 1rem;
    text-align: center;
}

.bed-protector-qty-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.bed-protector-qty-button {
    width: 3rem; /* w-12 */
    height: 3rem; /* h-12 */
    border-radius: 0.75rem; /* rounded-xl */
    font-size: 1.125rem; /* text-lg */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 200ms;
    border: none;
    position: relative;
}

.bed-protector-qty-button input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bed-protector-qty-button span {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bed-protector-qty-button--inactive {
    background: #E5E7EB; /* Gris clair pour correspondre à l'image */
    color: hsl(var(--foreground));
    border: none;
}

.bed-protector-qty-button--inactive:hover {
    background: #D1D5DB;
    transform: scale(1.05);
}

.bed-protector-qty-button--active,
.bed-protector-qty-button:has(input[type="radio"]:checked) {
    background: #003B66;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bed-protector-qty-button--active span,
.bed-protector-qty-button:has(input[type="radio"]:checked) span {
    color: #ffffff;
}

/* Info */
.bed-protector-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem; /* text-sm */
}

.bed-protector-info i {
    color: gray;
    font-size: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:white;
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 700;
    font-style: normal;
}

/* Boutons d'action */
.bed-protector-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 0;
    border: none;
    margin-top: 1.5rem;
}

.bed-protector-btn-outline {
    flex: 1;
    padding: 0.875rem 0; /* py-3.5 */
    border-radius: 0.75rem; /* rounded-xl */
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: 0.875rem; /* text-sm */
    background: hsl(var(--card));
    cursor: pointer;
    transition: all 200ms;
}

.bed-protector-btn-outline:hover {
    background: hsl(var(--primary) / 0.05);
    border-color: hsl(var(--primary));
}

.bed-protector-btn-primary {
    flex: 1;
    padding: 0.875rem 0; /* py-3.5 */
    border-radius: 0.75rem; /* rounded-xl */
    background: linear-gradient(135deg, #009ee1 0%, #39cdc1 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem; /* text-sm */
    border: none;
    cursor: pointer;
    transition: all 200ms;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.bed-protector-btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* ===== BED PROTECTOR MODAL - MOBILE FIXES ===== */
@media (max-width: 575.98px) {
    #bed_protector_modal .modal-dialog {
        margin: 0.25rem auto;
        max-height: calc(100vh - 0.5rem);
        display: flex;
        flex-direction: column;
    }

    .bed-protector-modal-header-banner {
        padding: 0.75rem 1rem 0.6rem;
    }

    .bed-protector-modal-title {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .bed-protector-modal-subtitle {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }

    .bed-protector-modal-body-wrapper {
        padding: 0.85rem;
    }

    .bed-protector-product-card {
        padding: 0.75rem;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .bed-protector-product-image-wrapper {
        width: 6.5rem;
    }

    .bed-protector-price-title {
        font-size: 1rem;
        margin: 0.25rem 0;
    }

    .bed-protector-price-value {
        font-size: 1.5rem;
        margin: 0.15rem 0;
    }

    .bed-protector-price-old {
        font-size: 0.75rem;
    }

    .bed-protector-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .bed-protector-qty-label {
        font-size: 0.875rem;
        margin-bottom: 0.6rem;
    }

    .bed-protector-qty-buttons {
        gap: 0.5rem;
        margin-bottom: 0.85rem;
    }

    .bed-protector-qty-button {
        width: 2.75rem;
        height: 2.75rem;
    }

    .bed-protector-info {
        margin-bottom: 0.5rem;
        font-size: 0.72rem;
    }

    .bed-protector-modal-footer {
        margin-top: 0.85rem;
        gap: 0.5rem;
    }

    .bed-protector-btn-outline,
    .bed-protector-btn-primary {
        padding: 0.7rem 0;
        font-size: 0.875rem;
    }
}

.btn-modal {
    background: var(--blue-gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-modal:hover {
    background: var(--blue-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(1, 166, 199, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
@media (max-width: 767px) {
    body {
        padding: 0;
      }
      .container,
  .content,
  .page-wrapper,
  .product-wrapper,
  .curabox,
  .curabox-fixed {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1px;
    padding-right: 1px;
  }
  .receiver {
    width: 100%;
  }

  .receiver .cartItem {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    box-sizing: border-box;
  }
  .cartItem .prod-name {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
  }
    .product-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
      }
    
    /* Correction du header - titre non tronqué sur mobile */
    .product-overview .header {
        padding: 12px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .product-overview .header h5 {
        font-size: 18px;
        white-space: normal;
        text-overflow: clip;
        overflow: visible;
        word-break: break-word;
        line-height: 1.3;
        flex: 1 1 100%;
        min-width: 0;
    }
    
    .product-overview .header i {
        font-size: 18px;
        flex-shrink: 0;
    }
    
    /* Réduction du padding du content sur mobile */
    .product-overview .content {
        padding: 1px 1px;
        gap: 1px;
    }
    
    /* Correction des noms de produits - permettre le retour à la ligne */
    .product-overview .content .product .prod-name {
        white-space: normal;
        word-break: break-word;
        line-height: 1.4;
        font-size: 15px;
    }
    
    .product-overview .content .product {
        padding: 1px 1px;
        
    }
    
    .product-overview .content .product img {
        width: 64px;
        height: 64px;
    }
    
    .product-overview.curabox-fixed {
        max-height: none;
        overflow: visible;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
      }

    .product-overview.curabox-fixed .receiver .cartItem {
        padding: 10px 12px;
        min-height: 90px;
        align-items: flex-start;
        gap: 1px;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
        display: flex;
      }
    
      .product-overview.curabox-fixed .receiver .cartItem img {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        min-width: 48px;
      }
      [class*="col-"]:not(.footer [class*="col-"]) {
        padding-left: 1px ;
        padding-right: 1px ;
    }
    .container:not(.footer .container),
    .container-fluid:not(.footer .container-fluid),
    .section-padding {
        padding-left: 8px ;
        padding-right: 8px ;
    }

    .row:not(.footer .row) {
        margin-left: -4px ;
        margin-right: -4px ;
    }
      /* Correction pour le conteneur .product dans cartItem - CRITIQUE pour éviter le texte vertical */
      .product-overview.curabox-fixed .receiver .cartItem .product {
        display: flex ;
        flex-direction: row ;
        flex-wrap: wrap ;
        flex: 1 1 auto ;
        min-width: 0 ;
        width: 100% ;
        gap: 1px ;
        align-items: flex-start ;
        box-sizing: border-box ;
      }
      
      /* Image et prod-info restent côte à côte sur la première ligne */
      .product-overview.curabox-fixed .receiver .cartItem .product > img {
        flex: 0 0 auto ;
        margin-right: 12px ;
      }
      
      .product-overview.curabox-fixed .receiver .cartItem .product > .prod-info {
        flex: 1 1 auto ;
        min-width: 0 ;
      }
      
      /* FORCER le prod-info à avoir une largeur minimale suffisante pour éviter le texte vertical */
      .product-overview.curabox-fixed .receiver .cartItem .product .prod-info,
      .product-overview.curabox-fixed .receiver .cartItem .prod-info {
        flex: 1 1 auto ;
        min-width: 150px ;
        max-width: none ;
        width: auto ;
        display: flex ;
        flex-direction: column ;
        overflow: visible ;
        box-sizing: border-box;
      }
      
      /* FORCER le prod-name à s'afficher horizontalement - SOLUTION AU TEXTE VERTICAL */
      .product-overview.curabox-fixed .receiver .cartItem .product .prod-name,
      .product-overview.curabox-fixed .receiver .cartItem .prod-name {
        font-size: 15px ;
        white-space: normal ;
        word-break: break-word ;
        line-height: 1.4 ;
        overflow-wrap: break-word ;
        hyphens: auto ;
        min-width: 0 ;
        width: 100% ;
        display: block ;
        word-spacing: normal ;
        letter-spacing: normal ;
        writing-mode: horizontal-tb ;
        text-orientation: mixed ;
      }
      
      .product-overview.curabox-fixed .receiver .cartItem .product .prod-size,
      .product-overview.curabox-fixed .receiver .cartItem .prod-size {
        font-size: 12px ;
        white-space: normal ;
        word-break: break-word ;
        line-height: 1.3 ;
        width: 100% ;
      }
      
      /* Placer le quantity-selector en dessous du produit sur mobile */
      .product-overview.curabox-fixed .receiver .cartItem .quantity-selector {
        flex-basis: 100% ;
        width: 100% ;
        margin-left: 0 ;
        margin-top: 4px ;
        justify-content: center ;
        order: 10 ;
        display: flex ;
        align-items: center ;
        gap: 8px ;
      }
      
      /* Correction du header de la curabox sur mobile */
      .product-overview.curabox-fixed .header {
          padding: 12px 12px;
          flex-wrap: wrap;
      }
      
      .product-overview.curabox-fixed .header h5 {
          font-size: 18px;
          white-space: normal;
          text-overflow: clip;
          overflow: visible;
          word-break: break-word;
          line-height: 1.3;
      }
    .progressbar-steps {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px 16px;
      padding: 12px;
      overflow: visible;
    }
  
    .progressbar-steps .step {
      flex: none;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      padding: 10px 12px;
      background: #eef7f8;
      border-radius: 14px;
    }
  
    .progressbar-steps .step-number {
      width: 28px;
      height: 28px;
      font-size: 14px;
      margin: 0;
    }
  
    .progressbar-steps .step-text {
      font-size: 14px;
      line-height: 1.2;
      max-width: none;
      white-space: normal;
      text-align: left;
    }
  
    /* supprimer les lignes entre steps */
    .progressbar-steps .step-divider {
      display: none;
    }
  
    /* bouton back plus petit */
    .progressbar-steps .btn-back {
      grid-column: span 1;
      width: 1px;
      height: 1px;
      min-width: 1px;
      max-width: 1px;
      min-height: 28px;
      max-height: 28px;
      font-size: 12px;
      margin-bottom: 1px;
    }
  }

/* Étape 1 : titre long sur une ligne, sans scroll — taille fluide */
.step-title-wrap--single-line {
    overflow: visible;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0 0.25rem 0.35rem;
}

.step-title-wrap--single-line .pagetitle__heading {
    white-space: nowrap;
    display: block;
    width: 100%;
    margin: 0 auto 0.5rem;
    text-align: center;
    font-size: clamp(0.65rem, 2.4vw + 0.35rem, 2.5rem) !important;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* ===== RTL (Arabic): wizard order, cart bar fill, column lock ===== */
/* Top steps: keep 1→5 visually left-to-right; connectors use physical left/right */
[dir="rtl"] .progressbar-steps {
    direction: ltr;
}

[dir="rtl"] .progressbar-steps .btn-back i {
    transform: scaleX(-1);
}

[dir="rtl"] .progressbar-steps .step .step-text {
    max-width: min(160px, 28vw);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
    hyphens: manual;
}

/* Budget bar in cart header: fill LTR; badge follows --progress-width from the left edge */
[dir="rtl"] .product-overview.curabox-fixed .header .progress {
    direction: ltr;
}

/*
 * Arabic (html dir=rtl): sans correctif, flex row suit la direction RTL — le 1er bloc DOM
 * (liste produits) part vers le “début” logique (à droite) et le panier vers la gauche, ce qui
 * inverse par rapport à la version allemande (liste à gauche, panier à droite).
 * On force direction LTR sur cette rangée + flex order pour garder le panier à GAUCHE.
 */
html[dir="rtl"] #step1 .product-wrapper.step1-dual-columns {
    direction: ltr !important;
    flex-direction: row !important;
}

html[dir="rtl"] #step1 .product-wrapper.step1-dual-columns #product-list-overview {
    order: 2 !important;
}

html[dir="rtl"] #step1 .product-wrapper.step1-dual-columns .product-overview.curabox-fixed {
    order: 1 !important;
}

html[dir="rtl"] .mobile-view #step1 .product-wrapper.step1-dual-columns {
    flex-direction: column !important;
}

html[dir="rtl"] .mobile-view #step1 .product-wrapper.step1-dual-columns #product-list-overview {
    order: 2 !important;
}

html[dir="rtl"] .mobile-view #step1 .product-wrapper.step1-dual-columns .product-overview.curabox-fixed {
    order: 1 !important;
}

/* Colonnes étape 1 : texte et listes en RTL (le wrapper .step1-dual-columns reste en LTR pour l’ordre des colonnes) */
html[dir="rtl"] #step1 #product-list-overview,
html[dir="rtl"] #step1 .product-overview.curabox-fixed {
    direction: rtl;
}

/* En-tête « Unsere Produkte » / liste : RTL + h5 flex:1 étirait le titre loin de l’icône */
html[dir="rtl"] #step1 #product-list-overview > .header {
    justify-content: flex-start;
}

html[dir="rtl"] #step1 #product-list-overview > .header h5 {
    flex: 0 1 auto;
    min-width: 0;
    text-align: start;
}

/* En-tête curabox RTL : icône + titre côte à côte (évite space-between + h5 flex:1 qui séparent le texte de l’icône) */
html[dir="rtl"] #step1 .product-overview.curabox-fixed .header {
    justify-content: flex-start;
}

html[dir="rtl"] #step1 .product-overview.curabox-fixed .header h5 {
    flex: 0 1 auto;
    min-width: 0;
    text-align: start;
}

/*
 * RTL curabox : ne pas mettre .hint après .progress (order:12) — le bloc .hint a encore
 * une hauteur de typo (height:auto) alors que le prix est masqué → ligne flex vide sous la barre.
 * Hors flux = plus d’espace parasite entre la progression et les produits.
 */
html[dir="rtl"] #step1 .product-overview.curabox-fixed .header .hint {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    visibility: hidden;
    pointer-events: none;
}

/*
 * Catalogue étape 1 en arabe : le parent #product-list-overview est en direction:rtl,
 * mais flex row-reverse + rtl inversait deux fois → image à gauche, + à droite.
 * On force direction:ltr sur la ligne + row-reverse pour obtenir [+] [texte] [image] (physique).
 */
html[dir="rtl"] #step1 #product-list-overview .content .product {
    direction: ltr;
    flex-direction: row-reverse;
}

html[dir="rtl"] #step1 #product-list-overview .content .product .prod-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html[dir="rtl"] #step1 #product-list-overview .content .product .prod-info,
html[dir="rtl"] #step1 #product-list-overview .content .product .prod-name,
html[dir="rtl"] #step1 #product-list-overview .content .product .prod-size {
    text-align: start;
}

/*
 * Panier (curabox) en arabe : contrôles (− / qty / + / corbeille) à gauche ;
 * bloc nom + image poussé au bord droit (margin-left:auto sur .prod-info, pas de flex:1 sur le texte).
 * Uniquement ≥768px pour ne pas écraser order:10 du sélecteur en pile (mobile).
 */
@media (min-width: 768px) {
    html[dir="rtl"] .product-overview.curabox-fixed .receiver .cartItem .product {
        direction: ltr;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    html[dir="rtl"] .product-overview.curabox-fixed .receiver .cartItem .quantity-selector {
        order: 1 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-shrink: 0;
        direction: ltr;
    }

    html[dir="rtl"] .product-overview.curabox-fixed .receiver .cartItem .prod-info {
        order: 2 !important;
        flex: 0 1 auto !important;
        min-width: 0;
        margin-right: 0 !important;
        margin-left: auto !important;
        text-align: start;
        direction: rtl;
    }

    html[dir="rtl"] .product-overview.curabox-fixed .receiver .cartItem img {
        order: 3 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        flex-shrink: 0;
    }
}

/* Step 1 page title: allow wrapping in RTL so Arabic heading is not clipped */
html[dir="rtl"] .step-title-wrap--single-line .pagetitle__heading {
    white-space: normal;
    overflow: visible;
}

/* ============================================================
   ULTRA MODERN STEP1 REDESIGN — Full visual upgrade layer
   ============================================================ */

/* --- Entrance animation for product cards --- */
@keyframes cardSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes progressGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(1,166,199,0.4); }
    50%       { box-shadow: 0 0 18px rgba(1,166,199,0.7); }
}

/* Page background with subtle dot grid */
#step1 {
    background: linear-gradient(160deg, #edf4fb 0%, #f5f8fc 50%, #e8f3fa 100%) !important;
    min-height: 100vh;
}

/* Panels: stronger depth, tighter border-radius */
.product-overview {
    border-radius: 20px !important;
    box-shadow:
        0 0 0 1px rgba(0,59,102,0.06),
        0 4px 12px rgba(0,59,102,0.08),
        0 12px 32px rgba(0,59,102,0.10) !important;
    border: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.product-overview:hover {
    box-shadow:
        0 0 0 1px rgba(1,166,199,0.15),
        0 6px 20px rgba(0,59,102,0.12),
        0 20px 40px rgba(0,59,102,0.13) !important;
    transform: translateY(-2px);
}

/* --- Left panel header: icon in circle, gradient left stripe --- */
#product-list-overview .header {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%) !important;
    border-left: none !important;
    border-bottom: 1px solid #ddeef7 !important;
    position: relative !important;
    padding-left: 24px !important;
}
#product-list-overview .header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #01A6C7 0%, #003B66 100%);
    border-radius: 20px 0 0 0;
    display: block !important;
    order: unset;
    flex-basis: unset;
    height: auto;
    margin: 0;
}

/* Icon box in left panel header */
#product-list-overview .header > i {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    background: linear-gradient(135deg, #01A6C7 0%, #0088A8 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    box-shadow: 0 4px 12px rgba(1,166,199,0.35) !important;
    flex-shrink: 0 !important;
}

/* Title in left panel header */
#product-list-overview .header > h5 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #003B66 !important;
    letter-spacing: -0.01em !important;
}

/* --- Right panel (curabox): dramatic dark gradient header --- */
.product-overview.curabox-fixed .header {
    background: linear-gradient(135deg, #002d52 0%, #003B66 45%, #005080 100%) !important;
    border-left: none !important;
    border-bottom: none !important;
    position: relative !important;
    overflow: visible !important;
    padding: 14px 20px 12px 20px !important;
}
/* Decorative sheen on curabox header */
.product-overview.curabox-fixed .header::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(1,166,199,0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    clip-path: none !important;
    border-radius: 50%;
    height: 180px !important;
}

/* Icon box in curabox header */
.product-overview.curabox-fixed .header > i {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    flex-shrink: 0 !important;
    position: relative;
    z-index: 1;
}
.product-overview.curabox-fixed .header > h5 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    position: relative;
    z-index: 1;
}
.product-overview.curabox-fixed .header .hint {
    position: relative;
    z-index: 1;
}
/* Progress track: make room for the badge on the right */
.product-overview.curabox-fixed .header .progress {
    position: relative !important;
    z-index: 1 !important;
    background: rgba(255,255,255,0.18) !important;
    height: 10px !important;
    border-radius: 10px !important;
    margin-top: 14px !important;
    overflow: visible !important;
    padding-right: 58px !important; /* Room for badge at right end */
    box-sizing: border-box !important;
}
.product-overview.curabox-fixed .header .progress-bar {
    background: linear-gradient(90deg, #01A6C7 0%, #5dd7f0 100%) !important;
    box-shadow: 0 0 10px rgba(1,166,199,0.6) !important;
    animation: progressGlow 2.5s ease-in-out infinite !important;
    max-width: 100% !important;
}
/* Badge always anchored at the far right — never overflows */
.product-overview.curabox-fixed .header .progress #progress-percentage {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #ffffff !important;
    color: #003B66 !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
    white-space: nowrap !important;
    z-index: 10 !important;
    transition: none !important;
}

/* --- Product list content background --- */
.product-overview:not(.curabox-fixed) .content {
    background: #f4f8fb !important;
    padding: 16px !important;
    gap: 10px !important;
}

/* --- Product cards: clean white with left accent on hover --- */
.product-overview:not(.curabox-fixed) .content .product {
    background: #ffffff !important;
    border: 1px solid #e0edf4 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 4px rgba(0,59,102,0.05) !important;
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 14px 18px 14px 14px !important;
    animation: cardSlideIn 0.35s ease both !important;
    align-items: center !important;
}
/* Stagger effect using nth-child */
.product-overview:not(.curabox-fixed) .content .product:nth-child(1)  { animation-delay: 0.04s !important; }
.product-overview:not(.curabox-fixed) .content .product:nth-child(2)  { animation-delay: 0.08s !important; }
.product-overview:not(.curabox-fixed) .content .product:nth-child(3)  { animation-delay: 0.12s !important; }
.product-overview:not(.curabox-fixed) .content .product:nth-child(4)  { animation-delay: 0.16s !important; }
.product-overview:not(.curabox-fixed) .content .product:nth-child(5)  { animation-delay: 0.20s !important; }
.product-overview:not(.curabox-fixed) .content .product:nth-child(6)  { animation-delay: 0.24s !important; }
.product-overview:not(.curabox-fixed) .content .product:nth-child(7)  { animation-delay: 0.28s !important; }
.product-overview:not(.curabox-fixed) .content .product:nth-child(8)  { animation-delay: 0.32s !important; }

/* Left accent stripe on each card */
.product-overview:not(.curabox-fixed) .content .product::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #01A6C7, #003B66);
    border-radius: 14px 0 0 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.product-overview:not(.curabox-fixed) .content .product:hover::after {
    opacity: 1;
}
.product-overview:not(.curabox-fixed) .content .product:hover {
    transform: translateX(4px) translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,59,102,0.13) !important;
    border-color: rgba(1,166,199,0.3) !important;
}

/* Selected product: turquoise gradient tint + stripe */
.product-overview:not(.curabox-fixed) .content .product.selected,
.product-overview:not(.curabox-fixed) .content .product:has(.prod-btn i.fa-check-circle) {
    background: linear-gradient(135deg, rgba(1,166,199,0.06) 0%, #fff 100%) !important;
    border: 2px solid #01A6C7 !important;
    box-shadow: 0 4px 16px rgba(1,166,199,0.18) !important;
}
.product-overview:not(.curabox-fixed) .content .product.selected::after,
.product-overview:not(.curabox-fixed) .content .product:has(.prod-btn i.fa-check-circle)::after {
    opacity: 1;
}

/* --- Product image container: rounded square with tinted bg --- */
.product-overview:not(.curabox-fixed) .content .product img {
    background: linear-gradient(135deg, #e8f5fb 0%, #f0f8fc 100%) !important;
    border: 1px solid #cde8f3 !important;
    border-radius: 14px !important;
    padding: 10px !important;
    width: 96px !important;
    height: 96px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    transition: transform 0.22s ease !important;
}
.product-overview:not(.curabox-fixed) .content .product:hover img {
    transform: scale(1.07);
}

/* --- Product name & size typography --- */
.product-overview:not(.curabox-fixed) .content .product .prod-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #003B66 !important;
    line-height: 1.35 !important;
    margin-bottom: 3px !important;
}
.product-overview:not(.curabox-fixed) .content .product .prod-size {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6b8ba4 !important;
    background: #eef5fa !important;
    display: inline-block !important;
    padding: 2px 8px !important;
    border-radius: 20px !important;
    line-height: 1.4 !important;
    margin-top: 2px !important;
}

/* --- Add button: modern turquoise pill with hover fill --- */
.product-overview:not(.curabox-fixed) .content .product .prod-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #01A6C7 0%, #0091af 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(1,166,199,0.40) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    border: none !important;
}
.product-overview:not(.curabox-fixed) .content .product .prod-btn:hover {
    transform: scale(1.15) rotate(90deg) !important;
    box-shadow: 0 6px 18px rgba(1,166,199,0.55) !important;
    background: linear-gradient(135deg, #0091af 0%, #003B66 100%) !important;
}
.product-overview:not(.curabox-fixed) .content .product .prod-btn .plus-icon,
.product-overview:not(.curabox-fixed) .content .product .prod-btn i:not(.fa-check-circle) {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}
/* Selected: dark blue checkmark circle */
.product-overview:not(.curabox-fixed) .content .product .prod-btn:has(i.fa-check-circle),
.product-overview:not(.curabox-fixed) .content .product.selected .prod-btn {
    background: linear-gradient(135deg, #003B66 0%, #002a4d 100%) !important;
    box-shadow: 0 3px 10px rgba(0,59,102,0.35) !important;
}
.product-overview:not(.curabox-fixed) .content .product .prod-btn:has(i.fa-check-circle):hover,
.product-overview:not(.curabox-fixed) .content .product.selected .prod-btn:hover {
    transform: scale(1.12) rotate(0deg) !important;
}

/* --- Curabox receiver background --- */
.product-overview.curabox-fixed .receiver {
    background: #f4f8fb !important;
    padding: 10px 12px !important;
}

/* --- Cart items in curabox: compact cards ---
   NOTE: .cartItem also has .content class which adds ~20px padding — must override */
.product-overview.curabox-fixed .receiver .cartItem,
.product-overview.curabox-fixed .receiver .content.cartItem {
    background: #ffffff !important;
    border: 1px solid #ddeef7 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 1px 4px rgba(0,59,102,0.05) !important;
    transition: box-shadow 0.2s ease !important;
    /* Kill the gap/flex from .content class */
    display: block !important;
    gap: 0 !important;
}
.product-overview.curabox-fixed .receiver .cartItem:hover,
.product-overview.curabox-fixed .receiver .content.cartItem:hover {
    box-shadow: 0 3px 10px rgba(0,59,102,0.10) !important;
}
/* Remove Bootstrap mb-3 margin from inner .product div */
.product-overview.curabox-fixed .receiver .cartItem .product.mb-3,
.product-overview.curabox-fixed .receiver .cartItem .product {
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Cart item image */
.product-overview.curabox-fixed .receiver .cartItem img {
    background: linear-gradient(135deg, #e8f5fb 0%, #f0f8fc 100%) !important;
    border: 1px solid #cde8f3 !important;
    border-radius: 10px !important;
    padding: 4px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    object-fit: contain !important;
    margin-right: 10px !important;
}

/* Cart item prod-name */
.product-overview.curabox-fixed .receiver .cartItem .prod-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #003B66 !important;
    line-height: 1.3 !important;
}
.product-overview.curabox-fixed .receiver .cartItem .prod-size {
    font-size: 12px !important;
    color: #6b8ba4 !important;
    background: transparent !important;
    display: inline-block !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-top: 2px !important;
    line-height: 1.3 !important;
}

/* --- Quantity buttons: turquoise circles --- */
.quantity-btn-minus,
.quantity-btn-plus {
    width: 30px !important;
    height: 30px !important;
    border: 2px solid #01A6C7 !important;
    color: #01A6C7 !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    transition: all 0.18s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}
.quantity-btn-minus:hover,
.quantity-btn-plus:hover {
    background: #01A6C7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(1,166,199,0.4) !important;
    transform: scale(1.08) !important;
}

/* Delete button: subtle red */
.quantity-delete {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    border-radius: 50% !important;
    background: #fff0f0 !important;
    border: 2px solid #ffcccc !important;
    color: #e05252 !important;
    font-size: 13px !important;
    transition: all 0.18s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.quantity-delete:hover {
    background: #ff4444 !important;
    border-color: #ff4444 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(255,68,68,0.35) !important;
    transform: scale(1.08) !important;
}

/* Quantity display number */
.product-overview.curabox-fixed .receiver .quantity-display,
.product-overview.curabox-fixed .receiver .quantity-number {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #003B66 !important;
    min-width: 26px !important;
    text-align: center !important;
}

/* Quantity selector gap */
.product-overview.curabox-fixed .receiver .quantity-selector {
    gap: 5px !important;
}

/* --- Wrapper background upgrade --- */
.product-wrapper {
    background: transparent !important;
    padding: 20px 24px !important;
    gap: 20px !important;
}

/* --- Continue button at the bottom --- */
.btn__primary {
    background: linear-gradient(135deg, #01A6C7 0%, #003B66 100%) !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    box-shadow: 0 4px 20px rgba(1,166,199,0.40) !important;
    transition: all 0.22s ease !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
}
.btn__primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(1,166,199,0.55) !important;
}

/* --- Focus ring cleanup --- */
*:focus {
    outline: 2px solid rgba(1,166,199,0.5) !important;
    outline-offset: 2px !important;
}
button:focus-visible {
    outline: 2px solid rgba(1,166,199,0.5) !important;
}

/* --- Size option buttons (S, M, L, XL) for glove products --- */
.options-buttons-container label.prod-count {
    min-width: 40px !important;
    height: 36px !important;
    border: 2px solid #01A6C7 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #003B66 !important;
    box-shadow: 0 1px 4px rgba(1,166,199,0.15) !important;
}
.options-buttons-container label.prod-count:hover {
    background: rgba(1,166,199,0.1) !important;
    border-color: #003B66 !important;
    transform: scale(1.05) !important;
}
.options-buttons-container label.prod-count.selected,
.options-buttons-container label.prod-count:has(input:checked) {
    background: linear-gradient(135deg, #01A6C7 0%, #0088A8 100%) !important;
    border-color: #003B66 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(1,166,199,0.40) !important;
    transform: scale(1.08) !important;
}
.options-buttons-container label.prod-count.selected * ,
.options-buttons-container label.prod-count:has(input:checked) * {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}
.options-buttons-container label.prod-count .option-inner {
    background: transparent !important;
    border: none !important;
}
.options-buttons-container label.prod-count .option-inner span p {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: inherit !important;
}

/* Glove size prompt text */
.product-options-group > label,
.product-options-group label:not(.prod-count) {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #003B66 !important;
}

/* --- Compact product options group inside curabox --- */
.product-overview.curabox-fixed .receiver .product-options-group {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    padding-bottom: 6px !important;
}
.product-overview.curabox-fixed .receiver .product-options-group label:not(.prod-count) {
    font-size: 11px !important;
    margin-bottom: 4px !important;
}
.product-overview.curabox-fixed .receiver .options-buttons-container {
    gap: 4px !important;
    margin-top: 4px !important;
}
.product-overview.curabox-fixed .receiver .options-buttons-container label.prod-count {
    min-width: 32px !important;
    height: 28px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
}

/* --- Scrollbar in curabox receiver --- */
.product-overview.curabox-fixed .receiver::-webkit-scrollbar {
    width: 4px;
}
.product-overview.curabox-fixed .receiver::-webkit-scrollbar-track {
    background: #eef5fa;
    border-radius: 4px;
}
.product-overview.curabox-fixed .receiver::-webkit-scrollbar-thumb {
    background: #01A6C7;
    border-radius: 4px;
}

/* --- Panels: slight hover elevation, no lift for curabox (it's sticky) --- */
.product-overview.curabox-fixed:hover {
    transform: none !important;
    box-shadow:
        0 0 0 1px rgba(1,166,199,0.15),
        0 6px 20px rgba(0,59,102,0.12),
        0 20px 40px rgba(0,59,102,0.13) !important;
}

/* --- Responsive: single column on mobile --- */
@media (max-width: 768px) {
    .product-wrapper {
        flex-direction: column !important;
        padding: 12px !important;
        gap: 14px !important;
    }
    .product-overview.curabox-fixed {
        position: static !important;
        max-height: none !important;
    }
    .product-overview {
        border-radius: 16px !important;
    }
}
