/* =========================================================================
   Carrinho lateral — cópia da seção "mini-cart" da lelamier.com (24/09/2026).
   CSS da ref sem alteração + faixa hv-cart-rea. Marcação montada em lamier.js.
   ========================================================================= */
.cd { font-family: 'Poppins', sans-serif; color: #000; letter-spacing: normal; line-height: 1.7333; }
.cd *, .cd *::before, .cd *::after { box-sizing: border-box; }
.cd button { font-family: inherit; }

.cd { position: fixed; inset: 0; z-index: 999; pointer-events: none; }
.cd.is-open { pointer-events: auto; }

.cd__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,0.45); opacity: 0;
  transition: opacity 320ms cubic-bezier(0.32, 0.72, 0, 1);
  cursor: pointer; pointer-events: none;
}
.cd.is-open .cd__overlay { opacity: 1; pointer-events: auto; }

.cd__panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 2;
  width: min(420px, 92vw); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform; overflow: hidden; pointer-events: auto;
}
.cd.is-open .cd__panel { transform: translateX(0); }

.cd__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(90deg, #060606 0%, #161616 30%, #2c2c2c 65%, #404040 100%);
  color: #fff; flex-shrink: 0; position: relative;
}
.cd__header::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.04) 100%);
  pointer-events: none;
}
.cd__title {
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; margin: 0;
  display: flex; align-items: center; gap: 8px;
  color: #fff; position: relative; z-index: 1;
}
.cd__count {
  font-size: 12px; font-weight: 600;
  background: #fff; color: #1a1a1a;
  border-radius: 999px; padding: 2px 8px; line-height: 1.4;
}
.cd__close {
  appearance: none; border: 0; background: none;
  padding: 6px; cursor: pointer; color: #fff;
  line-height: 0; position: relative; z-index: 10;
}
.cd__close svg { width: 20px; height: 20px; }

.cd__loader {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #1a1a1a, transparent);
  background-size: 50% 100%; background-repeat: no-repeat;
  background-position: -50% 0; opacity: 0; z-index: 20;
  pointer-events: none; transition: opacity .2s ease;
}
.cd.is-loading .cd__loader { opacity: 1; animation: cd-loader-slide 1.1s ease-in-out infinite; }
@keyframes cd-loader-slide {
  0% { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}
.cd.is-loading .cd__body, .cd.is-loading .cd__footer {
  opacity: 0.5; transition: opacity .2s ease; pointer-events: none;
}

.cd-reserve {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 20px;
  background: #fff8e1; font-size: 12px; color: #7a6100;
  text-align: center; flex-shrink: 0;
}
.cd-reserve__time { font-weight: 700; font-variant-numeric: tabular-nums; }

.cd__body {
  flex: 1; overflow-y: auto; overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.cd-ship { padding: 14px 20px 16px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.cd-ship__label { font-size: 12.5px; text-align: center; margin: 0 0 10px; color: #333; }
.cd-ship__bar { position: relative; height: 18px; overflow: visible; }
.cd-ship__track {
  position: absolute; inset: 0; background: rgba(0,0,0,0.08);
  border-radius: 999px; overflow: hidden;
}
.cd-ship__fill {
  height: 100%; width: 100%; background: #1a1a1a; border-radius: 999px;
  transform-origin: left center; transform: scaleX(var(--p, 0));
  transition: transform .35s cubic-bezier(.4, 0, .2, 1); will-change: transform;
}
.cd-ship--done .cd-ship__fill { background: #18a957; }
.cd-ship--done .cd-ship__track { box-shadow: 0 0 0 2px rgba(24,169,87,0.15); }
.cd-ship__pill {
  position: absolute; top: 50%; left: var(--pill-left, 0%);
  transform: translate(-50%, -50%);
  background: #fff; color: #000; border-radius: 999px;
  padding: 5px 11px; font-size: 12.5px; font-weight: 700;
  line-height: 1; white-space: nowrap; z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: left .35s cubic-bezier(.4, 0, .2, 1);
}
.cd-ship--done .cd-ship__pill { animation: cd-pill-pop .5s ease both; }
@keyframes cd-pill-pop {
  0%   { transform: translate(-50%, -50%) scale(1); }
  40%  { transform: translate(-50%, -50%) scale(1.08); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.cd__items { padding: 0 20px; }
.cd-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06); position: relative;
}
.cd-item__img-wrap {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden; background: #f5f5f5;
}
.cd-item__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-item__info {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; min-width: 0;
}
.cd-item__name {
  font-size: 13.5px; font-weight: 600; margin: 0 0 2px;
  line-height: 1.3; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; color: inherit;
}
.cd-item__variant { font-size: 11.5px; color: #777; margin: 0 0 6px; }
.cd-item__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cd-item__prices { display: flex; align-items: baseline; gap: 6px; }
.cd-item__price { font-size: 13.5px; font-weight: 700; }
.cd-item__compare { font-size: 12px; text-decoration: line-through; opacity: .55; }

/* Cadeau offert (Gift Box) — design repris du panier v4 */
.cd-item--gift { background: linear-gradient(to right, rgba(24,169,87,0.04), transparent); }
.cd-item__gift-badge {
  display: inline-block; font-size: 9.5px; font-weight: 700;
  background: #18a957; color: #fff; padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .03em; margin-left: 6px; vertical-align: middle;
}
.cd-item__price--gift { color: #18a957; font-weight: 800; letter-spacing: .02em; }

.cd-qty {
  display: flex; align-items: center;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 6px;
  overflow: hidden; height: 30px;
}
.cd-qty__btn {
  appearance: none; border: 0; background: none;
  width: 28px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: #333; padding: 0;
}
.cd-qty__btn:active { transform: scale(0.92); }
.cd-qty__val {
  width: 28px; text-align: center; font-size: 12.5px; font-weight: 600;
  border: 0; background: none; -moz-appearance: textfield; padding: 0;
}
.cd-qty__val::-webkit-inner-spin-button,
.cd-qty__val::-webkit-outer-spin-button { -webkit-appearance: none; }

.cd-item__remove {
  position: absolute; top: 14px; right: 0;
  appearance: none; border: 0; background: none;
  cursor: pointer; color: #999; padding: 2px; line-height: 0;
}
.cd-item__remove:hover { color: #333; }
.cd-item__remove svg { width: 15px; height: 15px; }

.cd-suggest {
  position: relative; margin: 12px 16px 16px; padding: 16px 18px 12px;
  background: linear-gradient(90deg, #fdfdfd 0%, #e5eaf2 100%);
  border: 1px solid rgba(0,0,0,0.08); border-radius: 16px;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.04),
    0 1px 2px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.6);
}
.cd-suggest__close {
  position: absolute; top: -6px; right: -6px;
  appearance: none; border: 0;
  background: #1a1a1a; color: #fff;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background-color .2s ease, transform .15s ease;
  z-index: 3; box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.cd-suggest__close:hover { background: #333; transform: scale(1.05); }
.cd-suggest__close:active { transform: scale(0.95); }
.cd-suggest__close svg { width: 10px; height: 10px; }

.cd-suggest__head { margin-bottom: 10px; }
.cd-suggest__title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #1a1a1a; margin: 0; line-height: 1.2;
}
.cd-suggest__subtitle {
  font-size: 11.5px; color: #6e6e6e; margin: 3px 0 0;
  line-height: 1.3; font-weight: 400;
}
.cd-suggest__list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cd-suggest__item {
  display: flex; align-items: stretch; gap: 12px;
  padding: 12px 14px; background: #fff;
  border: 1px solid rgba(0,0,0,0.06); border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.cd-suggest__img {
  width: 60px; height: 60px; align-self: center;
  border-radius: 10px; background: #fff; flex-shrink: 0;
  object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.cd-suggest__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cd-suggest__name {
  font-size: 13px; font-weight: 600; margin: 0;
  color: #1a1a1a; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cd-suggest__pricing { display: flex; align-items: baseline; gap: 6px; }
.cd-suggest__compare { font-size: 11px; text-decoration: line-through; color: #999; }
.cd-suggest__price { font-size: 13px; font-weight: 700; color: #1a1a1a; }

/* v15.2 — puces de sélection de variante upsell */
.cd-suggest__variants { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 1px 0 2px; }
.cd-suggest__variant {
  appearance: none; background: #fff; color: #555;
  border: 1px solid rgba(0,0,0,0.16); border-radius: 999px;
  padding: 3px 10px; font-size: 10.5px; font-weight: 600;
  line-height: 1.3; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.cd-suggest__variant.is-selected {
  border-color: #1a1a1a; color: #1a1a1a; background: #f5f5f5;
  box-shadow: inset 0 0 0 1px #1a1a1a;
}
.cd-suggest__variant:disabled { opacity: .4; cursor: default; text-decoration: line-through; }

/* v15.3 — pastilles couleur (appliquées par JS quand toutes les variantes
   d'une carte portent un nom de couleur reconnu) */
.cd-suggest__variant--dot {
  position: relative; width: 20px; height: 20px; border-radius: 999px;
  padding: 0; font-size: 0; line-height: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(0,0,0,0.22); background: #fff;
  flex: 0 0 auto;
}
.cd-suggest__variant--dot::after {
  content: ""; width: 13px; height: 13px; border-radius: 999px;
  background: var(--swatch, #ccc);
}
.cd-suggest__variant--dot.is-selected {
  border-color: #0b0b0b; border-width: 2px;
  background: #fff; box-shadow: none;
}
.cd-suggest__variant--dot:disabled { opacity: .35; text-decoration: none; }
.cd-suggest__variant-name {
  font-size: 11px; font-style: italic; font-weight: 400;
  color: rgba(0,0,0,0.55); margin-left: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* v15.5 — prix + bouton Ajouter sur la même ligne */
.cd-suggest__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto;
}

.cd-suggest__add {
  appearance: none; border: 0; background: #1a1a1a; color: #fff;
  padding: 6px 11px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 4px; flex-shrink: 0; white-space: nowrap;
  transition: background-color .2s ease, transform .15s ease;
  line-height: 1;
}
.cd-suggest__add svg { width: 10px; height: 10px; }
.cd-suggest__add:hover { background: #333; }
.cd-suggest__add:active { transform: scale(0.96); }
.cd-suggest__add:disabled { opacity: .65; cursor: default; }
.cd-suggest__add .cd-suggest__spinner {
  display: none; width: 11px; height: 11px;
  border: 2px solid rgba(255,255,255,0.25); border-top-color: #fff;
  border-radius: 50%; animation: cd-spin .55s linear infinite;
}
.cd-suggest__add.is-loading { pointer-events: none; }
.cd-suggest__add.is-loading .cd-suggest__add-icon,
.cd-suggest__add.is-loading .cd-suggest__add-label { display: none; }
.cd-suggest__add.is-loading .cd-suggest__spinner { display: inline-block; }
.cd-suggest__add.is-done { background: #18a957; pointer-events: none; }
@keyframes cd-spin { to { transform: rotate(360deg); } }

.cd__footer {
  flex-shrink: 0; padding: 16px 20px 20px;
  border-top: 1px solid rgba(0,0,0,0.06); background: #fff;
}
.cd__subtotal { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; }
.cd__subtotal-label { font-size: 13.5px; font-weight: 500; }
.cd__subtotal-value { font-size: 16px; font-weight: 700; }
.cd__savings { font-size: 12px; color: #18a957; font-weight: 600; text-align: right; margin: 0 0 12px; }
.cd__checkout {
  appearance: none; border: 0; width: 100%; padding: 14px 12px;
  font-size: clamp(11.5px, 3.5vw, 14.5px); font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  color: #fff; background: #1a1a1a; border-radius: 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 6px; white-space: nowrap; overflow: hidden;
}
.cd__checkout:hover { background: #333; }
.cd__checkout-lock svg { width: 14px; height: 14px; display: block; }
.cd__trust { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; }
.cd__trust-badges { display: block; width: 100%; max-width: 100%; height: auto; }
/* v15.3 — repli natif : icônes des moyens de paiement activés sur la boutique */
.cd__trust-payments {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 5px; max-width: 100%;
}
.cd__trust-payments .cd__trust-payment-icon { display: block; width: auto; height: 24px; }
.cd__trust-text {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 13px; color: #444;
}
.cd__trust-shield { width: 15px; height: 15px; object-fit: contain; }
.cd__trust-bold { font-weight: 700; text-decoration: underline; }

.cd__empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; padding: 40px 20px; text-align: center;
}
.cd__empty-icon { font-size: 48px; line-height: 1; }
.cd__empty p { font-size: 15px; color: #333; margin: 0; font-weight: 500; }
.cd__empty-sub { font-size: 13px; color: #888; margin: -8px 0 0; font-weight: 400; }
.cd__empty-cta {
  display: inline-block; padding: 12px 28px;
  font-size: 13.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
  color: #fff; background: #1a1a1a; border-radius: 8px; text-decoration: none;
}
.cd__empty-cta:hover { background: #333; }
.cd__no-savings { margin-bottom: 12px; }

/* faixa de reassurance em marquee (hv-cart-rea, injetada entre economia e botão na ref) */
.hv-cart-rea{margin:0 -20px 12px;padding:9px 20px;border-top:1px solid rgba(217,221,227,.5);border-bottom:1px solid rgba(217,221,227,.5);background:#f3f4f8;box-shadow:0 2px 6px 0 rgba(0,0,0,.08)}
.hv-cart-rea--marquee{padding-left:0;padding-right:0}
.hv-cart-rea--marquee:hover .hv-cart-rea__track{animation-play-state:paused}
.hv-cart-rea__inner{display:flex;align-items:center;justify-content:center}
.hv-cart-rea--marquee .hv-cart-rea__inner{justify-content:flex-start}
.hv-cart-rea__marquee{flex:1;min-width:0;overflow:hidden}
.hv-cart-rea__track{display:flex;width:max-content;animation:hv-cart-rea-marquee var(--hv-cart-rea-speed, 28s) linear infinite}
@media(prefers-reduced-motion: reduce){.hv-cart-rea__track{animation:none}}
.hv-cart-rea__group{display:flex;align-items:center;flex-shrink:0;gap:16px;padding-right:16px}
@media(min-width: 1024px){.hv-cart-rea__group{gap:20px;padding-right:20px}}
.hv-cart-rea__item{display:inline-flex;align-items:center;flex-shrink:0;gap:6px}
@media(min-width: 1024px){.hv-cart-rea__item{gap:8px}}
.hv-cart-rea__icon{flex-shrink:0;width:12px;height:13px;object-fit:contain}
@media(min-width: 1024px){.hv-cart-rea__icon{width:13px;height:15px}}
.hv-cart-rea__text{font-size:11px;font-weight:500;color:#000;text-align:center;white-space:nowrap}
@media(min-width: 1024px){.hv-cart-rea__text{font-size:13px}}
.hv-cart-rea__text p{margin:0;display:inline}
.hv-cart-rea__text strong{font-weight:700}
@keyframes hv-cart-rea-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* e-mail antes do checkout Paggins (a API de sessão exige customer.email) */
.cd-email { margin: 0 0 10px; }
.cd-email__input { display: block; width: 100%; height: 44px; padding: 0 14px; font: inherit; font-size: 14px; color: #000; background: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: 10px; outline: none; -webkit-appearance: none; appearance: none; }
.cd-email__input::placeholder { color: #8a8a8a; }
.cd-email__input:focus { border-color: #1a1a1a; box-shadow: 0 0 0 1px #1a1a1a; }
.cd-email__input.is-invalid { border-color: #dd1d1d; box-shadow: 0 0 0 1px #dd1d1d; }
.cd-email__err { margin: 5px 2px 0; font-size: 12px; line-height: 16px; color: #dd1d1d; }
.cd-email__err[hidden] { display: none; }
