/* =========================================================
   LVE — Panier WooCommerce
   Loire Valley Expériences — Plein Écran
   ========================================================= */

/* Masquer toutes les notices WC sur la page panier */
.lve-cart-wrap .woocommerce-notices-wrapper,
.lve-cart-wrap .woocommerce-message,
.lve-cart-wrap .woocommerce-error,
.lve-cart-wrap .woocommerce-info,
body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-cart > .woocommerce > .woocommerce-notices-wrapper {
    display: none !important;
}

/* Hauteur écran complète */
body.woocommerce-cart {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.woocommerce-cart #page,
body.woocommerce-cart .site,
body.woocommerce-cart #content,
body.woocommerce-cart .site-content,
body.woocommerce-cart main,
body.woocommerce-cart .wp-site-blocks {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lve-cart-wrap {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
}

/* -------------------------------------------------------
   Barre d'étapes
   ------------------------------------------------------- */
.lve-cart-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 36px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 24px;
    overflow-x: auto;
}

.lve-step {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.lve-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.2s;
}

.lve-step-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.2s;
}

.lve-step-active .lve-step-num {
    background: #8C2F39;
    color: #fff;
}

.lve-step-active .lve-step-label {
    color: #1a1a1a;
}

.lve-step-sep {
    flex: 1;
    min-width: 24px;
    height: 1px;
    background: #e5e7eb;
    margin: 0 8px;
}

/* -------------------------------------------------------
   Titre
   ------------------------------------------------------- */
.lve-cart-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 28px;
    padding: 0;
    border: none;
    background: none;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.lve-cart-count {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
}

/* -------------------------------------------------------
   Panier vide
   ------------------------------------------------------- */
.lve-cart-empty {
    text-align: center;
    padding: 80px 24px;
}
.lve-cart-empty-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.lve-cart-empty h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}
.lve-cart-empty p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0 0 28px;
}
.lve-cart-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: #8C2F39;
    color: #fff !important;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
}
.lve-cart-cta-btn:hover { background: #7a2933; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(140,47,57,.25); }

/* -------------------------------------------------------
   Layout 2 colonnes
   ------------------------------------------------------- */
.lve-cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

/* -------------------------------------------------------
   Articles
   ------------------------------------------------------- */
.lve-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lve-cart-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #f1f5f9;
}
.lve-cart-item:first-child { padding-top: 0; }
.lve-cart-item:last-child  { border-bottom: none; }

/* Image */
.lve-ci-img {
    display: block;
    width: 110px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.lve-ci-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.lve-ci-img:hover img { transform: scale(1.04); }

/* Body */
.lve-ci-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.lve-ci-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.lve-ci-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.lve-ci-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}
.lve-ci-name:hover { color: #8C2F39; }

/* Ligne de méta-infos (date · durée · type) */
.lve-ci-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    margin-top: 5px;
}
.lve-ci-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}
.lve-ci-meta-item svg { flex-shrink: 0; color: #94a3b8; }
.lve-ci-meta-private {
    color: #92400e;
    font-weight: 600;
}
.lve-ci-meta-private svg { color: #d97706; }

/* Bloc prix (droite) */
.lve-ci-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.lve-ci-unit-price {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
}

.lve-ci-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.lve-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border: none;
    font-size: 1.1rem;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    line-height: 1;
}
.lve-qty-btn:hover { background: #e2e8f0; color: #1a1a1a; }
.lve-qty-btn:active { background: #cbd5e1; }

.lve-qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
    -moz-appearance: textfield;
    padding: 0;
}
.lve-qty-input::-webkit-inner-spin-button,
.lve-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.lve-qty-input:focus { outline: none; background: #f0f9ff; }

.lve-ci-line-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Footer item (supprimer / update) */
.lve-ci-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lve-ci-remove {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s;
    padding: 4px 0;
}
.lve-ci-remove:hover { color: #8C2F39; }
.lve-ci-remove svg { stroke: currentColor; }

/* Continuer achats */
.lve-cart-continue {
    padding-top: 20px;
}

.lve-cart-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding: 10px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.15s;
    background: #fff;
}
.lve-cart-back-link:hover {
    color: #1a1a1a;
    border-color: #94a3b8;
    background: #f8fafc;
}

/* -------------------------------------------------------
   Récapitulatif (droite)
   ------------------------------------------------------- */
.lve-cart-totals {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.lve-ct-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    background: none;
}

.lve-ct-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    font-size: 0.88rem;
    color: #475569;
    gap: 12px;
}

.lve-ct-val {
    font-weight: 600;
    color: #1a1a1a;
}

.lve-ct-discount em {
    font-style: normal;
    font-weight: 600;
    color: #1a1a1a;
}
.lve-ct-remove-coupon {
    margin-left: 6px;
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 700;
}
.lve-ct-remove-coupon:hover { color: #8C2F39; }
.lve-ct-green { color: #2F8F6B; font-weight: 700; }

/* Code promo */
.lve-coupon-form { margin: 12px 0 0; }
.lve-coupon-row {
    display: flex;
    gap: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s;
}
.lve-coupon-row:focus-within { border-color: #2F8F6B; }

.lve-coupon-input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    font-size: 0.88rem;
    color: #1a1a1a;
    background: transparent;
    min-width: 0;
}
.lve-coupon-input:focus { outline: none; }
.lve-coupon-input::placeholder { color: #94a3b8; }

.lve-coupon-apply {
    padding: 10px 14px;
    background: #f8fafc;
    border: none;
    border-left: 1.5px solid #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.lve-coupon-apply:hover  { background: #8C2F39; color: #fff; }
.lve-coupon-apply:disabled { opacity: 0.6; cursor: not-allowed; }

/* Feedback coupon */
.lve-coupon-feedback {
    display: none;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

.lve-coupon-ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #2F8F6B;
}

.lve-coupon-err {
    background: #fff1f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* Tags coupons actifs */
#lve-active-coupons { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }

.lve-active-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.8rem;
}

.lve-ac-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #2F8F6B;
}

.lve-ac-discount {
    font-weight: 600;
    color: #2F8F6B;
    margin-left: 4px;
}

.lve-ac-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.lve-ac-remove:hover { color: #8C2F39; background: #fee2e2; }

/* Divider */
.lve-ct-divider {
    border: none;
    border-top: 1.5px solid #f1f5f9;
    margin: 14px 0;
}

/* Total final */
.lve-ct-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0 16px;
    gap: 12px;
}

.lve-ct-total-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.lve-ct-total-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #8C2F39;
}

/* Bouton Réserver */
.lve-cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    background: #8C2F39;
    color: #fff !important;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s;
}
.lve-cart-checkout-btn:hover {
    background: #7a2933;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(140,47,57,.3);
    color: #fff !important;
}
.lve-cart-checkout-btn svg { flex-shrink: 0; }

/* Sécurité */
.lve-ct-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
}

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 900px) {
    .lve-cart-layout { grid-template-columns: 1fr; }
    .lve-cart-totals { position: static; }
}

@media (max-width: 640px) {
    .lve-cart-wrap   { padding: 20px 16px 60px; }
    .lve-cart-title  { font-size: 1.3rem; }
    .lve-cart-steps  { padding: 12px 16px; }
    .lve-step-label  { display: none; }
    .lve-cart-item   { grid-template-columns: 80px 1fr; }
    .lve-ci-img      { width: 80px; height: 70px; }
    .lve-ci-top      { flex-wrap: wrap; }
    .lve-ci-price-block { align-items: flex-start; }
}
