/* ============================================================
   PAGE PANIER — layout indépendant
============================================================ */

.panier-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 80px;
}

.panier-page-header {
    margin-bottom: 24px;
}

.panier-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.panier-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
}

.panier-breadcrumb a:hover {
    color: var(--accent, #eb1a61);
}

.panier-page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.panier-count-label {
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
}

/* ---- Layout 2 colonnes ---- */
.panier-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.panier-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.panier-section {
    background: #fff;
    border: 1px solid #f1f1f4;
    border-radius: 16px;
    padding: 20px 22px;
}

.panier-section h2 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
}

.panier-summary {
    position: sticky;
    top: 90px;
}

.panier-summary-card {
    background: #fff;
    border: 1px solid #f1f1f4;
    border-radius: 16px;
    padding: 20px 22px;
}

.panier-summary-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
}

.panier-continue-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.panier-continue-link:hover {
    color: var(--accent, #eb1a61);
}

/* ---- État vide ---- */
.panier-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 70px 20px;
    color: #64748b;
}

.panier-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f8fb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #cbd5e1;
}

.panier-empty h3 {
    font-size: 17px;
    color: #0f172a;
    margin: 0 0 6px;
}

.panier-empty p {
    font-size: 13.5px;
    margin: 0 0 18px;
}

.panier-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent, #eb1a61);
    color: #fff;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

/* ---- Champs de formulaire (repris du sheet) ---- */
.form-field {
    position: relative;
    margin: 10px 0 14px;
}

.form-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-field .req {
    color: var(--accent, #eb1a61);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #f9fafb;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent, #eb1a61);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(235, 26, 97, .12);
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: .78rem;
    color: #b91c1c;
}

.field-invalid {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
}

#suggestions {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}

.suggestion-item {
    padding: 9px 13px;
    font-size: 13px;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #fff5f9;
}

.suggestion-loading,
.suggestion-empty {
    color: #94a3b8;
    cursor: default;
}

.row-split {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

/* ---- Toggle Colis / Province ---- */
.colis-toggle {
    display: flex;
    align-items: center;
}

.colis-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1.5px solid #f3c6d8;
    border-radius: 12px;
    background: #fff5f9;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    margin: 0;
}

.colis-switch:hover {
    border-color: var(--accent, #eb1a61);
}

.colis-switch .form-check-input {
    width: 2.4em;
    height: 1.3em;
    cursor: pointer;
    margin: 0;
}

.colis-switch .form-check-input:checked {
    background-color: var(--accent, #eb1a61);
    border-color: var(--accent, #eb1a61);
}

.colis-switch-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.colis-switch-text strong {
    font-size: .9rem;
    color: #1f2937;
}

.colis-switch-text small {
    font-size: .7rem;
    color: #6b7280;
}

.colis-switch:has(.form-check-input:checked) {
    border-color: var(--accent, #eb1a61);
    background: #ffe6ef;
    box-shadow: 0 0 0 3px rgba(235, 26, 97, .12);
}

.colis-switch:has(.form-check-input:checked) .colis-switch-text strong {
    color: var(--accent, #eb1a61);
}

.colis-hint {
    display: block;
    margin: 8px 0 0;
    font-size: .78rem;
    color: #6b7280;
    line-height: 1.35;
}

.delivery-info {
    font-size: 13px;
    color: #334155;
    margin: 10px 0 0;
}

/* ---- Moyens de paiement ---- */
.payment-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-method-card {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.payment-method-card:has(input:checked) {
    border-color: var(--accent, #eb1a61);
    background: #fff5f9;
}

.payment-method-card img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.payment-method-card input {
    width: auto;
}

.mvola-box {
    display: none;
    margin-top: 6px;
}

.mvola-box.open {
    display: block;
}

/* ---- Champs invité (page, plus de modal) ---- */
.guest-fields {
    background: #fff7ed;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.guest-fields-hint strong {
    font-size: 13px;
    color: #92400e;
}

.guest-fields-hint p {
    font-size: 12.5px;
    color: #78350f;
    margin: 4px 0 12px;
}

.guest-fields-hint a {
    color: var(--accent, #eb1a61);
    font-weight: 600;
    text-decoration: none;
}

/* ---- Articles du panier ---- */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f4;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: #f8f8fb;
    flex-shrink: 0;
}

.cart-item-body {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price {
    font-size: 13px;
    color: var(--accent, #eb1a61);
    font-weight: 600;
    margin: 0 0 6px;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px 4px;
}

.cart-item-qty button {
    width: 22px;
    height: 22px;
    border: none;
    background: #f8f8fb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.cart-item-qty .qty-value {
    min-width: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
}

.cart-item-remove:hover {
    color: var(--accent, #eb1a61);
}

/* ---- Résumé ---- */
.cart-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #475569;
}

.cart-summary-row.total {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.cart-final-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--accent, #eb1a61);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cart-final-btn:disabled {
    opacity: .7;
    cursor: default;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .panier-layout {
        grid-template-columns: 1fr;
    }

    .panier-summary {
        position: static;
    }
}