/* ════════════════════════════════
   CART PAGE - Identité Aperitiu
   Crème de fond, cartes en pointillé, accents rouge/orange, typo Erica One
   pour les titres et Darumadrop One pour le résumé.
════════════════════════════════ */

:root {
    --cart-cream:     #f3e9d7;
    --cart-cream-2:   #fbf4e9;
    --cart-cream-3:   #f1ead8;
    --cart-orange:    #ffa200;
    --cart-orange-2:  #f3a63c;
    --cart-red:       #e85a28;
    --cart-red-dark:  #b22222;
    --cart-dark:      #242323;
    --cart-muted:     #7a6b58;
    --cart-border:    rgba(36, 35, 35, 0.12);
    --cart-border-dashed: rgba(36, 35, 35, 0.35);

    --cart-font-display: 'Darumadrop One', 'Caveat', 'Poppins', system-ui, sans-serif;
    --cart-font-script:  'Darumadrop One', 'Caveat', cursive;
    --cart-font-body:    'DM Sans', 'Poppins', system-ui, sans-serif;
}

/* Fond global de la page panier (sous main #main-content) */
body.cart-page {
    background: var(--cart-cream);
}
body.cart-page > .blob { display: none !important; }

/* On a notre propre nav en overlay sur le hero - reset padding-top de <main> */
body.cart-page main { padding-top: 0; }

/* ════════════════════════════════
   HERO ORANGE (commun avec home / planches / extras / boissons)
════════════════════════════════ */
.cart-hero {
    position: relative;
    min-height: 480px;
    background-color: var(--cart-red);
    background-image: url('/images/home/union3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    overflow: visible;
}

.cart-hero-mascot {
    position: absolute;
    top: 124px;
    left: max(26px, calc(50% - 720px + 14px));
    width: 117px;
    height: 103px;
    z-index: 5;
    pointer-events: none;
    transform: scaleY(-1) rotate(174.51deg);
}
.cart-hero-mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 200px 100px 90px;
    box-sizing: border-box;
    color: #fff;
}

.cart-hero-title {
    font-family: 'Erica One', 'Anton', Impact, sans-serif;
    font-size: clamp(64px, 6.5vw, 110px);
    font-weight: 400;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    max-width: 900px;
    margin: 0;
}

.cart-hero-title span { display: block; }
.cart-hero-title .hp-hero-title-line {
    display: block;
    margin-bottom: 4px;
}

/* Tampon jaune SVG repris de la home / catalog */
.cart-hero-title .hp-hero-title-stamp {
    display: inline-block;
    position: relative;
    padding: 14px 20px 18px;
    line-height: 1;
    background-image: url('/images/home/rect3464584.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.cart-hero-desc {
    margin: 26px 0 0;
    font-family: var(--cart-font-body);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.5;
    color: #fff;
    max-width: 600px;
    font-weight: 400;
}

/* ════════════════════════════════
   CART (contenu sous le hero)
════════════════════════════════ */
.cart {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 32px 80px;
    position: relative;
    z-index: 1;
    font-family: var(--cart-font-body);
}

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

/* ════════════════════════════════
   LAYOUT
════════════════════════════════ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
    animation: cartFadeIn .5s ease .08s both;
}

.cart-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ════════════════════════════════
   TOOLBAR (top of left column)
════════════════════════════════ */
.cart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: var(--cart-cream-2);
    border: 1.5px dashed var(--cart-border-dashed);
    border-radius: 22px;
    box-shadow: 0 4px 14px rgba(36, 35, 35, 0.04);
}

.cart-check-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--cart-dark);
    cursor: pointer;
    user-select: none;
}

/* ── Checkbox custom (rouge Aperitiu) ── */
.cart-check-label input[type="checkbox"],
.cart-item-check {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 1.5px solid rgba(36, 35, 35, 0.25);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
    box-shadow: 0 1px 2px rgba(36, 35, 35, 0.06);
}

.cart-check-label input[type="checkbox"]:hover,
.cart-item-check:hover { border-color: rgba(232, 90, 40, .5); }

.cart-check-label input[type="checkbox"]:checked,
.cart-item-check:checked {
    border-color: var(--cart-red);
    background: var(--cart-red);
    box-shadow: 0 4px 10px rgba(232, 90, 40, 0.28);
}

.cart-check-label input[type="checkbox"]:checked::after,
.cart-item-check:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.cart-check-label input[type="checkbox"]:indeterminate {
    border-color: var(--cart-red);
    background: rgba(232, 90, 40, 0.15);
}

.cart-check-label input[type="checkbox"]:indeterminate::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 4px;
    width: 12px;
    height: 2.5px;
    background: var(--cart-red);
    border-radius: 2px;
}

.cart-check-label input[type="checkbox"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-check-label input[type="checkbox"]:focus-visible,
.cart-item-check:focus-visible {
    outline: 3px solid rgba(232, 90, 40, 0.35);
    outline-offset: 2px;
}

/* Bouton "Vider le panier" - lien rouge avec icône */
.cart-clear-btn {
    background: none;
    border: none;
    color: var(--cart-red);
    font-family: var(--cart-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    transition: background .18s ease, color .18s ease;
}
.cart-clear-btn:hover {
    background: rgba(232, 90, 40, 0.1);
    color: var(--cart-red-dark);
}
.cart-clear-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ════════════════════════════════
   ITEMS LIST
════════════════════════════════ */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 88px 1fr auto auto auto;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    background: var(--cart-cream-2);
    border: 1.5px solid var(--cart-border);
    border-radius: 22px;
    box-shadow: 0 4px 14px rgba(36, 35, 35, 0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(36, 35, 35, 0.1);
    border-color: rgba(232, 90, 40, 0.25);
}

.cart-item--deleted {
    opacity: 0.6;
    background: rgba(255, 107, 138, 0.05);
    border-color: rgba(232, 90, 40, 0.2);
}
.cart-item--deleted:hover { transform: none; }

/* Photo produit en cadre polaroid (rotation légère pour la signature Aperitiu) */
.cart-item-img {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 6px solid #fff;
    box-shadow: 0 6px 16px rgba(36, 35, 35, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-2deg);
    transition: transform .25s ease;
    flex-shrink: 0;
}
.cart-item:hover .cart-item-img { transform: rotate(0deg) scale(1.04); }

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cart-item-img svg {
    width: 32px;
    height: 32px;
    stroke: var(--cart-muted);
    fill: none;
    stroke-width: 1.5;
    opacity: .6;
}

/* Infos texte */
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cart-item-title {
    font-family: var(--cart-font-display);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.005em;
    color: var(--cart-dark);
    text-decoration: none;
    transition: color .15s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cart-item-title:hover { color: var(--cart-red); }

.cart-item-variant {
    font-family: var(--cart-font-body);
    font-size: 0.82rem;
    color: var(--cart-red);
    font-weight: 600;
    line-height: 1;
    margin-top: 2px;
}

.cart-item-unit {
    font-size: 0.82rem;
    color: var(--cart-muted);
    font-weight: 500;
    margin-top: 2px;
}

.cart-item-deleted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(232, 90, 40, 0.12);
    border: 1px solid rgba(232, 90, 40, 0.3);
    color: var(--cart-red);
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 6px;
    width: max-content;
}
.cart-item-deleted-badge svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Quantity selector */
.cart-item-qty {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--cart-border);
    border-radius: 999px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    color: var(--cart-dark);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.cart-qty-btn:hover:not(:disabled) {
    background: var(--cart-red);
    color: #fff;
}
.cart-qty-btn:disabled { opacity: .35; cursor: not-allowed; }

.cart-qty-input {
    width: 38px;
    height: 34px;
    border: none;
    background: transparent;
    font-family: var(--cart-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cart-dark);
    text-align: center;
    -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-input:focus { outline: none; }

/* Sous-total ligne */
.cart-item-subtotal {
    font-family: var(--cart-font-display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--cart-red);
    min-width: 80px;
    text-align: right;
    letter-spacing: 0;
}

/* Bouton retirer */
.cart-item-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--cart-border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
    flex-shrink: 0;
}
.cart-item-remove svg {
    width: 12px;
    height: 12px;
    stroke: var(--cart-muted);
    fill: none;
    stroke-width: 2.2;
    transition: stroke .18s ease;
}
.cart-item-remove:hover {
    background: var(--cart-red);
    border-color: var(--cart-red);
    transform: rotate(90deg);
}
.cart-item-remove:hover svg { stroke: #fff; }

/* ════════════════════════════════
   SUMMARY (right column, sticky)
════════════════════════════════ */
.cart-summary {
    position: sticky;
    top: 96px;
    align-self: start;
}

.cart-summary-card {
    background: var(--cart-cream-2);
    border: 1.5px solid var(--cart-border);
    border-radius: 24px;
    padding: 28px 26px 26px;
    box-shadow: 0 14px 36px rgba(36, 35, 35, 0.10);
    position: relative;
    overflow: hidden;
}

/* Bande décorative haute - rappel hero / cookie / legal */
.cart-summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--cart-red) 0%, var(--cart-orange) 50%, var(--cart-red) 100%);
}

.cart-summary-card h2 {
    font-family: var(--cart-font-display);
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: 0.005em;
    color: var(--cart-dark);
    margin: 6px 0 18px;
    line-height: 1.1;
}

.cart-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 4px;
    padding-right: 4px;
}
.cart-summary-lines::-webkit-scrollbar { width: 6px; }
.cart-summary-lines::-webkit-scrollbar-thumb {
    background: rgba(232, 90, 40, 0.3);
    border-radius: 3px;
}
.cart-summary-lines::-webkit-scrollbar-thumb:hover { background: var(--cart-red); }

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--cart-dark);
}
.cart-summary-line-name {
    flex: 1;
    min-width: 0;
    font-weight: 500;
}
.cart-summary-line-name small {
    color: var(--cart-muted);
    font-weight: 400;
    font-size: 0.78rem;
    display: block;
    margin-top: 2px;
}
.cart-summary-line-detail {
    font-family: var(--cart-font-body);
    font-size: 0.78rem;
    color: var(--cart-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.cart-summary-line-qty {
    font-weight: 700;
    color: var(--cart-red);
}

.cart-summary-divider {
    height: 1px;
    background: var(--cart-border);
    margin: 16px -6px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    color: var(--cart-dark);
    font-weight: 500;
}

.cart-summary-total {
    font-family: var(--cart-font-display);
    letter-spacing: 0.005em;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--cart-dark);
}
.cart-summary-total #cart-summary-total {
    color: var(--cart-red);
}

/* CTA principal - pilule rouge avec décollage orange */
/* Bouton "Commander la sélection" - même look que "Voir l'itinéraire" sur la
   home (cf. .hp-btn-primary + .hp-location .hp-events-cta::after) :
   wrapper porte le double-fond blanc, le bouton orange est au-dessus en
   z-index: 1. Le wrapper a width: 100% pour le full-width du sidebar cart. */
.cart-order-wrap {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 22px;
}
.cart-order-wrap::after {
    content: '';
    position: absolute;
    inset: 8px -6px -8px 6px;
    border-radius: 90px;
    background: #fff;
    z-index: 0;
}

.cart-order-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 18px 32px;
    background: var(--cart-orange-2);
    color: #fff;
    border: none;
    border-radius: 80px;
    font-family: var(--cart-font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    height: 70px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.cart-order-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, .15);
}
.cart-order-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-summary-empty-msg {
    margin-top: 22px;
    padding: 14px 18px;
    background: rgba(255, 162, 0, 0.12);
    border: 1.5px dashed rgba(255, 162, 0, 0.5);
    border-radius: 14px;
    text-align: center;
    font-size: 0.84rem;
    color: var(--cart-muted);
    font-weight: 500;
}

/* ════════════════════════════════
   EMPTY STATE
════════════════════════════════ */
.cart-empty {
    text-align: center;
    padding: 60px 24px 80px;
    animation: cartFadeIn .5s ease both;
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    stroke: var(--cart-red);
    fill: none;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin: 0 auto 22px;
    opacity: .8;
}

.cart-empty p {
    font-family: var(--cart-font-display);
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.005em;
    color: var(--cart-dark);
    margin: 0 0 28px;
}

/* Bouton CTA "Voir nos planches" - pastille orange avec calque blanc
   décalé derrière (bas/droite), comme la maquette */
.cart-cta-wrap {
    position: relative;
    display: inline-block;
}
.cart-cta-wrap::after {
    content: '';
    position: absolute;
    inset: 8px -6px -8px 6px;
    border-radius: 90px;
    background: #fff;
    z-index: 0;
}

.cart-cta-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: var(--cart-orange-2);
    color: #fff;
    border-radius: 80px;
    font-family: var(--cart-font-body);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.cart-cta-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 rgba(0, 0, 0, .15);
}

/* ════════════════════════════════
   MODAL (Clear cart + Login)
════════════════════════════════ */
.cart-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(36, 35, 35, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    padding: 20px;
}
.cart-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-modal {
    width: 460px;
    max-width: 100%;
    background: var(--cart-cream-2);
    border-radius: 22px;
    padding: 36px 32px 28px;
    box-shadow: 0 24px 64px rgba(36, 35, 35, 0.22);
    text-align: center;
    transform: scale(.94) translateY(20px);
    transition: transform .35s cubic-bezier(.22,.68,0,1.2);
    position: relative;
    overflow: hidden;
    font-family: var(--cart-font-body);
}
.cart-modal-overlay.open .cart-modal { transform: scale(1) translateY(0); }

.cart-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--cart-red) 0%, var(--cart-orange) 50%, var(--cart-red) 100%);
}

.cart-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--cart-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 10px 24px rgba(232, 90, 40, 0.28);
}
.cart-modal-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-modal h3 {
    font-family: var(--cart-font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.005em;
    color: var(--cart-dark);
    margin: 0 0 10px;
    line-height: 1.2;
}

.cart-modal p {
    font-size: 0.9rem;
    color: var(--cart-muted);
    line-height: 1.55;
    margin: 0 0 22px;
}

.cart-modal-foot {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cart-modal-btn {
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--cart-font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.cart-modal-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-modal-btn--cancel {
    background: transparent;
    color: var(--cart-dark);
    border-color: var(--cart-dark);
}
.cart-modal-btn--cancel:hover {
    background: var(--cart-dark);
    color: var(--cart-cream-2);
}

.cart-modal-btn--confirm {
    background: var(--cart-red);
    color: #fff;
    box-shadow: 0 6px 16px rgba(232, 90, 40, 0.28);
}
.cart-modal-btn--confirm:hover {
    background: var(--cart-red-dark);
    transform: translateY(-1px);
}

/* ════════════════════════════════
   CHECKOUT CHOICE MODAL (visiteur sur panier)
   3 boutons : Connexion / Inscription / Invité.
   Réutilise le squelette de .cart-login-card (cream + radius + shadow).
════════════════════════════════ */
.cart-checkout-choice-card {
    width: 460px;
    max-width: 100%;
    background: var(--cart-cream-2);
    border-radius: 22px;
    padding: 38px 36px 30px;
    box-shadow: 0 24px 64px rgba(36, 35, 35, 0.24);
    text-align: center;
    transform: scale(.94) translateY(20px);
    transition: transform .35s cubic-bezier(.22,.68,0,1.2);
    position: relative;
    overflow: hidden;
    font-family: var(--cart-font-body);
}
.cart-modal-overlay.open .cart-checkout-choice-card { transform: scale(1) translateY(0); }
.cart-checkout-choice-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--cart-orange-2) 0%, var(--cart-orange) 50%, var(--cart-orange-2) 100%);
}
.cart-checkout-choice-card h2 {
    font-family: var(--cart-font-display);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--cart-dark);
    margin: 0 0 6px;
    line-height: 1.2;
}
.cart-checkout-choice-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}
.cart-checkout-choice-actions .cart-login-submit,
.cart-checkout-choice-actions .cart-login-social {
    width: 100%;
    box-sizing: border-box;
}
/* Le bouton invité prend une teinte plus discrète pour ne pas concurrencer
   le primary "Me connecter" qui reste l'action préférée. */
.cart-checkout-choice-guest {
    background: transparent !important;
    border-color: var(--cart-border) !important;
    color: var(--cart-dark) !important;
}
.cart-checkout-choice-guest:hover {
    border-color: var(--cart-orange) !important;
}

/* ════════════════════════════════
   LOGIN MODAL (panier visiteur) - identité Aperitiu
════════════════════════════════ */
.cart-login-card {
    width: 460px;
    max-width: 100%;
    background: var(--cart-cream-2);
    border-radius: 22px;
    padding: 38px 36px 30px;
    box-shadow: 0 24px 64px rgba(36, 35, 35, 0.24);
    text-align: center;
    transform: scale(.94) translateY(20px);
    transition: transform .35s cubic-bezier(.22,.68,0,1.2);
    position: relative;
    overflow: hidden;
    font-family: var(--cart-font-body);
}
.cart-modal-overlay.open .cart-login-card { transform: scale(1) translateY(0); }
.cart-login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--cart-orange-2) 0%, var(--cart-orange) 50%, var(--cart-orange-2) 100%);
}

.cart-login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(36, 35, 35, 0.06);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .2s ease, color .2s ease;
    z-index: 2;
    color: var(--cart-dark);
}
.cart-login-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cart-login-close:hover {
    background: var(--cart-orange);
    color: #fff;
    transform: rotate(90deg);
}

/* Icône succès (cercle orange) */
.cart-login-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: var(--cart-orange-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 28px rgba(243, 166, 60, 0.32);
}
.cart-login-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-login-card h2 {
    font-family: var(--cart-font-display);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.005em;
    color: var(--cart-dark);
    margin: 0 0 8px;
    line-height: 1.15;
}

.cart-login-subtitle {
    font-size: 0.92rem;
    color: var(--cart-muted);
    line-height: 1.5;
    margin: 0 0 24px;
}

/* ── Champs ── */
.cart-login-field {
    margin-bottom: 14px;
    text-align: left;
}
.cart-login-field label {
    display: block;
    font-family: var(--cart-font-body);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--cart-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.cart-login-required {
    color: var(--cart-orange);
    font-weight: 700;
}

.cart-login-input-wrap {
    position: relative;
    display: block;
}
.cart-login-input-wrap > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--cart-muted);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke .2s ease;
}
.cart-login-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px 14px 44px;
    background: #fff;
    border: 1.5px solid var(--cart-border);
    border-radius: 14px;
    font-family: var(--cart-font-body);
    font-size: 0.95rem;
    color: var(--cart-dark);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.cart-login-input-wrap input::placeholder {
    color: rgba(122, 107, 88, 0.55);
}
.cart-login-input-wrap input:focus {
    border-color: var(--cart-orange);
    box-shadow: 0 0 0 3px rgba(255, 162, 0, 0.15);
}
.cart-login-input-wrap:focus-within > svg { stroke: var(--cart-orange); }
.cart-login-input-wrap.has-eye input { padding-right: 44px; }

.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cart-muted);
    transition: color .2s ease;
    z-index: 2;
}
.pwd-toggle:hover { color: var(--cart-orange); }
.pwd-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    display: block;
}
.pwd-toggle .eye-off { display: none; }
.pwd-toggle.visible .eye-on  { display: none; }
.pwd-toggle.visible .eye-off { display: block; }

/* ── Remember / Forgot ── */
.cart-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 20px;
    flex-wrap: wrap;
}
.cart-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--cart-muted);
    cursor: pointer;
    user-select: none;
}
.cart-login-remember input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: #fff;
    border: 1.5px solid var(--cart-border);
    border-radius: 5px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
    position: relative;
}
.cart-login-remember input[type="checkbox"]:hover {
    border-color: var(--cart-orange);
    box-shadow: 0 0 0 3px rgba(255, 162, 0, 0.12);
}
.cart-login-remember input[type="checkbox"]:checked {
    background: var(--cart-orange);
    border-color: var(--cart-orange);
}
.cart-login-remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.cart-login-forgot {
    font-size: 0.84rem;
    color: var(--cart-orange);
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s ease;
}
.cart-login-forgot:hover { opacity: 0.75; text-decoration: underline; }

/* ── Erreur ── */
.cart-login-error {
    margin: 0 0 16px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 162, 0, 0.10);
    border: 1.5px solid rgba(255, 162, 0, 0.45);
    color: var(--cart-dark);
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.4;
}

/* ── Bouton "Se connecter" - pilule orange identité Aperitiu ── */
.cart-login-submit {
    width: 100%;
    padding: 15px 24px;
    background: var(--cart-orange-2);
    color: #fff;
    border: none;
    border-radius: 80px;
    font-family: var(--cart-font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(243, 166, 60, 0.32);
    transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}
.cart-login-submit:hover {
    background: var(--cart-orange);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 162, 0, 0.36);
}
.cart-login-submit:active { transform: translateY(0); }

/* ── Séparateur ── */
.cart-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: var(--cart-muted);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}
.cart-login-divider::before,
.cart-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cart-border);
}

/* ── Bouton Google ── */
.cart-login-social {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 18px;
    background: #fff;
    border: 1.5px solid var(--cart-border);
    border-radius: 80px;
    font-family: var(--cart-font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--cart-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: border-color .2s ease, transform .15s ease, box-shadow .15s ease;
}
.cart-login-social:hover {
    border-color: var(--cart-orange);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(36, 35, 35, 0.08);
}

/* ── Footer "Pas encore de compte ?" ── */
.cart-login-footer {
    text-align: center;
    margin: 22px 0 0;
    font-size: 0.86rem;
    color: var(--cart-muted);
}
.cart-login-footer a {
    color: var(--cart-orange);
    text-decoration: none;
    font-weight: 600;
}
.cart-login-footer a:hover { text-decoration: underline; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1100px) {
    .cart-hero-inner { padding: 180px 56px 80px; }
    .cart-hero-mascot { left: 26px; }
}

@media (max-width: 980px) {
    .cart-hero { min-height: 420px; }
    .cart-hero-inner { padding: 160px 40px 70px; }
    .cart { padding: 56px 20px 60px; }
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .cart-summary {
        position: static;
        order: -1;
    }
    .cart-summary-lines { max-height: 160px; }
}

@media (max-width: 600px) {
    .cart-hero { min-height: 360px; }
    .cart-hero-mascot { display: none; }
    .cart-hero-inner { padding: 130px 24px 60px; }
    .cart-hero-title { font-size: clamp(48px, 12vw, 70px); }
    .cart-hero-desc { font-size: 16px; margin-top: 18px; }
    .cart { padding: 44px 16px 50px; }

    /* Modal login intégrée au panier : font 16px pour bloquer le zoom auto
       iOS au focus de l'email/mot de passe. */
    .cart-login-input-wrap input {
        font-size: 16px;
        padding-top: 13px;
        padding-bottom: 13px;
    }
}

@media (max-width: 720px) {
    .cart-item {
        grid-template-columns: auto 72px 1fr auto;
        grid-template-areas:
            "check img info remove"
            "qty   qty qty  subtotal";
        gap: 14px;
        padding: 14px 16px;
        border-radius: 18px;
    }
    .cart-item > input[type="checkbox"] { grid-area: check; align-self: start; margin-top: 4px; }
    .cart-item-img { grid-area: img; width: 72px; height: 72px; }
    .cart-item-info { grid-area: info; }
    .cart-item-remove { grid-area: remove; align-self: start; }
    .cart-item-qty { grid-area: qty; justify-self: start; }
    .cart-item-subtotal {
        grid-area: subtotal;
        justify-self: end;
        align-self: center;
        font-size: 1.25rem;
        min-width: auto;
    }
    .cart-item-title { font-size: 1.2rem; white-space: normal; }

    .cart-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cart-clear-btn { align-self: flex-end; }

    .cart-summary-card { padding: 24px 22px 22px; }
    .cart-modal { padding: 32px 24px 24px; }
    .cart-modal-foot { flex-direction: column-reverse; }
    .cart-modal-btn { width: 100%; justify-content: center; }

    .cart-login-card { padding: 34px 24px 24px; }
    .cart-login-card h2 { font-size: 1.55rem; }
    .cart-login-icon { width: 60px; height: 60px; }
    .cart-login-icon svg { width: 26px; height: 26px; }
    .cart-login-row { gap: 8px; }
}
