/* =========================================================
   LOJA VIRTUAL (loja.html) — mobile-first, sobre style.css + flow.css.
   Fotos de produto sempre em fundo branco (as do fornecedor vêm assim).
========================================================= */
.lj-section { padding-top: 28px; padding-bottom: 96px; min-height: 80vh; }
.lj-title { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 4px 0 6px; }
.lj-lead { color: var(--text); margin: 0 0 18px; }
.lj-hint { font-size: .88rem; color: rgba(216,228,247,.75); margin: 10px 0 0; }

.flow-topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.lj-cart-btn {
  min-height: 42px; padding: 0 14px; border-radius: 21px; border: 1px solid #d3deee;
  background: #fff; color: #0f1f45; font-weight: 700; font-size: 1rem; cursor: pointer;
}

/* filtros */
.lj-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.lj-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.lj-chip {
  min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text); font-weight: 600; white-space: nowrap; cursor: pointer;
}
.lj-chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.lj-search {
  flex: 1 1 200px; min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); color: #fff; font-size: 1rem;
}

/* grade */
.lj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .lj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1040px) { .lj-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lj-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; background: var(--bg-dark-2); color: var(--text); cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.lj-card:hover, .lj-card:focus-visible { border-color: var(--blue-2); transform: translateY(-2px); }
.lj-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #fff; }
.lj-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.lj-noimg { color: #8ea0bd; font-weight: 600; font-size: .9rem; }
.lj-card-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 14px; }
.lj-card-meta { font-size: .74rem; color: rgba(216,228,247,.65); text-transform: uppercase; letter-spacing: .03em; }
.lj-card-name { font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--heading); line-height: 1.1; }
.lj-card-ca { font-size: .8rem; color: rgba(216,228,247,.7); }
.lj-card-price { font-size: .85rem; margin-top: 4px; }
.lj-card-price strong { color: #fff; font-size: 1.05rem; }
.lj-tag { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 8px; font-size: .74rem; font-weight: 700; background: rgba(52,211,153,.16); color: #34d399; }
.lj-tag-order { background: rgba(255,255,255,.1); color: rgba(216,228,247,.85); }
.lj-empty { color: rgba(216,228,247,.7); grid-column: 1 / -1; }

/* detalhe */
.lj-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(5,10,22,.75);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 0;
}
.lj-dialog { position: relative; width: 100%; max-width: 920px; min-height: 100%; background: var(--bg-dark); color: var(--text); }
@media (min-width: 720px) { .lj-overlay { padding: 32px 16px; } .lj-dialog { min-height: 0; border-radius: 16px; border: 1px solid var(--line); } }
.lj-close {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 22px; border: 0;
  background: rgba(15,24,41,.85); color: #fff; font-size: 1.6rem; cursor: pointer;
}
.lj-pd { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lj-pd { grid-template-columns: 1fr 1fr; } }
.lj-pd-main { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #fff; }
.lj-pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
@media (min-width: 720px) { .lj-pd-media { padding: 16px; } .lj-pd-main { border-radius: 12px; } }
.lj-pd-thumbs { display: flex; gap: 8px; padding: 8px 16px; overflow-x: auto; }
.lj-pd-thumbs button { width: 56px; height: 56px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; flex: 0 0 auto; }
.lj-pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.lj-pd-info { padding: 16px 16px 28px; }
.lj-pd-info h2 { margin: 2px 0 4px; font-size: 2rem; }
.lj-pd-meta { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(216,228,247,.65); }
.lj-pd-ca { margin: 0 0 14px; font-weight: 600; color: #9fbcff; }
.lj-opt { margin-bottom: 12px; }
.lj-opt-name { display: block; font-size: .85rem; margin-bottom: 6px; color: rgba(216,228,247,.8); }
.lj-opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.lj-opt-btn { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; }
.lj-opt-btn.is-active { border-color: var(--blue-2); background: rgba(63,124,255,.2); color: #fff; font-weight: 700; }
.lj-pd-price { margin: 14px 0 4px; }
.lj-pd-price strong { font-size: 1.7rem; color: #fff; }
.lj-pd-avail { min-height: 26px; }
.lj-min { font-size: .85rem; color: #fbbf24; margin-left: 6px; }
.lj-qty { display: flex; align-items: stretch; gap: 0; margin: 14px 0 10px; max-width: 180px; }
.lj-qty button { width: 46px; min-height: 46px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lj-qty button:first-child { border-radius: 10px 0 0 10px; }
.lj-qty button:last-child { border-radius: 0 10px 10px 0; }
.lj-qty input { width: 80px; text-align: center; border: 1px solid var(--line); border-left: 0; border-right: 0; background: transparent; color: #fff; font-size: 1.1rem; }
.lj-add { width: 100%; min-height: 50px; margin-top: 6px; }
.lj-add:disabled { opacity: .5; }
.lj-pd-desc { margin: 18px 0 10px; line-height: 1.55; }
.lj-specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lj-specs th, .lj-specs td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lj-specs th { width: 40%; color: rgba(216,228,247,.75); font-weight: 600; }

/* pedido */
.lj-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lj-line-info { display: flex; flex-direction: column; gap: 2px; }
.lj-line-info span { font-size: .85rem; color: rgba(216,228,247,.75); }
.lj-line-qty { display: flex; align-items: center; gap: 10px; grid-column: 1; }
.lj-line-qty input { width: 84px; min-height: 40px; text-align: center; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: #fff; font-size: 1rem; }
.lj-line-total { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; color: #fff; }
.lj-line-done { grid-template-columns: 1fr auto; }
.lj-line-done .lj-line-total { grid-row: 1; }
.lj-total { text-align: right; margin-top: 12px; font-size: 1.05rem; }
.lj-total strong { font-size: 1.3rem; color: #fff; }
.lj-form h2 { margin-top: 0; }
.lj-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.lj-form-grid .flow-field { grid-column: span 2; }
@media (min-width: 560px) { .lj-form-grid .flow-field { grid-column: span 1; } .lj-form-grid .lj-wide { grid-column: span 2; } }
.lj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lj-submit { width: 100%; min-height: 52px; margin-top: 12px; }
.lj-order-number { font-size: 1.2rem; margin-top: 0; }
.lj-order-number strong { font-size: 1.5rem; color: #fff; letter-spacing: .03em; }

/* barra fixa do pedido (celular) */
.lj-cartbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 900;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px;
  border: 0; border-radius: 14px; background: var(--blue); color: #fff; font-size: 1rem; box-shadow: var(--shadow); cursor: pointer;
}
@media (min-width: 720px) { .lj-cartbar { left: auto; right: 24px; width: 360px; } }

@media (prefers-reduced-motion: reduce) { .lj-card { transition: none; } .lj-card:hover { transform: none; } }

/* campos do formulário (flow.css só estiliza input[type=text]) */
.lj-form .flow-field { margin-bottom: 14px; }
.lj-form .flow-field > span { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: .02em; color: rgba(255,255,255,.85); }
.lj-form .flow-field input, .lj-form .flow-field textarea {
  width: 100%; border: 2px solid rgba(255,255,255,.12); background: rgba(8,14,28,.55); color: #fff;
  border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 1rem; transition: var(--transition);
}
.lj-form .flow-field textarea { resize: vertical; }
.lj-form .flow-field input:focus, .lj-form .flow-field textarea:focus {
  outline: none; border-color: var(--blue); background-color: rgba(8,14,28,.85); box-shadow: 0 0 0 3px rgba(63,124,255,.18);
}
.lj-form .flow-field input[aria-invalid="true"] { border-color: #ff8a8a; }
