/* Loja Liflex: cartões, listagem, produto, carrinho, favoritos */
:root { --lx-blue: #1306A8; --lx-navy: #0b0654; --lx-deep: #05033a; --lx-yellow: #FFE600; --lx-ink: #15152e; --lx-muted: #666b85; --lx-line: #e4e6f1; --lx-bg: #f5f6fb; --lx-ok: #11875d; --lx-low: #c47a00; --lx-out: #b3261e; }
.lx-page { max-width: 1240px; margin: 0 auto; padding: 22px 18px 70px; }
.lx-bc { margin: 4px 0 16px; font-size: .85rem; color: var(--lx-muted); }
.lx-bc a { color: var(--lx-muted); } .lx-bc a:hover { color: var(--lx-blue); }
.lx-bc span { color: var(--lx-ink); font-weight: 600; }

/* ---- botões ---- */
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 1.5px solid var(--lx-line); border-radius: 12px; background: #fff; color: var(--lx-ink); font: 700 .92rem/1 inherit; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; }
.lx-btn:hover { border-color: var(--lx-blue); color: var(--lx-blue); }
.lx-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lx-btn--primary { background: var(--lx-blue); border-color: var(--lx-blue); color: #fff !important; box-shadow: 0 10px 24px rgba(19, 6, 168, .25); }
.lx-btn--primary:hover { background: #2a1bd0; color: #fff; transform: translateY(-1px); }
.lx-btn--primary:disabled { background: #b9bcd6; border-color: #b9bcd6; box-shadow: none; cursor: not-allowed; transform: none; }
.lx-btn--wa { width: 100%; background: #1fa855; border-color: #1fa855; color: #fff !important; padding: 15px; box-shadow: 0 10px 24px rgba(31, 168, 85, .28); }
.lx-btn--wa:hover { background: #17934a; color: #fff; }
.lx-btn--sm { padding: 8px 14px; font-size: .8rem; border-radius: 9px; }
.lx-link { background: none; border: 0; padding: 0; color: var(--lx-blue); font: 600 .85rem inherit; cursor: pointer; text-decoration: underline; }
.lx-link--d { color: var(--lx-out); }
.lx-muted { color: var(--lx-muted); }

/* ---- coração de favoritos: borda azul + fundo branco; ativo = todo azul ---- */
.lx-heart { position: absolute; z-index: 3; top: 12px; right: 12px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 2px solid var(--lx-blue); border-radius: 50%; background: #fff; cursor: pointer; transition: background .18s, transform .18s; }
.lx-heart svg { width: 20px; height: 20px; fill: none; stroke: var(--lx-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: fill .18s, stroke .18s; }
.lx-heart:hover { transform: scale(1.08); }
.lx-heart.on { background: var(--lx-blue); }
.lx-heart.on svg { fill: #fff; stroke: #fff; }
.lxp__fav { position: relative; display: flex; align-items: center; gap: 12px; min-height: 40px; margin-top: 14px; }
.lxp__fav .lx-heart { position: static; }
.lxp__favt { font-size: .88rem; color: var(--lx-muted); }

/* ---- cartão de produto ---- */
.lx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.lxc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lx-line); border-radius: 16px; overflow: hidden; transition: transform .22s, box-shadow .25s, border-color .2s; }
.lxc:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(19, 6, 168, .15); border-color: rgba(19, 6, 168, .3); }
.lxc__img { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.lxc__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 14px; box-sizing: border-box; }
.lxc__badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.lxb { display: inline-block; padding: 4px 9px; border-radius: 99px; font-size: .68rem; font-weight: 800; letter-spacing: .03em; }
.lxb--out { background: #fde8e6; color: var(--lx-out); }
.lxb--off { background: var(--lx-yellow); color: var(--lx-deep); }
.lxc__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; border-top: 1px solid var(--lx-line); }
.lxc__title { color: var(--lx-ink) !important; font-weight: 700; font-size: .92rem; line-height: 1.3; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; }
.lxc__title:hover { color: var(--lx-blue) !important; }
.lxc__price { display: flex; flex-direction: column; margin-top: auto; }
.lxc__price small { font-size: .72rem; color: var(--lx-muted); }
.lxc__price strong { font-size: 1.28rem; color: var(--lx-navy); font-weight: 800; }
.lxc__meta { font-size: .78rem; color: var(--lx-muted); }

/* ---- listagem ---- */
.lxl-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.lxl-side { position: sticky; top: 14px; background: #fff; border: 1px solid var(--lx-line); border-radius: 16px; padding: 18px; }
.lxl-side h3 { margin: 0 0 10px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lx-muted); }
.lxl-side ul { list-style: none; margin: 0 0 16px; padding: 0; }
.lxl-side li a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--lx-ink); font-size: .88rem; text-decoration: none; }
.lxl-side li a i { font-style: normal; color: var(--lx-muted); font-size: .78rem; }
.lxl-side li a:hover { background: var(--lx-bg); }
.lxl-side li a.on { background: #ecebff; color: var(--lx-blue); font-weight: 700; }
.lxl-side label { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.lxl-side input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--lx-blue); }
.lxl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.lxl-top h1 { margin: 0; font-size: 1.7rem; font-weight: 800; color: var(--lx-navy); }
.lxl-top .lx-cnt { font-size: .86rem; color: var(--lx-muted); }
.lxl-tools { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.lxl-tools form { flex: 1; min-width: 200px; display: flex; }
.lxl-tools input[type=search] { flex: 1; height: 44px; padding: 0 14px; border: 1.5px solid var(--lx-line); border-radius: 12px; background: var(--lx-bg); }
.lxl-tools input[type=search]:focus, .lxl-tools select:focus { outline: 0; border-color: var(--lx-blue); background: #fff; }
.lxl-tools select { height: 44px; padding: 0 12px; border: 1.5px solid var(--lx-line); border-radius: 12px; background: #fff; }
.lx-pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.lx-pager button { min-width: 40px; height: 40px; padding: 0 10px; border: 1.5px solid var(--lx-line); border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; }
.lx-pager button.on { background: var(--lx-blue); border-color: var(--lx-blue); color: #fff; }
.lx-pager button:disabled { opacity: .4; cursor: default; }
.lx-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--lx-muted); }
@media (max-width: 900px) { .lxl-layout { grid-template-columns: 1fr; } .lxl-side { position: static; } .lxl-side ul { max-height: 190px; overflow: auto; } }

/* ---- produto ---- */
.lxp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 42px; align-items: start; }
.lxp__gal { position: sticky; top: 14px; }
.lxp__main { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--lx-line); border-radius: 20px; overflow: hidden; }
.lxp__main img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 18px; box-sizing: border-box; }
.lxp__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.lxp__thumbs button { flex: none; width: 72px; height: 72px; padding: 4px; border: 2px solid var(--lx-line); border-radius: 12px; background: #fff; cursor: pointer; }
.lxp__thumbs button.on { border-color: var(--lx-blue); }
.lxp__thumbs img { width: 100%; height: 100%; max-width: none; object-fit: contain; display: block; }
.lxp__title { margin: 0 0 8px; font-size: 1.7rem; line-height: 1.2; font-weight: 800; color: var(--lx-navy); }
.lxp__sku { font-size: .82rem; color: var(--lx-muted); margin-bottom: 14px; }
.lxp__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.lxp__price strong { font-size: 2.2rem; font-weight: 800; color: var(--lx-navy); }
.lxp__price s { color: var(--lx-muted); }
.lxp__stock { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 99px; font-size: .84rem; font-weight: 700; }
.lxp__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lxp__stock.ok { background: #e3f6ee; color: var(--lx-ok); } .lxp__stock.low { background: #fff1d6; color: var(--lx-low); } .lxp__stock.out { background: #fde8e6; color: var(--lx-out); }
.lxp__vl { margin: 4px 0 10px; font-size: .9rem; color: var(--lx-muted); } .lxp__vl b { color: var(--lx-ink); }
.lxv-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lxv { position: relative; padding: 10px 16px; border: 1.5px solid var(--lx-line); border-radius: 12px; background: #fff; font: 700 .88rem/1.1 inherit; color: var(--lx-ink); cursor: pointer; transition: border-color .15s, background .15s; }
.lxv:hover { border-color: var(--lx-blue); }
.lxv.on { border-color: var(--lx-blue); background: #ecebff; color: var(--lx-blue); box-shadow: 0 0 0 2px rgba(19, 6, 168, .15); }
.lxv.out { color: #9aa0bb; background: var(--lx-bg); }
.lxv i { display: block; margin-top: 3px; font-style: normal; font-weight: 600; font-size: .66rem; color: var(--lx-out); }
.lxp__buy { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.lxp__buy .lx-btn { flex: 1; min-width: 200px; padding: 15px 22px; }
.lxq { display: inline-flex; align-items: center; border: 1.5px solid var(--lx-line); border-radius: 12px; background: #fff; overflow: hidden; }
.lxq button { width: 42px; height: 46px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--lx-blue); }
.lxq button:hover { background: var(--lx-bg); }
.lxq input { width: 52px; height: 46px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.lxq input::-webkit-outer-spin-button, .lxq input::-webkit-inner-spin-button { -webkit-appearance: none; }
.lxp__line { margin-top: 12px; font-weight: 700; color: var(--lx-navy); }
.lxp__wa { display: inline-block; margin-top: 18px; font-size: .88rem; color: var(--lx-ok) !important; font-weight: 700; }
.lxp__sec { margin-top: 44px; }
.lxp__sec h2 { margin: 0 0 14px; font-size: 1.3rem; font-weight: 800; color: var(--lx-navy); }
.lxp__text { max-width: 780px; line-height: 1.7; color: #3d4160; }
.lxp__tbl { width: 100%; max-width: 780px; border-collapse: collapse; }
.lxp__tbl th, .lxp__tbl td { padding: 10px 14px; border-bottom: 1px solid var(--lx-line); text-align: left; font-size: .92rem; }
.lxp__tbl th { width: 38%; color: var(--lx-muted); font-weight: 600; background: var(--lx-bg); }
@media (max-width: 860px) { .lxp { grid-template-columns: minmax(0, 1fr); gap: 22px; } .lxp__gal { position: static; } .lxp__title { font-size: 1.35rem; } .lxp__price strong { font-size: 1.8rem; } }

/* ---- carrinho ---- */
.lxcart__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.lxl { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 120px 34px; gap: 14px; align-items: center; padding: 14px; margin-bottom: 12px; background: #fff; border: 1px solid var(--lx-line); border-radius: 16px; }
.lxl__img { width: 84px; height: 84px; border: 1px solid var(--lx-line); border-radius: 12px; background: #fff; display: block; }
.lxl__img { overflow: hidden; }
.lxl__img img { width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 6px; box-sizing: border-box; display: block; }
.lxl__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--lx-ink) !important; font-weight: 700; line-height: 1.3; text-decoration: none !important; }
.lxl__v { font-size: .82rem; color: var(--lx-blue); font-weight: 600; margin-top: 3px; }
.lxl__s { font-size: .78rem; color: var(--lx-ok); margin-top: 3px; font-weight: 600; } .lxl__s.low { color: var(--lx-low); } .lxl__s.out { color: var(--lx-out); }
.lxl__tot { text-align: right; } .lxl__tot small { display: block; color: var(--lx-muted); font-size: .75rem; } .lxl__tot strong { color: var(--lx-navy); font-size: 1.05rem; }
.lxl__rm { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--lx-bg); color: var(--lx-muted); cursor: pointer; }
.lxl__rm:hover { background: #fde8e6; color: var(--lx-out); }
.lxcart__sum { position: sticky; top: 14px; background: #fff; border: 1px solid var(--lx-line); border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(11, 6, 84, .06); }
.lxcart__sum h2 { margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; color: var(--lx-navy); }
.lxcart__row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--lx-muted); }
.lxcart__row--t { border-top: 1px solid var(--lx-line); margin-top: 6px; padding-top: 14px; margin-bottom: 16px; color: var(--lx-ink); font-weight: 700; }
.lxcart__row--t strong { font-size: 1.6rem; color: var(--lx-navy); }
.lxcart__note { margin: 12px 0 0; font-size: .76rem; line-height: 1.45; color: var(--lx-muted); }
.lxcart__save { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--lx-line); }
.lxcart__save label { display: block; margin-bottom: 8px; font-size: .84rem; font-weight: 700; }
.lxcart__save div { display: flex; gap: 8px; }
.lxcart__save input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1.5px solid var(--lx-line); border-radius: 10px; }
.lxcart__tools { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.lxcart__saved { margin-top: 44px; }
.lxcart__saved h2 { margin: 0 0 14px; font-size: 1.25rem; font-weight: 800; color: var(--lx-navy); }
.lxs { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 10px; background: #fff; border: 1px solid var(--lx-line); border-radius: 14px; }
.lxs small { display: block; color: var(--lx-muted); margin-top: 2px; }
.lxs__a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lxcart__empty { text-align: center; padding: 56px 20px; background: var(--lx-bg); border-radius: 22px; }
.lxcart__empty > div { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--lx-blue); }
.lxcart__empty svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lxcart__empty h2 { margin: 0 0 6px; color: var(--lx-navy); font-weight: 800; } .lxcart__empty p { color: var(--lx-muted); margin-bottom: 18px; }
@media (max-width: 900px) { .lxcart__grid { grid-template-columns: 1fr; } .lxcart__sum { position: static; }
  .lxl { grid-template-columns: 70px minmax(0, 1fr) 34px; } .lxl .lxq { grid-column: 2; justify-self: start; } .lxl__tot { grid-column: 2; text-align: left; } .lxl__img { width: 70px; height: 70px; } .lxl__rm { grid-row: 1; grid-column: 3; } }

/* ---- marcas ---- */
.lxbrands { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.lxbr { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 14px 14px 18px; background: #fff; border: 1px solid var(--lx-line); border-radius: 18px; text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lxbr:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(19, 6, 168, .13); border-color: var(--lx-blue); }
.lxbr__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 104px; margin-bottom: 10px; padding: 14px; border-radius: 12px; background: var(--lx-bg); overflow: hidden; }
.lxbr__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: saturate(.9); transition: transform .25s, filter .25s; }
.lxbr:hover .lxbr__logo img { transform: scale(1.06); filter: none; }
.lxbr__word { font-weight: 800; font-size: 1.25rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lx-navy); text-align: center; line-height: 1.1; }
.lxbr strong { padding: 0 6px; color: var(--lx-navy); font-size: 1.02rem; }
.lxbr > span:last-child { padding: 0 6px; color: var(--lx-muted); font-size: .84rem; }

/* ---- cabeçalho: favoritos e carrinho ---- */
.lx-hactions { display: flex; gap: 10px; align-items: center; margin-right: 10px; }
.hd-actions { display: flex; align-items: center; }
.lx-hbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid var(--lx-line); border-radius: 12px; background: #fff; color: var(--lx-ink) !important; transition: border-color .15s, color .15s; }
.lx-hbtn:hover { border-color: var(--lx-blue); color: var(--lx-blue) !important; }
.lx-hbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lx-badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: none; align-items: center; justify-content: center; border-radius: 99px; background: var(--lx-blue); color: #fff; font-size: .68rem; font-weight: 800; border: 2px solid #fff; }
#_mobile_cart.lx-hactions .lx-hbtn { width: 38px; height: 38px; background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff !important; }

/* ---- aviso ---- */
.lx-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); z-index: 10001; display: flex; align-items: center; gap: 16px; padding: 13px 20px; border-radius: 14px; background: var(--lx-deep); color: #fff; font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 92vw; }
.lx-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lx-toast a { color: var(--lx-yellow) !important; font-weight: 800; white-space: nowrap; }

/* títulos de página */
.lx-ptitle { margin: 0 0 20px; font-size: 1.8rem; font-weight: 800; color: var(--lx-navy); }

/* ---- celular ---- */
.lxp__gal, .lxp__info { min-width: 0; }
.lxv { max-width: 100%; text-align: left; white-space: normal; }
@media (max-width: 640px) {
  .lx-page { padding: 14px 12px 56px; }
  .lx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lxc { border-radius: 12px; }
  .lxc:hover { transform: none; box-shadow: none; }
  .lxc__img img { padding: 8px; }
  .lxc__badges { left: 7px; top: 7px; }
  .lxb { padding: 3px 7px; font-size: .6rem; }
  .lxc__body { gap: 5px; padding: 9px 10px 11px; }
  .lxc__title { font-size: .8rem; line-height: 1.25; min-height: 3.75em; }
  .lxc__price small { font-size: .66rem; }
  .lxc__price strong { font-size: 1.02rem; }
  .lxc__meta { font-size: .7rem; }
  .lx-heart { top: 7px; right: 7px; width: 32px; height: 32px; border-width: 1.5px; }
  .lx-heart svg { width: 16px; height: 16px; }
  .lxl-top h1 { font-size: 1.35rem; }
  .lxl-tools form { min-width: 0; flex-basis: 100%; }
  .lxl-tools select { flex: 1; min-width: 0; }
  .lxp__thumbs button { width: 60px; height: 60px; }
  .lxp__main { border-radius: 14px; }
  .lxp__buy .lx-btn { min-width: 0; flex-basis: 100%; }
  .lxbrands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lxbr { padding: 10px 10px 14px; border-radius: 14px; }
  .lxbr__logo { height: 78px; padding: 10px; }
  .lxbr__word { font-size: .95rem; }
  .lxbr strong { font-size: .92rem; }
}
@media (max-width: 640px) {   /* filtros compactos: categorias em "pílulas" com rolagem lateral */
  .lxl-side { padding: 12px 12px 10px; border-radius: 14px; }
  .lxl-side h3:nth-of-type(2) { display: none; }
  .lxl-side ul { display: flex; gap: 8px; max-height: none !important; overflow-x: auto; overflow-y: hidden; margin: 0 0 10px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .lxl-side li { flex: none; }
  .lxl-side li a { gap: 6px; padding: 7px 13px; border: 1.5px solid var(--lx-line); border-radius: 99px; white-space: nowrap; font-size: .84rem; }
  .lxl-side li a.on { border-color: var(--lx-blue); }
  .lxl-side p { margin-top: 8px !important; }
}
@media (max-width: 900px) { .lxl-layout { grid-template-columns: minmax(0, 1fr); } .lxl-layout > * { min-width: 0; } }
