/* ============================================================
   Crazy Shop — Styles complémentaires (pages dynamiques)
   Réutilise les variables d'identité du thème (style.css).
   ============================================================ */

.muted { color: var(--mute); }
.text-green { color: var(--green-deep); font-weight: 600; }
.text-red { color: var(--red); font-weight: 600; }
.container--narrow { max-width: 520px; }
.container--prose { max-width: 820px; }

/* ---------- Alertes & flash ---------- */
.alert {
  margin: 18px 0; padding: 12px 16px; border-radius: var(--r-md);
  font-size: .92rem; font-weight: 500;
}
.alert--success { background: var(--green-tint); color: var(--green-deep); border: 1px solid var(--green-soft); }
.alert--error { background: var(--red-soft); color: var(--red); border: 1px solid #f6c9c4; }
.field-error { display: block; color: var(--red); font-size: .8rem; margin-top: 4px; }

/* ---------- Cartes & formulaires ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-sm); margin-bottom: 18px;
}
.card legend { font-weight: 700; padding: 0 6px; }
fieldset.card { border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .select, .qty-input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--bg); font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint);
}
.qty-input { width: 84px; text-align: center; }
.select { appearance: none; cursor: pointer; }

/* ---------- Auth ---------- */
.auth-card { max-width: 460px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--sh-md); }
.auth-card__title { font-size: 1.5rem; margin-bottom: 22px; text-align: center; }
.auth-card__links { display: flex; justify-content: space-between; margin-top: 18px; font-size: .86rem; }
.auth-card__links a { color: var(--green-deep); font-weight: 600; }

/* ---------- Empty / breadcrumb / pagination ---------- */
.empty-state { text-align: center; color: var(--mute); padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.breadcrumb { font-size: .82rem; color: var(--mute); margin-bottom: 18px; }
.breadcrumb a { color: var(--green-deep); }
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 36px; }
.pagination__link, .pagination__arrow {
  min-width: 38px; height: 38px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-weight: 700; font-size: 0.92rem; color: var(--ink); transition: 0.15s;
}
.pagination__link:hover, .pagination__arrow:hover { background: var(--green-tint); color: var(--green-deep); }
.pagination__link.is-active { background: var(--green); color: #fff; }
.pagination__dots { min-width: 28px; text-align: center; color: var(--mute); font-weight: 700; }
.pagination__arrow { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- Catalogue ---------- */
.catalog__sort .select { min-width: 200px; }

/* ---------- Détail produit ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail__main { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 18px; }
.product-detail__main img { width: 100%; height: 100%; object-fit: contain; } /* image entière, jamais découpée */
.product-detail__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumb { width: 72px; height: 72px; border-radius: var(--r-md); overflow: hidden; border: 2px solid var(--line); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0; }
.product-detail__price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.product-detail__price .product__price-now { font-size: 1.8rem; font-weight: 800; color: var(--green-deep); }
.product-detail__lead { color: var(--ink-soft); margin-bottom: 16px; }
.product-detail__meta { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.product-detail__buy { display: flex; gap: 12px; align-items: center; margin: 22px 0; }
/* Sélecteur de quantité — le bouton « Ajouter » se transforme en ceci (couleurs maison : vert) */
.cart-stepper { display: inline-flex; align-items: center; background: var(--green-tint); border-radius: 30px; overflow: hidden; flex-shrink: 0; }
.cart-stepper__btn { border: none; background: transparent; color: var(--green-deep); font-weight: 700; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.18s, color 0.18s; }
.cart-stepper__btn:hover { background: var(--green); color: #fff; }
.cart-stepper__n { text-align: center; font-weight: 800; color: var(--green-deep); font-feature-settings: "tnum"; }
/* compact (cartes produit) */
.cart-stepper--mini { height: 36px; }
.cart-stepper--mini .cart-stepper__btn { width: 34px; height: 36px; font-size: 1.15rem; }
.cart-stepper--mini .cart-stepper__n { min-width: 26px; font-size: 0.9rem; }
/* grand (fiche produit) */
.cart-stepper--lg { height: 52px; border-radius: 14px; }
.cart-stepper--lg .cart-stepper__btn { width: 50px; height: 52px; font-size: 1.45rem; }
.cart-stepper--lg .cart-stepper__n { min-width: 48px; font-size: 1.1rem; }
.product-detail__desc { margin-top: 20px; color: var(--ink-soft); line-height: 1.7; }
.product-detail__variants { margin: 14px 0; }
.product-detail__variants-label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.product-detail__variants ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.product-detail__variants li { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: .9rem; }
.product__wishlist.is-active { color: var(--red); }
.product__wishlist.is-active svg { fill: var(--red); }
.icon-pill__count[hidden] { display: none; }
.notify-box { margin: 16px 0; padding: 16px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.notify-box__form { display: flex; gap: 8px; margin-top: 10px; }
.notify-box__form input { flex: 1; }
/* Facettes catalogue */
.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.facets { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-sm); position: sticky; top: 16px; }
.facets__group { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.facets__group:last-child { border-bottom: 0; }
.facets__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); font-weight: 700; margin-bottom: 8px; }
.facets label { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: .9rem; cursor: pointer; }
.facets__price { display: flex; gap: 8px; }
.facets__price input { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.label-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.label-badge { font-size: .66rem; font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill); background: var(--green-tint); color: var(--green-deep); }
@media (max-width: 860px) { .catalog-layout { grid-template-columns: 1fr; } .facets { position: static; } }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; }
.tag--fresh { background: var(--green-soft); color: var(--green-deep); }
.product__badge--fresh, .product__discount + .product__badge { top: 44px; }

/* ---------- Panier ---------- */
.cart-page { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-page__items { display: flex; flex-direction: column; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px; }
.cart-row__img { width: 72px; height: 72px; border-radius: var(--r-md); object-fit: cover; }
.cart-row__info { display: flex; flex-direction: column; gap: 4px; }
.cart-row__name { font-weight: 600; }
.cart-row__price { color: var(--mute); font-size: .86rem; }
.cart-row__total { font-weight: 700; color: var(--green-deep); }
.cart-row__remove { color: var(--mute); font-size: 1.1rem; width: 32px; height: 32px; border-radius: 50%; }
.cart-row__remove:hover { background: var(--red-soft); color: var(--red); }
.cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-sm); position: sticky; top: 20px; }
.cart-summary h3 { margin-bottom: 16px; }
.cart-summary__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: .92rem; }
.cart-summary__row.muted { color: var(--mute); font-size: .84rem; }
.cart-summary hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout__summary { position: sticky; top: 20px; }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; cursor: pointer; }
.radio-row__label { display: flex; flex-direction: column; }
.radio-row__label small { color: var(--mute); }

/* ---------- Confirmation ---------- */
.confirm { text-align: center; padding: 40px 0; }
.confirm__icon { width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 50%; background: var(--green-tint); display: grid; place-items: center; }

/* ---------- Espace compte ---------- */
.account-layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--sh-sm); }
.account-nav__link { padding: 10px 14px; border-radius: var(--r-md); font-weight: 600; color: var(--ink-soft); }
.account-nav__link:hover { background: var(--bg-mute); }
.account-nav__link.is-active { background: var(--green-tint); color: var(--green-deep); }
.account-nav__link--out { color: var(--red); margin-top: 8px; }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--sh-sm); }
.stat-card--lg { display: inline-flex; }
.stat-card__num { font-size: 2rem; font-weight: 800; color: var(--green-deep); }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ---------- Tableaux ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.data-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }

/* ---------- Badges statut ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; background: var(--bg-mute); color: var(--ink-soft); }
.badge--new { background: var(--green-tint); color: var(--green-deep); }
.badge--preparing, .badge--ready { background: var(--yellow-soft); color: var(--yellow-deep); }
.badge--delivering { background: #e0edff; color: #1d4ed8; }
.badge--delivered { background: var(--green-soft); color: var(--green-deep); }
.badge--cancelled, .badge--refunded { background: var(--red-soft); color: var(--red); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 12px 0; }
.timeline__item { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-top: 4px; flex: none; }
.timeline__item:not(:last-child)::before { content: ''; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline__item small { color: var(--mute); margin-left: 8px; }

/* ---------- Prose (pages CMS) ---------- */
.prose { line-height: 1.75; color: var(--ink-soft); }
.prose h2 { margin: 24px 0 12px; }
.prose p { margin-bottom: 14px; }

/* ---------- Toast ---------- */
.toast { background: var(--slate-900); color: #fff; padding: 12px 18px; border-radius: var(--r-md); margin-top: 10px; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; box-shadow: var(--sh-lg); }
.toast.is-show { opacity: 1; transform: translateY(0); }

/* ---------- Drawer mobile état ouvert ---------- */
.mobile-drawer.is-open { display: flex; }
.cats-btn.is-open .cats-pop { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-detail, .cart-page, .checkout, .account-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-summary, .checkout__summary { position: static; }
}

.cat-card__icon{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--green-deep);line-height:0}

/* ---------- Aperçu rapide (popup détail produit) ---------- */
.quickview { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 32, .55); opacity: 0; transition: opacity .2s; overflow-y: auto; }
.quickview.show { opacity: 1; }
.quickview__box { position: relative; background: #fff; border-radius: 18px; width: min(900px, 100%); max-height: 90vh; overflow-y: auto; padding: 26px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); transform: translateY(12px); transition: transform .2s; }
.quickview.show .quickview__box { transform: translateY(0); }
.quickview__x { position: absolute; top: 12px; right: 14px; z-index: 3; width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--bg-soft); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.quickview__x:hover { background: var(--green); color: #fff; }
.quickview__loading { height: 220px; }
.quickview .product-detail { gap: 26px; }
.quickview .product-detail__desc, .quickview .related { display: none; } /* version condensée */
@media (max-width: 760px) { .quickview .product-detail { grid-template-columns: 1fr; } .quickview__box { padding: 18px; } }

/* ---------- Mini-panier (survol icône panier) ---------- */
.cart-wrap { position: relative; }
.mini-cart { position: absolute; top: calc(100% + 12px); right: 0; width: 330px; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 50px -18px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 120; }
.mini-cart.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mini-cart::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* pont invisible pour garder le survol */
.mini-cart__inner { padding: 16px; }
.mini-cart__empty { text-align: center; color: var(--mute); padding: 12px 0 16px; }
.mini-cart__list { list-style: none; margin: 0; padding: 0 2px 0 12px; max-height: 320px; overflow-y: auto; } /* padding-left : laisse la place au × dans le coin (pas de rognage) */
.mini-cart__item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mini-cart__thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.mini-cart__thumb a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 6px; }
.mini-cart__thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; } /* image entière, jamais rognée */
.mini-cart__rm { position: absolute; top: -7px; left: -7px; width: 20px; height: 20px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.mini-cart__rm svg { display: block; }
.mini-cart__rm:hover { background: #c62828; }
.mini-cart__meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-cart__name { font-size: .85rem; font-weight: 600; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-cart__name:hover { color: var(--green-deep); }
.mini-cart__qty { font-size: .82rem; color: var(--mute); }
.mini-cart__qty strong { color: var(--green-deep); }
.mini-cart__foot { padding-top: 14px; }
.mini-cart__subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: .92rem; color: var(--ink-soft); }
.mini-cart__subtotal strong { font-size: 1.25rem; color: var(--green-deep); }
.mini-cart__btn { width: 100%; justify-content: center; margin-top: 8px; }
.mini-cart__note { text-align: center; font-size: .76rem; color: var(--mute); margin-top: 12px; }
@media (max-width: 768px) { .mini-cart { display: none; } } /* sur mobile : seulement le clic (drawer) */

/* Barre « livraison gratuite » (survol + drawer) */
.mini-cart__ship { margin-bottom: 12px; }
.mini-cart__ship-txt { font-size: .82rem; color: var(--ink-soft); text-align: center; margin-bottom: 8px; line-height: 1.4; }
.mini-cart__ship-txt strong { color: var(--green-deep); }
.mini-cart__ship-bar { height: 6px; border-radius: 6px; background: var(--green-tint); overflow: hidden; }
.mini-cart__ship-bar span { display: block; height: 100%; background: var(--green); border-radius: 6px; transition: width .4s var(--ease-soft); }

/* ---------- Drawer panier (glisse depuis la droite) ---------- */
.cart-drawer { position: fixed; inset: 0; z-index: 300; }
.cart-drawer[hidden] { display: none; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(15, 23, 32, .5); opacity: 0; transition: opacity .3s; }
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s var(--ease-soft); box-shadow: -20px 0 50px -20px rgba(0,0,0,.35); }
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.cart-drawer__title { font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.cart-drawer__x { width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--bg-soft); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.cart-drawer__x:hover { background: var(--green); color: #fff; }
.cart-drawer__body { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; }
/* Réagencement du fragment mini-panier à l'intérieur du drawer */
.cart-drawer__body .mini-cart__inner { display: flex; flex-direction: column; min-height: 100%; padding: 0; }
.cart-drawer__body .mini-cart__ship { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-drawer__body .mini-cart__list { max-height: none; flex: 1 1 auto; overflow-y: auto; padding: 0 20px; }
.cart-drawer__body .mini-cart__item { padding: 16px 0; }
.cart-drawer__body .mini-cart__empty { padding: 48px 20px 16px; text-align: center; }
.cart-drawer__body > .mini-cart__inner > .mini-cart__btn { align-self: center; width: auto; margin: 0 20px; flex: 0 0 auto; } /* bouton de l'état vide : taille normale, pas étiré */
.cart-drawer__body .mini-cart__foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px; border-top: 1px solid var(--line); margin-top: auto; }
.cart-drawer__body .mini-cart__subtotal { flex-basis: 100%; margin-bottom: 4px; }
.cart-drawer__body .mini-cart__foot .mini-cart__btn { flex: 1 1 0; margin-top: 0; } /* seulement les 2 boutons du pied côte à côte */
.cart-drawer__body .mini-cart__note { flex-basis: 100%; margin-top: 2px; }

/* ---------- Page commande (pro) ---------- */
.co-title { margin-bottom: 22px; }
.co-errors { background: #fdecea; border: 1px solid #f5c6c2; border-left: 4px solid var(--red); border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; color: #8a1f1a; }
.co-errors__title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.co-errors ul { margin: 8px 0 0; padding-left: 26px; }
.co-errors li { font-size: .9rem; margin: 2px 0; }
.co-notice { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: var(--bg-soft); }
.co-notice__head { width: 100%; text-align: left; background: none; border: none; border-left: 3px solid var(--green); padding: 14px 18px; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.co-notice__head strong { color: var(--green-deep); }
.co-notice__head:hover strong { text-decoration: underline; }
.co-notice__body { padding: 18px; border-top: 1px solid var(--line); background: #fff; }
.co-login { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.co-login__forgot { grid-column: 1 / -1; font-size: .82rem; color: var(--green-deep); }
.co-coupon { display: flex; gap: 10px; max-width: 460px; }
.co-coupon input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; }

.co-ship { background: var(--green-tint); border: 1px solid rgba(79,177,76,.3); border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; }
.co-ship__txt { font-size: .9rem; color: var(--ink-soft); margin-bottom: 8px; }
.co-ship__txt strong { color: var(--green-deep); }
.co-ship__bar { height: 8px; border-radius: 8px; background: #fff; overflow: hidden; }
.co-ship__bar span { display: block; height: 100%; background: var(--green); border-radius: 8px; transition: width .4s var(--ease-soft); }

.co-h { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 26px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.co-h:first-child { margin-top: 0; }
.co-h__opt { font-weight: 400; font-size: .85rem; color: var(--mute); }

.co-methods { display: flex; flex-direction: column; gap: 10px; }
.co-method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.co-method:hover { border-color: var(--green); }
.co-method:has(input:checked) { border-color: var(--green); background: var(--green-tint); }
.co-method input { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.co-method__name { flex: 1; font-weight: 600; }
.co-method__fee { font-weight: 700; color: var(--green-deep); }

.co-order { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--sh-sm); position: sticky; top: 20px; }
.co-order__title { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.co-order__items { margin-bottom: 8px; }
.co-order__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 0; font-size: .92rem; border-bottom: 1px solid var(--bg-mute); }
.co-order__name em { color: var(--mute); font-style: normal; }
.co-order__total { border-top: 2px solid var(--line); border-bottom: none; margin-top: 6px; padding-top: 14px; font-size: 1.25rem; }
.co-order__total strong:last-child { color: var(--green-deep); }
.co-order__secure { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: .8rem; margin: 14px 0; }
.co-terms { display: flex; align-items: flex-start; gap: 10px; font-size: .86rem; color: var(--ink-soft); margin: 14px 0 18px; cursor: pointer; }
.co-terms input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--green); flex-shrink: 0; }
.co-terms a { color: var(--green-deep); font-weight: 600; }
.co-place { font-size: 1.02rem; }
.co-check { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.co-check input { width: 17px; height: 17px; accent-color: var(--green); }
.co-reveal { margin: 4px 0 8px; padding: 16px; border: 1px dashed var(--line); border-radius: 10px; background: var(--bg-soft); }
.co-reveal[hidden] { display: none; }
/* Autocomplétion d'adresse */
.addr-ac { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-lg); z-index: 50; max-height: 280px; overflow-y: auto; }
.addr-ac[hidden] { display: none; }
.addr-ac__opt { display: block; width: 100%; text-align: left; padding: 10px 14px; border: none; border-bottom: 1px solid var(--bg-mute); background: none; cursor: pointer; font-size: .88rem; color: var(--ink); }
.addr-ac__opt:last-child { border-bottom: none; }
.addr-ac__opt:hover { background: var(--green-tint); color: var(--green-deep); }
@media (max-width: 560px) { .co-login { grid-template-columns: 1fr; } }
