/* ════════════════════════════════════════════════
   /loja — Catálogo público QuantumBio
   Prefixo: lj-
   ════════════════════════════════════════════════ */

:root {
  --ink: #0A1331;
  --gold: #C9A227;
  --cream: #F4EFE3;
  --paper: #FAF7EF;
  --char: #2A2E3F;
  --ash: #6F7184;
  --line: rgba(10, 19, 49, 0.12);
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* ─── COVER da loja ─── */
.lj-cover {
  background: linear-gradient(180deg, var(--ink) 0%, #131C45 100%);
  color: var(--cream);
  text-align: center;
  padding: 120px 24px 60px;
}
.lj-cover__inner {
  max-width: 720px;
  margin: 0 auto;
}
.lj-cover h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.lj-cover h1 em {
  font-style: italic;
  color: var(--gold);
}
.lj-cover__lede {
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: rgba(244, 239, 227, 0.85);
  max-width: 580px;
  margin: 0 auto;
}

/* ─── SHELL ─── */
.lj-shell {
  background: var(--paper);
  padding: 48px 24px 80px;
  position: relative;
}
.lj-shell__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ─── Opções de frete (radio cards) ─── */
.lj-ship-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.lj-ship-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lj-ship-opt:hover { border-color: var(--gold); }
.lj-ship-opt.is-active {
  border-color: var(--gold);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.lj-ship-opt input[type="radio"] { accent-color: var(--gold); flex-shrink: 0; }
.lj-ship-opt__body { flex: 1; min-width: 0; }
.lj-ship-opt__body strong {
  display: block;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.lj-ship-opt__body small {
  display: block;
  font-size: 12px;
  color: var(--mute);
  margin-top: 2px;
}
.lj-ship-opt__price {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--gold);
  flex-shrink: 0;
}

/* ─── BUSCA ─── */
.lj-search {
  margin-bottom: 18px;
}
.lj-search input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--ff-body);
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lj-search input::placeholder { color: var(--ash); font-style: italic; }
.lj-search input:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.lj-empty-search {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ash);
  text-align: center;
  padding: 48px 20px;
  margin: 0;
}

/* ─── FILTROS ─── */
.lj-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.lj-filtro {
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--char);
  cursor: pointer;
  transition: all .18s ease;
}
.lj-filtro:hover { border-color: var(--gold); color: var(--ink); }
.lj-filtro.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ─── GRID DE PRODUTOS ─── */
.lj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.lj-prod {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .2s ease;
}
.lj-prod:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(10, 19, 49, 0.06);
}
.lj-prod__img-btn {
  display: block;
  width: calc(100% + 48px);
  margin: -24px -24px 14px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.lj-prod__img {
  width: 100%;
  height: 180px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.lj-prod__img-btn:hover .lj-prod__img { background: var(--cream); }
.lj-prod__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lj-prod__more {
  background: transparent;
  border: 0;
  padding: 0 0 0 4px;
  margin-left: 2px;
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
}
.lj-prod__more:hover { color: var(--ink); }

/* ─── Modal de detalhes do produto ─── */
.lj-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lj-modal[hidden] { display: none; }
.lj-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(10, 19, 49, 0.6);
  animation: ljModalFade .15s ease;
}
@keyframes ljModalFade { from { opacity: 0; } to { opacity: 1; } }
.lj-modal__panel {
  position: relative;
  background: var(--paper);
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(10, 19, 49, 0.3);
}
.lj-modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 36px; height: 36px;
  background: rgba(244, 239, 227, 0.9);
  border: 1px solid var(--line);
  font-size: 22px; line-height: 1;
  cursor: pointer; color: var(--ink);
}
.lj-modal__close:hover { background: #fff; color: #B23A48; }
.lj-modal__body {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 0;
}
.lj-modal__img {
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  border-right: 1px solid var(--line);
  min-height: 320px;
}
.lj-modal__img img { max-width: 100%; max-height: 360px; object-fit: contain; }
.lj-modal__noimg { color: var(--mute); font-style: italic; font-family: var(--ff-display); }
.lj-modal__info { padding: 32px 28px; }
.lj-modal__cat {
  display: block;
  font-family: var(--ff-body); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  margin-bottom: 8px;
}
.lj-modal__info h2 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 30px; color: var(--ink);
  line-height: 1.1; margin: 0 0 6px;
}
.lj-modal__apres {
  font-family: var(--ff-body); font-size: 13px;
  color: var(--mute); font-style: italic;
  margin: 0 0 18px;
}
.lj-modal__section { margin-top: 14px; }
.lj-modal__lbl {
  display: block;
  font-family: var(--ff-body); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
  margin-bottom: 4px;
}
.lj-modal__section p {
  font-family: var(--ff-body); font-size: 14px;
  color: var(--char); line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}
.lj-modal__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 14px; flex-wrap: wrap;
}
.lj-modal__foot strong {
  font-family: var(--ff-display); font-weight: 500;
  font-size: 28px; color: var(--gold);
}
.lj-modal__cta {
  background: var(--gold); color: var(--ink);
  padding: 12px 22px; border: 0;
  font-family: var(--ff-body); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  cursor: pointer; transition: all .15s ease;
}
.lj-modal__cta:hover:not(:disabled) { background: var(--ink); color: var(--cream); }
.lj-modal__cta:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 700px) {
  .lj-modal__body { grid-template-columns: 1fr; }
  .lj-modal__img { padding: 24px; min-height: 240px; }
  .lj-modal__info h2 { font-size: 24px; }
}
.lj-prod__cat {
  font-family: var(--ff-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.lj-prod h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  margin: 6px 0 0;
}
.lj-prod__apresent {
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--ash);
  margin: 6px 0 0;
  font-style: italic;
}
.lj-prod__ind {
  font-family: var(--ff-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--char);
  margin: 0;
  flex: 1;
}
.lj-prod footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.lj-prod footer strong {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
}
.lj-prod__add {
  font-family: var(--ff-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: all .15s ease;
}
.lj-prod__add:hover {
  background: var(--ink);
  color: var(--cream);
}
.lj-prod__add--out {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  text-decoration: none;
}
.lj-prod__add--out:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.lj-prod--out { opacity: 0.85; }
.lj-prod--out .lj-prod__img { filter: saturate(0.6); }
.lj-prod--out::after {
  content: 'Sob solicitação';
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(10, 19, 49, 0.85);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  font-weight: 600;
  z-index: 1;
}
.lj-prod { position: relative; }

/* ─── CARRINHO BOTÃO FLUTUANTE ─── */
.lj-cart-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 14px 22px;
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(10, 19, 49, 0.18);
  transition: all .2s ease;
}
.lj-cart-btn:hover { background: var(--gold); color: var(--ink); }
.lj-cart-count {
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  min-width: 22px;
  text-align: center;
}
.lj-cart-btn:hover .lj-cart-count {
  background: var(--ink);
  color: var(--gold);
}

/* ─── DRAWER ─── */
.lj-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -10px 0 30px rgba(10, 19, 49, 0.08);
}
body.cart-open .lj-cart-drawer { transform: translateX(0); }

.lj-cart-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.lj-cart-drawer h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 24px;
  margin: 0;
  color: var(--ink);
}
.lj-cart-close {
  font-size: 28px;
  background: none;
  border: none;
  color: var(--ash);
  cursor: pointer;
  width: 36px;
  height: 36px;
  line-height: 1;
}
.lj-cart-close:hover { color: var(--ink); }

.lj-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.lj-empty {
  text-align: center;
  color: var(--ash);
  font-style: italic;
  padding: 32px 0;
  font-family: var(--ff-display);
  font-size: 18px;
}

.lj-cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--char);
}
.lj-cart-item strong {
  font-family: var(--ff-display);
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}
.lj-cart-item small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--ash);
}
.lj-qty {
  width: 56px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--ff-body);
  font-size: 13px;
  text-align: center;
}
.lj-cart-item__right {
  text-align: right;
  font-family: var(--ff-display);
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}
.lj-rm {
  margin-top: 6px;
  background: none;
  border: none;
  color: var(--ash);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.lj-rm:hover { color: #B23A48; }

.lj-cart-drawer footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.lj-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-family: var(--ff-body);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
.lj-cart-total strong {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.lj-cta {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  padding: 16px;
  text-align: center;
  text-decoration: none;
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  transition: all .18s ease;
}
.lj-cta:hover { background: var(--ink); color: var(--cream); }
.lj-cta span {
  display: inline-block;
  transition: transform .15s ease;
  margin-left: 4px;
}
.lj-cta:hover span { transform: translateX(4px); }

/* Backdrop quando drawer aberto */
body.cart-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(10, 19, 49, 0.4);
  z-index: 99;
  animation: ljFade .2s ease;
}
@keyframes ljFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 640px) {
  .lj-cart-btn { bottom: 18px; right: 18px; padding: 12px 18px; font-size: 11px; }
  .lj-grid { grid-template-columns: 1fr; }
  .lj-cover { padding: 100px 20px 48px; }
  .lj-shell { padding: 32px 20px 64px; }
}
