/* ---------------------------------------------------------------------------
   Solène — tiroir panier, réplique du tiroir KACHING de miraglowup.com (notre boutique italienne).
   Mesures relevées au DOM le 2026-09-25 (styles calculés, mobile 390 px) : MARQUE_SOLENE.md §46.
   Poppins · encre #000 · bande #E7DDD0 · étiquettes #DECEBA (rayon 2,56) · carte d'upsell #F6F3F0
   (rayon 10) · barrés #98A2B3 · bouton noir rayon 5,44 · filets #E3E3E3.
   Préfixe unique `.sod-` ; rendu seulement quand Solène déclare `layout_template`.
--------------------------------------------------------------------------- */
.cart-slide-panel.sod-on {
    background: #fff; background-image: none; border-left: 0; max-width: 420px;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .12);
}
@media (max-width: 768px) { .cart-slide-panel.sod-on { max-width: 100%; width: 100vw; } }

/* Marge intérieure (fondateur 2026-09-26 : « éléments collés à la bordure », rester doux) : 12 → 18 px,
   la même partout pour que titre, lignes, carrousel, garantie et pied restent alignés. */
.sod { --sod-gutter: 18px;
    --sod-beige: #deceba; --sod-band: #e7ddd0; --sod-card: #f6f3f0; --sod-grey: #98a2b3; --sod-line: #e3e3e3;
    display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; color: rgb(30, 30, 30);
    font-family: 'Poppins', Arial, sans-serif; font-size: 15.2px; line-height: 1.25; letter-spacing: 0; }
.sod *, .sod *::before, .sod *::after { box-sizing: border-box; }
.sod p { margin: 0; }
.sod button { font: inherit; cursor: pointer; }
.sod ul { list-style: none; margin: 0; padding: 0; }

/* « Panier • 4 Articles » ✕ */
.sod-head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--sod-gutter) 14px; flex: 0 0 auto; }
.sod-title { font-size: 18px; line-height: 22px; font-weight: 500; color: #000; }
.sod-close { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: none; color: #000;
    margin: -6px -6px -6px 0; padding: 0; }
.sod-announce { flex: 0 0 auto; padding: 10px var(--sod-gutter); background: var(--sod-band); color: #000; font-size: 10.8px;
    line-height: 13px; text-align: center; }

.sod-contents { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* `.sod .sod-lines` : la liste est un <ul>, et `.sod ul { padding: 0 }` (plus spécifique) mettait les lignes à 0 px du bord. */
.sod .sod-lines { padding: 18px var(--sod-gutter) 0; }

/* Ligne : image 80 (filet, rayon 8) · titre / étiquette / détail / stepper · prix à droite */
.sod-line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; column-gap: 8px; padding-bottom: 20px; }
.sod-line__img { width: 80px; height: 80px; object-fit: cover; border: 1px solid var(--sod-line); border-radius: 8px;
    display: block; background: #fff; }
.sod-line__main { min-width: 0; }
.sod-line__title { font-size: 13.5px; line-height: 16px; font-weight: 650; color: #000; }
.sod-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 5px; border-radius: 2.56px;
    background: var(--sod-beige); color: #000; font-size: 10.8px; line-height: 14px; font-weight: 500; }
.sod-tag svg { flex: 0 0 auto; }
.sod .sod-more { display: inline-flex; align-items: center; gap: 3px; margin-top: 10px; padding: 0; border: 0; background: none;
    color: rgba(0, 0, 0, .8); font-size: 10.8px; line-height: 13px; }
.sod-more svg { transition: transform .15s; }
.sod-more[aria-expanded="false"] svg { transform: rotate(180deg); }
.sod-units { margin-top: 6px; color: rgba(0, 0, 0, .8); font-size: 10.8px; line-height: 13px; }
.sod-units li { display: flex; gap: 5px; padding: 3px 0; }
.sod-units li > span:first-child { flex: 0 0 auto; white-space: nowrap; } /* « 1× 🎁 » d'un bloc */
.sod-units[hidden] { display: none; }
.sod-qty { display: inline-flex; align-items: center; margin-top: 10px; height: 32px; border: 1px solid var(--sod-line);
    border-radius: 3px; background: #fff; }
.sod-qty button { width: 31px; height: 30px; border: 0; background: none; color: #000; padding: 0; font-size: 16px;
    font-weight: 700; line-height: 1; display: grid; place-items: center; }
.sod-qty button:disabled { color: rgba(0, 0, 0, .3); cursor: default; }
.sod-qty span { min-width: 30px; text-align: center; font-size: 13px; color: #000; }
.sod-line__side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 5px; }
.sod-line__was { font-size: 13.5px; line-height: 16px; color: var(--sod-grey); text-decoration: line-through; }
.sod-line__now { font-size: 13.5px; line-height: 16px; font-weight: 700; color: #000; }
.sod-save { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 2.56px;
    background: var(--sod-beige); color: #000; font-size: 10.8px; line-height: 14px; font-weight: 500; white-space: nowrap; }
.sod-trash { margin-top: auto; border: 0; background: none; padding: 4px 0 0; color: #000; line-height: 0; }

/* Cadeaux : flèche ↳, image 50, titre 10,8 px, OFFERT */
.sod-line--gift { grid-template-columns: 80px minmax(0, 1fr) auto; }
.sod-gift-lead { display: flex; align-items: flex-start; justify-content: flex-end; gap: 9px; }
.sod-gift-lead svg { flex: 0 0 auto; margin-top: 6px; color: #000; }
.sod-line--gift .sod-line__img { width: 50px; height: 50px; border: 0; border-radius: 6px; background: var(--sod-card); }
.sod-line--gift .sod-line__title { font-size: 10.8px; line-height: 13px; }
.sod-line--gift .sod-qty { margin-top: 8px; }
.sod-line--gift .sod-line__was { font-size: 10.8px; line-height: 13px; }
.sod-line--gift .sod-line__now { font-size: 10.8px; line-height: 13px; }

/* Carrousel d'upsells : une carte à la fois, flèches de part et d'autre */
.sod-carousel { display: flex; align-items: center; gap: 6px; padding: 18px var(--sod-gutter) 26px; }
.sod-carousel[hidden] { display: none; }
.sod-car-nav { flex: 0 0 auto; width: 28px; height: 28px; border: 0; background: none; color: #1e1e1e; padding: 0;
    display: grid; place-items: center; }
.sod-car-nav:disabled { opacity: .25; cursor: default; }
.sod-car-track { flex: 1 1 auto; min-width: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; scrollbar-width: none; gap: 12px; }
.sod-car-track::-webkit-scrollbar { display: none; }
.sod-up { flex: 0 0 100%; scroll-snap-align: center; display: flex; gap: 12px; padding: 12px; border-radius: 10px;
    background: var(--sod-card); color: rgb(68, 68, 68); }
.sod-up[hidden] { display: none; }
.sod-up__img { flex: 0 0 60px; width: 60px; height: 60px; object-fit: cover; border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 6px; background: #fff; }
.sod-up__content { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sod-up__name { font-size: 12.15px; line-height: 15px; font-weight: 650; color: #000; }
.sod-up__prices { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 12.83px; line-height: 15px; }
.sod-up__now { font-weight: 700; color: #000; }
.sod-up__was { color: var(--sod-grey); }
.sod-badge { display: inline-flex; padding: 5px; border-radius: 2.56px; background: var(--sod-beige); color: #000;
    font-size: 10.8px; line-height: 13px; font-weight: 500; }
.sod-up__add { border: 0; border-radius: 3px; padding: 6px 10px; background: #000; color: #fff;
    font-family: Arial, sans-serif !important; font-size: 10.8px !important; font-weight: 650 !important; line-height: 13px; }
.sod-up.is-busy .sod-up__add { opacity: .55; pointer-events: none; }
.sod-up__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; width: 100%; flex-wrap: wrap; }
.sod-up__opt { display: flex; flex-direction: column; gap: 4px; }
.sod-up__opt-name { font-size: 10.8px; line-height: 13px; color: rgba(0, 0, 0, .6); }
.sod-select { font-family: Arial, sans-serif; font-size: 10.8px; color: #000; background: #fff; border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 3px; padding: 6px 24px 6px 6px; -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 7px center; background-size: 9px 6px; }

/* Garantie (fin de la zone qui défile, comme la source) */
.sod-trust { display: flex; align-items: center; gap: 6px; padding: 15px var(--sod-gutter); background: #fbfbfb; color: #000;
    font-size: 10.8px; line-height: 13px; font-weight: 700; }
.sod-trust[hidden] { display: none; }
.sod-trust svg { flex: 0 0 auto; }

/* Pied : Réduction · bouton · paiements · « Essayez-le sans risque » */
.sod-foot { flex: 0 0 auto; padding: 15px var(--sod-gutter) 14px; border-top: 1px solid var(--sod-line); background: #fff; }
.sod-foot[hidden] { display: none; }
.sod-disc { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 10.8px; line-height: 13px; color: #000; }
.sod-disc[hidden] { display: none; }
.sod-disc__tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.sod-disc__tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 3px; background: #fff; }
.sod-disc__amt { margin-left: auto; white-space: nowrap; }
.sod .sod-checkout { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 17px 14px;
    border-radius: 6px; background: #000; color: #fff !important; text-decoration: none !important; text-align: center;
    font-family: Arial, sans-serif !important; font-size: 16px !important; line-height: 19px; font-weight: 700 !important;
    text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; }
.sod .sod-checkout:hover { background: #1e1e1e; }
.sod-pay { margin: 7px 0 4px; }
.sod-pay .so-paylist { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 5px; flex-wrap: nowrap; }
/* Logos officiels : chaque logo EST sa carte 38x24, pas de cadre autour (2026-09-26). */
.sod-pay .so-paylist li { display: inline-flex; }
.sod-pay .so-paylist svg { display: block; width: 38px; height: 24px; }
.sod-risk { display: block; width: 100%; border: 0; background: none; padding: 2px 4px; color: #000; text-align: center;
    font-family: Arial, sans-serif !important; font-size: 12.96px !important; line-height: 15.5px; font-weight: 600 !important; }

.sod-empty { padding: 40px 20px; text-align: center; }
.sod-empty p { margin-bottom: 16px; font-size: 15px; }

/* Carte d'upsell au-dessus du pied (fondateur 2026-09-29, « comme avant ») : le composant PARTAGÉ du tiroir
   (#cartUpsellToggleSlot, .cart-upsell-toggle — CSS dans templates/components/cart-slide-panel.html), repeint aux
   couleurs de la marque : fond blanc, filet gris, prix et interrupteur noirs, accroche champagne foncé. */
.sod .sod-ups-slot { flex: 0 0 auto; padding: 8px var(--sod-gutter) 6px; background: #fff; border-top: 1px solid var(--sod-line); }
.sod .sod-ups-slot .cart-upsell-toggle { border: 1px solid var(--sod-beige); border-radius: 8px; background: var(--sod-card); }
.sod .sod-ups-slot .cart-upsell-toggle__name { font-family: 'Poppins', Arial, sans-serif; color: #000; font-weight: 600; }
.sod .sod-ups-slot .cart-upsell-toggle__price { color: #000; }
.sod .sod-ups-slot .cart-upsell-toggle__old { color: var(--sod-grey); }
.sod .sod-ups-slot .cart-upsell-toggle__desc { color: #6b5a3e; font-weight: 500; }
.sod .sod-ups-slot .cart-upsell-toggle__img { border-color: var(--sod-line); background: #fff; }
.sod .sod-ups-slot .cart-upsell-toggle__track { background: #d9d5d0; }
.sod .sod-ups-slot .cart-upsell-toggle__check:checked ~ .cart-upsell-toggle__track { background: #1e1e1e; }
.sod .sod-ups-slot + .sod-foot { border-top: 0; }
