/* =============================================
   Reines en Scène – Gelée Royale | res-gr.css
   ============================================= */

:root {
    --res-green:      #3a6b35;
    --res-green-dark: #2a5227;
    --res-green-light:#eaf4e8;
    --res-gold:       #c8a84b;
    --res-gold-light: #fdf6e3;
    --res-text:       #2c2c2c;
    --res-muted:      #666;
    --res-border:     #d4e8d0;
    --res-radius:     14px;
    --res-shadow:     0 4px 24px rgba(58,107,53,0.10);
}

/* ── Conteneur principal ── */
.res-gr-product-box {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    background: #fff;
    padding: 32px;
    max-width: 900px;
    margin: 32px auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--res-text);
}

/* ── Image ── */
.res-gr-image-wrap {
    position: relative;
    flex: 0 0 260px;
    max-width: 260px;
}
.res-gr-main-img {
    width: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}
.res-gr-badge-bio {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--res-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

/* ── Zone info ── */
.res-gr-info {
    flex: 1 1 300px;
}

.res-gr-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--res-green-dark);
    margin: 0 0 4px;
    line-height: 1.2;
}

.res-gr-subtitle {
    font-size: 0.85rem;
    color: var(--res-muted);
    margin: 0 0 14px;
}

/* ── Étoiles ── */
.res-gr-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.res-gr-stars {
    color: var(--res-gold);
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.res-gr-review-text {
    font-size: 0.85rem;
    color: var(--res-muted);
}

/* ── Prix ── */
.res-gr-price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
}
.res-gr-price-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--res-green);
    line-height: 1;
}
.res-gr-price-unit {
    font-size: 0.9rem;
    color: var(--res-muted);
}

/* ── Sélecteur quantité ── */
.res-gr-qty-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--res-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.res-gr-qty-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.res-gr-qty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 2px solid var(--res-border);
    border-radius: var(--res-radius);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    min-width: 72px;
    font-family: inherit;
}

.res-gr-qty-btn:hover {
    border-color: var(--res-green);
    background: var(--res-green-light);
}

.res-gr-qty-btn.active {
    border-color: var(--res-green);
    background: var(--res-green-light);
    box-shadow: 0 0 0 3px rgba(58,107,53,0.15);
}

.res-gr-qty-label-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--res-green-dark);
}

.res-gr-qty-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
}

/* ── Quantité personnalisée ── */
.res-gr-custom-qty-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    background: var(--res-green-light);
    border: 1.5px solid var(--res-border);
    border-radius: 10px;
    padding: 10px 14px;
}
.res-gr-custom-qty-wrap label {
    font-size: 0.85rem;
    color: var(--res-green-dark);
    font-weight: 600;
    white-space: nowrap;
}
.res-gr-custom-qty {
    width: 80px;
    border: 1.5px solid var(--res-border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--res-green-dark);
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.res-gr-custom-qty:focus {
    border-color: var(--res-green);
}

/* ── Total ── */
.res-gr-total-line {
    font-size: 1rem;
    color: var(--res-muted);
    margin-bottom: 18px;
}
.res-gr-total-price {
    color: var(--res-green);
    font-size: 1.2rem;
    font-weight: 900;
}

/* ── Bouton panier ── */
.res-gr-add-to-cart {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--res-green) 0%, var(--res-green-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--res-radius);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 16px rgba(58,107,53,0.3);
    margin-bottom: 12px;
}
.res-gr-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58,107,53,0.35);
}
.res-gr-add-to-cart:active {
    transform: translateY(0);
}
.res-gr-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ── Feedback ── */
.res-gr-feedback {
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 24px;
    margin-bottom: 12px;
    text-align: center;
}
.res-gr-feedback.success { color: var(--res-green); }
.res-gr-feedback.error   { color: #c0392b; }

/* ── Rassurances ── */
.res-gr-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.res-gr-reassurance span {
    font-size: 0.8rem;
    color: var(--res-green-dark);
    background: var(--res-green-light);
    border: 1px solid var(--res-border);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .res-gr-product-box {
        flex-direction: column;
        padding: 20px;
    }
    .res-gr-image-wrap {
        flex: 0 0 auto;
        max-width: 100%;
    }
    .res-gr-title {
        font-size: 1.3rem;
    }
}
