:root {
  --lj-fundo: #f9f7ed;
  --lj-tinta: #333333;
  --lj-marrom: #664930;
  --lj-laranja: #f39c12;
  --lj-card: #ffffff;
  --lj-linha: rgba(51, 51, 51, 0.12);
  --lj-suave: rgba(51, 51, 51, 0.62);
  --lj-erro: #9b2c2c;
  --lj-verde: #2f6b45;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  background: var(--lj-fundo);
  color: var(--lj-tinta);
  min-height: 100vh;
}
button, input, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: Piazzolla, Georgia, serif; font-weight: 650; letter-spacing: -0.02em; }

.lj-boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--lj-suave);
}

.lj-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--lj-fundo);
  border-bottom: 1px solid var(--lj-linha);
}
.lj-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.lj-brand { margin-right: auto; display: flex; align-items: center; }
.lj-brand img { height: 46px; width: auto; }
.lj-nav { display: flex; align-items: center; gap: 6px; }
.lj-nav a, .lj-nav button {
  background: transparent;
  border: 0;
  color: var(--lj-tinta);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  cursor: pointer;
}
.lj-nav a:hover, .lj-nav button:hover { color: var(--lj-marrom); }
.lj-cart-link {
  background: var(--lj-marrom) !important;
  color: #fff !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px !important;
}
.lj-cart-link:hover { filter: brightness(1.08); }
.lj-badge {
  background: var(--lj-laranja);
  color: #111;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.lj-main { max-width: 1180px; margin: 0 auto; padding: 28px 22px 72px; }
.lj-page-head { margin-bottom: 18px; max-width: 640px; }
.lj-page-head h1, .lj-main > h1, .lj-detail h1 { margin: 0 0 6px; font-size: 2.1rem; }
.lj-page-head p, .lj-eyebrow { margin: 0; color: var(--lj-suave); }
.lj-eyebrow {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lj-marrom);
  margin-bottom: 6px;
}
.lj-hero, .lj-aviso {
  background: #fff;
  border: 1px solid var(--lj-linha);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 18px;
}
.lj-hero h1 { margin-top: 0; }

.lj-toolbar { margin: 8px 0 14px; }
.lj-search, .lj-field input, .lj-field select {
  width: 100%;
  border: 1px solid var(--lj-linha);
  background: #fff;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--lj-tinta);
}
.lj-search:focus, .lj-field input:focus, .lj-field select:focus {
  outline: 2px solid rgba(102, 73, 48, 0.25);
  border-color: var(--lj-marrom);
}
.lj-menu {
  display: flex;
  justify-content: center;
  margin: 4px 0 8px;
  border-top: 1px solid var(--lj-linha);
  border-bottom: 1px solid var(--lj-linha);
}
.lj-menu-item { position: relative; }
.lj-menu-linha { display: flex; align-items: center; }
.lj-menu button[data-filtro] {
  background: transparent;
  border: 0;
  color: var(--lj-tinta);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 16px;
  cursor: pointer;
}
.lj-menu button.on,
.lj-menu button.ramo,
.lj-menu-item.on > .lj-menu-linha > button[data-filtro],
.lj-menu-item.ramo > .lj-menu-linha > button[data-filtro] { color: var(--lj-marrom); }
.lj-menu button.on { box-shadow: inset 0 -2px 0 var(--lj-marrom); }
.lj-menu-more {
  display: none;
  width: 36px;
  height: 36px;
  margin-right: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.lj-menu-more::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--lj-tinta);
  border-bottom: 1.5px solid var(--lj-tinta);
  transform: rotate(45deg) translate(-2px, -2px);
}
.lj-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 18;
  min-width: 260px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--lj-linha);
  box-shadow: 0 14px 32px rgba(51, 51, 51, 0.08);
}
.lj-sub .lj-sub { top: -1px; left: 100%; }
.lj-sub button[data-filtro] { display: block; width: 100%; text-align: left; padding: 10px 16px; }
.lj-sub button.on { box-shadow: none; background: rgba(102, 73, 48, 0.08); }
@media (min-width: 981px) {
  .lj-menu-item.has-sub:hover > .lj-sub,
  .lj-menu-item.has-sub:focus-within > .lj-sub,
  .lj-menu-item.has-sub.open > .lj-sub { display: block; }
}
.lj-secao { margin: 8px 0 18px; }
.lj-secao-head { text-align: center; margin: 42px 0 18px; }
.lj-secao-head p {
  margin: 0 0 6px;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lj-marrom);
}
.lj-secao-head h2 { margin: 0; font-size: 1.85rem; font-weight: 700; }
.lj-secao-head h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--lj-marrom);
}
.lj-subsecao {
  margin: 26px 0 14px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 650;
}

.lj-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
  align-items: stretch;
}
.lj-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.lj-card-photo {
  position: relative;
  background: #fff;
  border-radius: 6px;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
}
.lj-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  z-index: 0;
}
.lj-detail-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
}
.lj-detail-photo img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  max-width: none;
  object-fit: contain;
}
.lj-off {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--lj-verde);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
}
.lj-card-body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lj-card-body > .lj-btn { margin-top: auto; }
.lj-card-name h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lj-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lj-marrom);
}
.lj-preco {
  font-family: Piazzolla, Georgia, serif;
  font-size: 1.55rem;
  margin: 0;
  color: var(--lj-marrom);
}
.lj-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lj-pill { background: rgba(255, 255, 255, 0.7); border-radius: 6px; padding: 8px; }
.lj-pill span { display: block; font-size: 0.7rem; color: var(--lj-suave); font-weight: 600; }
.lj-pill strong { font-size: 0.88rem; white-space: nowrap; }
.lj-pill.margem strong { color: var(--lj-verde); }

.lj-vars {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  min-height: 34px;
}
.lj-var {
  border: 1px solid var(--lj-linha);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.lj-var.on { border-color: var(--lj-marrom); background: var(--lj-marrom); color: #fff; }

.lj-btn {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--lj-marrom);
  color: #fff;
}
.lj-btn:hover { filter: brightness(1.08); }
.lj-btn:disabled { opacity: 0.6; cursor: wait; }
.lj-btn.fantasma { background: transparent; color: var(--lj-tinta); border: 1px solid var(--lj-linha); }
.lj-btn.full { width: 100%; margin-top: 8px; }

.lj-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 36px;
  align-items: start;
  margin-top: 18px;
}
.lj-qty { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.lj-qty button {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid var(--lj-linha);
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.lj-qty strong { min-width: 24px; text-align: center; }

.lj-panel {
  background: #fff;
  border: 1px solid var(--lj-linha);
  border-radius: 8px;
  padding: 18px;
}
.lj-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--lj-linha);
}
.lj-line img { width: 72px; height: 72px; object-fit: contain; }
.lj-line h3 { margin: 0 0 4px; font-size: 1.05rem; }
.lj-line p { margin: 0; color: var(--lj-suave); font-size: 0.88rem; }
.lj-totais { margin-top: 12px; display: grid; gap: 6px; }
.lj-totais div { display: flex; justify-content: space-between; font-weight: 600; }
.lj-totais .total { font-family: Piazzolla, Georgia, serif; font-size: 1.3rem; margin-top: 6px; }

.lj-form { display: grid; gap: 12px; }
.lj-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lj-row.tres { grid-template-columns: 1.4fr 0.6fr 0.7fr; }
.lj-field { display: grid; gap: 6px; }
.lj-field label { font-size: 0.8rem; font-weight: 600; color: var(--lj-suave); }
.lj-erro { background: #fdecec; color: var(--lj-erro); border-radius: 6px; padding: 10px 12px; font-weight: 600; }
.lj-auth { max-width: 460px; margin: 12px auto; }
.lj-auth h1 { margin-top: 0; }
.lj-status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff3d6;
}
.lj-status.pago, .lj-status.enviado { background: #e7f5ec; color: var(--lj-verde); }
.lj-status.cancelado { background: #fdecec; color: var(--lj-erro); }
.lj-pedido {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--lj-linha);
}
.lj-pedido strong { display: block; font-family: Piazzolla, Georgia, serif; }
.lj-pedido span { color: var(--lj-suave); font-size: 0.88rem; }
.lj-rastreio { margin-top: 12px; background: #fff; border-radius: 8px; padding: 12px 14px; }
.lj-rastreio a { color: var(--lj-marrom); font-weight: 700; }
.lj-vazio { color: var(--lj-suave); padding: 18px 0; }
.lj-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lj-marrom);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 40;
}
.lj-dock {
  position: fixed;
  z-index: 25;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(48vh, 440px);
  overflow: hidden;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 32px rgba(51, 51, 51, 0.16);
}
.lj-dock[hidden] { display: none; }
.lj-dock-top { display: flex; justify-content: space-between; align-items: baseline; }
.lj-dock-top strong { font-family: Piazzolla, Georgia, serif; font-size: 1.2rem; }
.lj-dock-top span { color: var(--lj-suave); font-size: 0.85rem; font-weight: 600; }
.lj-dock-destaque {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  background: #e7f5ec;
  border-radius: 10px;
  padding: 10px 12px;
}
.lj-dock-destaque span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lj-verde);
}
.lj-dock-destaque strong {
  font-family: Piazzolla, Georgia, serif;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--lj-verde);
}
.lj-dock-itens { overflow: auto; flex: 1 1 auto; min-height: 0; }
.lj-dock-line {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--lj-linha);
}
.lj-dock-line img {
  width: 42px;
  height: 56px;
  object-fit: contain;
  background: var(--lj-fundo);
  border-radius: 4px;
}
.lj-dock-line p { margin: 0; font-weight: 650; font-size: 0.88rem; }
.lj-dock-line small { color: var(--lj-suave); }
.lj-dock .lj-qty { margin: 0; }
.lj-dock .lj-qty button { width: 30px; height: 30px; }
body.lj-tem-dock { padding-bottom: calc(var(--lj-dock-h, 240px) + 8px); }
body.lj-tem-dock .lj-toast { bottom: calc(var(--lj-dock-h, 240px) + 12px); }
.lj-footer {
  background: var(--lj-marrom);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  font-size: 0.92rem;
}
.lj-footer strong { font-family: Piazzolla, Georgia, serif; font-size: 1.2rem; }

@media (min-width: 981px) {
  .lj-dock {
    top: 84px;
    right: 16px;
    bottom: 16px;
    left: auto;
    width: 340px;
    max-height: none;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(51, 51, 51, 0.14);
  }
  body.lj-tem-dock { padding-bottom: 0; }
  body.lj-tem-dock .lj-toast { bottom: 18px; left: calc(50% - 180px); }
  body.lj-tem-dock .lj-header-inner,
  body.lj-tem-dock .lj-main { margin-right: 372px; }
  body.lj-tem-dock .lj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  body.lj-tem-dock .lj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .lj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lj-detail, .lj-row, .lj-row.tres { grid-template-columns: 1fr; }
  .lj-menu { flex-direction: column; align-items: stretch; }
  .lj-menu-linha { justify-content: space-between; }
  .lj-menu-more { display: inline-block; }
  .lj-sub,
  .lj-sub .lj-sub {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 4px 14px;
    background: transparent;
  }
  .lj-menu-item.open > .lj-sub { display: block; }
  .lj-menu-item.open > .lj-menu-linha > .lj-menu-more::before { transform: rotate(225deg) translate(-1px, -1px); }
}
@media (max-width: 640px) {
  .lj-brand img { height: 36px; }
  .lj-header-inner, .lj-main { padding-left: 14px; padding-right: 14px; }
  .lj-page-head h1, .lj-main > h1 { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: no-preference) {
  :root { --lj-ease: cubic-bezier(.22, 1, .36, 1); }
  .lj-header-inner,
  .lj-main,
  body { transition: margin-right .42s var(--lj-ease), padding-bottom .42s var(--lj-ease); }
  .lj-btn,
  .lj-chip,
  .lj-var,
  .lj-nav a,
  .lj-nav button,
  .lj-qty button,
  .lj-search,
  .lj-field input,
  .lj-field select {
    transition: transform .18s var(--lj-ease), background .2s ease, color .2s ease, border-color .2s ease, filter .2s ease, box-shadow .2s ease;
  }
  .lj-btn:hover { transform: translateY(-1px); }
  .lj-btn:active,
  .lj-chip:active,
  .lj-var:active,
  .lj-qty button:active,
  .lj-cart-link:active { transform: scale(.96); }
  .lj-card {
    transition: transform .28s var(--lj-ease);
  }
  .lj-card:hover { transform: translateY(-4px); }
  .lj-card:active { transform: translateY(-1px) scale(.995); }
  .lj-card-photo img { transition: transform .5s var(--lj-ease); }
  .lj-card:hover .lj-card-photo img { transform: scale(1.045); }
  .lj-grid .lj-card { animation: lj-subir .5s var(--lj-ease) backwards; }
  .lj-grid .lj-card:nth-child(2) { animation-delay: 45ms; }
  .lj-grid .lj-card:nth-child(3) { animation-delay: 90ms; }
  .lj-grid .lj-card:nth-child(4) { animation-delay: 135ms; }
  .lj-grid .lj-card:nth-child(5) { animation-delay: 170ms; }
  .lj-grid .lj-card:nth-child(6) { animation-delay: 200ms; }
  .lj-grid .lj-card:nth-child(n + 7) { animation-delay: 230ms; }
  .lj-secao,
  .lj-panel,
  .lj-hero,
  .lj-aviso,
  .lj-detail { animation: lj-subir .42s var(--lj-ease) backwards; }
  .lj-off { animation: lj-pop .42s var(--lj-ease) backwards; }
  .lj-pop { animation: lj-pop .34s var(--lj-ease); }
  .lj-ok { animation: lj-ok .42s var(--lj-ease); }
  .lj-dock { animation: lj-dock-in .46s var(--lj-ease); }
  .lj-dock.lj-saindo { animation: lj-dock-out .28s ease forwards; }
  .lj-dock-line.lj-entra { animation: lj-subir .32s var(--lj-ease) backwards; }
  .lj-dock-destaque.lj-pulso { animation: lj-brilho .48s ease; }
  .lj-sai { animation: lj-sai .26s var(--lj-ease) forwards; pointer-events: none; }
  .lj-toast.lj-toast-in { animation: lj-toast-in .34s var(--lj-ease); }
  .lj-toast.lj-toast-out { animation: lj-toast-out .24s ease forwards; }
  .lj-main { view-transition-name: lj-pagina; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
  ::view-transition-old(lj-pagina) { animation: lj-sair .2s ease both; }
  ::view-transition-new(lj-pagina) { animation: lj-entrar .36s var(--lj-ease) backwards; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 981px) {
  .lj-dock { animation-name: lj-dock-lado; }
  .lj-dock.lj-saindo { animation-name: lj-dock-out-lado; }
}

@keyframes lj-subir {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes lj-entrar {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes lj-sair {
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes lj-pop {
  0% { transform: scale(.72); }
  55% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes lj-ok {
  0% { transform: scale(1); }
  30% { transform: scale(.94); }
  65% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes lj-dock-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes lj-dock-out {
  to { opacity: 0; transform: translateY(22px); }
}
@keyframes lj-dock-lado {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes lj-dock-out-lado {
  to { opacity: 0; transform: translateX(24px); }
}
@keyframes lj-sai {
  to { opacity: 0; transform: translateX(14px); }
}
@keyframes lj-brilho {
  0% { transform: scale(1); }
  40% { transform: scale(1.035); }
  100% { transform: scale(1); }
}
@keyframes lj-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes lj-toast-out {
  to { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .lj-main { view-transition-name: none; }
}
