/* Bloom Print — design system
   Paleta: papel #F6F5F2 · grafite #17191B · hairline #E3E1DB · fjord #1B4B66
   Tipos: Manrope (display) · Inter (texto) · IBM Plex Mono (preços/specs)   */

:root {
  --paper: #F6F5F2; --surface: #FFFFFF; --ink: #17191B; --ink-2: #5A5F63;
  --line: #E3E1DB; --fjord: #1B4B66; --fjord-2: #143B52;
  --ok: #3E6B4F; --err: #8A3B2E;
  --disp: 'Manrope', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 2px; --pad: clamp(1rem, 4vw, 2.5rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--disp); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .5rem; }
.mono, .price { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.micro { font-size: .8rem; }
:focus-visible { outline: 2px solid var(--fjord); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- rótulos técnicos (a "voz" da marca) ---- */
.eyebrow, .eyebrow-lg {
  font: 600 .7rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 .75rem;
}
.eyebrow-lg { font-size: .8rem; color: var(--ink); }

/* ---------------------------------------------------------- header ------ */
.topbar { background: var(--fjord); color: #fff; text-align: center; font-size: .85rem; padding: .4rem var(--pad); }
.site-header {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem var(--pad); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); z-index: 10;
}
.brand { font: 800 1.05rem/1 var(--disp); letter-spacing: .04em; }
.brand span { color: var(--fjord); }
.brand .adm-tag { font: 500 .65rem/1 var(--mono); color: var(--ink-2); font-style: normal; margin-left: .4rem; }
.site-nav { display: flex; gap: 1.25rem; margin-left: auto; overflow-x: auto; }
.site-nav a { font-size: .9rem; color: var(--ink-2); white-space: nowrap; padding: .25rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); border-color: var(--ink); }
.cart-link { font-size: .9rem; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.btn-quote { background: var(--fjord); color: #fff; font: 600 .82rem var(--body);
  padding: .5rem .95rem; border-radius: var(--r); white-space: nowrap; }
.btn-quote:hover { background: var(--fjord-2); }
.catalog-top { padding-top: 2rem; }
.cart-count { font-family: var(--mono); background: var(--ink); color: var(--paper); border-radius: var(--r); padding: .1rem .4rem; font-size: .75rem; }

/* ------------------------------------------------------------- hero ----- */
.hero { padding: clamp(3rem, 8vw, 6rem) var(--pad) 3rem; max-width: 60rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.hero-sub { max-width: 34rem; color: var(--ink-2); margin: 1rem 0 2rem; }

.quote-bar { display: flex; gap: 0; max-width: 40rem; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.quote-bar input {
  flex: 1; border: 0; padding: .9rem 1rem; font: 400 .95rem var(--body);
  background: var(--surface); min-width: 0;
}
.quote-bar input:focus { outline: none; }
.quote-bar button {
  border: 0; background: var(--ink); color: var(--paper);
  font: 600 .85rem var(--body); letter-spacing: .04em; padding: 0 1.4rem; cursor: pointer;
  transition: background .15s;
}
.quote-bar button:hover { background: var(--fjord); }

.quote-card {
  margin-top: 1.5rem; max-width: 40rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  display: flex; overflow: hidden;
}
.quote-card > img { width: 10rem; object-fit: cover; }
.quote-body { padding: 1.25rem; flex: 1; }
.quote-price { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .75rem 0 .5rem; flex-wrap: wrap; }
.quote-miss .quote-body h3 { color: var(--fjord); }

/* barra de upload de modelo (.stl/.3mf) + material */
.upload-bar { flex-wrap: wrap; }
.file-field { position: relative; flex: 1; min-width: 12rem; display: flex; align-items: center;
  padding: .9rem 1rem; background: var(--surface); font: 400 .95rem var(--body); cursor: pointer; }
.file-field input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-field span { color: #7A7E82; pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-bar select { border: 0; border-left: 1px solid var(--line); background: var(--surface);
  font: 500 .9rem var(--body); padding: 0 1rem; cursor: pointer; }

/* seleção de cores no card de orçamento */
/* página de orçamento (upload passo a passo) */
.orc-form { max-width: 34rem; display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.5rem; }
.orc-step { display: flex; gap: .9rem; align-items: flex-start; }
.orc-num { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: var(--paper);
  font: 700 .85rem var(--body); display: flex; align-items: center; justify-content: center; margin-top: .1rem; }
.orc-field { flex: 1; min-width: 0; }
.orc-label { display: block; font: 600 .72rem var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: .5rem; }
.file-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center;
  border: 1.5px dashed var(--line); border-radius: var(--r); padding: 1.5rem 1rem; cursor: pointer; background: var(--surface); transition: border-color .15s; }
.file-drop:hover, .file-drop.has-file { border-color: var(--fjord); }
.file-drop.has-file { border-style: solid; }
.file-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .fd-ico { width: 1.8rem; height: 1.8rem; color: var(--ink-2); }
.file-drop .fd-cta { font-size: .9rem; color: var(--ink); }
.file-drop .fd-name { font: 500 .85rem var(--mono); color: var(--fjord); overflow-wrap: anywhere; }
.file-drop.has-file .fd-cta, .file-drop.has-file .fd-ico { display: none; }
.file-current { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .7rem .9rem;
  border: 1px solid var(--fjord); border-radius: var(--r); background: var(--surface); }
.file-current .fc-name { font: 500 .9rem var(--mono); overflow-wrap: anywhere; }
.file-current .fc-replace { position: relative; font-size: .82rem; color: var(--fjord); cursor: pointer; text-decoration: underline; margin-left: auto; white-space: nowrap; }
.file-current .fc-replace input[type=file] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.mat-choices { display: flex; gap: .6rem; flex-wrap: wrap; }
.mat-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.mat-box { display: inline-block; padding: .6rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r);
  font: 600 .9rem var(--body); background: var(--surface); cursor: pointer; transition: all .15s; }
.mat-choice input:checked + .mat-box { border-color: var(--fjord); background: var(--fjord); color: #fff; }
.mat-box small { font-weight: 400; opacity: .75; margin-left: .1rem; }
.mat-choice input:focus-visible + .mat-box { outline: 2px solid var(--fjord); outline-offset: 2px; }
.reinforce { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.reinforce label { display: flex; flex-direction: column; gap: .4rem; font: 600 .7rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.reinforce select { border: 1px solid var(--line); border-radius: var(--r); padding: .45rem .6rem; background: var(--surface); font: 500 .9rem var(--body); color: var(--ink); max-width: 6rem; }
.reinforce input[type=range] { width: 14rem; max-width: 100%; accent-color: var(--fjord); margin-top: .3rem; }
.reinforce .infill-out { color: var(--fjord); font-variant-numeric: tabular-nums; }
.orc-submit { align-self: flex-start; margin-left: 2.6rem; }
.orc-submit:disabled { opacity: .8; cursor: progress; }
.orc-loading { margin: .25rem 0 0 2.6rem; color: var(--fjord); font: 500 .88rem var(--body); max-width: 32rem; }
.spin { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -.15em; margin-right: .5em; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .orc-submit { margin-left: 0; width: 100%; } .orc-loading { margin-left: 0; } }
/* seletor de quantidade no resultado do orçamento */
.qty-add { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.qty-ctrl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qty-ctrl button { border: 0; background: var(--surface); width: 2.1rem; height: 2.1rem; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--ink); }
.qty-ctrl button:hover { background: var(--paper); }
.qty-ctrl input { width: 2.6rem; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  height: 2.1rem; font: 500 .9rem var(--mono); -moz-appearance: textfield; }
.qty-ctrl input::-webkit-outer-spin-button, .qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.color-pick { display: flex; gap: 1rem; flex-wrap: wrap; margin: .6rem 0 .2rem; }
.color-pick label { display: flex; flex-direction: column; gap: .3rem;
  font: 600 .68rem var(--body); text-transform: uppercase; letter-spacing: .08em; color: #7A7E82; }
.color-pick select { border: 1px solid var(--line); border-radius: var(--r); padding: .45rem .6rem;
  background: var(--surface); font: 400 .9rem var(--body); }
.cart-spec { display: block; font-size: .72rem; color: var(--ink-2); margin-top: .15rem; }

/* admin: materiais e cores */
.mat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; margin-bottom: 1rem; }
.mat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.mat-name { font: 800 1.1rem var(--disp); }
.frow.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: end; }
.colors { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; align-items: center; }
.color-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line);
  border-radius: 999px; padding: .25rem .55rem .25rem .35rem; font-size: .8rem; }
.color-chip i { width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.color-chip form { display: inline; margin: 0; }
.color-chip .btn-x { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--ink-2); }
.add-color { display: inline-flex; gap: .4rem; align-items: center; margin-left: .25rem; }
.add-color input[name=name] { padding: .35rem .5rem; border: 1px solid var(--line); border-radius: var(--r); font-size: .85rem; }
.add-color input[type=color] { width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: none; cursor: pointer; }
@media (max-width: 700px) { .frow.four { grid-template-columns: 1fr 1fr; } }

/* admin: anúncios (eshop3d) */
.anuncio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.an-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.an-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); display: block; }
.an-thumb { position: relative; margin: 0; }
.an-thumb form { position: absolute; top: .3rem; right: .3rem; margin: 0; }
.img-x { border: 0; background: rgba(23,25,27,.82); color: #fff; width: 1.6rem; height: 1.6rem;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; display: flex;
  align-items: center; justify-content: center; transition: background .15s; }
.img-x:hover { background: var(--err); }
.btn-row { padding: .32rem .8rem; font-size: .78rem; white-space: nowrap; }
.dup-badge { display: inline-block; margin-left: .5rem; font: 600 .68rem var(--body); color: var(--err);
  border: 1px solid var(--err); border-radius: 999px; padding: .05rem .45rem; vertical-align: middle; }
.pend-bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: .5rem 0 1rem;
  padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.an-tools { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: .25rem 0 1rem; }
.adm-table input { padding: .4rem .5rem; border: 1px solid var(--line); border-radius: var(--r); font: 400 .9rem var(--body); background: var(--surface); }
.an-thumb.is-cover img { outline: 2px solid var(--fjord); outline-offset: -2px; }
.cover-badge { position: absolute; top: .3rem; left: .3rem; background: var(--fjord); color: #fff;
  font: 600 .6rem var(--body); text-transform: uppercase; letter-spacing: .08em; padding: .15rem .4rem; border-radius: var(--r); }
.set-cover { position: absolute; bottom: .3rem; left: .3rem; margin: 0; }
.btn-cover { border: 0; background: rgba(23,25,27,.82); color: #fff; font: 500 .65rem var(--body);
  padding: .22rem .5rem; border-radius: var(--r); cursor: pointer; opacity: 0; transition: opacity .15s; }
.an-thumb:hover .btn-cover { opacity: 1; }
.btn-cover:hover { background: var(--fjord); }
.an-custo { background: var(--ink); color: #E8E6E0; padding: 1rem; border-radius: var(--r);
  font: 400 .72rem var(--mono); white-space: pre-wrap; overflow-x: auto; }
.an-actions { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.an-actions form { margin: 0; }
.adm-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r);
  padding: .6rem .7rem; font: 400 .92rem var(--body); resize: vertical; }
@media (max-width: 800px) { .anuncio-grid { grid-template-columns: 1fr; } }

/* ficha técnica — assinatura visual */
.spec { display: flex; gap: 0; margin: .75rem 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec div { flex: 1; padding: .6rem .75rem .6rem 0; border-right: 1px solid var(--line); }
.spec div:last-child { border-right: 0; }
.spec div + div { padding-left: .75rem; }
.spec dt { font: 600 .65rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .3rem; }
.spec dd { margin: 0; font: 500 .95rem var(--mono); }

.price { font-weight: 500; }
.price-lg { font-size: 1.5rem; margin: .25rem 0 1rem; }

/* ---------------------------------------------------------- catálogo ---- */
.catalog { padding: 2rem var(--pad) 4rem; border-top: 1px solid var(--line); }
.catalog-head { display: flex; align-items: baseline; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.pills a { font-size: .85rem; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); }
.pills a.on, .pills a:hover { border-color: var(--ink); color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); transition: background .15s; }
.card:hover { background: var(--surface); }
.card-img { aspect-ratio: 1; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.02); }
.card-img .ph { font: 800 1.5rem var(--disp); color: var(--line); letter-spacing: .1em; }
.card-meta { padding: .9rem 1rem 1.1rem; }
.card-meta h3 { font-size: .95rem; font-weight: 600; margin: .15rem 0 .35rem; }
.empty { color: var(--ink-2); padding: 2rem 0; }

/* ----------------------------------------------------------- produto ---- */
.product-page { display: grid; gap: 2.5rem; padding: 2.5rem var(--pad); max-width: 70rem; }
@media (min-width: 800px) { .product-page { grid-template-columns: 1.1fr 1fr; } }
.product-media img, .card-img.big { border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 1; object-fit: cover; width: 100%; }
/* carrossel de fotos do produto (estilo Instagram: 1 frame, swipe lateral) */
.carousel { position: relative; }
.carousel-track {
  display: flex; overflow-x: auto; aspect-ratio: 1;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border: 1px solid var(--line); border-radius: var(--r);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: center; }
.carousel-slide img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; border: 0; border-radius: 0; }
.car-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.3rem; height: 2.3rem; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.85); border: 1px solid var(--line); color: var(--ink);
  font-size: 1.3rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.car-nav:hover { background: #fff; }
.car-nav.prev { left: .6rem; } .car-nav.next { right: .6rem; }
.car-dots { position: absolute; bottom: .7rem; left: 0; right: 0; display: flex; gap: .4rem; justify-content: center; }
.car-dots .dot { width: .5rem; height: .5rem; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.65); border: 1px solid rgba(0,0,0,.15); }
.car-dots .dot.on { background: var(--fjord); border-color: var(--fjord); }
@media (hover: none) { .car-nav { display: none; } }  /* no touch, só swipe + dots */
.desc { color: var(--ink-2); white-space: pre-line; }
.spec-sheet { flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); }
.spec-sheet div { display: flex; justify-content: space-between; align-items: baseline; border-right: 0; border-bottom: 1px solid var(--line); padding: .6rem .9rem; }
.spec-sheet div:last-child { border-bottom: 0; }

/* ------------------------------------------------------------ botões ---- */
.btn {
  display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 600 .85rem var(--body); letter-spacing: .04em; padding: .7rem 1.4rem;
  border-radius: var(--r); cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--fjord); border-color: var(--fjord); }
.btn-lg { padding: .9rem 2rem; font-size: .95rem; width: 100%; max-width: 22rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-x { border: 0; background: none; color: var(--err); font-size: 1.1rem; cursor: pointer; padding: .2rem .5rem; }

/* ---------------------------------------------------------- checkout ---- */
.checkout { display: grid; gap: 2.5rem; padding: 2.5rem var(--pad); max-width: 70rem; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1fr 1.2fr; } }
.cart-item { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.cart-item .n { flex: 1; font-size: .92rem; }
.qty { display: flex; align-items: center; gap: .4rem; }
.qty button { border: 1px solid var(--line); background: var(--surface); width: 1.6rem; height: 1.6rem; border-radius: var(--r); cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; padding: 1rem 0; font-size: 1.05rem; }
.cart-total strong { font-family: var(--mono); }

.frow { margin-bottom: .9rem; }
.frow.two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
label { display: block; font: 500 .8rem var(--body); color: var(--ink-2); }
input, select, textarea {
  width: 100%; margin-top: .3rem; padding: .65rem .8rem; font: 400 .95rem var(--body);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--fjord); outline: none; }
.pay-methods { border: 1px solid var(--line); border-radius: var(--r); padding: .5rem; margin: 1.25rem 0; }
.pay-methods legend { padding: 0 .5rem; }
.pm { display: flex; gap: .6rem; padding: .6rem; align-items: center; cursor: pointer; font-size: .95rem; color: var(--ink); }
.pm input { width: auto; margin: 0; }
.pm em { font-style: normal; color: var(--ok); font-size: .8rem; margin-left: .35rem; }
.error { color: var(--err); font-size: .9rem; }
.flash { background: var(--ok); color: #fff; padding: .5rem var(--pad); font-size: .9rem; }

/* ------------------------------------------------------------ pedido ---- */
.order-page { padding: 3rem var(--pad); max-width: 46rem; }
.pix-box { display: flex; gap: 1.5rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; margin: 1.5rem 0; flex-wrap: wrap; }
.pix-qr { width: 12rem; border: 1px solid var(--line); }
.copy-row { display: flex; gap: .5rem; margin: .75rem 0; }
.copy-row input { font-family: var(--mono); font-size: .8rem; }
.order-summary ul { list-style: none; padding: 0; margin: 0; }
.order-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }

/* ------------------------------------------------------------ footer ---- */
.site-footer { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2.5rem var(--pad); border-top: 1px solid var(--line); }
.brand-foot { font: 800 1rem var(--disp); }
.brand-foot span { color: var(--fjord); }

/* ------------------------------------------------------------- admin ---- */
.adm-main { padding: 2rem var(--pad) 4rem; max-width: 75rem; }
.adm-main.narrow { max-width: 44rem; }
.adm-bar { display: flex; justify-content: space-between; align-items: center; margin: 1.5rem 0 1rem; }
.adm-stats { display: flex; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; }
.adm-stats > div { flex: 1; background: var(--surface); padding: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.adm-stats .big { font-size: 1.3rem; }
.adm-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.adm-table th { text-align: left; font: 600 .68rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.adm-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table .r, .adm-table th.r { text-align: right; }
.adm-table .thumb img { width: 2.6rem; height: 2.6rem; object-fit: cover; border-radius: var(--r); }
.adm-table tr.off td { opacity: .45; }
/* tabela de anúncios: rola no mobile e números não quebram/encavalam */
.table-scroll { overflow-x: auto; }
.adm-table td.r, .adm-table th.r { white-space: nowrap; }
/* lista de anúncios em cards (responsivo — não estoura no mobile) */
.an-list { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.an-card { display: flex; flex-direction: column; gap: .55rem;
  padding: .8rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.an-head { display: flex; align-items: flex-start; gap: .6rem; }
.an-name { flex: 1; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; line-height: 1.3; }
.an-body { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.5rem; }
.an-thumb-sm img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); display: block; }
.an-block { display: grid; grid-template-columns: auto auto; gap: .2rem .7rem; align-content: center; }
.an-block .k { font: 600 .62rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); align-self: center; }
.an-block .v { font: 500 .85rem var(--mono); text-align: left; font-variant-numeric: tabular-nums; }
.an-block .v.muted { color: var(--ink-2); }
.an-acts { display: flex; gap: .5rem; align-items: center; margin-left: auto; }
.an-acts form { margin: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink-2);
  cursor: pointer; padding: 0; transition: color .15s, border-color .15s; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn.danger:hover { color: var(--err); border-color: var(--err); }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.adm-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.adm-form label { margin-bottom: .9rem; }
.adm-form .check { display: flex; gap: .5rem; align-items: center; color: var(--ink); }
.adm-form .check input { width: auto; margin: 0; }
.adm-form.up3mf { display: flex; gap: .75rem; align-items: center; padding: .6rem .75rem; }
.adm-form.up3mf input[type=file] { width: auto; margin: 0; font-size: .85rem; }
.form-thumb { width: 6rem; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 1rem; }
.inline-add { display: flex; gap: 1rem; align-items: flex-end; margin-top: 1.5rem; }
select.status-pago { color: var(--ok); } select.status-cancelado { color: var(--err); }

/* ------------------------------------------------------------- login ---- */
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: min(22rem, 90vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; }
.login-card .brand { display: block; margin-bottom: 1.5rem; }
.login-card label { margin-bottom: 1rem; }
.login-card .btn { width: 100%; margin-top: .5rem; }

@media (max-width: 640px) {
  .site-nav { display: none; }           /* loja: navegação pelas pills da vitrine */
  /* admin: mantém a nav numa faixa própria que rola na horizontal */
  body.admin .site-header { flex-wrap: wrap; row-gap: .5rem; }
  body.admin .site-nav { display: flex; order: 3; width: 100%; margin-left: 0;
    -webkit-overflow-scrolling: touch; padding-bottom: .25rem; }
  .quote-bar { flex-direction: column; }
  .quote-bar button { padding: .8rem; }
  .quote-card > img { width: 100%; height: 10rem; }
  .quote-card { flex-direction: column; }
  .frow.two { grid-template-columns: 1fr; }
  .inline-add { flex-direction: column; align-items: stretch; }
  /* barra do título + form de importar empilham em vez de estourar */
  .adm-bar { flex-wrap: wrap; gap: .75rem; }
  .adm-bar h1 { width: 100%; }
  .adm-form.up3mf { flex-wrap: wrap; width: 100%; }
}

/* ---- conta do cliente (login Google) ------------------------------------ */
.conta-link{display:inline-flex;align-items:center;gap:.45rem;font-size:.82rem;
  letter-spacing:.02em;color:var(--ink);text-decoration:none;padding:.35rem .6rem;
  border:1px solid var(--line);border-radius:var(--r)}
.conta-link:hover{border-color:var(--fjord);color:var(--fjord)}
.conta-foto{width:20px;height:20px;border-radius:50%;object-fit:cover}
.conta-foto-lg{width:56px;height:56px;border-radius:50%;object-fit:cover}
.btn-google{display:inline-flex;align-items:center;gap:.5rem}
.btn-google::before{content:"";width:16px;height:16px;flex:0 0 16px;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'><path fill='%234285F4' d='M45 24.5c0-1.6-.1-2.7-.4-3.9H24v7.1h12c-.2 1.8-1.5 4.6-4.4 6.4l6.7 5.2c4-3.7 6.7-9.1 6.7-14.8z'/><path fill='%2334A853' d='M24 46c5.9 0 10.9-2 14.5-5.3l-6.9-5.3c-1.8 1.3-4.3 2.2-7.6 2.2-5.8 0-10.7-3.8-12.5-9.1l-7.1 5.5C8 41.1 15.4 46 24 46z'/><path fill='%23FBBC05' d='M11.5 28.5c-.5-1.4-.7-2.9-.7-4.5s.3-3.1.7-4.5l-7.1-5.5C2.9 17 2 20.4 2 24s.9 7 2.4 10z'/><path fill='%23EA4335' d='M24 10.6c3.2 0 5.4 1.4 6.6 2.5l5.9-5.8C32.9 4 28.9 2 24 2 15.4 2 8 6.9 4.4 14l7.1 5.5c1.8-5.3 6.7-8.9 12.5-8.9z'/></svg>") center/contain no-repeat}
.conta-page{max-width:840px;margin:0 auto;padding:2.5rem 1.25rem 4rem}
.conta-head{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;
  padding-bottom:1.25rem;border-bottom:1px solid var(--line);margin-bottom:2rem}
.conta-head h1{margin:.15rem 0}
.conta-head form{margin-left:auto}
.conta-pedidos{margin-top:2.5rem}
.conta-convite{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;
  padding:.85rem 0 1.1rem;border-bottom:1px solid var(--line);margin-bottom:1.25rem}
.status{font-family:var(--mono);font-size:.74rem;
  text-transform:uppercase;letter-spacing:.06em}
.status-pago,.status-enviado{color:var(--ok)}
.status-cancelado{color:var(--err)}
@media (max-width:640px){.conta-head form{margin-left:0;width:100%}}
