/* ===== BS Custom Order — Onglet Personnalisation ===== */

#bs-personalisation {
    max-width: 600px;
    padding: 10px 0;
}

#bs-personalisation h3 {
    margin-bottom: 6px;
}

.bs-intro {
    color: #666;
    margin-bottom: 24px;
    font-size: 0.95em;
}

.bs-optional {
    color: #999;
    font-size: 0.85em;
    font-weight: normal;
}

/* ---- Champ générique ---- */
.bs-field {
    margin-bottom: 20px;
}

.bs-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.bs-field select,
.bs-field textarea,
.bs-field input[type="text"],
.bs-field input[type="email"],
.bs-field input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95em;
    transition: border-color .2s;
    box-sizing: border-box;
}

.bs-field select:focus,
.bs-field textarea:focus,
.bs-field input[type="text"]:focus,
.bs-field input[type="email"]:focus,
.bs-field input[type="tel"]:focus {
    border-color: #C9A84C;
    outline: none;
    box-shadow: 0 0 0 2px rgba(201,168,76,.15);
}

/* ---- Zone d'upload ---- */
#bs-upload-zone,
#bs-sa-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    overflow: hidden;
    min-height: 100px;
}

#bs-upload-zone:hover,
#bs-upload-zone.bs-drag,
#bs-sa-upload-zone:hover,
#bs-sa-upload-zone.bs-drag {
    border-color: #C9A84C;
    background: #fdf9f0;
}

#bs-upload-zone.bs-uploading,
#bs-sa-upload-zone.bs-uploading {
    opacity: .7;
    pointer-events: none;
}

#bs-file-input,
#bs-sa-file-input {
    display: none;
}

/* idle */
.bs-upload-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    gap: 8px;
    color: #888;
}

.bs-upload-idle svg {
    color: #aaa;
}

.bs-upload-idle span {
    font-size: 0.95em;
    font-weight: 500;
    color: #555;
}

.bs-upload-idle small {
    font-size: 0.8em;
    color: #aaa;
}

/* done */
.bs-upload-done {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}

#bs-preview,
#bs-sa-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.bs-upload-info {
    flex: 1;
    min-width: 0;
}

#bs-file-name,
#bs-sa-file-name {
    display: block;
    font-weight: 500;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.bs-upload-status {
    font-size: 0.8em;
    color: #888;
    margin-top: 3px;
    display: block;
}

.bs-upload-status.bs-ok {
    color: #2a7a2a;
}

.bs-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.1em;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .2s, background .2s;
    flex-shrink: 0;
}

.bs-remove:hover {
    color: #c0392b;
    background: #fdf0ef;
}

/* ---- Couleur ---- */
.bs-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

#bs-color-picker,
#bs-sa-color-picker {
    width: 44px;
    height: 44px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

#bs-color-text,
#bs-sa-color-text {
    flex: 1;
}

/* ---- Admin : lien modèle ---- */
.bs-admin-model {
    margin: 6px 0;
    padding: 6px 10px;
    background: #f0f6ff;
    border-left: 3px solid #2271b1;
    border-radius: 0 4px 4px 0;
    font-size: 0.9em;
}

.bs-admin-model a {
    color: #2271b1;
    text-decoration: none;
}

.bs-admin-model a:hover {
    text-decoration: underline;
}


/* ============================================================
   BANNIÈRE CATÉGORIES (Hommes / Femmes / Couple)
   ============================================================ */

.bs-perso-banner {
    background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 100%);
    border-radius: 10px;
    margin-bottom: 36px;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.bs-perso-banner__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
}

.bs-perso-banner__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9A84C;
}

.bs-perso-banner__content {
    flex: 1;
    min-width: 0;
}

.bs-perso-banner__title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #C9A84C !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.bs-perso-banner__text {
    font-size: 0.9rem;
    color: #D0D0D0;
    margin: 0;
    line-height: 1.5;
}

.bs-perso-banner__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #C9A84C;
    color: #1A1A1A !important;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 4px;
    transition: background .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}

.bs-perso-banner__btn:hover {
    background: #d4af57;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(201,168,76,0.35);
    color: #1A1A1A !important;
}

/* Mobile */
@media (max-width: 640px) {
    .bs-perso-banner__inner {
        flex-direction: column;
        text-align: center;
        padding: 22px 20px;
        gap: 16px;
    }

    .bs-perso-banner__btn {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   FORMULAIRE STANDALONE (page Commande Personnalisée)
   ============================================================ */

.bs-standalone-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 10px 0 48px;
}

/* Titre identique à l'onglet produit */
.bs-sa-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
}

/* Champ requis */
.bs-required {
    color: #C9A84C;
    font-weight: 700;
}

/* Message d'erreur */
.bs-sa-error {
    background: #fff0f0;
    border: 1px solid #e0a0a0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.9em;
    color: #c0392b;
    margin-bottom: 16px;
}

/* Bouton submit */
.bs-sa-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1A1A1A;
    color: #C9A84C !important;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #C9A84C;
    border-radius: 4px;
    padding: 14px 36px;
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
    width: 100%;
    margin-top: 8px;
}

.bs-sa-submit:hover:not(:disabled) {
    background: #C9A84C;
    color: #1A1A1A !important;
    transform: translateY(-1px);
}

.bs-sa-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Message succès */
.bs-sa-success {
    text-align: center;
    padding: 50px 20px;
}

.bs-sa-success svg {
    margin-bottom: 20px;
}

.bs-sa-success h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.bs-sa-success p {
    font-size: 1rem;
    color: #555;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}
