/* Minimal modern styling following site zen codes */
.bons-cadeaux-page {
    max-width: 1100px;
    padding: 20px;
    margin: 120px auto 40px auto;
    font-family: Arial, sans-serif;
}

.bons-cadeaux-page h1 {
    margin-bottom: 18px
}

.bc-wizard {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.bc-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 18px
}

.bc-step {
    flex: 1;
    padding: 10px 12px;
    background: #f4f4f4;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: #666
}

.bc-step-active {
    background: #7EC32F;
    color: #fff
}

.bc-step-panel {
    display: none
}

.bc-step-panel-active {
    display: block
}

.bc-fonds {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.bc-fond-item {
    width: 160px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent
}

.bc-fond-item img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.bc-fond-item.selected {
    border-color: #7EC32F;
    box-shadow: 0 4px 12px rgba(126, 195, 47, 0.18)
}

.bc-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.bc-fields label {
    display: block;
    font-size: 14px
}

.bc-fields input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 5px;
}

.bc-categories {
    margin-top: 12px
}

.bc-category {
    margin-bottom: 10px
}

.bc-cat-toggle {
    width: 100%;
    text-align: left;
    padding: 12px;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer
}

.bc-cat-products {
    display: none;
    padding: 10px 12px;
    border-left: 3px solid #eef3e6;
    background: #fff
}

.bc-prod {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0
}

.bc-prod-head img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.bc-prod-info {
    display: flex;
    flex-direction: column;
    max-width: 120px;
}

.bc-prod-title {
    font-weight: 500;
}

.bc-prod-price {
    color: #7EC32F;
    font-weight: 700;
}

.bc-prod-variants {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bc-variant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    background: #fafafa;
}

.bc-variant input {
    margin-right: 10px
}

.bc-variant-label {
    width: 500px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bc-variant-price {
    margin-left: auto;
    white-space: nowrap;
}

.bc-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: 0;
    cursor: pointer
}

.btn-next {
    background: #7EC32F;
    color: #fff
}

.btn-prev {
    background: #f0f0f0
}

.btn-submit {
    background: #b58f5a;
    color: #fff
}

.bc-summary {
    margin-top: 12px;
    font-size: 14px
}

/* Loader overlay when submitting the bon */
#bcLoader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.bc-loader {
    background: rgba(255, 255, 255, 0.04);
    padding: 18px 22px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    min-width: 260px;
}

.bc-loader .spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.15);
    border-top-color: #7EC32F;
    animation: bc-spin 1s linear infinite;
}

.bc-loader-text {
    font-size: 15px;
    color: #fff;
}

@keyframes bc-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed
}



@media (max-width:1100px) {
    .bc-fields {
        grid-template-columns: 1fr
    }

    .bc-fond-item {
        width: 19%;
    }
}

@media (max-width:900px) {
    .bc-fond-item {
        width: 24%;
    }
}

@media (max-width:830px) {
    .bc-fond-item {
        width: 23%;
    }
}


@media (max-width:768px) {
    .bons-cadeaux-page {
        padding: 12px;
    }

    .bc-steps {
        flex-direction: column;
        gap: 6px;
    }

    .bc-step {
        padding: 8px 10px;
        font-size: 14px;
    }

    .bc-fonds {
        gap: 8px;
    }

    .bc-fond-item {
        width: 24%;
        height: 90px;
    }

    .bc-prod {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .bc-prod-head img {
        width: 100%;
        height: auto;
        max-height: 240px;
    }

    .bc-prod-info {
        max-width: none;
        width: 100%;
    }

    .bc-variant {
        flex-direction: row;
        gap: 8px;
    }

    .bc-variant-label {
        width: auto;
        white-space: normal;
        overflow: visible;
    }

    .bc-variant-price {
        margin-left: auto;
        white-space: nowrap;
    }

    .bc-fields {
        grid-template-columns: 1fr;
    }

    .bc-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
}

@media (max-width:670px) {
    .bc-fond-item {
        width: 23%;
    }
}


@media (max-width:480px) {
    .bc-fond-item {
        width: 31%;
        height: 80px;
    }

    .bc-step {
        font-size: 13px;
        padding: 8px;
    }

    .bc-prod-head img {
        max-height: 180px;
    }

    .bc-variant {
        padding: 6px;
    }

    .bc-variant-label {
        font-size: 14px;
    }

    /* Ensure loader min width fits smaller screens */
    .bc-loader {
        min-width: 200px;
        padding: 12px 16px;
    }
}


@media (max-width: 360px) {
    .bc-step {
        font-size: 12px;
    }
}