/* =========================================================
   CONTENEUR GENERAL
   ========================================================= */

.azs-builder {
    margin: 20px 0;
}

.azs-builder,
.azs-builder * {
    box-sizing: border-box;
}
.azs-add-character{

    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #c63c3c;
    border-radius: 10px;
    background: #c63c3c;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.azs-submit-cart

{

	border: 1px solid #339403!important;
    background: #339403!important;
    color: #fff;

}
/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */

.azs-builder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}


/* =========================================================
   BLOCS
   ========================================================= */

.azs-box {
    margin-bottom: 15px;
    padding: 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
}

.azs-box h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.3;
}


/* =========================================================
   APERCU
   ========================================================= */

.azs-preview-box {
    position: sticky;
    top: 20px;
}

.azs-preview-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
}


/* =========================================================
   ONGLETS / TABS
   ========================================================= */

.azs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.azs-tab {
    padding: 8px 12px;
    background: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.azs-tab:hover {
    border-color: #111;
    color: #111;
}

.azs-tab.active {
    background: #111;
    color: #fff;
    border-color: #111;
}


/* =========================================================
   COULEURS
   ========================================================= */

.azs-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
margin-top: 10px;
}

.azs-color-chip {
    width: 34px;
    height: 34px;
    border: 2px solid #ddd;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.azs-color-chip:hover {
    border-color: #111;
}

.azs-color-chip.active {
    outline: 3px solid #111;
    outline-offset: 2px;
}


/* =========================================================
   GRILLE DES PERSONNAGES / ASSETS
   ========================================================= */

.azs-asset-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.azs-asset-card {
    padding: 8px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.azs-asset-card:hover {
    border-color: #111;
    transform: translateY(-1px);
}

.azs-asset-card.active {
    border-color: #111;
    box-shadow: 0 0 0 2px #111 inset;
}

.azs-asset-card img {
    display: block;
    max-width: 100%;
    height: 70px;
    margin: 0 auto 6px auto;
    object-fit: contain;
}


/* =========================================================
   LIGNES PERSONNAGES
   ========================================================= */

.azs-char-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

.azs-char-row input {
    max-width: 160px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.azs-char-row input:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}


/* =========================================================
   PRIX ET ACTIONS
   ========================================================= */

.azs-price-row {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 700;
}

.azs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.azs-actions button,
.azs-actions .button,
.azs-actions .btn {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #111;
    border-radius: 10px;
    background: #111;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.azs-actions button:hover,
.azs-actions .button:hover,
.azs-actions .btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}


/* =========================================================
   ERREURS
   ========================================================= */

.azs-errors {
    margin-top: 10px;
    color: #b42318;
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   MES DESIGNS
   ========================================================= */

.azs-my-designs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.azs-design-card {
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
}

.azs-design-card img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
    border-radius: 8px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .azs-builder-grid {
        grid-template-columns: 1fr;
    }

    .azs-asset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .azs-preview-box {
        position: static;
    }
}

@media (max-width: 600px) {
    .azs-box {
        padding: 14px;
    }

    .azs-box h3 {
        font-size: 17px;
    }

    .azs-tab {
        width: 100%;
        text-align: center;
    }

    .azs-asset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .azs-char-row {
        flex-direction: column;
        align-items: stretch;
    }

    .azs-char-row input {
        max-width: 100%;
        width: 100%;
    }

    .azs-actions {
        flex-direction: column;
    }

    .azs-actions button,
    .azs-actions .button,
    .azs-actions .btn {
        width: 100%;
    }
}
