/* ============================================================
   SIBIO Marketplace — boutique, panier, commande, connexion
   Composants partagés par boutique.php, panier.php, commande.php
   et login.php (système de design "sibio").
   ============================================================ */

/* ---------------------------------------------------------
   1. Intro de page (bandeau eyebrow / titre / texte)
   --------------------------------------------------------- */
.sibio-shop-hero {
    padding: 1.5rem 0 2rem;
}

.sibio-shop-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(132, 204, 22, 0.14);
    border: 1px solid rgba(101, 163, 13, 0.22);
    color: #3f6212;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sibio-shop-hero-title {
    margin: 0.85rem 0 0;
    font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: #0f2e1f;
}

.sibio-shop-hero-title strong {
    color: #145c3a;
    background: linear-gradient(135deg, #a3e635, #65a30d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sibio-shop-hero-lead {
    margin: 0.85rem 0 0;
    max-width: 46rem;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #4b6358;
}

/* ---------------------------------------------------------
   2. Boutons partagés
   --------------------------------------------------------- */
.sibio-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.sibio-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.sibio-btn--primary {
    background: linear-gradient(135deg, #a3e635, #84cc16);
    color: #0f2e1f;
    box-shadow: 0 12px 28px rgba(132, 204, 22, 0.3);
}

.sibio-btn--primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(132, 204, 22, 0.36);
}

.sibio-btn--dark {
    background: linear-gradient(135deg, #166534, #145c3a);
    color: #ecfccb;
    box-shadow: 0 12px 28px rgba(15, 46, 31, 0.22);
}

.sibio-btn--dark:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 46, 31, 0.28);
}

.sibio-btn--ghost {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(20, 83, 45, 0.14);
    color: #145c3a;
}

.sibio-btn--ghost:hover:not(:disabled) {
    border-color: rgba(101, 163, 13, 0.4);
    background: rgba(236, 252, 203, 0.55);
}

.sibio-btn--danger {
    background: rgba(254, 226, 226, 0.7);
    border-color: rgba(185, 28, 28, 0.25);
    color: #991b1b;
}

.sibio-btn--danger:hover:not(:disabled) {
    background: rgba(254, 226, 226, 0.95);
    border-color: rgba(185, 28, 28, 0.4);
}

.sibio-btn--block {
    display: flex;
    width: 100%;
}

.sibio-btn--sm {
    padding: 0.6rem 1.05rem;
    font-size: 0.78rem;
}

.sibio-btn--icon {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 0.9rem;
    flex: 0 0 auto;
}

/* ---------------------------------------------------------
   3. Champs de formulaire partagés
   --------------------------------------------------------- */
.sibio-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sibio-field-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3f6212;
}

.sibio-field-label .req {
    color: #ca8a04;
}

.sibio-field input,
.sibio-field select,
.sibio-field textarea {
    width: 100%;
    padding: 0.85rem 1.05rem;
    border-radius: 1rem;
    border: 1.5px solid rgba(20, 83, 45, 0.12);
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    color: #0f2e1f;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: var(--font-sans);
}

.sibio-field textarea {
    resize: vertical;
    min-height: 6rem;
}

.sibio-field input:focus,
.sibio-field select:focus,
.sibio-field textarea:focus {
    border-color: rgba(101, 163, 13, 0.45);
    box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.15);
    background: #ffffff;
}

.sibio-field input::placeholder,
.sibio-field textarea::placeholder {
    color: #9db0a4;
}

.sibio-field-hint {
    font-size: 0.78rem;
    color: #6b8479;
}

.sibio-field-error {
    font-size: 0.78rem;
    font-weight: 700;
    color: #b91c1c;
    display: none;
}

.sibio-field.has-error input,
.sibio-field.has-error select,
.sibio-field.has-error textarea {
    border-color: rgba(185, 28, 28, 0.45);
}

.sibio-field.has-error .sibio-field-error {
    display: block;
}

/* ---------------------------------------------------------
   4. Barre d'outils boutique (recherche + filtres)
   --------------------------------------------------------- */
.sibio-shop-toolbar {
    position: sticky;
    top: 100px;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.75rem;
    border-radius: 1.35rem;
    background: rgba(245, 251, 246, 0.92);
    border: 1px solid rgba(20, 83, 45, 0.08);
    box-shadow: 0 12px 32px rgba(15, 46, 31, 0.06);
    backdrop-filter: blur(10px);
}

.sibio-shop-search {
    position: relative;
    flex: 1 1 14rem;
    min-width: 12rem;
}

.sibio-shop-search input {
    width: 100%;
    padding: 0.8rem 1.1rem 0.8rem 2.6rem;
    border-radius: 999px;
    border: 1.5px solid rgba(20, 83, 45, 0.12);
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    color: #0f2e1f;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-sans);
}

.sibio-shop-search input:focus {
    border-color: rgba(101, 163, 13, 0.45);
    box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.15);
}

.sibio-shop-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #65a30d;
    pointer-events: none;
}

.sibio-shop-toolbar select {
    padding: 0.8rem 2.2rem 0.8rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid rgba(20, 83, 45, 0.12);
    background: rgba(255, 255, 255, 0.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23166534' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1.05rem center;
    appearance: none;
    -webkit-appearance: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #145c3a;
    outline: none;
    cursor: pointer;
    min-width: 9.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--font-sans);
}

.sibio-shop-toolbar select:focus {
    border-color: rgba(101, 163, 13, 0.45);
    box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.15);
}

.sibio-shop-toolbar-spacer {
    flex: 1 0 auto;
}

.sibio-shop-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #166534, #65a30d);
    color: #ecfccb;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(22, 101, 52, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sibio-shop-cart-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(22, 101, 52, 0.3);
}

.sibio-shop-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ca8a04;
    color: #fffbeb;
    font-size: 0.72rem;
    font-weight: 800;
}

.sibio-shop-cart-count[hidden] {
    display: none;
}

/* ---------------------------------------------------------
   5. Grille & cartes produits
   --------------------------------------------------------- */
.sibio-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 1.25rem;
    padding-bottom: 3rem;
}

.sibio-shop-card {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 83, 45, 0.08);
    box-shadow: 0 12px 32px rgba(15, 46, 31, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sibio-shop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(101, 163, 13, 0.3);
    box-shadow: 0 20px 44px rgba(15, 46, 31, 0.12);
}

.sibio-shop-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(236, 252, 203, 0.45);
}

.sibio-shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sibio-shop-card:hover .sibio-shop-card-media img {
    transform: scale(1.05);
}

.sibio-shop-card-type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 46, 31, 0.72);
    backdrop-filter: blur(6px);
    color: #ecfccb;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sibio-shop-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.65rem;
    padding: 1.1rem 1.15rem 1.25rem;
}

.sibio-shop-card-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f2e1f;
}

.sibio-shop-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #5c7166;
}

.sibio-shop-card-meta strong {
    color: #3f6212;
    font-weight: 700;
}

.sibio-shop-card-price {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ca8a04;
}

.sibio-shop-card-price small {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9db0a4;
}

.sibio-shop-card-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sibio-shop-card-actions .sibio-btn--primary {
    flex: 1;
}

.sibio-shop-card-cart-btn {
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 auto;
    border-radius: 0.9rem;
    background: rgba(236, 252, 203, 0.65);
    border: 1.5px solid rgba(101, 163, 13, 0.25);
    color: #166534;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.sibio-shop-card-cart-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(101, 163, 13, 0.5);
}

.sibio-shop-card-cart-btn.is-active {
    background: linear-gradient(135deg, #a3e635, #84cc16);
    border-color: transparent;
    color: #0f2e1f;
}

.sibio-shop-empty {
    grid-column: 1 / -1;
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
    border: 1.5px dashed rgba(101, 163, 13, 0.3);
    background: rgba(236, 252, 203, 0.35);
    text-align: center;
    color: #3f6212;
    font-size: 0.95rem;
}

/* ---------------------------------------------------------
   6. Fenêtres modales (ajout produit, confirmations)
   --------------------------------------------------------- */
.sibio-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 5.5rem 1.25rem 1.5rem;
    background: rgba(8, 20, 14, 0.55);
    backdrop-filter: blur(6px);
    overflow-y: auto;
}

.sibio-modal-overlay.is-open {
    display: flex;
}

.sibio-modal {
    width: 100%;
    max-width: 38rem;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(8, 20, 14, 0.3);
    overflow: hidden;
    transform: translateY(16px);
    opacity: 0;
    animation: sibio-modal-in 0.3s ease forwards;
}

@keyframes sibio-modal-in {
    to { transform: translateY(0); opacity: 1; }
}

.sibio-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid rgba(20, 83, 45, 0.08);
}

.sibio-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f2e1f;
}

.sibio-modal-header p {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    color: #6b8479;
}

.sibio-modal-close {
    flex: 0 0 auto;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.7rem;
    background: rgba(236, 252, 203, 0.6);
    color: #145c3a;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.sibio-modal-body {
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - 14rem);
    overflow-y: auto;
}

.sibio-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.sibio-modal-grid .sibio-field--full {
    grid-column: 1 / -1;
}

.sibio-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 1.1rem 1.5rem 1.35rem;
    border-top: 1px solid rgba(20, 83, 45, 0.08);
}

.sibio-modal-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    background: rgba(245, 251, 246, 0.85);
    border: 1px solid rgba(20, 83, 45, 0.08);
    font-size: 0.85rem;
    color: #365949;
}

.sibio-modal-summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.sibio-modal-summary strong {
    color: #0f2e1f;
}

.sibio-shop-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 9rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 2px dashed rgba(101, 163, 13, 0.3);
    background: rgba(245, 251, 246, 0.6);
    color: #4b6358;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sibio-shop-upload.is-dragover {
    border-color: rgba(101, 163, 13, 0.6);
    background: rgba(236, 252, 203, 0.55);
}

.sibio-shop-upload img.preview {
    max-width: 100%;
    max-height: 11rem;
    border-radius: 0.75rem;
    object-fit: cover;
}

/* ---------------------------------------------------------
   7. Panier
   --------------------------------------------------------- */
.sibio-cart-layout {
    display: grid;
    grid-template-columns: 1fr 22rem;
    gap: 1.75rem;
    align-items: start;
    padding-bottom: 4rem;
}

.sibio-cart-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sibio-cart-item {
    display: grid;
    grid-template-columns: 5.5rem 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 83, 45, 0.08);
    box-shadow: 0 10px 28px rgba(15, 46, 31, 0.05);
}

.sibio-cart-item-media {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(236, 252, 203, 0.5);
}

.sibio-cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sibio-cart-item-name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f2e1f;
}

.sibio-cart-item-meta {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #6b8479;
}

.sibio-cart-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.sibio-cart-qty {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1.5px solid rgba(20, 83, 45, 0.12);
    background: rgba(245, 251, 246, 0.8);
    overflow: hidden;
}

.sibio-cart-qty button {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
    cursor: pointer;
}

.sibio-cart-qty button:hover {
    background: rgba(163, 230, 53, 0.25);
}

.sibio-cart-qty span {
    min-width: 2rem;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #0f2e1f;
}

.sibio-cart-remove {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(185, 28, 28, 0.18);
    background: rgba(254, 242, 242, 0.8);
    color: #b91c1c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.sibio-cart-remove:hover {
    background: rgba(254, 226, 226, 0.95);
}

.sibio-cart-empty {
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
    border: 1.5px dashed rgba(101, 163, 13, 0.3);
    background: rgba(236, 252, 203, 0.35);
    text-align: center;
    color: #3f6212;
}

.sibio-cart-empty a {
    font-weight: 800;
    color: #166534;
    text-decoration: underline;
}

.sibio-cart-summary {
    position: sticky;
    top: 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 83, 45, 0.08);
    box-shadow: 0 16px 40px rgba(15, 46, 31, 0.08);
}

.sibio-cart-summary h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f2e1f;
}

.sibio-cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: #4b6358;
}

.sibio-cart-summary-line strong {
    color: #0f2e1f;
}

.sibio-cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(20, 83, 45, 0.15);
    font-size: 1.15rem;
    font-weight: 800;
    color: #145c3a;
}

.sibio-cart-summary-note {
    font-size: 0.78rem;
    color: #ca8a04;
    font-weight: 700;
}

/* ---------------------------------------------------------
   8. Confirmation overlay (panier & commande)
   --------------------------------------------------------- */
.sibio-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 5100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(8, 20, 14, 0.6);
    backdrop-filter: blur(6px);
}

.sibio-confirm-overlay.is-open {
    display: flex;
}

.sibio-confirm-modal {
    width: 100%;
    max-width: 28rem;
    padding: 1.65rem;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(8, 20, 14, 0.3);
}

.sibio-confirm-modal h3 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f2e1f;
}

.sibio-confirm-modal p {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #4b6358;
}

.sibio-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

/* ---------------------------------------------------------
   9. Page commande (fiche produit + formulaire)
   --------------------------------------------------------- */
.sibio-checkout-card {
    border-radius: 1.75rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 45, 0.08);
    box-shadow: 0 20px 56px rgba(15, 46, 31, 0.08);
    margin-bottom: 4rem;
}

.sibio-checkout-hero {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(236, 252, 203, 0.55), rgba(245, 251, 246, 0.85));
}

.sibio-checkout-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 0 1.75rem 1.75rem;
}

.sibio-checkout-media img {
    width: 100%;
    max-width: 26rem;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(15, 46, 31, 0.16);
}

.sibio-checkout-details {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: center;
    padding: 1.75rem 1.75rem 1.75rem 0;
}

.sibio-checkout-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(202, 138, 4, 0.12);
    border: 1px solid rgba(202, 138, 4, 0.22);
    color: #ca8a04;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sibio-checkout-name {
    margin: 0;
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
    font-weight: 800;
    color: #0f2e1f;
    line-height: 1.3;
}

.sibio-checkout-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    width: fit-content;
    padding: 0.45rem 1.1rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #166534, #145c3a);
    color: #ecfccb;
}

.sibio-checkout-price .amount {
    font-size: 1.25rem;
    font-weight: 800;
}

.sibio-checkout-price .unit {
    font-size: 0.72rem;
    opacity: 0.8;
}

.sibio-checkout-origin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: fit-content;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(236, 252, 203, 0.7);
    color: #166534;
    font-size: 0.78rem;
    font-weight: 700;
}

.sibio-checkout-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.sibio-checkout-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.6);
}

.sibio-checkout-meta-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3f6212;
}

.sibio-checkout-meta-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f2e1f;
    word-break: break-word;
}

.sibio-checkout-desc {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    line-height: 1.65;
    color: #5c7166;
    max-width: 32rem;
}

.sibio-checkout-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    background: rgba(245, 247, 242, 0.7);
    border-bottom: 1px solid rgba(20, 83, 45, 0.06);
}

.sibio-checkout-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 45, 0.1);
    font-size: 0.74rem;
    font-weight: 700;
    color: #166534;
}

.sibio-checkout-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: clamp(1.25rem, 3vw, 2.5rem);
}

.sibio-checkout-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sibio-checkout-section--full {
    grid-column: 1 / -1;
}

.sibio-checkout-section-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ca8a04;
}

.sibio-checkout-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(20, 83, 45, 0.1);
}

.sibio-checkout-qty-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-radius: 1.25rem;
    border: 1.5px solid rgba(20, 83, 45, 0.1);
    background: rgba(245, 251, 246, 0.6);
}

.sibio-checkout-qty-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b6358;
}

.sibio-checkout-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.sibio-checkout-total-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b8479;
}

.sibio-checkout-total-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: #145c3a;
}

.sibio-checkout-total-amount span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b8479;
}

.sibio-checkout-status {
    grid-column: 1 / -1;
    display: none;
    gap: 0.75rem;
    padding: 1.1rem 1.35rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(101, 163, 13, 0.25);
    background: rgba(236, 252, 203, 0.5);
    color: #145c3a;
    font-size: 0.88rem;
    line-height: 1.65;
}

.sibio-checkout-status.is-active {
    display: flex;
}

.sibio-checkout-status.is-warning {
    border-color: rgba(202, 138, 4, 0.3);
    background: rgba(254, 243, 199, 0.55);
    color: #92400e;
}

.sibio-checkout-status.is-error {
    border-color: rgba(185, 28, 28, 0.3);
    background: rgba(254, 226, 226, 0.6);
    color: #991b1b;
}

.sibio-checkout-status-dot {
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.35rem;
    border-radius: 50%;
    background: #65a30d;
    flex: 0 0 auto;
}

.sibio-checkout-status.is-warning .sibio-checkout-status-dot {
    background: #ca8a04;
}

.sibio-checkout-status.is-error .sibio-checkout-status-dot {
    background: #dc2626;
}

.sibio-checkout-summary {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.35rem 1.5rem;
    border-radius: 1.25rem;
    background: rgba(245, 251, 246, 0.7);
    border: 1px solid rgba(20, 83, 45, 0.08);
}

.sibio-checkout-summary.is-active {
    display: flex;
}

.sibio-checkout-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.sibio-checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 45, 0.06);
    font-size: 0.82rem;
}

.sibio-checkout-summary-item strong {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b8479;
}

.sibio-checkout-summary-item span {
    font-weight: 700;
    color: #0f2e1f;
    text-align: right;
}

.sibio-checkout-success {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(236, 252, 203, 0.7), rgba(217, 249, 157, 0.45));
    border: 1px solid rgba(101, 163, 13, 0.25);
}

.sibio-checkout-success.is-active {
    display: flex;
}

.sibio-checkout-success-icon {
    font-size: 2.25rem;
}

.sibio-checkout-success-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #145c3a;
}

.sibio-checkout-success-sub {
    font-size: 0.85rem;
    color: #4b6358;
    max-width: 28rem;
}

@media (max-width: 760px) {
    .sibio-checkout-hero {
        grid-template-columns: 1fr;
    }

    .sibio-checkout-media {
        padding: 1.5rem 1.5rem 0;
    }

    .sibio-checkout-details {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .sibio-checkout-body {
        grid-template-columns: 1fr;
    }

    .sibio-checkout-meta,
    .sibio-checkout-summary-grid {
        grid-template-columns: 1fr;
    }

    .sibio-cart-layout {
        grid-template-columns: 1fr;
    }

    .sibio-cart-summary {
        position: static;
    }

    .sibio-cart-item {
        grid-template-columns: 4.25rem 1fr;
    }

    .sibio-cart-item-side {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .sibio-shop-toolbar {
        top: 92px;
    }

    .sibio-shop-toolbar select,
    .sibio-shop-search {
        flex: 1 1 100%;
    }

    .sibio-modal-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   10. Connexion / inscription
   --------------------------------------------------------- */
.sibio-auth-wrap {
    display: flex;
    justify-content: center;
    padding: 2rem 0 5rem;
}

.sibio-auth-card {
    width: 100%;
    max-width: 28rem;
    padding: 2rem;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(20, 83, 45, 0.08);
    box-shadow: 0 20px 56px rgba(15, 46, 31, 0.1);
}

.sibio-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    padding: 0.35rem;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: rgba(236, 252, 203, 0.5);
}

.sibio-auth-tab {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #4b6358;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sibio-auth-tab.is-active {
    background: #ffffff;
    color: #145c3a;
    box-shadow: 0 8px 20px rgba(15, 46, 31, 0.1);
}

.sibio-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sibio-auth-form[hidden] {
    display: none;
}

.sibio-auth-message {
    padding: 0.85rem 1.05rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.55;
    display: none;
}

.sibio-auth-message.is-active {
    display: block;
}

.sibio-auth-message.is-error {
    background: rgba(254, 226, 226, 0.7);
    border: 1px solid rgba(185, 28, 28, 0.2);
    color: #991b1b;
}

.sibio-auth-message.is-success {
    background: rgba(236, 252, 203, 0.7);
    border: 1px solid rgba(101, 163, 13, 0.25);
    color: #145c3a;
}

.sibio-auth-foot {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.82rem;
    color: #6b8479;
}

.sibio-auth-foot a {
    font-weight: 800;
    color: #166534;
    text-decoration: underline;
}

.sibio-auth-demo {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(245, 251, 246, 0.8);
    border: 1px dashed rgba(101, 163, 13, 0.3);
    font-size: 0.78rem;
    color: #4b6358;
    line-height: 1.6;
}

.sibio-auth-demo strong {
    color: #145c3a;
}

/* ---------------------------------------------------------
   11. Super admin — vendeurs
   --------------------------------------------------------- */
#adminDenied[hidden],
#adminDashboard[hidden] {
    display: none;
}

.sibio-admin-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem 0 5rem;
}

.sibio-admin-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5c7166;
    border: 1px dashed rgba(101, 163, 13, 0.3);
    border-radius: 1.25rem;
    background: rgba(245, 251, 246, 0.8);
}

.sibio-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.sibio-admin-stat {
    padding: 1.1rem 1.25rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 45, 0.1);
    box-shadow: 0 12px 32px rgba(15, 46, 31, 0.06);
}

.sibio-admin-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f2e1f;
}

.sibio-admin-stat span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5c7166;
}

.sibio-admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.sibio-admin-filter {
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 83, 45, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: #145c3a;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.sibio-admin-filter:hover {
    border-color: rgba(101, 163, 13, 0.4);
}

.sibio-admin-filter.is-active {
    background: linear-gradient(135deg, #a3e635, #84cc16);
    border-color: transparent;
    color: #0f2e1f;
}

.sibio-admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sibio-admin-seller-card {
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(20, 83, 45, 0.1);
    box-shadow: 0 12px 32px rgba(15, 46, 31, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sibio-admin-seller-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sibio-admin-seller-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f2e1f;
}

.sibio-admin-seller-meta {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: #5c7166;
}

.sibio-admin-seller-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem 1.25rem;
}

.sibio-admin-seller-details > div {
    font-size: 0.85rem;
    color: #4b6358;
}

.sibio-admin-seller-details strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #145c3a;
}

.sibio-admin-seller-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.fapbio-admin-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    white-space: nowrap;
}

.fapbio-admin-badge.is-pending {
    background: rgba(254, 243, 199, 0.55);
    border-color: rgba(202, 138, 4, 0.3);
    color: #92400e;
}

.fapbio-admin-badge.is-approved {
    background: rgba(236, 252, 203, 0.6);
    border-color: rgba(101, 163, 13, 0.25);
    color: #145c3a;
}

.fapbio-admin-badge.is-suspended,
.fapbio-admin-badge.is-rejected {
    background: rgba(254, 226, 226, 0.6);
    border-color: rgba(185, 28, 28, 0.3);
    color: #991b1b;
}
