/* AstroShop Public CSS */

.astroshop-product {
    max-width: 600px;
    margin: 0 auto;
    font-family: inherit;
}

.astroshop-product-header {
    margin-bottom: 24px;
}

.astroshop-product-header h2 {
    color: #738B83;
    margin-bottom: 8px;
}

.astroshop-product-desc {
    color: #555;
    margin-bottom: 12px;
}

.astroshop-delay {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Choix du format */
.astroshop-format-choice {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.astroshop-format-option {
    flex: 1;
    min-width: 140px;
    border: 2px solid #d4e0dd;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.astroshop-format-option:has(input:checked) {
    border-color: #738B83;
    background: #f4f7f6;
}

.astroshop-format-option input[type="radio"] {
    accent-color: #738B83;
}

.astroshop-format-option span {
    font-size: 15px;
}

.astroshop-price {
    font-size: 16px;
    margin-bottom: 20px;
    color: #444;
}

/* Champs du formulaire */
.astroshop-field {
    margin-bottom: 18px;
}

.astroshop-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
    font-size: 14px;
}

.astroshop-field input[type="text"],
.astroshop-field input[type="email"],
.astroshop-field select,
.astroshop-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0c8e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff;
}

.astroshop-field input:focus,
.astroshop-field select:focus,
.astroshop-field textarea:focus {
    outline: none;
    border-color: #738B83;
    box-shadow: 0 0 0 3px rgba(107, 79, 160, 0.1);
}

.astroshop-field textarea {
    min-height: 90px;
    resize: vertical;
}

/* Zone paiement Stripe */
.astroshop-payment-element {
    background: #f4f7f6;
    border: 1px solid #d4e0dd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.astroshop-errors {
    color: #c0392b;
    font-size: 14px;
    margin-top: 10px;
}

/* Bouton commander */
.astroshop-btn-order {
    width: 100%;
    padding: 14px;
    background: #738B83;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
}

.astroshop-btn-order:hover {
    background: #5c7269;
}

.astroshop-btn-order:active {
    transform: scale(0.99);
}

.astroshop-btn-order:disabled {
    background: #b0a0cc;
    cursor: not-allowed;
}

/* Feedback */
.astroshop-form-feedback {
    margin-top: 14px;
    font-size: 14px;
    text-align: center;
}

.astroshop-form-feedback.success { color: #2d6a4f; }
.astroshop-form-feedback.error   { color: #c0392b; }

/* Catalogue */
.astroshop-catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}


.astroshop-catalogue-card {
    border: 1px solid #d4e0dd;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.astroshop-catalogue-card:hover {
    box-shadow: 0 4px 16px rgba(107, 79, 160, 0.12);
}

.astroshop-catalogue-card h3 {
    color: #738B83;
    margin-top: 0;
    margin-bottom: 10px;
}

.astroshop-catalogue-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.astroshop-catalogue-prices {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.astroshop-catalogue {
    padding: 0 20px;
}


.badge-digital { background: #e8f4fd; color: #1a6fa8; }
.badge-print   { background: #fef3e8; color: #a85c1a; }

/* Responsive */
@media (max-width: 480px) {
    .astroshop-format-choice { flex-direction: column; }
    .astroshop-catalogue-grid { grid-template-columns: 1fr; }
}

/* Code promo */
.astroshop-promo-zone { margin-bottom: 18px; }
.astroshop-promo-row  { display: flex; gap: 8px; }
.astroshop-promo-row input { flex: 1; }
.astroshop-promo-btn  {
    padding: 10px 16px;
    background: #eaf0ef;
    border: 1px solid #a8c4bf;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #738B83;
    transition: background 0.2s;
}
.astroshop-promo-btn:hover { background: #d4e0dd; }
.astroshop-promo-msg  { font-size: 13px; margin: 6px 0 0; min-height: 18px; }
.promo-ok    { color: #2d6a4f; }
.promo-error { color: #c0392b; }

/* Total */
.astroshop-total-zone {
    background: #f4f7f6;
    border: 1px solid #d4e0dd;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.astroshop-original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 6px;
}
.astroshop-discount-badge {
    background: #d4edda;
    color: #155724;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 6px;
}

/* Bon cadeau */
.astroshop-gift-checkbox { margin-bottom: 18px; }
.astroshop-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}
.astroshop-checkbox-label input { margin-top: 3px; accent-color: #738B83; }
.astroshop-gift-notice {
    background: #fce4ec;
    border-left: 3px solid #e91e63;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    margin-top: 8px;
    color: #880e4f;
}

/* Multi-livrets */
.astroshop-multi-item {
    border: 1px solid #d4e0dd;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}
.astroshop-multi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f4f7f6;
    cursor: pointer;
}
.astroshop-multi-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}
.astroshop-multi-check { accent-color: #738B83; width: 18px; height: 18px; }
.astroshop-multi-fields { padding: 18px; border-top: 1px solid #d4e0dd; }
.astroshop-multi-title  { color: #444; }
.astroshop-multi-common {
    background: #f4f7f6;
    border: 1px solid #d4e0dd;
    border-radius: 10px;
    padding: 18px;
    margin: 20px 0;
}
.astroshop-multi-common::before {
    content: '👤 Tes informations';
    display: block;
    font-weight: 700;
    color: #738B83;
    margin-bottom: 14px;
    font-size: 15px;
}
