/* ===== LP -> Shopify: carrinho lateral + botão flutuante ===== */
:root {
  --lpc-ink: #121212;
  --lpc-muted: #6b6b6b;
  --lpc-line: #ECEAE6;
  --lpc-bg: #ffffff;
  --lpc-soft: #F6F4F1;
  --lpc-font: var(--font-body-family, "Lato", system-ui, sans-serif);
}

/* desativa o "sticky" nativo do tema no mobile (agora o flutuante é o nosso) */
#MainContent .add-to-cart-mobile-wrapper { display: none !important; }
#MainContent .add-to-cart-mobile-sticky.below-viewport button,
#MainContent .add-to-cart-mobile-sticky button { position: relative !important; width: 100% !important; bottom: auto !important; }
cart-drawer, cart-notification { display: none !important; }

/* elementos sem clique */
.lpc-off { cursor: default !important; }

/* amostras de cor (as imagens originais apontavam para o site de origem) */
variant-radios label[for$="-1-0"] { background: #4a2a1f !important; }
variant-radios label[for$="-1-1"] { background: #5e1a24 !important; }
variant-radios label[for$="-1-2"] { background: #eadfca !important; }
variant-radios label[for$="-1-3"] { background: #8a5a3b !important; }
variant-radios label[for$="-1-4"] { background: #141414 !important; }
variant-radios label[for$="-1-5"] { background: #9b7b57 !important; }

.lpc-root, .lpc-root * { box-sizing: border-box; }
.lpc-root { font-family: var(--lpc-font); color: var(--lpc-ink); }
.lpc-root button { font-family: inherit; cursor: pointer; }

/* ---------- botão flutuante ---------- */
.lpc-float {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
  background: var(--lpc-bg); border-top: 1px solid var(--lpc-line);
  box-shadow: 0 -6px 24px rgba(0,0,0,.06);
  transform: translateY(110%); transition: transform .3s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.lpc-float.is-on { transform: translateY(0); }
html.lpc-open .lpc-float { transform: translateY(110%); }
.lpc-float__inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 14px;
}
.lpc-float__img { width: 48px; height: 48px; object-fit: cover; background: var(--lpc-soft); flex: none; }
.lpc-float__info { min-width: 0; flex: 1; }
.lpc-float__title { font-size: 14px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lpc-float__meta { font-size: 13px; color: var(--lpc-muted); margin-top: 2px; }
.lpc-float__price { color: var(--lpc-ink); font-weight: 700; margin-right: 6px; }
.lpc-float__btn {
  flex: none; min-width: 240px; height: 48px; padding: 0 28px; border: 0;
  background: var(--lpc-ink); color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  transition: opacity .2s;
}
.lpc-float__btn:hover { opacity: .88; }
@media (max-width: 749px) {
  .lpc-float__inner { padding: 10px 15px; gap: 10px; }
  .lpc-float__img { width: 44px; height: 44px; }
  .lpc-float__title { font-size: 13px; }
  .lpc-float__btn { min-width: 0; padding: 0 18px; height: 46px; font-size: 13px; }
}
@media (max-width: 380px) { .lpc-float__img { display: none; } }

/* ---------- bolha do carrinho ---------- */
.lpc-bubble {
  position: fixed; top: 52px; right: 16px; z-index: 9991;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--lpc-line);
  background: var(--lpc-bg); color: var(--lpc-ink); display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
}
.lpc-bubble[hidden] { display: none; }
.lpc-bubble__count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--lpc-ink); color: #fff; font-size: 11px; line-height: 20px; text-align: center;
}
html.lpc-open .lpc-bubble { opacity: 0; pointer-events: none; }

/* ---------- carrinho lateral ---------- */
.lpc-overlay {
  position: fixed; inset: 0; z-index: 9998; background: rgba(18,18,18,.45);
  opacity: 0; transition: opacity .3s ease;
}
html.lpc-open .lpc-overlay { opacity: 1; }
.lpc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9999;
  width: 420px; max-width: 92vw; background: var(--lpc-bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s linear .32s;
}
html.lpc-open .lpc-drawer { transform: translateX(0); visibility: visible; transition: transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s; box-shadow: -10px 0 40px rgba(0,0,0,.12); }
html.lpc-open, html.lpc-open body { overflow: hidden; }

.lpc-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--lpc-line);
}
.lpc-drawer__head h2 { margin: 0; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-family: inherit; }
.lpc-drawer__count { color: var(--lpc-muted); font-weight: 400; letter-spacing: .04em; }
.lpc-close { border: 0; background: none; width: 40px; height: 40px; margin-right: -10px; display: grid; place-items: center; color: var(--lpc-ink); }

.lpc-drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.lpc-items { list-style: none; margin: 0; padding: 0; }
.lpc-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--lpc-line); }
.lpc-item:last-child { border-bottom: 0; }
.lpc-item__img { width: 92px; height: 112px; flex: none; background: var(--lpc-soft); overflow: hidden; }
.lpc-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lpc-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lpc-item__title { margin: 0; font-size: 14px; line-height: 1.35; letter-spacing: .02em; }
.lpc-item__variant { margin: 4px 0 0; font-size: 12px; color: var(--lpc-muted); text-transform: uppercase; letter-spacing: .08em; }
.lpc-item__price { margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.lpc-item__row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lpc-qty { display: inline-flex; align-items: center; border: 1px solid #d9d6d0; height: 38px; }
.lpc-qty button { width: 36px; height: 100%; border: 0; background: none; font-size: 18px; color: var(--lpc-ink); }
.lpc-qty button:disabled { opacity: .3; cursor: default; }
.lpc-qty__val { min-width: 28px; text-align: center; font-size: 14px; }
.lpc-remove { border: 0; background: none; padding: 4px 0; font-size: 12px; color: var(--lpc-muted); text-decoration: underline; text-underline-offset: 3px; }

.lpc-empty { display: none; text-align: center; padding: 64px 0; }
.lpc-drawer.is-empty .lpc-empty { display: block; }
.lpc-drawer.is-empty .lpc-drawer__foot { display: none; }
.lpc-empty p { margin: 0 0 18px; font-size: 15px; }
.lpc-continue { border: 1px solid var(--lpc-ink); background: none; height: 46px; padding: 0 28px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--lpc-ink); }

.lpc-drawer__foot { border-top: 1px solid var(--lpc-line); padding: 18px 24px calc(20px + env(safe-area-inset-bottom, 0)); }
.lpc-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; letter-spacing: .04em; }
.lpc-subtotal strong { font-size: 17px; }
.lpc-note { margin: 6px 0 14px; font-size: 12px; color: var(--lpc-muted); }
.lpc-checkout {
  width: 100%; height: 52px; border: 0; background: var(--lpc-ink); color: #fff;
  font-size: 15px; letter-spacing: .1em; text-transform: uppercase; position: relative;
}
.lpc-checkout:hover { opacity: .9; }
.lpc-checkout.is-loading span { opacity: 0; }
.lpc-checkout.is-loading::after,
.lpc-busy::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: lpc-spin .7s linear infinite;
}
.lpc-busy { position: relative; color: transparent !important; }
.lpc-busy * { visibility: hidden; }
@keyframes lpc-spin { to { transform: rotate(360deg); } }
.lpc-secure { margin: 10px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--lpc-muted); }

/* ---------- aviso ---------- */
.lpc-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 10000; transform: translate(-50%, 20px);
  background: var(--lpc-ink); color: #fff; padding: 12px 18px; font-size: 13px; max-width: 90vw;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.lpc-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 749px) {
  .lpc-drawer { width: 100%; max-width: 100%; }
  .lpc-drawer__head, .lpc-drawer__body, .lpc-drawer__foot { padding-left: 16px; padding-right: 16px; }
  .lpc-bubble { top: 60px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lpc-float, .lpc-drawer, .lpc-overlay { transition: none; }
}

/* ---- Cores esgotadas ---- */
variant-radios label.lpc-swatch-soldout { position: relative; opacity: .45; }
variant-radios label.lpc-swatch-soldout::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 140%; height: 1.5px;
  background: #111; transform: translate(-50%, -50%) rotate(-45deg); pointer-events: none;
}
#dawn-AddToCart.lpc-soldout-btn,
.lpc-float__btn.lpc-soldout-btn {
  background: #d9d6d1 !important; color: #6b6660 !important; border-color: #d9d6d1 !important;
  cursor: not-allowed !important; box-shadow: none !important;
}
#dawn-AddToCart.lpc-soldout-btn::after { display: none !important; }
