/* =========================================================
   LP Ninja – camada de customização (Black Friday v1)
   1) Links/botões de saída neutralizados
   2) Carrinho lateral (drawer)
   ========================================================= */

/* ---------- 1. Elementos neutralizados ---------- */
.lp-dead,
.lp-dead * { cursor: default !important; }
a.lp-dead:hover { text-decoration: inherit; }
/* remove widgets externos que sobraram da captura */
#cimulate-messaging-widget, #agentic-fab, .cim-widget-minimized-container,
#vwo-frame-wrapper, .google-shopping-agent-recaptcha-notice,
.modal-background, .add-to-cart-modal, .notifyme-modal, .price-info-modal { display: none !important; }

/* ---------- Galeria refeita (substitui o carrossel remoto) ---------- */
#pdp-gallery .lp-gallery { display: flex; gap: 16px; width: 100%; }
#pdp-gallery .lp-thumbs { display: flex; flex-direction: column; gap: 14px; width: 80px; flex: 0 0 80px; max-height: 690px; overflow-y: auto; scrollbar-width: none; }
#pdp-gallery .lp-thumbs::-webkit-scrollbar { display: none; }
#pdp-gallery .lp-thumb { width: 78px; height: 78px; padding: 0; border: 1px solid transparent; border-radius: 4px; background: #fff; cursor: pointer; overflow: hidden; flex: 0 0 auto; opacity: .75; transition: opacity .2s, border-color .2s; }
#pdp-gallery .lp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#pdp-gallery .lp-thumb:hover { opacity: 1; }
#pdp-gallery .lp-thumb.is-active { border-color: #000; opacity: 1; }
#pdp-gallery .lp-main { position: relative; flex: 1 1 auto; aspect-ratio: 1 / 1; max-height: 690px; background: #fff; overflow: hidden; }
#pdp-gallery .lp-main img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity .25s; }
#pdp-gallery .lp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 1px 6px rgba(0,0,0,.18); cursor: pointer; display: flex; align-items: center; justify-content: center; }
#pdp-gallery .lp-nav svg { width: 18px; height: 18px; }
#pdp-gallery .lp-prev { left: 12px; }
#pdp-gallery .lp-next { right: 12px; }
#pdp-gallery .lp-counter { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font: 500 12px/1 "DM Sans", arial, sans-serif; background: rgba(255,255,255,.92); padding: 6px 10px; border-radius: 20px; }
@media (max-width: 991px) {
  #pdp-gallery .lp-gallery { flex-direction: column-reverse; }
  #pdp-gallery .lp-thumbs { flex-direction: row; width: 100%; flex-basis: auto; overflow-x: auto; }
  #pdp-gallery .lp-thumb { width: 64px; height: 64px; }
}

/* acordeões e read more */
.collapse.show { display: block !important; }
.short-description-container.lp-expanded .short-description-text { max-height: none !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
.short-description-container.lp-expanded .fade-overlay { display: none !important; }

/* ---------- 2. Carrinho lateral ---------- */
.lp-cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 2147483000; }
.lp-cart-overlay.is-open { opacity: 1; visibility: visible; }
.lp-cart { position: fixed; top: 0; right: 0; height: 100%; height: 100dvh; width: 440px; max-width: 100vw; background: #fff; z-index: 2147483001; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.22,.61,.36,1); box-shadow: -8px 0 30px rgba(0,0,0,.12); font-family: "DM Sans", arial, helvetica, sans-serif; color: #000; }
.lp-cart.is-open { transform: translateX(0); }
.lp-cart * { box-sizing: border-box; }
.lp-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #e7e7e7; }
.lp-cart__title { margin: 0; font: 700 20px/1.2 "Plus Jakarta Sans", "DM Sans", arial, sans-serif; }
.lp-cart__close { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.lp-cart__close:hover { background: #f2f2f2; }
.lp-cart__close svg { width: 20px; height: 20px; }
.lp-cart__ship { padding: 14px 24px; background: #f7f5f2; font-size: 14px; line-height: 1.35; }
.lp-cart__bar { height: 6px; background: #e3e3e3; border-radius: 6px; margin-top: 8px; overflow: hidden; }
.lp-cart__bar span { display: block; height: 100%; background: #000; border-radius: 6px; transition: width .35s; }
.lp-cart__added { display: none; align-items: center; gap: 8px; padding: 12px 24px; background: #e6f4ea; color: #1e6b36; font-size: 14px; font-weight: 600; }
.lp-cart__added.is-visible { display: flex; }
.lp-cart__added svg { width: 18px; height: 18px; flex: 0 0 auto; }
.lp-cart__body { flex: 1 1 auto; overflow-y: auto; padding: 8px 24px; }
.lp-cart__empty { text-align: center; padding: 60px 0; color: #555; font-size: 15px; }
.lp-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid #eee; }
.lp-item:last-child { border-bottom: 0; }
.lp-item__img { width: 96px; height: 96px; border-radius: 6px; background: #f4f4f4; overflow: hidden; }
.lp-item__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lp-item__name { font-size: 15px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.lp-item__meta { font-size: 13px; color: #666; margin: 0 0 10px; }
.lp-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-qty { display: inline-flex; align-items: center; border: 1px solid #cfcfcf; border-radius: 24px; height: 38px; overflow: hidden; }
.lp-qty button { width: 36px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 18px; line-height: 1; color: #000; }
.lp-qty button:hover:not(:disabled) { background: #f2f2f2; }
.lp-qty button:disabled { color: #bbb; cursor: not-allowed; }
.lp-cart .lp-qty input { color: #000 !important; -webkit-text-fill-color: #000; opacity: 1 !important; padding: 0 !important; margin: 0 !important; min-width: 40px; max-width: 40px; box-shadow: none !important; line-height: normal !important; font-size: 15px !important; }
.lp-qty input { width: 40px; height: 100%; border: 0; text-align: center; font: 600 15px "DM Sans", arial, sans-serif; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.lp-qty input::-webkit-outer-spin-button, .lp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lp-item__price { text-align: right; font-weight: 700; font-size: 16px; }
.lp-item__unit { display: block; font-size: 12px; font-weight: 400; color: #666; }
.lp-item__remove { margin-top: 10px; padding: 0; border: 0; background: none; font-size: 13px; color: #555; text-decoration: underline; cursor: pointer; }
.lp-cart__foot { border-top: 1px solid #e7e7e7; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); }
.lp-cart__line { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.lp-cart__line--total { font-size: 18px; font-weight: 700; margin: 10px 0 4px; }
.lp-cart__note { font-size: 12px; color: #666; margin-bottom: 14px; }
.lp-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border-radius: 26px; border: 0; font: 600 16px "DM Sans", arial, sans-serif; cursor: pointer; }
.lp-btn--primary { background: #000; color: #fff; }
.lp-btn--primary:hover { background: #333; }
.lp-btn--ghost { background: transparent; color: #000; text-decoration: underline; height: 40px; margin-top: 6px; }
.lp-cart__checkout:disabled { background: #bdbdbd; cursor: not-allowed; }
body.lp-cart-lock { overflow: hidden; }
.minicart .minicart-link { cursor: pointer !important; }
.lp-bump { animation: lp-bump .45s ease; }
@keyframes lp-bump { 0%{transform:scale(1)} 40%{transform:scale(1.35)} 100%{transform:scale(1)} }
@media (max-width: 480px) {
  .lp-cart { width: 100vw; }
  .lp-cart__head, .lp-cart__body, .lp-cart__foot, .lp-cart__ship, .lp-cart__added { padding-left: 16px; padding-right: 16px; }
  .lp-item { grid-template-columns: 80px 1fr; gap: 12px; }
  .lp-item__img { width: 80px; height: 80px; }
}

/* menu de categorias removido: mantém os ícones alinhados à direita */
.navbar-row__section .user-section { margin-left: auto !important; }

/* ---------- Mobile / carrosséis sem o script original ---------- */
@media (max-width: 991px) {
  #pdp-gallery .lp-gallery { margin-bottom: 20px; }
}
/* Add-ons & Accessories: rolagem nativa (arrastar no celular, setas no desktop) */
.accessories-carousel .slick-list { overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-behavior: smooth; }
.accessories-carousel .slick-list::-webkit-scrollbar { display: none; }
.accessories-carousel .slick-track { transform: none !important; display: flex !important; width: max-content !important; }
.accessories-carousel .slick-slide { float: none !important; scroll-snap-align: start; height: auto !important; }
.accessories-carousel .slick-dots { display: none !important; }
.add-ons-carousel-box .nav-arrow, .add-ons-carousel-box .nav-arrow * { cursor: pointer !important; }
.add-ons-carousel-box .nav-arrow.disabled { opacity: .35; }

/* drawer fechado não projeta sombra na borda da tela */
.lp-cart { box-shadow: none; visibility: hidden; transition: transform .35s cubic-bezier(.22,.61,.36,1), visibility 0s linear .35s; }
.lp-cart.is-open { box-shadow: -8px 0 30px rgba(0,0,0,.12); visibility: visible; transition: transform .35s cubic-bezier(.22,.61,.36,1), visibility 0s; }
.grecaptcha-badge, .generic-toast-message-wrapper { display: none !important; }

/* preço de comparação (de $299.90 por $79.90) */
.prices .price .lp-list-price { color: #767676; text-decoration: line-through; font-weight: 400; margin-right: 8px; font-size: .82em; }
.prices .price .sales { color: #000; }
