/* ── Crior Options v2.3 — Cartes avec image produit ── */

.crior-options-wrap {
    margin: 0 0 28px;
}
.crior-options-title {
    font-size: 20px;
    font-weight: 500;
    color: #3a2e1e;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}
.crior-options-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* ── Carte ── */
.crior-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e8e0d4;
    border-radius: 10px;
    padding: 10px 16px;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.crior-option-card:hover {
    border-color: #c9a96e;
    box-shadow: 0 1px 4px rgba(185, 145, 60, 0.10);
}
.crior-option-card--active {
    border-color: #b8913c;
    background: #fdf8ef;
    box-shadow: 0 1px 6px rgba(185, 145, 60, 0.12);
}
/* ── Côté gauche : image + texte ── */
.crior-option-card__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
/* Image mise en avant du produit */
.crior-option-card__img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5efe2;
    border: 1px solid #e8e0d4;
}
.crior-option-card--active .crior-option-card__img {
    border-color: #c9a96e;
}
.crior-option-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.crior-option-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.crior-option-card__name {
    font-size: 14px;
    font-weight: 500;
    color: #3a2e1e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.crior-option-card__price {
    font-size: 12px;
    color: #8c7a5e;
}
/* ── Côté droit : sous-total + quantité ── */
.crior-option-card__right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.crior-option-sub {
    font-size: 13px;
    font-weight: 500;
    color: #7a5f2a;
    min-width: 46px;
    text-align: right;
}
/* ── Contrôle quantité ── */
.crior-option-card__qty {
    display: flex;
    align-items: center;
    border: 1px solid #d8cfc3;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
}
.crior-option-card--active .crior-option-card__qty {
    border-color: #b8913c;
}
button.crior-qty-btn {
    width: 32px;
    height: 37px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #7a6540;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.14s;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.crior-qty-btn:hover { background: #f5efe2; color: #4a3510; }
.crior-qty-btn:active { background: #ede2cc; }
.crior-qty-input {
    width: 36px;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #3a2e1e;
    background: transparent;
    padding: 0;
    -moz-appearance: textfield;
}
.crior-qty-input::-webkit-outer-spin-button,
.crior-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* ── Notice admin ── */
.crior-option-warn {
    padding: 8px 14px;
    background: #fff3cd;
    border: 1px solid #f0c040;
    border-radius: 6px;
    font-size: 13px;
    color: #7a5a00;
}
/* ── Responsive ── */
@media (max-width: 480px) {
    .crior-option-card { flex-wrap: wrap; }
    .crior-option-card__right { width: 100%; justify-content: space-between; }
    .crior-option-card__img { width: 40px; height: 40px; }
}
/* ── Bouton + désactivé (max atteint) ── */
.crior-qty-btn--disabled,
.crior-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
