/* ============================================
   PANIER PAGE — DESIGN PREMIUM
   ============================================ */

.panier-section {
    padding: 140px 0 80px;
    min-height: 100vh;
    background: linear-gradient(160deg, #FFF8F0 0%, #FFE8F0 50%, #FFF5F7 100%);
    position: relative;
}

.panier-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 600px 400px at 10% 20%, rgba(244, 160, 181, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 300px at 90% 80%, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================
   HEADER PANIER
   ============================================ */
.panier-header {
    text-align: center;
    margin-bottom: 52px;
    position: relative;
    z-index: 1;
    padding: 10px 0;
}

.panier-header-icon {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, var(--rose), var(--rose-dark));
    border: none;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: white;
    animation: headerIconFloat 3s ease-in-out infinite;
    box-shadow: 0 12px 32px rgba(244, 160, 181, 0.35), 0 4px 10px rgba(232, 120, 154, 0.2);
}

@keyframes headerIconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

.panier-header h1 {
    font-size: 46px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.panier-subtitle {
    font-size: 16px;
    color: var(--gray);
    font-weight: 400;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============================================
   GRID LAYOUT
   ============================================ */
.panier-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ============================================
   COLONNE GAUCHE : PRODUITS
   ============================================ */
.panier-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 28px;
}

.panier-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(244, 160, 181, 0.12);
}

.panier-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panier-card-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.panier-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-clear-cart {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
}

.btn-clear-cart:hover {
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
}

.btn-clear-cart svg {
    flex-shrink: 0;
}

.panier-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================
   PANIER VIDE
   ============================================ */
.panier-empty {
    text-align: center;
    padding: 56px 20px;
}

.panier-empty-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(244, 160, 181, 0.1), rgba(244, 160, 181, 0.03));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--rose-pastel);
}

.panier-empty-icon svg {
    opacity: 0.6;
}

.panier-empty h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.panier-empty p {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 28px;
}

.btn-continue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 160, 181, 0.4);
}

.btn-continue svg {
    flex-shrink: 0;
}

/* ============================================
   ITEM PANIER
   ============================================ */
.panier-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(244, 160, 181, 0.1);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: itemSlideIn 0.35s ease-out both;
}

@keyframes itemSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panier-item:hover {
    background: white;
    border-color: rgba(244, 160, 181, 0.2);
    box-shadow: 0 8px 28px rgba(244, 160, 181, 0.1);
}

.panier-item-image {
    width: 110px;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(244, 160, 181, 0.1);
}

.panier-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panier-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.panier-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.panier-item-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panier-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
}

.panier-item-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(244, 160, 181, 0.06);
    border-radius: 10px;
    padding: 2px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rose);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.qty-btn:hover {
    background: var(--rose);
    color: white;
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-value {
    font-weight: 700;
    font-size: 15px;
    min-width: 32px;
    text-align: center;
    color: var(--dark);
}

.panier-item-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.panier-item-unit-price {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray);
}

.panier-item-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--rose);
    letter-spacing: -0.3px;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 12px;
    cursor: pointer;
    padding: 6px 10px;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
}

.btn-remove:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.06);
}

/* ============================================
   COLONNE DROITE : SIDEBAR
   ============================================ */
.panier-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   RÉSUMÉ COMMANDE
   ============================================ */
.panier-summary {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(244, 160, 181, 0.15);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 8px 32px rgba(244, 160, 181, 0.08);
}

.panier-summary h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--dark);
}

.summary-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    color: var(--gray);
}

.summary-line span:last-child {
    font-weight: 600;
    color: var(--dark);
}

.shipping-free {
    color: #22c55e !important;
    font-weight: 600;
}

.shipping-pending {
    color: var(--gray) !important;
    font-weight: 500;
    font-style: italic;
    font-size: 13px;
}

.shipping-cost {
    color: var(--dark) !important;
    font-weight: 700;
}

.shipping-info-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray);
    padding: 4px 0 6px;
    opacity: 0.8;
}

.shipping-info-line svg {
    flex-shrink: 0;
    color: var(--rose);
    opacity: 0.7;
}

.promo-line {
    color: #22c55e;
}

.promo-code-tag {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

.promo-discount {
    color: #22c55e !important;
    font-weight: 700 !important;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 160, 181, 0.3), transparent);
    margin: 16px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 22px;
    padding: 4px 0;
}

.summary-total span:last-child {
    color: var(--rose);
}

/* ============================================
   CODE PROMO
   ============================================ */
.promo-section {
    display: flex;
    gap: 8px;
}

.promo-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.promo-input-wrap svg {
    position: absolute;
    left: 14px;
    color: #c4c0c0;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 1;
    flex-shrink: 0;
}

.promo-input-wrap:focus-within svg {
    color: var(--rose);
}

.promo-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 2px solid #f0eded;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    box-sizing: border-box;
}

.promo-input-wrap input::placeholder {
    color: #c4c0c0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.promo-input-wrap input:focus {
    outline: none;
    border-color: var(--rose);
    background: white;
    box-shadow: 0 0 0 4px rgba(244, 160, 181, 0.1);
}

.btn-promo {
    padding: 12px 18px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    flex-shrink: 0;
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 160, 181, 0.35);
}

.btn-promo:active {
    transform: translateY(0);
}

.promo-message {
    font-size: 13px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    display: none;
    font-weight: 500;
    animation: promoMsgIn 0.3s ease;
}

@keyframes promoMsgIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.promo-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.08);
    color: #dc2626;
    border: 1px solid rgba(231, 76, 60, 0.15);
}

/* ============================================
   BLOC AUTH PANIER — Connexion avant commande
   ============================================ */
.panier-auth-block {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 40px rgba(244, 160, 181, 0.08);
    border: 1px solid rgba(244, 160, 181, 0.15);
    text-align: center;
}

.panier-auth-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(244, 160, 181, 0.15), rgba(244, 160, 181, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--rose);
}

.panier-auth-block h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.panier-auth-block p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 22px;
}

.panier-auth-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.panier-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: 'Outfit', sans-serif;
}

.panier-auth-btn.login {
    background: var(--gradient);
    color: white;
}

.panier-auth-btn.login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 160, 181, 0.4);
}

.panier-auth-btn.register {
    background: rgba(244, 160, 181, 0.1);
    color: var(--rose-dark, #c0527a);
    border: 1.5px solid rgba(244, 160, 181, 0.25);
}

.panier-auth-btn.register:hover {
    background: rgba(244, 160, 181, 0.18);
    border-color: rgba(244, 160, 181, 0.4);
}

.panier-auth-guest {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    padding: 4px;
}

.panier-auth-guest:hover {
    color: var(--dark);
}

/* ============================================
   FORMULAIRE — DESIGN PREMIUM
   ============================================ */
.panier-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 40px rgba(244, 160, 181, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(244, 160, 181, 0.1);
}

.form-header {
    margin-bottom: 24px;
}

.form-header h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.form-header-sub {
    font-size: 13px;
    color: var(--gray);
    font-weight: 400;
}

/* SECTIONS DU FORMULAIRE */
.form-section {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(244, 160, 181, 0.1);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rose);
    margin-bottom: 14px;
    padding-bottom: 0;
}

.form-section-label svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* GRID ROW */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

/* FORM GROUP */
.form-group {
    margin-bottom: 14px;
    position: relative;
}

.panier-form .form-group label {
    position: static;
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    transition: color 0.3s ease;
    pointer-events: auto;
    background: transparent;
    padding: 0;
    z-index: auto;
    left: auto;
    top: auto;
}

.panier-form .form-group:focus-within label {
    color: var(--rose);
}

/* Neutraliser les floating labels de style.css sur le panier */
.panier-form .form-group input:focus~label,
.panier-form .form-group input:not(:placeholder-shown)~label,
.panier-form .form-group input.has-value~label {
    position: static;
    font-size: 13px;
    font-weight: 600;
    top: auto;
    left: auto;
    padding: 0;
    background: transparent;
}

/* SELECT PAYS */
.panier-form .form-group select {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid #f0eded;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    color: var(--dark);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c4c0c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.panier-form .form-group select:focus {
    outline: none;
    border-color: var(--rose);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(244, 160, 181, 0.1), 0 2px 12px rgba(244, 160, 181, 0.06);
}

.panier-form .form-group select option[value=""] {
    color: #c4c0c0;
}

/* INPUTS */
.panier-form .form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid #f0eded;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    color: var(--dark);
}

.panier-form .form-group input::placeholder {
    color: #c4c0c0;
    font-weight: 400;
}

.panier-form .form-group input:hover {
    border-color: #e0dada;
}

.panier-form .form-group input:focus {
    outline: none;
    border-color: var(--rose);
    background: white;
    box-shadow: 0 0 0 4px rgba(244, 160, 181, 0.1), 0 2px 12px rgba(244, 160, 181, 0.06);
}

/* VALIDATION STATES */
.panier-form .form-group input.valid {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.02);
    padding-right: 40px;
}

.panier-form .form-group input.valid:focus {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.08), 0 2px 12px rgba(34, 197, 94, 0.04);
}

.panier-form .form-group input.invalid {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.02);
    padding-right: 40px;
}

.panier-form .form-group input.invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08), 0 2px 12px rgba(239, 68, 68, 0.04);
}

/* VALIDATION ICON (check/cross) */
.input-validation-icon {
    position: absolute;
    right: 12px;
    bottom: 14px;
    transform: scale(0);
    width: 18px;
    height: 18px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.input-validation-icon.show {
    transform: scale(1);
}

.input-validation-icon.valid-icon {
    color: #22c55e;
}

.input-validation-icon.invalid-icon {
    color: #ef4444;
}

/* ERROR MESSAGE INLINE */
.field-error {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #ef4444;
    margin-top: 4px;
    padding-left: 2px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.25s ease;
    height: 0;
    overflow: hidden;
}

.field-error.visible {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: 5px;
}

/* ============================================
   RÉCAP LIVRAISON AVANT BOUTON
   ============================================ */
/* AUTOCOMPLETE ADRESSE */
.address-autocomplete-wrap { position: relative; }
.address-input-container { position: relative; }
.address-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pink);
    pointer-events: none;
    z-index: 1;
}
.address-input-container input {
    padding-left: 40px !important;
}
.address-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1.5px solid rgba(244, 160, 181, 0.3);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(244, 160, 181, 0.2);
    z-index: 999;
    overflow: hidden;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}
.address-suggestions.active { display: block; }
.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid rgba(244, 160, 181, 0.1);
    transition: background 0.15s;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: rgba(244, 160, 181, 0.08); }
.suggestion-item svg { flex-shrink: 0; margin-top: 2px; color: var(--pink); }
.suggestion-main { font-size: 14px; font-weight: 500; color: var(--dark); }
.suggestion-sub { font-size: 12px; color: #999; margin-top: 2px; }
.suggestion-loading {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.shipping-recap {
    margin-top: 20px;
    animation: shippingRecapIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes shippingRecapIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.shipping-recap-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(244, 160, 181, 0.1), rgba(250, 221, 230, 0.15));
    border: 1.5px solid rgba(244, 160, 181, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
}

.shipping-recap-inner svg {
    flex-shrink: 0;
    color: var(--rose);
}

.shipping-recap-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shipping-recap-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.shipping-recap-label strong {
    color: var(--rose);
}

.shipping-recap-delay {
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}

.shipping-recap-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--rose);
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

/* ============================================
   BOUTON COMMANDER
   ============================================ */
.btn-validate-order {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
    font-family: 'Outfit', sans-serif;
}

.btn-validate-order::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-validate-order:hover:not(:disabled)::before {
    opacity: 1;
}

.btn-validate-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(244, 160, 181, 0.4), 0 4px 10px rgba(244, 160, 181, 0.2);
}

.btn-validate-order:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(244, 160, 181, 0.25);
}

.btn-validate-order:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(30%);
}

.btn-validate-order svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.btn-validate-order:hover:not(:disabled) svg {
    transform: translateX(3px);
}

.btn-validate-order .btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-validate-order.loading .btn-spinner {
    display: block;
}

.btn-validate-order.loading span,
.btn-validate-order.loading svg {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   MODALE CONFIRMATION — PREMIUM
   ============================================ */
.order-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.order-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-modal {
    background: white;
    border-radius: 24px;
    padding: 44px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    transform: scale(0.85) translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(244, 160, 181, 0.08);
    position: relative;
    overflow: hidden;
}

.order-modal-overlay.active .order-modal {
    transform: scale(1) translateY(0);
}

.order-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.order-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #22c55e;
    animation: modalIconPop 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalIconPop {
    from {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.order-modal h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.order-modal-number {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 14px;
}

.order-modal-number span {
    font-weight: 700;
    color: var(--rose);
}

.order-modal-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.order-modal-summary {
    background: #fafafa;
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.order-modal-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--gray);
}

.order-modal-line+.order-modal-line {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.order-modal-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--rose);
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(244, 160, 181, 0.35);
}

/* ============================================
   BADGES CONFIANCE
   ============================================ */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(244, 160, 181, 0.08);
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 160, 181, 0.08);
    border-color: rgba(244, 160, 181, 0.2);
}

.trust-item svg {
    color: var(--rose);
    opacity: 0.8;
    flex-shrink: 0;
}

.trust-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    line-height: 1.3;
}

/* ============================================
   CONFETTI ANIMATION
   ============================================ */
.confetti-container {
    position: fixed;
    inset: 0;
    z-index: 10001;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall 3s ease-in forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .panier-grid {
        grid-template-columns: 1fr 380px;
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .panier-grid {
        grid-template-columns: 1fr;
    }

    .panier-sidebar {
        position: static;
    }

    .trust-badges {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .panier-section {
        padding: 120px 0 60px;
    }

    .panier-header h1 {
        font-size: 32px;
    }

    .panier-header-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .panier-card,
    .panier-form,
    .panier-summary {
        padding: 20px;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .panier-item {
        flex-direction: column;
        gap: 14px;
    }

    .panier-item-image {
        width: 100%;
        height: 180px;
        border-radius: 12px;
    }

    .panier-item-footer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .summary-total {
        font-size: 20px;
    }

    .trust-badges {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .trust-item {
        flex-direction: row;
        padding: 14px 16px;
        gap: 10px;
    }

    .order-modal {
        padding: 32px 24px;
        margin: 16px;
        border-radius: 20px;
    }

    .order-modal h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .panier-section {
        padding: 100px 0 40px;
    }

    .panier-section .container {
        padding: 0 12px;
    }

    .panier-header h1 {
        font-size: 26px;
    }

    .panier-subtitle {
        font-size: 13px;
    }

    .panier-card,
    .panier-form,
    .panier-summary,
    .panier-auth-block {
        padding: 14px;
        border-radius: 14px;
    }

    .panier-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .panier-item {
        padding: 14px;
        gap: 12px;
    }

    .panier-item-image {
        height: 160px;
    }

    .panier-item-title {
        font-size: 14px;
    }

    .panier-item-price {
        font-size: 18px;
    }

    .promo-section {
        flex-direction: column;
    }

    .btn-promo {
        width: 100%;
        text-align: center;
    }

    .summary-total {
        font-size: 18px;
    }

    .shipping-recap-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 12px;
    }

    .order-modal {
        padding: 24px 16px;
        margin: 12px;
    }
}