/* JL Shop — preto e dourado, direto do Paraguai. */
:root {
  /* Paleta do logo JL Shop: preto + dourado, com toques da bandeira do Paraguai */
  --porto: #151515;
  --porto-2: #000000;
  --mare: #a87300;
  --cargo: #eda005;
  --cargo-2: #d48e00;
  --ouro-claro: #ffd84a;
  --py-vermelho: #c0161b;
  --py-azul: #0a3db8;
  --nevoa: #f6f3ec;
  --papel: #ffffff;
  --tinta: #151515;
  --tinta-2: #5b5447;
  --linha: #e5dccb;
  --alerta: #c0161b;
  --ok: #2f7d4f;
  --info: #0a3db8;
  --r-img: 12px;
  --r-ui: 7px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.5; color: var(--tinta); background: var(--nevoa); }
img { max-width: 100%; display: block; }
a { color: #8a5f00; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 700; }
h2 { font-size: 1.55rem; font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cargo); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--tinta-2); }
.small { font-size: .88rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--porto);
  background: var(--porto); color: #fff; font: 600 1rem var(--body); padding: 10px 18px; border-radius: var(--r-ui);
  cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--porto-2); border-color: var(--porto-2); }
.btn.cargo { background: var(--cargo); border-color: var(--cargo); color: var(--tinta); }
.btn.cargo:hover { background: var(--cargo-2); border-color: var(--cargo-2); }
.btn.ghost { background: transparent; color: var(--porto); }
.btn.ghost:hover { background: rgba(237, 160, 5, .12); }
.btn.danger { background: transparent; color: var(--alerta); border-color: var(--alerta); }
.btn.danger:hover { background: rgba(194, 65, 45, .07); }
.btn.sm { padding: 6px 11px; font-size: .9rem; }
.btn.lg { padding: 14px 24px; font-size: 1.08rem; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: #8a5f00; font: inherit; cursor: pointer; text-decoration: underline; }
.linkbtn.danger { color: var(--alerta); }

/* Formulários */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel],
input[type=search], input:not([type]), select, textarea {
  width: 100%; font: 1rem var(--body); color: var(--tinta); padding: 9px 11px; border: 1.5px solid var(--linha);
  border-radius: var(--r-ui); background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--cargo); outline: none; box-shadow: 0 0 0 3px rgba(237,160,5,.3); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--cargo-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.hint { font-size: .85rem; color: var(--tinta-2); margin-top: 3px; }

/* Avisos */
.flashes { margin: 16px 0; }
.flash { padding: 11px 14px; border-radius: var(--r-ui); margin-bottom: 8px; border-left: 4px solid; background: #fff; }
.flash.success { border-color: var(--ok); }
.flash.error { border-color: var(--alerta); }
.flash.info { border-color: var(--info); }

/* Selos de status */
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .82rem; font-weight: 600; white-space: nowrap;
  background: #e6ecec; color: var(--tinta-2); }
.tag.aguardando_pagamento, .tag.pendente { background: #fff1c7; color: #7a5a00; }
.tag.pago, .tag.aprovado { background: #d9efe2; color: #1f5e39; }
.tag.em_separacao { background: #dce9f6; color: #24557f; }
.tag.enviado { background: #d7eeee; color: #1d6464; }
.tag.entregue { background: #1f5e39; color: #fff; }
.tag.cancelado, .tag.recusado, .tag.estornado { background: #f6dcd7; color: #8a2b1c; }

/* Tabelas */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--linha); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--linha); vertical-align: middle; }
th { font-weight: 600; color: var(--tinta-2); font-size: .85rem; background: #faf7f0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcf9f2; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; background: #faf7f0; }

/* ===================== LOJA ===================== */
.topbar { background: #0b0b0b; color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; white-space: nowrap; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.05; color: var(--cargo); }
.brand-name small { display: block; font-family: var(--body); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #e9e2cf; }
.py-stripe { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 4px; }
.py-stripe i:nth-child(1) { background: var(--py-vermelho); }
.py-stripe i:nth-child(2) { background: #fff; }
.py-stripe i:nth-child(3) { background: var(--py-azul); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: #fff; text-decoration: none; letter-spacing: -.03em; white-space: nowrap; }
.logo span { color: var(--cargo); }
.search { flex: 1; display: flex; max-width: 520px; }
.search input { border: 0; border-radius: var(--r-ui) 0 0 var(--r-ui); }
.search button { border: 0; background: var(--cargo); color: var(--tinta); font-weight: 700; padding: 0 16px; border-radius: 0 var(--r-ui) var(--r-ui) 0; cursor: pointer; font-family: var(--body); }
.topnav { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.topnav a { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.topnav a:hover { text-decoration: underline; }
.cart-link { background: rgba(237,160,5,.16); padding: 7px 12px; border-radius: var(--r-ui); }
.cart-link b { background: var(--cargo); color: var(--tinta); border-radius: 99px; padding: 0 7px; margin-left: 4px; font-size: .85rem; }
.catbar { background: #1a1a1a; border-bottom: 1px solid #2a2a2a; }
.catbar .wrap { display: flex; gap: 22px; overflow-x: auto; padding-top: 9px; padding-bottom: 9px; }
.catbar a { color: #d8cfb8; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.catbar a:hover, .catbar a.on { color: var(--cargo); }

main.shop { padding: 8px 0 60px; min-height: 60vh; }

/* Hero: a régua de datas de entrega é o elemento-assinatura */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 40px; margin-top: 20px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(237,160,5,.28), transparent 55%), #0b0b0b; border: 1px solid #3a2e10; }
.hero h1 { color: var(--cargo); }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; font-weight: 700; color: #e9e2cf; margin-bottom: 8px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.dates { color: var(--tinta); }
.dm-list { list-style: none; padding: 0; margin: 12px 0 0; border-top: 1px solid var(--linha); padding-top: 10px; font-size: .9rem; }
.dm-list li { padding: 2px 0; }
.hero h1 { max-width: 15ch; }
.hero p.lead { font-size: 1.15rem; color: #ddd5c2; max-width: 44ch; }
.dates { background: #fff; border: 1px solid var(--linha); border-radius: 16px; padding: 20px; }
.dates h3 { font-size: 1.02rem; margin-bottom: 12px; }
.daystrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.day { border-radius: 10px; padding: 10px 2px 8px; text-align: center; border: 1.5px solid var(--linha); background: #fff; }
.day .wd { font-size: .78rem; color: var(--tinta-2); }
.day .dn { font-family: var(--display); font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.day .mo { font-size: .75rem; color: var(--tinta-2); }
.day.ok { border-color: var(--mare); }
.day.first { background: var(--cargo); border-color: var(--cargo); }
.day.first .wd, .day.first .mo { color: var(--tinta); }
.day.off { background: repeating-linear-gradient(135deg, #f4f6f6 0 6px, #fff 6px 12px); color: #9aa8ad; }
.day.off .dn { color: #9aa8ad; }
.dates .legend { margin-top: 12px; font-size: .88rem; color: var(--tinta-2); }

.section { margin-top: 38px; }
.section > .row { margin-bottom: 14px; }
.section h2 { margin: 0; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 22px 18px; }
.pcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pcard .img { aspect-ratio: 1; background: #fff; border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--linha); }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; }
.pcard .img .noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #9aa8ad; font-size: .9rem; }
.pcard .cat { font-size: .82rem; color: var(--mare); margin-top: 10px; font-weight: 600; }
.pcard .name { font-weight: 600; margin: 2px 0 4px; line-height: 1.3; }
.pcard .price { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--tinta); }
.pcard .out { font-size: .85rem; color: var(--alerta); font-weight: 600; }
.pcard:hover .name { text-decoration: underline; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 22px; }
.filters select { width: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 13px; border-radius: 99px; border: 1.5px solid var(--linha); background: #fff; text-decoration: none; color: var(--tinta); font-size: .93rem; }
.chip.on { background: var(--porto); border-color: var(--porto); color: var(--cargo); }

/* Página de produto */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; margin-top: 24px; }
.gallery .main { aspect-ratio: 1; background: #fff; border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--linha); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid var(--linha); border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; }
.thumbs button.on { border-color: var(--cargo); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp .big-price { font-family: var(--display); font-size: 2.3rem; font-weight: 700; color: var(--tinta); margin: 6px 0 2px; }
.pdp .desc { white-space: pre-line; color: var(--tinta-2); }
.buybox { background: #fff; border: 1px solid var(--linha); border-radius: 14px; padding: 18px; margin: 18px 0; }
.qty { width: 90px !important; }
.crumbs { font-size: .9rem; margin-top: 18px; color: var(--tinta-2); }
.crumbs a { color: var(--tinta-2); }

/* Carrinho e checkout */
.layout-side { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; margin-top: 20px; }
.panel { background: #fff; border: 1px solid var(--linha); border-radius: 14px; padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { margin-bottom: 14px; }
.summary .line { display: flex; justify-content: space-between; padding: 5px 0; }
.summary .total { border-top: 1.5px solid var(--linha); margin-top: 8px; padding-top: 12px; font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img, .cart-item .noimg { width: 76px; height: 76px; border-radius: 9px; object-fit: cover; background: var(--nevoa); }
.paylist label { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--linha); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; font-weight: 500; }
.paylist label:has(input:checked) { border-color: var(--cargo); background: #fdf6e2; }
.paylist label[hidden] { display: none; }
.paylist input { margin-top: 4px; accent-color: var(--cargo-2); }
.paylist .pname { font-weight: 700; }
.freebar { background: #fdf1cf; border-radius: 9px; padding: 9px 12px; font-size: .92rem; margin-top: 10px; }

/* Pedido (cliente) */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--linha); }
.timeline li { padding: 0 0 14px 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--mare); }
.timeline .when { font-size: .82rem; color: var(--tinta-2); }
.delivery-card { display: flex; gap: 16px; align-items: center; }
.delivery-card .cal { background: var(--cargo); border-radius: 12px; text-align: center; padding: 8px 14px; min-width: 76px; }
.delivery-card .cal .dn { font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.delivery-card .cal .mo { font-size: .85rem; }

.auth { max-width: 460px; margin: 40px auto; }

footer.site { background: #0b0b0b; color: #cfc6b0; padding: 34px 0 90px; font-size: .93rem; border-top: 3px solid var(--cargo); }
footer.site a { color: var(--cargo); }
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand img { width: 64px; height: 64px; border-radius: 50%; }
.foot-brand strong { color: #fff; }
.foot-links { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #0b2e17; padding: 12px 18px; border-radius: 99px; text-decoration: none; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.wa:hover { background: #1fbe5a; }

/* ===================== ADMIN ===================== */
body.admin { background: #f6f3ec; font-size: 16px; }
.adm { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: #0b0b0b; color: #d8cfb8; padding: 18px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 0 20px 18px; font-size: 1.45rem; color: var(--cargo); }
.side .logo img { width: 40px; height: 40px; border-radius: 50%; }
.side nav a { display: block; padding: 8px 20px; color: #d8cfb8; text-decoration: none; font-size: .96rem; border-left: 3px solid transparent; }
.side nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.side nav a.on { color: #fff; border-left-color: var(--cargo); background: rgba(255,255,255,.07); }
.side nav .grp { padding: 16px 20px 4px; font-size: .8rem; color: #7f939a; }
.side .me { padding: 18px 20px 0; font-size: .88rem; color: #8ea1a7; }
.side .me a { color: #c8d4d8; }
.content { padding: 24px 30px 60px; min-width: 0; }
.content > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.content > header h1 { font-size: 1.7rem; margin: 0; }
.menu-toggle { display: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 14px 16px; }
.kpi .v { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--tinta); }
.kpi .l { font-size: .88rem; color: var(--tinta-2); }
.kpi.warn .v { color: var(--alerta); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols3 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.card { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: 18px; }
.card + .card { margin-top: 18px; }
.cols > .card + .card, .cols > div > .card:first-child { margin-top: 0; }
.card h2, .card h3 { font-size: 1.12rem; margin-bottom: 12px; }
.card .table-wrap { border: 0; border-radius: 0; margin: 0 -18px -18px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.toolbar .field { margin: 0; }
.toolbar input, .toolbar select { width: auto; min-width: 140px; }
.pager { display: flex; gap: 6px; margin-top: 14px; align-items: center; }
.thumb { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; background: var(--nevoa); }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.imgs figure { margin: 0; background: #fff; border: 1px solid var(--linha); border-radius: 10px; overflow: hidden; }
.imgs figure img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.imgs figcaption { display: flex; justify-content: space-between; padding: 6px 8px; font-size: .85rem; }
.drop { border: 2px dashed var(--linha); border-radius: 12px; padding: 22px; text-align: center; background: #fdfbf6; cursor: pointer; }
.drop.over { border-color: var(--cargo); background: #fdf3da; }
.pricegrid input { width: 120px; text-align: right; }
.day-group { margin-bottom: 18px; }
.day-group h3 { display: flex; gap: 10px; align-items: baseline; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input[type=date] { width: 150px; padding: 5px 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--linha); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--tinta-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.on { color: var(--tinta); border-bottom-color: var(--cargo); }
.bar { height: 8px; background: var(--nevoa); border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--mare); }
.abc { font-weight: 800; font-family: var(--display); }
.abc.A { color: var(--ok); } .abc.B { color: var(--cargo-2); } .abc.C { color: var(--tinta-2); }
.lines-table input, .lines-table select { padding: 6px 8px; }
.login-box { max-width: 400px; margin: 10vh auto; background: #fff; border-radius: 14px; padding: 30px; border: 1px solid var(--linha); }

@media (max-width: 960px) {
  .hero, .pdp, .layout-side, .cols, .cols3 { grid-template-columns: 1fr; }
  .hero { padding: 24px; gap: 24px; }
  .adm { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; width: 260px; left: -270px; transition: left .2s; }
  .side.open { left: 0; }
  .menu-toggle { display: inline-flex; }
  .content { padding: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .wrap { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .topnav { gap: 12px; }
  .topnav .hide-sm { display: none; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.2rem; }
  .wa span { display: none; }
  .wa { padding: 13px; }
  .hero { padding: 20px 16px; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .daystrip { grid-template-columns: repeat(7, minmax(38px, 1fr)); gap: 4px; }
  .day .dn { font-size: 1.15rem; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item img, .cart-item .noimg { width: 60px; height: 60px; }
  .cart-item .right { grid-column: 2; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .side, .no-print, .menu-toggle { display: none !important; }
  .adm { display: block; }
  body.admin { background: #fff; }
}
