/* ================= Panier latéral CALENDIA ================= */

.cart-backdrop {
  position: fixed; inset: 0; background: rgba(10, 12, 15, 0.45);
  backdrop-filter: blur(2px); opacity: 0; pointer-events: none;
  transition: opacity .28s ease; z-index: 900;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 430px; max-width: 100%;
  background: #fff; z-index: 950; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .34s cubic-bezier(.22,.61,.36,1);
  box-shadow: -18px 0 46px rgba(0,0,0,0.16);
}
.cart-drawer.open { transform: translateX(0); }

/* --- en-tête --- */
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 16px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.cart-head .cart-logo {
  display: flex; flex-direction: column; gap: 5px; line-height: 1;
}
.cart-head .cart-logo .lm-name {
  font-family: "Playfair Display", Didot, "Bodoni MT", Georgia, "Times New Roman", serif;
  font-size: 19px; font-weight: 500; letter-spacing: 0.11em; color: var(--ink);
}
.cart-head .cart-logo .lm-sub {
  font-size: 6.5px; font-weight: 700; letter-spacing: 0.17em; color: var(--ink);
}
.cart-close {
  background: none; border: none; padding: 6px; color: var(--ink); border-radius: 8px; line-height: 0;
}
.cart-close:hover { background: var(--bg-soft); }

/* --- barre livraison offerte --- */
.ship-bar { padding: 15px 20px 17px; background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.ship-msg { font-size: 13.5px; margin: 0 0 11px; line-height: 1.45; }
.ship-msg b { font-weight: 600; }
.ship-msg .amount { color: var(--accent); font-weight: 600; }
.ship-track {
  position: relative; height: 4px; border-radius: 99px; background: #e9e9ec;
}
.ship-fill {
  height: 100%; border-radius: 99px; width: 0;
  background: var(--ink);
  transition: width .5s cubic-bezier(.22,.61,.36,1);
}
.ship-truck {
  position: absolute; top: 50%; right: -4px; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: #fff;
  border: 1.5px solid #d8d8dc; display: flex; align-items: center; justify-content: center;
  color: #9b9ba1; transition: border-color .3s ease, color .3s ease;
}
.ship-bar.unlocked .ship-truck { border-color: var(--ink); color: var(--ink); }
.ship-bar.unlocked .ship-msg { color: var(--ink); font-weight: 600; }

/* --- liste articles --- */
.cart-body { flex: 1; overflow-y: auto; padding: 6px 20px 20px; }
.cart-item {
  display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line);
  animation: cart-in .32s ease both;
}
@keyframes cart-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cart-item .ci-img {
  width: 88px; height: 88px; border-radius: 10px; object-fit: cover;
  background: var(--bg-soft); flex-shrink: 0;
}
.cart-item .ci-main { flex: 1; min-width: 0; }
.cart-item .ci-title { font-size: 14.5px; font-weight: 600; margin: 0 0 3px; line-height: 1.3; }
.cart-item .ci-variant { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 8px; }
.cart-item .ci-prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cart-item .ci-now { color: var(--accent); font-weight: 600; font-size: 15.5px; }
.cart-item .ci-was { color: #9a9a9a; text-decoration: line-through; font-size: 13px; }
.cart-item .ci-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-stepper {
  display: inline-flex; align-items: center; background: var(--bg-soft);
  border-radius: 99px; padding: 2px;
}
.cart-stepper button {
  width: 30px; height: 30px; border: none; background: none; border-radius: 50%;
  font-size: 16px; line-height: 1; color: var(--ink);
}
.cart-stepper button:hover { background: #e6e6e9; }
.cart-stepper span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.ci-remove {
  background: none; border: none; color: #9b9ba1; padding: 6px; border-radius: 8px; line-height: 0;
}
.ci-remove:hover { color: var(--accent); background: var(--accent-soft); }

/* --- ligne cadeau --- */
.cart-item.is-gift { position: relative; padding-left: 15px; }
.cart-item.is-gift::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px;
  width: 2px; border-radius: 2px; background: var(--ink);
}
.cart-item.is-gift .ci-img { width: 72px; height: 72px; }
.gift-badge {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px;
}
.cart-item.is-gift .ci-now { color: var(--ink); font-size: 14.5px; }
.gift-lock { font-size: 12px; color: #9b9ba1; }

/* --- pied --- */
.cart-foot { border-top: 1px solid var(--line); padding: 16px 20px 18px; flex-shrink: 0; background: #fff; }
.cart-saving {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink-soft); font-size: 13px; font-weight: 400;
  padding: 0 2px; margin-bottom: 9px;
}
.cart-saving span:last-child { color: var(--green); font-weight: 600; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.cart-total .lbl { font-size: 17px; font-weight: 600; }
.cart-total .val { font-size: 22px; font-weight: 600; }
.cart-total-note { font-size: 12px; color: var(--ink-soft); margin: 0 0 14px; }
.cart-checkout {
  width: 100%; background: var(--ink); color: #fff; border: none; border-radius: 99px;
  padding: 18px; font-size: 15.5px; font-weight: 600; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.cart-checkout:hover { background: #000; }
.cart-checkout:active { transform: scale(.99); }
.cart-trust {
  display: flex; justify-content: center; align-items: center; gap: 13px;
  flex-wrap: nowrap; font-size: 11px; color: var(--ink-soft); margin-top: 12px;
}
.cart-trust span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cart-trust svg { flex-shrink: 0; }
@media (max-width: 400px) { .cart-trust { gap: 9px; font-size: 10px; } }
.cart-foot .pay-icons { margin: 12px 0 0; gap: 7px; }
.cart-foot .pay-icons .payment-icon { width: 32px; height: 20px; }

/* --- vide --- */
.cart-empty { text-align: center; padding: 70px 24px; }
.cart-empty svg { color: #c9c9ce; margin-bottom: 16px; }
.cart-empty p { font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.cart-empty small { color: var(--ink-soft); display: block; margin-bottom: 20px; }
.cart-empty a {
  display: inline-block; background: var(--ink); color: #fff; padding: 13px 26px;
  border-radius: 99px; font-size: 14px; font-weight: 600;
}

/* --- pastille compteur dans le header --- */
.cart-icon-btn { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -8px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff; border-radius: 99px; font-size: 10.5px; font-weight: 600;
  display: none; align-items: center; justify-content: center; line-height: 1;
}
.cart-badge.show { display: flex; animation: badge-pop .3s ease; }
@keyframes badge-pop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

@media (max-width: 480px) {
  .cart-drawer { width: 100%; }
  .cart-item .ci-img { width: 74px; height: 74px; }
}

/* ================= Menu latéral ================= */
.menu-drawer {
  position: fixed; top: 0; left: 0; height: 100%; width: 330px; max-width: 86%;
  background: #fff; z-index: 950; display: flex; flex-direction: column;
  transform: translateX(-102%); transition: transform .32s cubic-bezier(.22,.61,.36,1);
  box-shadow: 18px 0 46px rgba(0,0,0,0.16);
}
.menu-drawer.open { transform: translateX(0); }
.menu-head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: #fff; padding: 15px 18px; flex-shrink: 0;
}
.menu-head span { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.menu-head button { background: none; border: none; color: #fff; padding: 4px; line-height: 0; border-radius: 6px; }
.menu-head button:hover { background: rgba(255,255,255,0.14); }
.menu-links { flex: 1; overflow-y: auto; }
.menu-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.menu-links a:hover { background: var(--bg-soft); }
.menu-links a .chev { color: #bfbfc5; }
.menu-links a.is-current { color: var(--accent); }
.menu-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.menu-foot .m-trust { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }


/* ---- reservation du panier : bande discrete sous l'en-tete */
.cart-hold {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px;
  border-bottom: 1px solid var(--line, #ebebeb);
  font-size: 12px; line-height: 1.3;
  color: var(--ink-soft, #666);
}
.cart-hold[hidden] { display: none; }
.ch-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink, #111);
}
.cart-hold.expire .ch-time { color: var(--ink-soft, #666); font-weight: 500; }
